Algorithms

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?

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.