Skip to content
JM.
Back to work

Distributed Rate Limiter

PLACEHOLDER — Redis-backed rate limiter with sliding window and token bucket. Benchmarked at 40k req/s.

Stack
Node.js · TypeScript · Redis · Docker
Links
GitHub

DUMMY CONTENT. Replace before launch.

The problem

Placeholder. Per-instance in-memory limiting let clients exceed quota by fanning across pods.

What I built

Placeholder. A shared Redis limiter offering sliding-window-log and token-bucket strategies behind one interface, using Lua scripts for atomicity.

Architecture

Placeholder — diagram.

Results

Placeholder. ~40k req/s on a single Redis node, p99 under 3ms.

What I'd do differently

Placeholder. Should have started with token bucket; the sliding window log's memory profile only became a problem at scale.

Next projectGraphQL Gateway