One Small Step Closer to Containerising Service Binaries
Feb 23, 2021Stan Halka

Summary
This post details the use of the `go-binsize-viz` tool to analyze and reduce the size of Go service binaries. It outlines a methodology for building consistent binaries, using the tool to visualize symbol contributions, and identifies that including all message formats for stream-related services in every binary was a significant contributor to bloat. The post also provides best practices for code architecture to minimize binary size, such as separating interfaces from auto-generated code and avoiding flat directory structures.