CloudFront

Definition

Amazon CloudFront is a Content Delivery Network (CDN) that delivers content from locations closest to users, improving load times and user experience.

Use Cases

Provider Equivalents

Frequently Asked Questions

What's the difference between CloudFront and S3 static website hosting?
Amazon S3 static website hosting serves your site directly from an S3 bucket in a single AWS Region. CloudFront is a CDN that caches your S3 content at edge locations around the world, so users download files from a nearby location. In practice, you often use them together: S3 as the origin and CloudFront to speed up global delivery and add features like HTTPS, custom domains, and edge caching.
When should I use CloudFront?
Use CloudFront when you have users in multiple geographic locations and you want faster load times for static files (images, JS/CSS, downloads), video streaming, or even dynamic API acceleration. It’s also useful when you want to reduce origin load, handle traffic spikes, enforce HTTPS, restrict access to content, or add edge security controls (for example, integrating AWS WAF).
How much does CloudFront cost?
CloudFront pricing is mainly based on data transfer out to the internet, the number of HTTP/HTTPS requests, and where your users are located (edge location region pricing varies). Additional costs can apply for features like invalidations beyond free tiers, dedicated IP custom SSL options (if used), and associated services such as AWS WAF or your origin (S3/ALB/EC2) data transfer and requests. Always estimate with the AWS Pricing Calculator using your expected traffic patterns.

Category: networking

Difficulty: intermediate

Related Terms

See Also