Algorithms

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.

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.