Graceful Shutdown in Go

Imagine you have a production service running on Kubernetes that is currently processing client requests while also deploying a new version to production. What will happen to those requests? Will those requests be lost, or will your service wait until all requests have been completed before upgrading? Let’s watch the demo below to provide a better context for the problem we are trying to solve. In the first part, the server is not implementing graceful shutdown....

November 2, 2023 · 7 min · 1486 words · Jose Sitanggang