Graceful shutdown in NodeJSby@nairi
85,704 reads

Graceful shutdown in NodeJS

February 4th 2020
7m
by @nairi 85,704 reads
tldt arrow
EN
Read on Terminal Reader
Read this story w/o Javascript

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
mdjrny-v4 style graceful, floating down from thunder clouds on an umbrella like mary poppins via HackerNoon AI Image Generator
Nairi Harutyunyan  HackerNoon profile picture

@nairi

Nairi Harutyunyan


Receive Stories from @nairi

react to story with heart
Nairi Harutyunyan  HackerNoon profile picture
by Nairi Harutyunyan @nairi.An experienced Backend Engineer with a passion for DevOps technologies.
Read My Stories

RELATED STORIES

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