Production JavaScript, Part 1: Graceful Shutdown in Node, and the Three Ways Docker Kills Your Requests Anyway
- Created
- 4 Dec 2026
- Last reply
- about 5 hours ago
- Replies
- 0
- Views
- 0
- Reactions
- 0
Discussion of the blog article Production JavaScript, Part 1: Graceful Shutdown in Node, and the Three Ways Docker Kills Your Requests Anyway.
Every deploy sends your Node server a SIGTERM, and what happens next decides whether users see errors. I tested six ways of running the same server under docker stop: a correct shutdown handler drained in-flight requests in 1.5 seconds, while npm start and a shell-form CMD threw that work away...
Discussion thread — share findings, corrections and follow-ups below.