Quantcast
Channel: Day to day stuff
Viewing all articles
Browse latest Browse all 83

Akka-http graceful shutdown

$
0
0
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

Viewing all articles
Browse latest Browse all 83

Trending Articles