Skip to content

Glossary: System Design Beyond the Basics in Go

Token bucket

Also written: capacity, refill rate

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

Where the book teaches it

Related terms

Leaky bucketFixed window counterFake clock