Five classic rate-limiting algorithms, animated in real time. Real decisions from a thread-safe C++ engine — no boilerplate, just insight.
Tokens refill, requests spend them. Click anywhere in the box to fire.
Each gets its own live, animated mechanism in the simulator.
Allows bursts up to capacity, bounds the average.
Try it →Leaks at a constant rate — a perfectly smooth stream.
Try it →N requests per fixed window. Simplest & cheapest.
Try it →A timestamp per request — exact, no edge bursts.
Try it →Near-exact accuracy at O(1) memory.
Try it →The simulator's decisions come from actual compiled C++.
Animated simulator; calls /api/*, proxied to the backend (no CORS).
Routes each request straight into the native addon.
Thread-safe limiters compiled into an N-API .node addon.
Fire a DDoS spike, drag the sliders, and watch each algorithm fight back.