DSA Tracker

System design

Design a rate limiter

Design a component that limits how many requests a client may make in a time window.

SDE-1Beta

Clarify

Step 1 of 5
about 5 min

Real rounds start with questions, not boxes. Write what you would ask the interviewer, then see what they would answer.

What the interviewer tells you

  • Limit per user, API key or IP, with different limits per endpoint
  • Reject with a clear response and a retry hint
  • Low added latency; must work across many servers
  • Decide: fail open or fail closed when the limiter is down
Step 1 of 5