There is more of this guide.
Practice
7 questions- API designDesign how rate limits are surfaced to API clients. What headers, what behavior on 429, what gets communicated when?
- API designHow would you design rate limits that are fair across customers but allow controlled bursts for verified ones?
- API designHow would you structure rate-limit responses so a smart client can degrade gracefully rather than hammer?
- API designYour API allows 100 requests per minute per user. What HTTP status code should you return when a user exceeds this limit, and what should you include in the response?
- API designYour API fronts an expensive language-model backend, and one request can cost 100x another depending on input size. Requests-per-minute limits no longer protect you. Design limits that do.
- API designYour API serves real-time trading data with strict rate limits per user tier. A client hits the limit mid-day. What rate-limit headers do you return, and how do you let them know when quota resets?