Sliding-window counter

A sliding-window counter estimates the request count in a rolling time window by combining the current fixed-window count with a weighted portion of the previous window. It uses less storage than a full request log but is an approximation.

Learn this concept

Lesson 1.9 · Rate limiting: why, and the five algorithms

Used in exercises

Exercise 1.27 · Optional: Sliding window counter limiter