MOFAKH.COM
← Back to profile
System design

Rate limiting: token bucket vs sliding window

unwrittenOutline
Note to self
Not written yet. This is the outline I am working from — it will be filled in as I go through the topic.
  • Fixed window, sliding window, token bucket, leaky bucket
  • Distributed counters in Redis and the atomicity problem
  • Per-tenant vs per-user vs per-endpoint limits
  • Responding well: 429, Retry-After, and client backoff
Previous
Caching strategies and invalidation
Next
End of this topic