Software architecture interview · Software Engineer
Distributed API rate limiter
- Level
- Mid-level
- Length
- About 55 minutes
- Format
- A diagram canvas you draw on as you talk
- Rate-limiting algorithms
- Distributed counters
- Latency budgets
- Failure modes
The problem
We run a public API behind a large fleet of gateways and we are being abused. Design a rate limiter that enforces rules like a hundred requests per minute per user, or per API key, and rejects the excess with a 429.
The rest of the problem, the interviewer's follow-ups and your report come with the practice interview.
How the interview runs
- Introductions and framing5 min
- Requirements clarification and scoping7 min
- Estimation, core entities and API6 min
- High-level design12 min
- Deep dives15 min
- Wrap-up5 min
- Their questions5 min
Our library of software architecture problems
URL shortener (Bitly-like)Mid-level
Distributed API rate limiter · This problemMid-level
Event ticketing under flash-sale load (Ticketmaster-like)Senior