Rate Limiting Algorithms: Token Bucket vs Sliding Window
Six rate limiting algorithms run through the same 100-a-minute limit and the same traffic, with what each let through, what it costs in Redis, and atomic Lua code for Python.
Practical guides on System Design, Backend Architecture, and GenAI Infrastructure for modern applications.
Six rate limiting algorithms run through the same 100-a-minute limit and the same traffic, with what each let through, what it costs in Redis, and atomic Lua code for Python.
A timeout can’t tell you whether the card was charged, so an idempotency key lets the retry get the original result back instead of charging twice.