Skip to content

AsadAmir111/rate-limiting-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rate Limiting System

Local Setup

  • Run docker-compose up to start a container running rate_limiting_service and another running Redis.
  • MAX_TOKENS and SECONDS_PER_TOKEN are environment variables that can be set inside the docker-compose file to configure the rate limit.
  • Make a GET request at http://localhost:5000/ with a User-Token in the headers.
  • Example: curl -H "User-Token: user1234" http://localhost:5000/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published