In this chapter, we will focus on optimizing an application and discovering bottlenecks. These are some tips and tricks that can be used immediately by existing applications. Many of these recipes are necessary if you or your organization requires fully reproducible builds. They're also useful when you want to benchmark an application's performance. The final recipe focuses on increasing the speed of HTTP; however, it's always important to remember that the web world moves quickly, and it's important to refresh yourself on the best practices. For example, if you require HTTP/2, it has been available using the built-in Go net/http package since version 1.6.
In this chapter, we will cover the following ...