Which algorithm is usually preferred when you want to allow short bursts while enforcing an average rate?
Practice this question from Quiz: Design a Rate Limiter, with options and an explanation.
Question
Which algorithm is usually preferred when you want to allow short bursts while enforcing an average rate?
Option A
Fixed window counter
Option B — Correct answer
Token bucket
Token bucket supports controlled bursts and is a common interview answer.
Option C
Round robin
Option D
Bloom filter