Gracefully shutdown Node.js application: handle process exit signals and close pending connections/jobs

This page summarizes the projects mentioned and recommended in the original post on /r/node

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.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • fine

    🧹 Gracefully shutdown Node.js application: help you handle exit signals and cleanup (by simonecorsi)

  • runsv

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

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

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Graceful shutdown Node.js application: handle process exit signals and close pending connections/jobs

    2 projects | /r/javascript | 18 Jan 2022
  • Nrr: Minimal, fast NPM scripts runner

    1 project | news.ycombinator.com | 25 Apr 2024
  • Pnpm 9

    1 project | news.ycombinator.com | 18 Apr 2024
  • Manage project dependencies correctly

    1 project | dev.to | 13 Apr 2024
  • Locally test and validate your Renovate configuration files

    4 projects | dev.to | 9 Apr 2024