Sliding log
A rate limiting algorithm that stores the time of each request and counts those in the last window.
Example
With a 60-second window, at 12:05:30 only requests since 12:04:30 count.
Test yourself: Sliding log
Rate limiting algorithms
Which algorithm is the most precise, with no spikes at the window boundary?
Sliding log stores each request's time and counts exactly those in the last 60 seconds. There's no boundary where double slips in, though it stores 1 timestamp per request.
0/1
â–¶ Play