api-designnetworkingsystem-design
A token bucket allows bursts at a controlled rate
Anonymous
Add tokens over time up to a fixed capacity; each request consumes one, and a request with no token waits or is rejected. Capacity controls burst size, while refill rate controls sustained traffic. The policy still needs a clear clock and shared state when requests hit multiple servers.
0