Docker and CI/CD · Middle · Question 7 of 75

What should a Node.js server do on SIGTERM?

Explanation

server.close() stops new connections while in-flight requests complete. Then close database pools and exit within the grace period.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 7

Test yourself

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

Take this quiz