BlueprintBETA
← All challenges

Design a rate limiter

Beginnerabout 25 minuses Levels 0–4, 7

Think of a public API, like a weather or payments API that thousands of apps call. If one app sends far too many requests, everyone else gets slow answers or errors. A rate limiter stands at the door. It counts each user's requests and politely refuses the extra ones. In this challenge you design it the way you would in an interview: ask the right questions, work out the numbers, build it, then see if it survives real traffic.

How this challenge works

Five steps, like a real interview.

  1. 1RequirementsAsk the interviewer what to build
  2. 2EstimateTurn the answers into numbers
  3. 3BuildDesign it on the board, on budget
  4. 4Stress testSurvive a night of real traffic
  5. 5ReviewCompare with a reference design