paint-brush
Graceful shutdown in NodeJSby@nairi
89,952 reads
89,952 reads

Graceful shutdown in NodeJS

by Nairi Harutyunyan 7mFebruary 4th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

In this article, I am going to show you how to do a graceful shutdown in NodeJS application. We need to handle all requests and close all resources which are processing on data(e.e. database connections) and not take any other requests and after that, you can shut down your server with a quiet conscience. Graceful shutdown means when all your requests to the server is respond and not any data processing work left. You can not know what can happen to the requests that have been made to your server if you shut down the server immediately.
featured image - Graceful shutdown in NodeJS
Nairi Harutyunyan  HackerNoon profile picture
Nairi Harutyunyan

Nairi Harutyunyan

@nairi

An experienced Backend Engineer with a passion for DevOps technologies.

L O A D I N G
. . . comments & more!

About Author

Nairi Harutyunyan  HackerNoon profile picture
Nairi Harutyunyan @nairi
An experienced Backend Engineer with a passion for DevOps technologies.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite