Simulation
Each row is one algorithm. Green ticks passed, red ticks were rejected (HTTP 429).
Reading the result
- Fixed window: simple, but lets up to twice the limit through around a window boundary.
- Sliding window log: precise, at the cost of storing one timestamp per request.
- Token bucket: allows short bursts up to the bucket size, then a steady refill rate. Many platform APIs behave like this.
Related: Backoff calculator, Platform rate limits.