A bucket holds up to B tokens and refills at a constant rate R tokens/sec. Each incoming request consumes 1 token. If no tokens remain, requests are dropped.
STAFF ENGINEER TAKEAWAY: Allows for natural temporary bursts of traffic (up to bucket capacity) while strictly capping long-term sustained throughput.
🔒
Unlock Token Bucket Rate Limiting Algorithm & All 150+ Visual Architecture Deep Dives
This advanced distributed system deep-dive includes interactive packet visualizers, state machine transitions, and FAANG interview trade-off blueprints.