Rate Limiting

Per-user API quota

You ship a public API with free (1k req/day) and paid (100k req/day) tiers. API keys identify customers. Where do you enforce limits, what algorithm/window do you use, and what HTTP response do clients get when over quota?

Intermediate drill question.

Write it as you would say it in the interview: assumptions, the design, tradeoffs, and what you would do next. The draft saves in this browser.

Review the lesson