Fixed-window counter
A fixed-window counter tracks the number of requests received during a fixed time interval. The count resets when the next window begins, making the algorithm simple but allowing bursts around window boundaries.
Learn this concept
Lesson 1.9 · Rate limiting: why, and the five algorithmsUsed in exercises
Exercise 1.14 · Limiter interface and a FixedWindow implementation Exercise 1.22 · Redis fixed-window limiter that fails open Exercise 1.26 · Optional: Sliding window log limiter Exercise 1.27 · Optional: Sliding window counter limiter Exercise 1.30 · Optional: X-RateLimit response headers Exercise 3.24 · POST /v1/auth/login: rate limit attemptsPrerequisite conceptsRate limiting