Preparing application code for deployments
In this section, we are going to provide a high-level overview of a service deployment process and describe the actions required to prepare your microservices for deployments. You will learn how to configure Go microservices for running in different environments, how to build them for different operating systems, and some other tips for preparing your microservices for remote execution.
Let’s proceed to the basics of the deployment process.
Deployment basics
As we mentioned in the introduction to this chapter, deployments allow you to run and update your applications on one or multiple servers. Such servers are usually located remotely (clouds or dedicated web hosting) and are running all the time to allow your applications to serve the request or process data 24/7.
The deployment process for each environment usually consists of multiple steps. The steps include the following:
- Build: Build a service by compiling...