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

Product CloudFront Fastly
Dynamic content deliveryNon-cacheable content delivery. User login, shopping cart ... Available/supported Available/supported
Small file deliveryStatic object delivery; caching of small files (file size <1 MB) Available/supported Available/supported
Large file deliveryStatic object delivery; caching of large files (file size >1 MB) Available/supported Available/supported
Live videoDelivery of live video. RTMP? Transcoding/transmuxing? Available/supported Available/supported
Video on demandDelivery of on demand video Available/supported Available/supported
Image OptimizationAutomatic image compression/optimization Not available/supported Available/supported
DNSAuthoritative DNS for customer domain Available/supported Not available/supported
WAFWeb Application Firewall Available/supported Available/supported
Anti-DDoSDDoS attack protection. Specific product(s) for this. Available/supported Available/supported
Private CDNDedicated edge resources & custom configs Not available/supported Available/supported

Network

Region CloudFront Fastly
North America 21 16
Latin America 2 3
Europe 17 6
Russia & CIS 0 0
Asia, excl China 11 6
China 0 0
Oceania 2 6
Middle-East 0 1
Africa 0 2

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 is origin is AWS) Same rates as CDN-to-client traffic
NA/EU traffic (low volume) $0.085 per GB $0.12 per GB
APAC traffic (low volume) $0.14 per GB (India: $0.17) $0.19 per GB
LATAM traffic (low volume) $0.25 per GB $0.28 per GB

Features

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

Support

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