Skip to content

gauravgpta93/Api_Rate_Limiter_Docker_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api_Rate_Limiter_Docker_image

This is a API rate limiter for each user/client by authenticating with a header. It is setup to 10 requests per second, It can be changed in the main/index.py

This uses a straight forward sliding window problem approach for ensuring the precise rate limit enforcement.

Steps to build docker image and run:

  1. Enter the location of the Extracted directory
  2. Enter in terminal -> docker build -t ratelimiter . -> docker run –name ratelimiter -d -p 3000:5000 ratelimiter
  3. Check if the server is running properly -> curl -X GET -H "X-API-KEY: TEST" http://localhost:3000/limit
  4. To kill the docker -> docker kill ratelimiter

About

A Dockized REST API that is rate limited.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published