CS Fundamentals Trainer · System design challenges
Design rate limiting for a public API
Difficulty: medium
Requirements
- Each API key gets at most 100 requests per minute
- The limit holds across all API servers, not per server
- Rejected requests are turned away before they reach the application
Draw the architecture from components such as load balancers, caches, queues and databases, then check it against the requirements.