Why?
By default, when you restart a service, the old instance is simply killed. This means that all current requests are aborted; the caller will be left with a read timeout. We can do better!
What?
A graceful shutdown looks as follows:
The scheduler (Kubernetes, Nomad, etc.) sends a signal (usually SIGINT) to the service.
The service gets the signal and closes all server-ports; it can no
↧