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
- Amazon Prime Video: Delivering video streams with low latency and high throughput to viewers across many regions — Uses a CDN approach with edge caching and optimized delivery paths so viewers receive segments from nearby edge locations rather than only from centralized origins (Faster start times and smoother playback for geographically distributed audiences, with reduced load on origin infrastructure)
- Slack: Accelerating delivery of static assets (images, JavaScript, CSS) for a globally distributed user base — Serves cacheable static content through a CDN so clients fetch assets from nearby edge locations instead of repeatedly hitting the application origin (Improved page/app load performance and reduced origin bandwidth and request load during traffic spikes)
- Riot Games: Distributing game patches and large downloadable assets efficiently to players worldwide — Uses CDN edge caching to place frequently requested patch files closer to players and to absorb high download concurrency (More reliable downloads during releases and reduced congestion on central download servers)
Provider Equivalents
- AWS: Amazon CloudFront
- Azure: Azure Front Door
- GCP: Cloud CDN
- OCI: OCI Content Delivery Network (CDN)
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