Practice · High Level Design · Storage and Infrastructure
Design a Distributed Rate Limiter
IntermediateToken bucketSliding windowRedisMany servers⏱ 2 h
Protecting an API from floods: token bucket vs sliding window, keeping counts in Redis, and limiting fairly when requests hit many servers at once.
✎
This one is being written
The full solution is on its way. Here is its outline, so you can try designing it yourself first.
- 01Problem introduction
- 02Problem statement
- 03Requirements
- 04Capacity estimation
- 05API design
- 06Database design
- 07Architecture
- 08Request lifecycle
- 09Component deep dive
- 10Scaling, 100 to 10M users
- 11Failure scenarios
- 12Reliability and observability
- 13Security
- 14Trade-offs
- 15Final architecture
- 16Interview discussion
Designed it yourself and understood the solution? Mark it to track your progress.