MOFAKH
.
COM
Profile
Topics
Recent
25 notes
System design — notes
+
Topics
C#
5
.NET
4
Docker
4
SQL
4
Networking
4
System design
4
System design — notes
Why I start with a modular monolith
Jun 27, 2026 · 8 min
Idempotent message consumers
outline
Caching strategies and invalidation
outline
Rate limiting: token bucket vs sliding window
outline
← Back to profile
System design
Rate limiting: token bucket vs sliding window
unwritten
—
Outline
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