Rate Limiter & Token / Fixed Window Simulator
Interactive visual simulator for API rate limiting algorithms (Token Bucket & Fixed Window). Simulate burst, steady, and flash-crowd traffic streams with HTTP 429 drop counters.
Rate Limiter Settings
Incoming Traffic Profile
Clusters of requests with short pauses, typical of user UI navigation.
Sequential Request Stream Timeline (30 Requests)
How to use this tool
Choose Token Bucket (burst capacity + refill rate) or Fixed Window (requests per window).
Select 'Bursty', 'Spike', or 'Steady' to simulate realistic caller request patterns.
Inspect the sequential request stream to observe exactly when tokens deplete and HTTP 429 Too Many Requests status codes trigger.
Frequently Asked Questions
How does the Token Bucket algorithm work?
Tokens are added to a bucket of capacity C at a constant refill rate R. Each incoming request consumes 1 token. If tokens are available, the request proceeds; if empty, it is dropped (HTTP 429).
What is the boundary burst issue with Fixed Window counters?
If a window limit is 100 req/min, an attacker could send 100 requests in the last second of minute 1, and 100 requests in the first second of minute 2, resulting in 200 requests in a 2-second window (2x intended limit). Token bucket eliminates this.
How is rate limiting implemented in distributed microservices?
Distributed architectures implement rate limiters at the API Gateway layer (Spring Cloud Gateway, Kong, Envoy) backed by Redis (using Redis INCR with TTL or Lua scripts for atomic token bucket operations).
What HTTP headers are sent with rate limited responses?
Standard RFC 6585 headers include X-RateLimit-Limit (total permitted), X-RateLimit-Remaining (tokens left), and Retry-After (seconds until client should retry).
Deepen your architecture knowledge with practical, production-tested guides:
Client-Side Privacy Guarantee
This tool never transmits your payloads to any server. Open DevTools (F12) → Network tab to verify that zero HTTP requests are sent while using this page.