Skip to content

RishiDiwanTT/ExampleRateLimiter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rate limit implementation

2 implementations are available

In Memory Limiter

This is not scalable and is limited to a single process, since it is in memory
It is low latency, however due to the locking mechanism it will slow down performance

Redis Limiter

This can be scaled across processes
We depend on the Redis server to maintain sanity of data and expire the keys appropriately
This is a better for a more scalable solution like any webserver

Testing

To test the Redis Limiter, run the associated docker-compose independently Then simply pytest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages