Design a distributed rate limiter for an internal service with per-API-key throughput limits.
Unlock detailed company stats for this questionUpgrade
Design a distributed rate limiter for an internal service that has a fixed throughput limit for each upstream service, based on an API key. One API key can be used by more than one service or instance. A request that cannot be served must not be rejected but queued somewhere and processed later. There should be no wasted capacity: if service-1 has spare capacity, service-2, which has reached its limit, should be able to use it. The service expects 10k RPS and can scale up to 1M RPS in future.
Expect follow-ups like
- What if you do not want the network latency of calling a Redis cluster?
- You have raised a PR for a feature and received many review comments. How do you deal with it and take it to closure?
Also asked as · Design a distributed rate limiter for internal microservice APIs.
Community answers
No answers contributed by the community yet.
Related questions
Design a rate limiter for a microservices API.Design a rate limiter for an app with a freemium model.Design a high-level design for an API rate limiter.Related courses

Course

Course
Course

