No. 09 · Security & reliability
Design an API rate limiter
OFF-SITE READING · OTHER PEOPLE’S WORK, OUR NOTES
Further 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.
- Scaling your API with rate limiters
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
- Design a Distributed Rate Limiter
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
- How we built rate limiting capable of scaling to millions of domains
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
- System Design Interview: Design a Rate Limiter
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
- Design a Rate Limiter | Systems Design Interview Questions With Ex-Google SWE
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
- RateLimit header fields for HTTP (Internet-Draft)
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
- Multiple reports Amazon
- SDE2 candidate (Bangalore) was asked to design a rate limiter, including distributed rate limiting across multiple instances. · posted 2026-09-09 · checked 2026-12-06
- SDE2 candidate in Bellevue says the 45-minute system design round was to design an API rate limiter. · posted 2019-11-27 · checked 2026-12-06
- SDE2 candidate in Bangalore was asked to design a throttling mechanism or rate limiter; the interviewer focused on the surrounding system more than the algorithm. · posted 2022-05-06 · checked 2026-12-06
- Candidate report Atlassian
- Backend Engineer II candidate says the system design portion asked for a rate limiter design: placement, config storage, algorithms and trade-offs. · posted 2026-10-23 · checked 2026-12-06
Catalog tags (unverified)
UberPatreonMicrosoftStripeHeadwayReputationPinterest
Assigned by the reference catalog (audited 2026-12-06). We have not verified that these companies ask this question.
KEEP GOING