Sliding window
A rate limiting algorithm that adds the current counter and part of the previous one.
Example
15 seconds into the minute, it counts 30 current plus 75% of 80 previous: 90.
Test yourself: Sliding window
Rate limiting algorithms
Sliding window stores just ___ counters instead of each request's time.
The previous minute's and the current one's: 2 numbers per user. With them it estimates the 60-second window without fixed window's spikes.
0/1
â–¶ Play