JM

2026 · jordimarsal/redis-toolkit

redis-toolkit

Rate-limiting toolkit for LLM gateways: atomic token-bucket quotas, pluggable stores, honest failure modes — with a Javalin gateway demo exposing an OpenAI-style endpoint.

Problem

LLM inference is expensive: unbounded traffic is a DoS on your own wallet. Most limiters race under concurrency or hard-fail when Redis does.

Highlights

Stack

Metrics

429+Retry-After
correct rate-limit contract
2
stores, one contract suite