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.