Chapter 52
Know the Tricks, Part 3
10. Rate Limiter
What Is It?
A rate limiter stops one user (or IP) from sending too many requests too fast. Example: "Max 100 API calls per minute per user." Without it, one aggressive client can take down your whole system.
The Trick: Know the Four Algorithms (and When to Use Each)
Think of rate limiting like a nightclub bouncer. The only real question is: how does the bouncer decide who gets in?
