
Request Coalescing: Stopping the Thundering Herd
When a cache entry expires under load, dozens of requests race to rebuild it — inflight deduplication collapses that stampede into one upstream call.
Tags
7 articles

When a cache entry expires under load, dozens of requests race to rebuild it — inflight deduplication collapses that stampede into one upstream call.

Stop racing conditions in distributed systems: a practical guide to implementing distributed locks with Redis and PostgreSQL advisory locks in Node.js.

Unbounded Promise.all is a silent OOM killer — here's how to build semaphores, throttled queues, and stream backpressure into your Node.js applications.

Learn how to use Node.js worker threads to handle CPU-intensive tasks without blocking the event loop, with thread pooling and type-safe messaging patterns.

Build a production-ready task queue step by step using Node.js and Redis, covering reliable delivery, retries, dead letter queues, and concurrency control.

A practical breakdown of read uncommitted, read committed, repeatable read and serializable: the anomalies each prevents and what they cost you.

A comparison of threading, async/await, and actor-based concurrency models — when each fits, their tradeoffs, and how to avoid common pitfalls.