Enforce tenant quotas across servers while making burst behavior and outage policy explicit.
Infrastructure, platform and reliability engineers.
Your approach: Use diagrams or prose to explain responsibilities, state, capacity and failure behavior. Show the calculations requested by the question.
Design a rate limiter used by API servers in two regions. Explain the client-visible quota contract, how simultaneous requests consume allowance, and what happens when shared state is unavailable. Choose and justify an algorithm without assuming all limits need identical consistency.
Declare p95 additional server-side latency during normal operation.
Required target: ≤ 10 milliseconds
Specify the maximum overshoot allowed across simultaneous requests and regional partitions.
State which requests fail open or closed and how recovered allowance avoids a second full burst.
Define tokens or counters, time semantics, rejection responses and retry guidance.
Show key ownership, atomic updates and tenant isolation across API servers.
Estimate state size and load; handle the hot tenant and expired counters.
Trace a regional partition and recovery, comparing accuracy with availability.