Problem
Design a distributed rate limiter that enforces per-client quotas across API gateways without blocking legitimate traffic
- Avoid race conditions when multiple gateways check the same client limit simultaneously
- Scale throughput to handle millions of checks per second across regional shards
- Maintain availability and prevent full outages if the counter store fails during traffic spikes
Key Test Points
- Atomic Lua scripting
- Redis Cluster sharding
- Fail-open policy
Spot an issue or have a suggestion?