Problem
Choosing wrong algorithm: burst rejection, memory explosion, boundary spikes. Each has distinct behavior under load.
Also known as: token-bucket, leaky-bucket, sliding-window, fixed-window
Compare rate limiting algorithms: token bucket, leaky bucket, fixed window, sliding window — trade-offs and use cases.
Choosing wrong algorithm: burst rejection, memory explosion, boundary spikes. Each has distinct behavior under load.
Low (in-memory) to Medium (Redis)
Low — algorithm choice
Medium — algorithm properties
Fixed window: 2x burst at boundary
Token bucket: burst overwhelms downstream
Sliding log: memory explosion at high rate
Redis latency: rate limit check adds ms
Clock skew: window boundaries wrong