/python-limit-requests

🛑 Requests rate limiting using Python and Redis

Primary LanguagePythonMIT LicenseMIT

Rate limiting using Python and Redis

This repository contains a Python implementation of time-bucketed and GCRA algorithms to limit requests. For more info go to the article Rate limiting using Python and Redis

Setup

Configure Redis and make it running on the default port 6379. Then install Python dependencies

pip install redis

Run Time-bucketed

python main_tb.py

Run GCRA

python main_gcra.py