Six workers, one OpenAI key, and 78 wasted calls: sharing a token budget in Redis
Why per-worker rate limiters overshoot LLM tokens-per-minute limits, and how to share one RPM + TPM budget across every process with a single Redis Lua script.
Tag archive
Why per-worker rate limiters overshoot LLM tokens-per-minute limits, and how to share one RPM + TPM budget across every process with a single Redis Lua script.

One morning, our daily automated code review flagged a refactor we had just pushed. The finding fit...

System design as engineering, on a news feed: API, data model, fan-out on read vs write with cost formulas, Redis timelines, cursors, hot keys and a benchmark.

Laravel Docker Lessons · Lesson 11 Set up Redis for Laravel queues and cache with Docker, PHPRedis,...
Short answer: Use Redis when you need application-controlled retry timing and can own recovery; use...

A while ago I started getting this error in production: "payload too large". The culprit was a Redis...

Read this tutorial on Signadot docs. Sandboxes route a request to the right version of a service by...
Fix Redis in Docker: Connection refused from another container, DENIED protected mode, NOAUTH Authentication required, ignored REDIS_PASSWORD and MISCONF.

I benchmarked @nestjs/throttler with in-memory, Redis and Postgres storages: latency, 429 correctness, and what breaks with two Nest instances.
This article explores how we can enforce rate-limiting in a distributed system, especially when...

This Redis benchmark runs HotKV, Redis, Valkey and Dragonfly as three-node clusters on AWS. Our...
Building autonomous agents or AI-driven background tasks is exciting—until a bad retry loop or...