Skip to content
Veltoryx Technologies

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.

Runs in your browser. Nothing is uploaded.

Rate Limiter Settings

Incoming Traffic Profile

Clusters of requests with short pauses, typical of user UI navigation.

Total Inbound30
Accepted (200 OK)28
Throttled (429)2
Drop Rate %6.7%

Sequential Request Stream Timeline (30 Requests)

Passed 429 Dropped
#1OK30ms
#2OK60ms
#3OK90ms
#4OK120ms
#5OK150ms
#6OK750ms
#7OK780ms
#8OK810ms
#9OK840ms
#10OK870ms
#11OK1470ms
#12OK1500ms
#13OK1530ms
#14OK1560ms
#15OK1590ms
#16OK2190ms
#17OK2220ms
#18OK2250ms
#19OK2280ms
#20OK2310ms
#21OK2910ms
#22OK2940ms
#23OK2970ms
#24OK3000ms
#25OK3030ms
#26OK3630ms
#27OK3660ms
#28OK3690ms
#294293720ms
#304293750ms

How to use this tool

1
Select algorithm and capacity

Choose Token Bucket (burst capacity + refill rate) or Fixed Window (requests per window).

2
Pick an inbound traffic profile

Select 'Bursty', 'Spike', or 'Steady' to simulate realistic caller request patterns.

3
Analyze drop rate and timeline

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).

📖 Related Lessons on Veltoryx Learn

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.

🛡 Safe for confidential enterprise payloads