scottbishopdev / RoverInterviewProject

A project I completed in about two weeks while interviewing for Rover.com in 2018. This is a re-upload of my original Rover_Interview_Project repo.
GNU General Public License v3.0
0 stars 0 forks source link

Implement graceful shutdown for server.js #4

Open scottbishopdev opened 4 years ago

scottbishopdev commented 4 years ago

Currently, server.js sort of just expects to run... forever, which has some bad implications. For example, connections to MongoDB will never be disposed of, which isn't bad on the surface, but may have a negative impact on MongoDB if it has a limited connection pool.

We should implement some sort of graceful shutdown process for the server that properly disposes of things like connections.