← Quiz: Design a Rate Limiter: all 15 questions
Quiz: Design a Rate Limiter · Question 11 of 15
How much does a token bucket need to store for each client?
How much does a token bucket need to store for each client?
- A.Every request timestamp
- B.Two numbers: the current tokens and the last refill time
- C.The full request bodies
- D.Nothing at all
Answer & explanation
Correct answer: Two numbers: the current tokens and the last refill time
That is why token buckets scale cheaply to millions of clients.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Rate Limiter quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →