Rate Limiting
"Design a rate limiter" is a classic interview question in its own right, and rate limiting appears inside almost every other design to protect services from abuse and overload. Know the algorithms, where limits live, and how to share counters across many servers.
In this lesson
- Learning objectives
- Algorithms
- Where limits live
- Distributed limits
- Telling clients
- Self-check
Questions covered
- Design a distributed rate limiter for an API gateway.
- Compare token bucket and sliding window counter.
This lesson is part of System Design Interview: Concepts, Patterns & Real Designs. Unlock the full course to read it, take the quiz and track your progress.