Fixed window
Fixed window counting places requests into a time interval and resets the count when that interval expires.
Use it when
Section titled “Use it when”- You want the smallest operational and computational cost.
- Small bursts around a window boundary are acceptable.
- Your policy is naturally expressed as “N requests per interval.”
Configuration
Section titled “Configuration”const limiter = createRateLimiter({ algorithm: Algorithms.FIXED_WINDOW, limit: 100, windowMs: 60_000, store,});