DEV Community

Cover image for AWS CloudFront in 3 Minutes
Justin Wheeler
Justin Wheeler

Posted on

AWS CloudFront in 3 Minutes

Overview

AWS CloudFront is a Content Delivery Network (CDN). That means that it can provide better performance by combating latency. It achieves this by caching data at Edge Locations, which are closer to the user than the origin may be.

CloudFront follows the popular pay-as-you-go pricing. Although, it's pricing model is closer to serverless than to EC2 as you won't pay for idle time. Additionally, you can drastically reduce origin costs because the data is cached and not fetched everytime.

Features

Integrations

Origins

Most commonly S3 is used as the origin to set up a simple static website with ease. Actually CloudFront supports custom origins as an HTTP server, which leads to options like: API Gateway, EC2, and even on-prem.

Still you're not limited to a single origin. In a machine learning movie recommendation website, wheelerrecommends, I created I am using CloudFront with multiple origins.

I wrote another blog on that website if you'd like to learn more.

Wheeler Recommends Architecture

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/DownloadDistS3AndCustomOrigins.html

Resources

Top comments (0)