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
- rate limiting — Capping how many requests a client may make in a period of time, and rejecting or delaying the rest.
- burst — A short spike of many requests or messages at once, as opposed to the average rate over time.
- sliding window — The most recent k items of a sequence or stream, which moves forward one item at a time as new data arrives.
Taught in
- Rate Limiting Strategies — Modern API Architecture: REST, GraphQL & gRPC
- Built-in Rate Limiting Middleware — Modern .NET Core, C# & Enterprise Microservices