Skip to content

astagi/python-limit-requests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 27, 2020
d66e00f Β· Apr 27, 2020

History

6 Commits
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020

Repository files navigation

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

About

πŸ›‘ Requests rate limiting using Python and Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages