Skip to content

astagi/python-limit-requests

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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