Why is token bucket preferred over a fixed window?
A fixed window resets its counter on a boundary, so a client can send the full limit at the end of one window and again at the start of the next — up to 2× the intended rate in a short span. Token bucket refills continuously, smoothing bursts to a steady sustained rate while still allowing a controlled burst up to the bucket capacity.