In the context of long-living applications, such as web servers, it’s a good practice to close, and release resources acquired upon application shut down. In this post I’m going to demonstrate how it can be done in the context of a simple typical web server application using Go 1.21, which was just released a few days ago.
One of the problems that may arise when working with executables installed by Go is difference in versions. In this post, I’m going to share a solution that I use to resolve this issue.
CNAME flattening is a feature provided by some DNS services to either speed up the DNS resolution process, or mitigate some limitations of the DNS standards.