graceful
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases
Gracefully exit HTTP servers (Express/Koa/Fastify/etc), databases (Mongo/Mongoose), Redis clients, Bree job schedulers, and custom handlers. See the Express, Koa, Fastify, or Other code snippet examples and Instance Options. You can pass Instance Options to customize your graceful handler (e.g. if you have more than one server, or wish to close both a Redis connection and a server at the same time).