Text & documents
Numbers & maths
Data & formats
Security
Development & DevOps
Artificial Intelligence
Finance
Health & Wellness
Productivity
Games & Entertainment
Multimedia & design
Business
How to use
What it simulates

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.

Set up the simulation

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.

Token Bucket

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.

Fixed Window

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

Rate LimiterSimulate Token Bucket and Fixed Window
Rate Limiter — SimulatorSimulate Token Bucket and Fixed Window with a timeline visualisation
Algorithm:
Token Bucket: allows bursts up to max capacity. Tokens refill continuously.