jargon

Backend & systems·Resilience and failure handling

on SIGTERM you stop accepting new requests, finish the ones in flight, and only then exit.

Graceful shutdown

Also calledconnection draining, drain

Ending a process in a way that does not drop work: deregister from the load balancer, stop accepting, complete in-flight requests, close connections, exit. Without it, every deploy sheds a burst of errors proportional to your request rate. The grace period must exceed your longest normal request, or the platform kills you mid-request anyway.

Commonly confused with