Tag
#token-bucket
2 articles tagged token-bucket.
LLDadvancedPremium
Building a Rate Limiter: The Low-Level Design
A low-level design walkthrough of a rate limiter: the token bucket class, the race condition that breaks it, making it thread-safe, a per-client registry, and the complete implementation.
11 min read
HLDintermediate
Designing a Rate Limiter
The system design classic: where a rate limiter sits in your architecture, fixed window vs sliding window vs token bucket, going distributed with Redis, and a thread-safe core you can ship.
9 min read