This tool simulates a rate limiter and lets you compare two classic algorithms: Token Bucket and Fixed Window. You'll see how many requests are accepted or rejected over time.
Choose the algorithm with the toggle above, adjust its parameters and define the incoming traffic: Incoming requests (req/s) and Duration (seconds). Press Simulate to run.
Allows bursts up to the maximum token Capacity; each request consumes a token and tokens are continuously replenished at the Refill rate (tok/s). Good for absorbing occasional spikes.
Allows up to Limit requests per fixed time window. It's simple but can suffer the "window edge": a burst straddling two windows doubles the allowed traffic. The summary shows accepted, rejected and the acceptance rate, with a second-by-second timeline (✓ accepted, ✗ rejected).