Deploying on EC2 instance
Throughout the course of the book, you have learned how to build a distributed web application using the Gin framework and how to scale the API for loading and testing it locally. In this section, we will cover how to deploy the following architecture on the cloud and serve it to external users.
An overview of the application architecture can be seen here:
AWS is the leader when it comes to cloud providers—it offers a huge range of infrastructure services such as load balancers, servers, databases, and network services.
To get started, create an AWS account (https://aws.amazon.com). Most AWS services offer an abundance of Free Tier resources, so deploying your application will cost you little or nothing.
Launching an EC2 instance
With the AWS account created, you are now ready to launch an EC2 instance. To do so, proceed as follows:
- Sign in to the AWS Management...