fixed first algo so it adds as many tokens as needed after more than one time period has passed
This commit is contained in:
@@ -1,3 +1,20 @@
|
||||
"""
|
||||
TODO: implement leaky bucket
|
||||
- in-app
|
||||
- [x] in-memory
|
||||
- [ ] redis
|
||||
- [ ] redis cluster
|
||||
- [ ] Flask middleware - https://flask.palletsprojects.com/en/2.1.x/quickstart/#hooking-in-wsgi-middleware
|
||||
- [ ] NGINX - https://leandromoreira.com/2019/01/25/how-to-build-a-distributed-throttling-system-with-nginx-lua-redis/
|
||||
- https://www.nginx.com/blog/rate-limiting-nginx/
|
||||
- [ ] AWS API Gateway
|
||||
- [ ] HAProxy Stick Tables - https://www.haproxy.com/blog/introduction-to-haproxy-stick-tables
|
||||
- [ ] Cloudflare (Spectrum?)
|
||||
TODO: implement fixed window counter
|
||||
TODO: implement sliding window log
|
||||
TODO: implement sliding window counter
|
||||
TODO: use session IDs instead of IP address
|
||||
"""
|
||||
import flask as f
|
||||
|
||||
from . import algos
|
||||
|
||||
Reference in New Issue
Block a user