All simulations

Token Bucket Rate Limiter

A bucket holds up to capacity tokens and refills at a steady rate. Each request removes one token; if the bucket is empty the request is rejected. Because tokens accumulate while traffic is idle, the bucket permits short bursts up to its capacity while still enforcing the long-run average refill rate.

Configuration

Token Bucket

5 / 5 tokens
refills 1 tok/s
Tokens available
5.0
Allowed
0
Rejected
0
Bucket empty — requests rejected until it refills
Available tokens
Refill drip
Allowed (token consumed)
Rejected (empty)

Event Stream

No requests yet. Start the simulation or send a manual request.