Definition
A rate-limiting algorithm: requests consume tokens that refill at a fixed rate.
How it works
Allows short bursts (up to the bucket size) while bounding the average rate. Empty bucket → reject (429).
Common questions
What is Token Bucket?
A rate-limiting algorithm: requests consume tokens that refill at a fixed rate.
How does Token Bucket work?
Allows short bursts (up to the bucket size) while bounding the average rate. Empty bucket → reject (429).
What is Token Bucket used for in system design?
Allows short bursts (up to the bucket size) while bounding the average rate. Empty bucket → reject (429).
Part of Glossary on SystemLore — system design explained with 148 deep topics, interactive diagrams, and a build-it-yourself game. Build this one →