Chapter IV: Distributed System Concerns
Rate Limiting
Controlling request rates to protect resources, with common algorithms.
In short
Rate limiting caps how many requests a client can make in a window to protect resources.
Loading diagram…
Key takeaways
- Token/leaky bucket handle bursts; sliding window is most accurate.
- Distributed limiting uses a shared store (e.g. Redis); returns HTTP 429.