Graceful Server
Learn how to create a well-defined server entity and manage its life cycle gracefully.
We'll cover the following
Server life cycle
It’s not ideal if a server intercepts any interrupt or kill signal (SIGTERM or SIGKILL) and shuts down with a fatal error. Let’s learn how to create a well-defined server entity and manage its life cycle gracefully.
A server goes through three life cycle stages, which have been given below:
Prestart
Start
Shutdown
Yes, we could certainly get more micromanaged than this, but, on a high level, these are the significant checkpoints that we want to keep an eye on.
Get hands-on with 1400+ tech skills courses.