Skip to content

CloudFront versus Fastly

Easily compare CloudFront and Fastly for POP locations, products, pricing, features & support. We hope this helps you better understand the similarities and differences between these content delivery networks.

CloudFront logo Fastly logo

Company

Company CloudFront Fastly
Short profile CloudFront is the CDN of AWS (Amazon Web Services), the world's largest cloud services provider. CloudFront offers a mature set of content delivery products and has a big network of POPs on many continents. Solid documentation and APIs make CloudFront a developer-friendly CDN. Founded in 2011, Fastly has grown into a mature CDN provider. Fastly offers a range of services including streaming media delivery and private CDN but Fastly is best known for being a 'real-time CDN', meaning changes happen instantly and the platform can deliver 'uncacheable' content well.

Products

Yes
Sort of/partially
No
Extra costs
Unknown
Product CloudFront Fastly
Dynamic content deliveryNon-cacheable content delivery. User login, shopping cart ... Dynamic Content Delivery
Small file deliveryStatic object delivery; caching of small files (file size <1 MB)
Large file deliveryStatic object delivery; caching of large files (file size >1 MB)
Live videoDelivery of live video. RTMP? Transcoding/transmuxing? Streaming Media
Video on demandDelivery of on demand video Video on Demand
Image OptimizationAutomatic image transformation/compression/optimization Image Optimizer
DNSAuthoritative DNS for customer domain AWS Route53
WAFWeb Application Firewall AWS WAF Web application firewall
Anti-DDoSDDoS attack protection. Specific product(s) for this. AWS Shield DDoS Mitigation
Private CDNDedicated edge resources & custom configs Fastly Managed CDN
Edge ComputeRun your code on CDN edge servers Lambda@Edge Compute@Edge

Network

How many POP locations do CloudFront and Fastly have in different parts of the world?

Region CloudFront Fastly
North America 19 25
Latin America 7 8
Europe 31 20
Russia & CIS 0 0
Asia excl. China 18 13
China 4 0
Oceania 5 8
Middle East 5 2
Africa 4 3

Pricing

Pricing & contract duration CloudFront Fastly
Minimum contract term None None
Minimum monthly costs None $50
Requests costsCustomers pay for client to CDN requests $0.0075 - $0.022 per 10k requests $0.0075 - $0.016 per 10k requests
Ingress costsCustomers pay for origin-to-CDN bytes transferred $0.02 - $0.16 per GB (free if origin is AWS) None
NA/EU traffic (low volume) $0.085 per GB $0.12 per GB
APAC traffic (low volume) $0.12 per GB (India: $0.109) $0.19 per GB
LATAM traffic (low volume) $0.11 per GB $0.28 per GB

Features

Yes
Sort of/partially
No
Extra costs
Unknown
Web acceleration CloudFront Fastly
Instant setupSign up, configure, start testing.
Change propagation delayHow fast do config changes propagate to all POPs? ~10 minutes Instant!
Apex/root domain OK Blog: Root domain on CDN and performanceNo performance degradation when using http(s)://domain.com Only if used together with AWS Route53 Global anycast IPs are available
HTTP/2 HTTP/2 announcement (Sep 2016)
HTTP/3 HTTP/3 announcement Enabling HTTP/3
WebSockets Using WebSockets with CloudFront distributions Limited availability
IPv6Do the edge servers have IPv6? IPv6 support announcement (Oct 2016) IPv6 at Fastly
Compression CDN Guide: CompressionReduce file size for faster delivery Resend from origin, or compress on edge
tooltip CloudFront can compress many content types on the edge and supports Brotli
Resend from origin, or compress on edge. Brotli!
Origin pull - protocolHTTP only or HTTPS possible too? HTTP and HTTPS HTTP and HTTPS
Origin pull - Host headerUse client > edge value? Set specific value? Can't configure specific other Host header Can be different from origin host
Origin ShieldOne POP pulls from origin, other POPs pull from the shield POP Origin Shield docs Also available as separate product (Media Shield)
Waiting RoomDuring peak traffic, route users to a virtual waiting room Virtual Waiting Room on AWS Stateful waiting room with Compute@Edge
Push / uploadStore your content directly on CDN, no customer origin
Cache control - CDN caching Full and granular control
Cache control - client caching Full and granular control
Serve Stale CDN Guide: Serve StaleCDN serves cached but expired content in case origin is in trouble Supports Cache-Control extensions Cache-Control extensions support
Purge CDN Guide: PurgeInvalidate or delete cached objects on CDN Purge Speed Instant!
Purge - capabilities Purge all and by directory/file type (wildcards) Purge all and by key
Analytics Amazon CloudFront Reports & Analytics Real-time!
Log files Only delivered to S3
tooltip CloudFront delivers access logs for a distribution up to several times an hour
Real-time streaming of logs to your server
API Purge, analytics, configuration Purge, analytics, configuration
HTTPS & Content Protection CloudFront Fastly
CDN domain HTTPSUse the CDN's domain, like cloudfront.net Free (not SNI) Free for first 5 domains, $20 per additional domain
Customer domain HTTPSYour domain in the CDN's certificate $100/m per FQDN, $275/m for wildcard domain
Customer cert HTTPSYour certificate on the CDN Free (SNI) or $600/m for non-SNI EV cert possible.
Token authentication Serving Private Content through CloudFront Enabling URL token validation
Geo blocking Restricting the Geographic Distribution of Your Content
Hotlink protectionThird parties cannot deeplink to your content Use AWS WAF for Referer Checking Creating and using Edge Dictionaries
Basic authenticationUser logs in on the CDN to get content Authenticating before returning a request
IP white/blacklisting Use AWS WAF to Block IP Addresses About Edge ACLs

Support

Customer support CloudFront Fastly
Documentation Yes, public. API docs Yes, public
Humans Community support is free. Email and phone support (AWS Support) available at extra costs Email support during business hours is free. Pay extra if you need more/better. Two paid plans available