Skip to content

Two Simple Implementations of Rate Limit using Token Bucket in memory and with redis

Notifications You must be signed in to change notification settings

sssyam/RateLimitPythonAndRedis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rate Limit using python and Redis

How to run ?

  1. Create Virtualenv and activate
    virtualenv RateLimitPython
    cd RateLimitPython
    source bin/activate
  1. Install requirements
    pip install -r requirements.txt
  1. Run docker container
    docker-compose -f src/docker-compose.yml up -d
  1. Run the file
    python3 src/rate_limit.py

Note:

This is used for Proof Of Concept and not meant to be used in production.

About

Two Simple Implementations of Rate Limit using Token Bucket in memory and with redis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages