
Durable Execution: Workflows That Survive Restarts
Why job queues and database state machines break on complex multi-step processes, and how durable execution with Temporal survives crashes and deployments.
Categories
APIs & server logic · 57 articles · Page 2 of 5

Why job queues and database state machines break on complex multi-step processes, and how durable execution with Temporal survives crashes and deployments.

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

N+1 is not an ORM problem — implement the DataLoader batching pattern in TypeScript to collapse redundant fetches across any source, microservices included.

Use AsyncLocalStorage to carry request-scoped context — trace IDs, sessions, tenant data — through async call stacks without threading it everywhere.

Stop letting your API spec drift from your implementation — define the contract first, generate types for both sides, and let the compiler catch the gaps.

Most Node.js services silently drop in-flight requests on every deploy. How to handle SIGTERM correctly, drain connections and exit cleanly in Kubernetes.

Stop bolting middleware onto frameworks and start building type-safe, composable pipeline primitives you can test in isolation and reason about at a glance.

A practical guide to HTTP caching headers — what each directive actually does, when to use ETags, and how to stop fighting your CDN.

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.

A complete guide to designing scalable, production-ready APIs with Next.js Route Handlers, TypeScript, validation and error-handling patterns.

The recurring database design mistakes behind slow queries, painful migrations and production incidents — with practical fixes and the reasoning.

Run schema migrations on production databases without downtime: expand-contract, backward-compatible changes, blue-green data and safety checks.