Leveraging AWS infrastructure services for scalability
In this section, we will shift our focus to strategies you can use to leverage the AWS cloud infrastructure to scale your applications.
Using AWS CloudFront to distribute content
Try to offload as much content as possible to the AWS CloudFront CDN service for distribution to Amazon edge locations. CloudFront can be used to deliver your entire site including static, dynamic, streaming, and interactive content. It can also work with a non-AWS origin server that stores your original content.
Static content or files include CSS, HTML, images, and so on that are stored in Amazon S3 (and not on your web server instance). This can reduce the load on your web servers and improve the efficiency of maintaining content (by storing at one S3 location) while reducing latency for your end users and reducing overall costs (by reducing the size or the number of EC2 instances required for your web servers).
In the case of dynamic content, for example, repeated...