Ricardo-Costa / nodejs-graceful-shutdown

The best practices to prevent unexpected application crashes, that maintains an open database connection and others unwanted events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJs Graceful Shutdown

The best practices to prevent unexpected application crashes, that maintains an open database connection and others unwanted events.

The Code

Test Function

  • Start Application
    • npm run start
    • Or in Debug mode: npm run start:debug
  • Press the keys ( Events should be launched )
    • ctrl + c
  • Force crash by request ( Events should be launched )
    • npm run crash

About

The best practices to prevent unexpected application crashes, that maintains an open database connection and others unwanted events.


Languages

Language:JavaScript 100.0%