api-designbackendsystem-design
A token bucket separates burst size from sustained rate
Anonymous
A token bucket lets tokens build up to a limit and refill at a configured rate. Each request spends tokens, so the limit can allow short bursts while still controlling sustained traffic. Set the bucket capacity and refill rate separately to express those two constraints.
0