Docker – How to gracefully shutdown or close Node.Js Express app
Motivation I want to ensure there is no brute (sub-)process termination and that any open requests are fulfilled when the Express server is closing. import express, { Express, Request, Response } from 'express'; // Initialize the Express server application var…