fixed window

A rate-limiting method that counts requests in fixed blocks of time, such as two per second, resetting the count when each block ends.

In more detail

It is simple but lets a burst straddle the boundary between two windows. A sliding window or a token bucket smooths that out.

Example

In the APIs course: The course lab uses a deliberately tiny fixed window so the 429 is easy to see.

Related terms

Taught in

References