21CTO
Jun 12, 2016 · Backend Development
Mastering Rate Limiting: Token Bucket, Leaky Bucket, and Real‑World Implementations
This article explains why caching, degradation, and rate limiting are essential for high‑concurrency systems, details token‑bucket and leaky‑bucket algorithms, shows application‑level, distributed, and edge‑level throttling techniques, and provides practical Java, Guava, Redis‑Lua, and Nginx‑Lua code examples.
GuavaNginxRedis
0 likes · 17 min read
