Question bank

No. 09 · Security & reliability

Design an API rate limiter

Advanced35 minRate limiting · Hot keys · Consistency models · Sharding & partitioning · API design · Estimation

Your sketch
Opening the sketchbook…

OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES

Further reading

Walkthrough reading

At least one vetted end-to-end walkthrough or mock interview is linked. Links go to other sites; we credit and describe them rather than copy them.

  1. Scaling your API with rate limiters

    StripeEngineering blogPartialFreeVetted

    Primary source on the four limiters Stripe runs in production, including a concurrent-requests limiter and load shedders, with token buckets in Redis. Strong on why; light on how the distributed counters stay consistent.

    Link checked 2026-12-06

  2. Design a Distributed Rate Limiter

    Hello InterviewArticleFull walkthroughFreeVetted

    Free end-to-end breakdown: where to put the limiter, the four common algorithms, 429 responses and headers, fail-open versus fail-closed, hot keys and pushing rule changes. The best single read for the whole question.

    Link checked 2026-12-06

  3. How we built rate limiting capable of scaling to millions of domains

    Cloudflare BlogEngineering blogPartialFreeVetted

    Shows how Cloudflare approximates a sliding window with two fixed-window counters to keep memory small at the edge. Great for the algorithm deep dive; does not cover a central rules service.

    Link checked 2026-12-06

  4. System Design Interview: Design a Rate Limiter

    Aced (formerly Exponent)Mock interviewMock interviewFreeVetted

    Written summary of a mock interview with an engineering manager, including the distributed follow-ups and interviewer notes. Shows interview pacing more than a complete design.

    Link checked 2026-12-06

  5. Design a Rate Limiter | Systems Design Interview Questions With Ex-Google SWE

    Jordan has no life (YouTube)VideoFull walkthroughFreeVetted

    Whiteboard video covering placement behind the load balancer, Redis versus other stores, replication choice and a sliding-window log. Helpful for hearing trade-offs said out loud; long.

    Link checked 2026-12-06

  6. RateLimit header fields for HTTP (Internet-Draft)

    IETF httpapi working groupDocsBackgroundFreeVetted

    Standards-track draft for the RateLimit and RateLimit-Policy response headers. Read it to answer "how does the client know when to retry" precisely; it is not about enforcement.

    Link checked 2026-12-06

Report a bad or misleading link

Reference audit: 2 of 5 links from the audited catalog kept
  • blog.bytebytego.com/p/rate-limiting-fundamentals Paid newsletter post; the free part stops at the algorithm list.
  • medium.com/geekculture/system-design-design-a-rate-limiter-81d200c9d39 Restates a book chapter with its figures; superseded by primary sources (Stripe, Cloudflare) and a free full breakdown.
  • leetcode.com/discuss/interview-question/system-design/1616482/System-D Thin: skips the algorithms and leaves distribution as open questions. Not an interview report.

We audited the public catalog at systemdesign.io on 2026-12-06. Dropped links are not linked here on purpose.

COMPANY EVIDENCE · NOT A FREQUENCY CLAIM

Where it has been reported

Candidate reports

Catalog tags (unverified)

UberPatreonMicrosoftStripeHeadwayReputationPinterest

Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.

Report or add attribution evidence · How we label evidence

KEEP GOING

From our Learn guides

Related questions