Node.js Graceful Shutdown in Production: SIGTERM, In-Flight Draining, and Zero-Downtime Deploys
Node.js Graceful Shutdown in Production: SIGTERM, In-Flight Draining, and Zero-Downtime Deploys
Your deployment pipeline fires. Kubernetes sends SIGTERM. Your Node.js process has 47 in-flight HTTP requests, 3 BullMQ jobs mid-execution, and a PostgreS...