Version: v1
Graceful Shutdown
When gracefully shutting down a process, it is a good idea to first close all open subscriptions and DB connections. For this reason we have a static closeAll
method in the SubscriptionService
that can close all connections before shutting down. An example using it with process signal handlers:
/pubsub/subscription.service.ts