Skip to content

Production JavaScript, Part 1: Graceful Shutdown in Node, and the Three Ways Docker Kills Your Requests Anyway

Article DiscussionsSudoSecurity · · 1 min read

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...

Read the full article →

Discussion thread — share findings, corrections and follow-ups below.

0 replies

    Post a comment

    Join the discussion to share your thoughts.

    Sign in