🚦
🧪 Simulate
LV3 · Ecosystem
Connected workflows and deeper Toolooo experiencesConnect it. Feature Level describes the depth of the tool experience.

Rate Limit Playground

Design and compare a rate-limit policy under steady traffic, bursts, overload, and client retries.

EngineeringBackendAPIReliability

Is this traffic within the allowed rate? Requests arrive → policy applies → allow or throttle.

Try a policy scenario

20 req/s
40 request credits
Result
Burst exceeds the modeled allowance
Why it matters
660 attempts arrived: 500 passed and 160 were throttled. Requests arriving without enough reserve credits are rejected.
Action
Increase burst capacity only if short spikes are legitimate; otherwise keep the policy protective and guide clients to slow down.

Token bucket: each request uses one credit from a reserve replenished at the allowed rate. A burst is a short spike in arriving traffic. Custom / starting example.

0s: 20 arriving, 20 allowed, 0 throttled, 0 client retries0s1s: 20 arriving, 20 allowed, 0 throttled, 0 client retries2s: 20 arriving, 20 allowed, 0 throttled, 0 client retries3s: 20 arriving, 20 allowed, 0 throttled, 0 client retries4s: 80 arriving, 40 allowed, 40 throttled, 0 client retries5s: 80 arriving, 20 allowed, 60 throttled, 0 client retries6s: 80 arriving, 20 allowed, 60 throttled, 0 client retries6s7s: 20 arriving, 20 allowed, 0 throttled, 0 client retries8s: 20 arriving, 20 allowed, 0 throttled, 0 client retries9s: 20 arriving, 20 allowed, 0 throttled, 0 client retries10s: 20 arriving, 20 allowed, 0 throttled, 0 client retries11s: 20 arriving, 20 allowed, 0 throttled, 0 client retries12s: 20 arriving, 20 allowed, 0 throttled, 0 client retries12s13s: 20 arriving, 20 allowed, 0 throttled, 0 client retries14s: 20 arriving, 20 allowed, 0 throttled, 0 client retries15s: 20 arriving, 20 allowed, 0 throttled, 0 client retries16s: 20 arriving, 20 allowed, 0 throttled, 0 client retries17s: 20 arriving, 20 allowed, 0 throttled, 0 client retries18s: 20 arriving, 20 allowed, 0 throttled, 0 client retries18s19s: 20 arriving, 20 allowed, 0 throttled, 0 client retries20s: 20 arriving, 20 allowed, 0 throttled, 0 client retries21s: 20 arriving, 20 allowed, 0 throttled, 0 client retries22s: 20 arriving, 20 allowed, 0 throttled, 0 client retries23s: 20 arriving, 20 allowed, 0 throttled, 0 client retries23s
🟩 Allowed🟥 Throttled / rejected🔵 Client retry wave┄ Sustained rate

Throttled attempts are rejected here, not automatically queued. On narrow screens, scroll the chart sideways to read the timeline.

Advanced: limiter algorithm and client retries
Limiter model
3 sec
Supporting metrics and model limits
Allowed
500
Throttled / 429
160
Effective throughput
20.8 req/s
Limited time
3 sec
Client retry traffic
0
off

Educational 24-second model, not production telemetry. The fixed rule resets each second. The sliding rule reduces the current allowance using half of the previous second’s allowed traffic; it is not an exact rolling-log implementation. Only the token bucket uses the burst reserve. Not every limiter queues traffic or sends a Retry-After response.

Rate means the sustained allowance per second. Tokens are request credits; a bucket is their reserve, and a window is a time interval used to count requests. Retry-After tells a client how long to wait after a rejection; it does not guarantee recovery.

What this tool does and why

Before you start

What

Design and compare a rate-limit policy under steady traffic, bursts, overload, and client retries.

Why

Fixed windows, sliding windows, and token buckets throttle the same traffic differently, which changes fairness and burst behavior.

Your Result and Action update in the tool as you change its inputs.

Model note

This browser-side model explains the inputs you choose. Check an important decision against the real system, brief, or production constraints.

Save this tool and explore next steps
My Toolooo
Saved only in this browser.
Resilient API traffic · Step 2 of 3

Test the modeled traffic against a rate-limit policy.

Next: Circuit Breaker Playground
How this tool stays honest

How it works

Compare fixed-window, sliding-window, and token-bucket models under steady traffic, short bursts, sustained overload, and retry-created traffic. See allowed flow, throttled 429 responses, burst capacity, and optional Retry-After behavior as an explicit educational model.

Assumptions

The tool runs in your browser and models the information you provide. It does not know facts outside that model.

Limitations

This is a simplified explanatory model, not a load test or production forecast. Real systems can include dependencies, distributions, failures, and feedback loops outside the selected inputs.

Understand Rate Limit Playground

What this tool helps you understand

Compare fixed-window, sliding-window, and token-bucket models under steady traffic, short bursts, sustained overload, and retry-created traffic. See allowed flow, throttled 429 responses, burst capacity, and optional Retry-After behavior as an explicit educational model.

When to use it

Before choosing how an API handles bursty traffic.

Try a scenario

Send the same burst through fixed-window, sliding-window and token-bucket policies. Compare accepted requests and waiting behavior.

How to read the result

Compare the shape and direction of different scenarios. The useful signal is how the result changes when an input changes, rather than one isolated number.

Assumptions and limits

This is a simplified explanatory model, not a load test or production forecast. Real systems can include dependencies, distributions, failures, and feedback loops outside the selected inputs.