In the previous chapter, we looked at how the AWS Cognito service provides simple and secure user authentication for mobile and web applications.
In this chapter, we will discuss traditional web hosting, and web hosting on the cloud using AWS, and look at the best architecture for the application. We will also look at the comparison between EC2 instances with load balancer, Docker, and serverless architecture, such as Amazon Lambda, and evaluate the results.
Most traditional web hosting comes in two types: dedicated and shared, and it depends on one machine only. In dedicated web hosting, clients have to pay upfront for one or more servers from the service provider, and they have full control of the resources. For shared web hosting, clients have to pay for a set of shared space and resources, on a server with other clients. This form of web hosting...