Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When to use AWS CloudfrontWebDistribution and when to use AWS Cloudfront Distribution

I see in aws-cdk there are two constructs:

  • CloudFrontWebDistribution
  • Distribution

Each have different props that do not look compatible with each other.

I'm wondering which one to use?

like image 403
Stoyan Georgiev Avatar asked Jan 28 '21 08:01

Stoyan Georgiev


People also ask

What is the difference between Route53 and CloudFront?

Both cloudfront and Route53 have different purpose. Route 53 is a DNS service whereas Cloudfront is CDN service to serve static (and dynamic) content. You can use the cloudfront with Route 53 Geolocation Routing .

When should I use CloudFront vs S3?

S3 stores all the pre-recorded videos in different formats. CloudFront is used to cache the video to edge locations. This can be used to deliver content to the end user. Location is picked up automatically based on the closest physical edge location.

What is the difference between CloudFront and edge location?

CloudFront delivers your content through a worldwide network of data centers called edge locations. When a user requests content that you're serving with CloudFront, the request is routed to the edge location that provides the lowest latency (time delay), so that content is delivered with the best possible performance.

When can I use Amazon CloudFront?

CloudFront offers several options for streaming your media to global viewers—both pre-recorded files and live events. For video on demand (VOD) streaming, you can use CloudFront to stream in common formats such as MPEG DASH, Apple HLS, Microsoft Smooth Streaming, and CMAF, to any device.


Video Answer


1 Answers

The AWS CloudFrontWebDistribution is the original method for working with CloudFront distributions. But now, they had implemented a new method that is provided by Distribution. You can use both CloudFrontWebDistribution as well as Distribution for working with CloudFront distributions, but Distribution has a simpler interface and they receive new features faster. So, it is recommended to use Distribution instead of CloudFrontWebDistribution.

like image 179
Ankush Chavan Avatar answered Oct 18 '22 03:10

Ankush Chavan