Tag
lifecycle
Published articles tagged lifecycle.
Application lifecycle hooks in NestJS
NestJS calls methods on your providers at fixed points while the application starts and stops. This chapter lists the hooks and their order, shows where startup work and cleanup belong, and explains why shutdown hooks have to be switched on before a container stop is handled gracefully.