Back to projects

React & Node.js · Executable backend lab

Node Reliability Lab

Node.js runtime patterns for bounded concurrency, streaming, worker isolation, diagnostics, and graceful shutdown.

The challenge

Unbounded queues, blocking CPU work, and incomplete shutdown make long-running services unreliable.

The result

An NDJSON service demonstrating backpressure, worker threads, request context, Prometheus metrics, and shutdown behavior.

What this project demonstrates

Reviewable decisions instead of slogans.

  • Bounded streaming and explicit admission control
  • Worker threads for isolated CPU work
  • AsyncLocalStorage and correlated diagnostics
  • Readiness, drain deadlines, and real SIGTERM tests

Technologies

  • Node.js
  • TypeScript
  • Worker Threads
  • Streams
  • Prometheus
  • Vitest