Skip to content

Glossary: System Design Beyond the Basics in Rust

Token bucket

Also written: capacity, refill rate

A limiter where each key has a bucket of up to a capacity of tokens. Each request spends one, and tokens refill at a steady rate, so a quiet client saves up a burst.

Where the book teaches it

Related terms

Leaky bucketFixed window counterSliding window log