Node.js Graceful Shutdown: Draining HTTP and Queue Workers
Build a time-boxed Node.js graceful shutdown: handle SIGTERM once, fail readiness, drain keep-alive sockets and queue workers, and exit before SIGKILL.
14 min read
Tag
Build a time-boxed Node.js graceful shutdown: handle SIGTERM once, fail readiness, drain keep-alive sockets and queue workers, and exit before SIGKILL.
14 min read
Learn how to handle SIGTERM in Node.js APIs: deregister from the load balancer, drain keep-alive connections under a deadline, and close dependencies in order.
17 min read