Rate limiting with Redis
Write a sliding-window rate limiter on a Redis sorted set and see why fixed windows let bursts through.
- Intermediate
- Redis
How it works
Using the template makes a personal copy of its files. It opens on a machine of your own, with the database or broker it needs already running beside it. The copy is yours to change; it never follows later edits to the template.
Before you start
- Basic Python
- What an API rate limit is