14 February 2020
Go for Cloud
by Marco Bravo
Go has been continuously growing in the past decade, especially among the infrastructure
teams and in the cloud ecosystem. In this article, we will go through some of the unique
strengths of Go in this field.
- Build small binaries.
- Runtime initialization is fast.
- Build static binaries.
- Cross compile to 64-bit Linux.
- Don’t ship your toolchain.
- Rebuild and redeploy with Go releases.
- Embed commit versions into binaries.
- FaaS is Go binary as a service.
- Gracefully reject incoming requests. When auto scaling down or shutting down new resources, start rejecting incoming requests to the Go program. http.Server provides Shutdown for this purpose.
- Report the essential metrics.
- Print scheduling and GC events.
- Propagate the incoming context.
- Continuously profile in production.
- Dump debuggable postmortems.
Full article
tags: programming - developer - go - golang - cloud