Design a Distributed Rate Limiter with Redis Lua

Asked at Apple · System Design for ML · Difficulty: Hard · Last asked Nov 21, 2025

Discuss: token bucket vs fixed window vs sliding window; in-process vs sidecar vs gateway vs dedicated service; Redis shared state, sharding, hot keys, availability, atomic updates; fail-open vs fail-closed during a limiter outage.

Loading the problem…