r/programming 1d ago

Terminating elegantly: a guide to graceful shutdowns

https://packagemain.tech/p/graceful-shutdowns-k8s-go
32 Upvotes

4 comments sorted by

8

u/nicofff 17h ago

This article would have saved me so much time a few years ago when I was fighting a websockets (socket.io) service thrashing on scale down. Implemented basically this same pattern, but I had to piece together from docs. This is a really nice end to end explanaition.

3

u/jcla 16h ago

I thought this was going to be an entirely different article from the headline...too many tech layoffs in the news lately.

1

u/Full-Spectral 15h ago

Collecting evidence of corporate malfeasance to ease your layoff transition.

2

u/Smallpaul 4h ago

The opposite strategy is crash-only software. Don’t even attempt graceful shutdown. Just pull the plug.

https://www.usenix.org/conference/hotos-ix/crash-only-software