-
fine
🧹 Gracefully shutdown Node.js application: help you handle exit signals and cleanup (by simonecorsi)
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I have built something similar https://gitlab.com/runsvjs/runsv. My 2 cents: * On "uncaughtexception" trying to gracefully shutdown is not the recomended practice. See https://nodejs.org/dist/latest-v16.x/docs/api/process.html#event-uncaughtexception * When you call (http) server.close(), it stops the server from accepting new connections, but it keeps the existing connections open indefinitely. You can keep an array of connections to close them later. This is what modules like http-terminator, http-graceful-shutdown or http-close do for you.