Design an API Rate Limiter that controls user access by regulating the volume of requests they submit.
Suggested time: 45 minutes
Loading the workspace...
Every API call you make (Google Maps, Stripe, OpenAI) passes through a rate limiter before it reaches business logic. The limiter must decide allow or deny in under 10ms, at millions of requests per second, without itself becoming the bottleneck it was built to prevent.
Per-user per-API rate limits
Configurable rules with admin CRUD
Allow/deny decision with Retry-After header
Multiple rate limiting scopes
Soft and hard limits
Design a Server Architecture for Serving Geospatial Images (medium)
Design a Web Cache (medium)
Design a Code Deployment System (medium)
Company guides that list this problem among their sample questions.