Developer

API Rate Limit Simulator

Simulate request bursts to visualize token bucket algorithms.

Last reviewed by the Radiatus Cloud team

100ms

Server Status (Bucket)

Tokens: 10/10

Responses

Need this built for your product?

We design, build & host secure software & APIs.

Talk to an engineer

See how rate limiting behaves

Rate limiting controls how many requests a client may make, and the token bucket algorithm is the common approach, but its behaviour under bursts is not obvious. This tool simulates request bursts to visualise the token bucket algorithm, so you can see how a limiter responds.

Why visualising helps understanding

The token bucket algorithm allows bursts up to a bucket size while enforcing a steady average rate, refilling tokens over time, and this interplay is hard to reason about in the abstract. Simulating bursts and watching tokens deplete and refill makes it concrete: you see when requests are allowed, when they are rejected, and how the burst allowance and refill rate shape the behaviour. Understanding this is essential for setting sensible limits and for building or debugging a rate limiter, where the wrong parameters either throttle legitimate traffic or fail to stop abuse.

Understand the algorithm

It runs entirely in your browser, so nothing you paste is uploaded and the result is yours to copy straight into a project. Because it works client-side, you can use it on private code and data without anything leaving your machine.

Related tools

  • JSON Formatter — Format and beautify JSON in your browser. Pinpoints syntax errors by line and column, flags unsafe integers, and never uploads your data to a server.
  • JSON Validator — Validate JSON syntax with precise line and column errors, and check documents against a JSON Schema. Runs locally in your browser, nothing uploaded.
  • Regex Tester — Test regular expressions against sample text with live match highlighting, capture groups and flag control. Runs entirely in your browser.
  • HTML Minifier — Minify HTML by removing comments and redundant whitespace, without breaking inline elements or pre blocks. Runs entirely in your browser.

Frequently Asked Questions

What is the token bucket algorithm?

A rate-limiting method that holds tokens in a bucket refilled at a steady rate. Each request spends a token; when the bucket is empty, requests are rejected.

Why does it allow bursts?

Because a full bucket lets a burst of requests through up to its size, while the refill rate enforces the steady average. This balances flexibility and control.

What does the simulation show?

How tokens deplete under a burst and refill over time, and when requests are allowed or rejected, making the algorithm’s behaviour concrete.

Why simulate before setting limits?

Because the wrong burst size or refill rate either throttles legitimate traffic or fails to stop abuse. Simulating shows the effect before you deploy.

Is my input uploaded?

No. The simulation runs entirely in your browser.

Privacy & Security

Simulation only.

Data: None
Client-side-Side
Active
v1.0

About This Tool

This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.

Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.