Dealing with infrastructure

Once these points have been considered, another aspect to bear in mind is how to manage the infrastructure.

We all know that provisioning new servers is always a headache when we need to start from scratch because we will need to install the OS and all of the required tooling to make our application work. Some of these require specific files, directories, environmental variables, and other artifacts in order to work, which makes this process even more complicated. Fortunately, the Infrastructure as Code approach, discussed in the following section, will help us reduce the effort of provisioning new servers, and will give us other benefits, such as the following points: