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…
More Apple interview questions
- LLM conceptual questions
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Compare PPO, DPO, and GRPO
- Implement a Vision Transformer (ViT) from Scratch
- Sample from a Gaussian Distribution Using Only Uniform Sampling
- Diagnose a CTR Drop After a Ranking Model Launch