All Questions
Managing Long Running Tasks hard

How do you rate limit an external API call across 1000 distributed workers?

  1. A Local counter on each worker.
  2. B Distributed Rate Limiter (e.g., Token Bucket in Redis). Workers must claim a token from Redis before making the API call.
  3. C Guess.
  4. D Check the time.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions