Home▸Networks & Graph Theory▸API Rate Limiter: Token Bucket, Fixed Window and Sliding Window (2D)

API Rate Limiter: Token Bucket, Fixed Window and Sliding Window (2D)

A flat view of the same rate-limiter model: client, glass token-bucket gate and server with live packets, token gauge and cumulative-admitted curves for all three limiters. Same equations and numerical checks as the 3D scene.

Networks & Graph Theory2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
API Rate Limiter: Token Bucket, Fixed Window and Sliding Window (2D) ↗ Open standalone

Send one request stream through a token bucket, a fixed-window counter and a sliding-window log at the same time. Change the client rate, sustained limit, burst capacity and window length, try spikes, Poisson traffic and the window-boundary burst, and watch packets cross a Blender-built gate while the bucket fills and drains. Numerical checks verify the C + R T bound, the sliding-window invariant and the 2N boundary flaw.

⚙ Under the hood

A flat view of the same rate-limiter model: client, glass token-bucket gate and server with live packets, token gauge and cumulative-admitted curves for all three limiters. Same equations and numerical checks as the 3D scene.

Rate LimitingToken BucketSliding WindowAPI DesignNetwork Traffic

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)