All interviews45:00
Rate limiter
Protect an API from overload and abuse by rejecting excess requests early with 429. The design choices are the algorithm, where the counters live, and what happens when the limiter itself is slow or down.
Notes and ratings save in this browser. Completing self-assessment records your progress.
Requirements checklist
Clarifying questions
- What identifies a client: API key, user, IP?
- Is the limit a hard quota (billing) or overload protection?
- Are bursts allowed, and how large?
- Must the limit be exact across all servers, or is a few percent of overshoot fine?
- What should happen if the limiter is unavailable?
requirements
Suggested time: about 6 minutes. Explicit fail-open/closed policy and rule configurability.