NestJS · Middle · Question 58 of 75

How do you enable graceful shutdown with health checks in Kubernetes for Nest?

Explanation

Close connections in onModuleDestroy or onApplicationShutdown, and give in-flight requests time to finish.

Further reading

Problem with a question

NestJS · Middle · question 58

Test yourself

Take the NestJS · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz