Cloud
Go Context Cancellation: Stop Work the Moment the Client Hangs Up
Go context cancellation from zero: build a 50-line server that stops a slow job when the client hangs up or a deadline passes, read the reason with context.Cause, and pass ctx down to your database and outbound calls.