Scalability and Performance · Queues and flow control
Rate limiting
A rate limiter caps how fast each client may send requests, so one noisy caller cannot slow everyone else down. The craft is in the algorithm, the key, and how you say no.
- Time25 min
- LevelDeveloper
- Experiments2 live
- Check6 questions






Request arrives the gateway reads the API key
Top up add 100 tokens per elapsed second, but never more than 200.
Spend a token if one is left, take it and forward the request.
Or reject no token: reply 429 with Retry-After, before touching the API.
Edge (CDN, firewall) per IP address; stops floods before they reach you.
API gateway or load balancer per API key; the main customer limit.
Service per endpoint or operation; knows what each request costs.