Algorithms

Leaky bucket

A rate limiting algorithm that puts requests in a queue and lets them out at a fixed rate.

Example

Even if 100 arrive at once, 10 per second leave; if the queue fills up, they're dropped.

Test yourself: Leaky bucket

Rate limiting algorithms

In leaky bucket, requests leave the queue at a ___ rate.

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.