At my current role in SaltPay (we are hiring in London, Porto & Lisbon and can relocate, please DM me / here's a link to our open roles) we've been running in to the need to have "graceful shutdown". This post will give an intro in to what that means, and how to write "acceptance tests" to give yourself confidence in the behaviour of your code.
After reading this you'll know how to share packages with excellent tests to reduce maintenance efforts and increase confidence in the quality of your work.
We run our software on Kubernetes (k8s). K8s will terminate "pods" (in practice, our software) for various reasons, and a common one is when we push new code that we want to deploy.