{"id":108053,"date":"2023-02-16T09:50:09","date_gmt":"2023-02-16T17:50:09","guid":{"rendered":"https:\/\/www.backblaze.com\/blog\/?p=108053"},"modified":"2024-11-26T08:00:09","modified_gmt":"2024-11-26T16:00:09","slug":"fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up","status":"publish","type":"post","link":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/","title":{"rendered":"Fastly vs. AWS CloudFront: How Do the CDNs Stack Up?"},"content":{"rendered":"\r\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-108054\" title=\"Fastly vs. AWS CloudFront: How Do the CDNs Stack Up?\" src=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png\" alt=\"CDN Comparison: AWS CloudFront vs. Fastly\" width=\"1440\" height=\"820\" srcset=\"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png 1440w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137-300x171.png 300w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137-1024x583.png 1024w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137-768x437.png 768w, https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137-560x319.png 560w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-spacer\" style=\"height: 25px;\" aria-hidden=\"true\">\u00a0<\/div>\r\n\r\n\r\n\r\n<p id=\"bzdropcap\">As a leading specialized cloud platform for application storage, we work with a variety of content delivery network (CDN) providers. From this perch, we get to see the specifics on how each operates. Today, we\u2019re sharing those learnings with you by comparing Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN, including how their networks, features, and <a href=\"https:\/\/www.backblaze.com\/blog\/cdn-bandwidth-fees-what-you-need-to-know\/\">bandwidth fees<\/a> stack up.<\/p>\r\n\r\n\r\n\r\n<div class=\"abstract\" style=\"line-height: 1.8; margin: 24px 12px; padding: 24px 12px 10px 12px;\">\r\n<h4>Editor\u2019s Note<\/h4>\r\nWe give more ink to Fastly than AWS CloudFront in this comparison because we\u2019re in favor of supporting independent cloud providers that challenge the hyperscalers. So, full transparency: yes, we partner with Fastly, but no, this post is not paid or sponsored in any way. That being said, there are use cases where AWS CloudFront is the better choice. Do you have a preference? Let us know in the comments.\r\n<\/div>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">What Is a CDN?<\/h2>\r\n\r\n\r\n\r\n<p>If you run a website or a digital app, you need to ensure that you are delivering your content to your audience as quickly and efficiently as possible to beat out the competition. One way to do this is by using a CDN. A CDN caches all your digital assets like videos, images, scripts, style sheets, apps, etc. Then, whenever a user accesses your content, the CDN connects them with the closest server so that your items load quickly and without any issues. Many CDNs have servers around the globe to offer low-latency data access and drastically improve the responsiveness of your app through caching.<\/p>\r\n\r\n\r\n\r\n<p>Before you choose a CDN, you need to consider your options. There are dozens of <a href=\"https:\/\/www.backblaze.com\/cloud-storage\/solutions\/cdn\" target=\"_blank\" rel=\"noopener\">CDNs to choose from<\/a>, and they all have benefits and drawbacks. Let\u2019s compare Fastly with AWS CloudFront to see which works best for you.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">CDN Use Cases<\/h3>\r\n\r\n\r\n\r\n<p>Before we compare these two CDNs, it\u2019s important to understand how they might fit into your overall tech stack. Here are some everyday use cases for a CDN:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>Websites:<\/strong> If you have a video- or image-heavy website, you will want to use a CDN to deliver all your content without any delays for your visitors.<\/li>\r\n\r\n\r\n\r\n<li><strong>Web Applications:<\/strong> A CDN can help optimize your dynamic content and allow your web apps to run flawlessly, regardless of where your users access them.<\/li>\r\n\r\n\r\n\r\n<li><strong>Streaming Video:<\/strong> Customers expect more from companies these days and will not put up with buffering or intermittent video streaming issues. If you host a video streaming service like Hulu, Netflix, <a href=\"https:\/\/www.backblaze.com\/case-studieskanopy\/\" target=\"_blank\" rel=\"noopener\">Kanopy<\/a>, or Amazon, a CDN can solve these problems. You can host high-resolution (8K) video on your CDN and then stream it to your users, offering them a smooth, gapless streaming experience.<\/li>\r\n\r\n\r\n\r\n<li><strong>Gaming:<\/strong> If you are a \u201cCall of Duty\u201d or \u201cHalo\u201d fan, you know that most video games use high-resolution images and video to provide the most immersive gaming experience possible. Video game providers use CDNs to ensure responsive gameplay without any blips. You can also use a CDN to streamline rolling out critical patches or updates to all your customers without any limits.<\/li>\r\n\r\n\r\n\r\n<li><strong>E-Commerce Applications:<\/strong> Online retailers typically use dozens of images to showcase their products. If you want to use high-quality images, your website could suffer slow page loads unless you use a CDN to deliver all your photos instantly without any wait.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Need for Speed (Test)<\/h3>\r\n\r\n\r\n\r\n<p>Website developers and owners use speed tests to gauge page load speeds and other aspects affecting the user experience. A CDN is one way to improve your website metrics. You can use various online speed tests that show details like load time, time to first byte (TTFB), and the number of requests (how many times the browser must make the request before the page loads).<\/p>\r\n\r\n\r\n\r\n<p>A CDN can help improve performance quite a bit, but speed tests are dependent on many factors outside of a CDN. To find out exactly how well your site performs, there are dozens of reputable speed test tools online that you can use to evaluate your site, and then you can make improvements from there. Some of the most popular tools are:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><a href=\"https:\/\/www.webpagetest.org\/\" target=\"_blank\" rel=\"noopener\">WebPageTest<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/gtmetrix.com\/\" target=\"_blank\" rel=\"noopener\">GTMetrix<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/tools.pingdom.com\/\" target=\"_blank\" rel=\"noopener\">Pingdom<\/a><\/li>\r\n\r\n\r\n\r\n<li><a href=\"https:\/\/pagespeed.web.dev\/\" target=\"_blank\" rel=\"noopener\">Google PageSpeed Insights<\/a><\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Comparing Fastly vs. AWS CloudFront<\/h2>\r\n\r\n\r\n\r\n<p>Fastly, founded in 2011, has rapidly grown to be a competitive global edge cloud platform and CDN offering international customers a wide variety of products and services. The company\u2019s flagship product is its CDN which offers nearly instant content delivery for companies like <a href=\"https:\/\/vimeo.com\/212965425?embedded=true&amp;source=video_title&amp;owner=122507929\" target=\"_blank\" rel=\"noopener\">The New York Times<\/a>, Reddit, and Pinterest.<\/p>\r\n\r\n\r\n\r\n<p>AWS CloudFront is Amazon Web Service\u2019s (AWS) CDN offering. It\u2019s tightly integrated with other AWS products.<\/p>\r\n\r\n\r\n\r\n<p>To best understand how the two CDNs compare, we\u2019ll look at different aspects of each one so you can decide which option works best for you, including:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Network<\/li>\r\n\r\n\r\n\r\n<li>Caching<\/li>\r\n\r\n\r\n\r\n<li>DDoS Protection<\/li>\r\n\r\n\r\n\r\n<li>Log streaming<\/li>\r\n\r\n\r\n\r\n<li>Integrations<\/li>\r\n\r\n\r\n\r\n<li>TLS Protocols<\/li>\r\n\r\n\r\n\r\n<li>Pricing<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Network<\/h3>\r\n\r\n\r\n\r\n<p>CDN networks are made up of distribution points, which are network connections (servers) that allow a CDN to deliver content instantly to users anywhere.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">Fastly<\/h4>\r\n\r\n\r\n\r\n<p>Fastly\u2019s network is built fundamentally differently than a legacy CDN. Rather than a wide-ranging network populated with many points of presence (PoPs), Fastly built a stronger network based on fewer, more powerful, and strategically placed PoPs. Fastly promises 233Tbps of connected global capacity with its system of PoPs (as of 9\/30\/2022).<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">AWS CloudFront<\/h4>\r\n\r\n\r\n\r\n<p>AWS CloudFront doesn\u2019t share specific capacity figures in terms of terabits per second (Tbps). They keep that claim somewhat vague, advertising \u201chundreds of terabits of deployed capacity.\u201d But they do advertise that they have roughly 450 distribution points in 90 cities in 48 countries.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Our Take<\/h4>\r\n\r\n\r\n\r\n<p>At first glance, it might seem like more PoPs means a faster, more robust network. Fastly uses a useful metaphor to explain why that\u2019s not true. They <a href=\"https:\/\/www.fastly.com\/blog\/why-having-more-pops-isnt-always-better\" target=\"_blank\" rel=\"noopener\">compare legacy PoPs to convenience stores<\/a>\u2014they\u2019re everywhere, but they\u2019re small, meaning that the content your users are requesting may not be there when they need it. Fastly\u2019s PoPs are more like supermarkets\u2014you have a better chance of getting everything you need (your cached content) in one place. It only takes a few milliseconds to get to one of Fastly\u2019s PoPs nowadays (as opposed to when legacy providers like AWS CloudFront built their networks), and there\u2019s much more likelihood that the content you need is going to be housed in that PoP already, instead of needing to be called up from origin storage.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Caching<\/h3>\r\n\r\n\r\n\r\n<p>Caching reduces the number of direct requests to your origin server. A CDN acts as a middleman responding to requests for content on your behalf and directing users to edge caches nearest to the user. When a user calls up your website, the CDN serves up a cached version located on the server closest to them. This feature drastically improves the speed and performance of your website.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">Fastly<\/h4>\r\n\r\n\r\n\r\n<p>Fastly uses a process of calculating the Time to Live (TTL) with its caching feature. TTL is the maximum time Fastly will use the content to answer requests before returning to your origin server. You can set various cache settings like purging objects, conditional caching, and assigning different TTLs for cached content through Fastly\u2019s API.<\/p>\r\n\r\n\r\n\r\n<p>Fastly shows its average cache hit ratio live on its website, which is over 91% at the time of publication. This is the ratio of how many content requests the CDN is able to fill from the cache versus the total number of requests.<\/p>\r\n\r\n\r\n\r\n<p>Fastly also allows you to automatically compress some file types in gzip and then cache them. You can modify these settings from inside Fastly\u2019s web interface. The service also includes support for Brotli data compression via general availability as of February 7, 2023.<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">AWS CloudFront<\/h4>\r\n\r\n\r\n\r\n<p>AWS CloudFront routes requests for your content to servers holding a cached version, lessening the burden on your origin container. When users visit your site, the CDN directs them to the closest edge cache for instantaneous page loads. You can change your cache settings in AWS CloudFront\u2019s backend. AWS CloudFront supports compressed files and allows you to store and access gzip and Brotli compressed objects.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Our Take<\/h4>\r\n\r\n\r\n\r\n<p>Fastly does not charge a fee no matter how many times content is purged from the cache, while AWS CloudFront does. And, Fastly can invalidate content in 150 milliseconds, while AWS CloudFront can be 60\u2013120 times slower. Both of these aspects make Fastly better with dynamic content that changes quickly for customers, such as news outlets, social media sites, and e-commerce sites.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">DDoS Protection<\/h3>\r\n\r\n\r\n\r\n<p>Distributed denial of service (DDoS) attacks are a serious concern for website and web app owners. A typical attack can interrupt website traffic or crash it completely, making it impossible for your customers to reach you.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">Fastly<\/h4>\r\n\r\n\r\n\r\n<p>Fastly relies on its 233Tbps+ (as of 9\/30\/2022) of globally-distributed network capacity to absorb any DDoS attacks, so they don\u2019t affect customers\u2019 origin content. They also use sophisticated filtering technology to remove malicious requests at the edge before they get close to your origin.<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">AWS CloudFront<\/h4>\r\n\r\n\r\n\r\n<p>AWS CloudFront is backed by comprehensive security technology designed to prevent DDoS and other types of attacks. Amazon calls its DDoS protection service AWS Shield.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Our Take<\/h4>\r\n\r\n\r\n\r\n<p>Fastly\u2019s next gen web application firewall (WAF) actively filters the correct traffic. More than 90% of their customers use the WAF in active full blocking mode whereas across the industry, only 57% of customers use their WAF in full blocking mode. This means the Fastly WAF works as it should out of the box. Other WAFs require more fine-tuning and advanced rule setting to be as efficient as Fastly\u2019s. Fastly\u2019s WAF can also be deployed anywhere\u2014at the edge, on-premises, or both\u2014whereas most AWS instances are cloud hosted.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Log Streaming<\/h3>\r\n\r\n\r\n\r\n<p>Log streaming enables you to collect logs from your CDN and forward them to specific destinations. They help customers stay on top of up-to-date information about what\u2019s happening within the CDN, including detecting security anomalies.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">Fastly<\/h4>\r\n\r\n\r\n\r\n<p>Fastly allows for near real-time visibility into delivery performance with real-time logs. Logs can be sent to 29 endpoints, including popular third-party services like Datadog, Sumo Logic, Splunk, and others where they can be <a href=\"https:\/\/developer.fastly.com\/reference\/api\/logging\/?_fsi=h7zvkqSe\" target=\"_blank\" rel=\"noopener\">monitored<\/a>.<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">AWS CloudFront<\/h4>\r\n\r\n\r\n\r\n<p>AWS CloudFront real-time logs are integrated with Amazon Kinesis Data Streams to enable delivery using Amazon Kinesis Data Firehose. Kinesis Data Firehose can then deliver logs to Amazon S3, Amazon Redshift, Amazon Elasticsearch Service, as well as service providers like Datadog, New Relic, and Splunk. AWS charges for real-time logs in addition to charging for Kinesis Data Streams.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Our Take<\/h4>\r\n\r\n\r\n\r\n<p>More visibility into your data is always better, and Fastly\u2019s free real-time log streaming is the clear winner here with more choice of endpoints, allowing customers to use the specialized third-party services they prefer. AWS encourages staying within the AWS ecosystem and penalizes customers for not using AWS services, namely their S3 object storage.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Integrations<\/h3>\r\n\r\n\r\n\r\n<p>Integrations allow you to extend a product or service\u2019s functionality through add-ons. With your CDN, you might want to enhance it with a different interface or add on new features the original doesn\u2019t include. One popular tool we\u2019ll highlight here is <a href=\"https:\/\/www.terraform.io\/\" target=\"_blank\" rel=\"noopener\">Terraform<\/a>, a tool that allows you to provision infrastructure as code (IaC).<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Terraform<\/h4>\r\n\r\n\r\n\r\n<p>Both Fastly and AWS CloudFront support Terraform. Fastly has detailed <a href=\"https:\/\/www.fastly.com\/blog\/how-to-configure-your-fastly-services-with-terraform\" target=\"_blank\" rel=\"noopener\">instructions<\/a> on its website about how to set this up and configure it to work seamlessly with the service.<\/p>\r\n\r\n\r\n\r\n<p>Amazon\u2019s AWS CloudFront allows you to integrate with Terraform by installing the program on your local machine and configuring it within AWS CloudFront\u2019s configuration files.<\/p>\r\n\r\n\r\n\r\n<div class=\"abstract\" style=\"line-height: 1.8; margin: 24px 12px; padding: 24px 12px 10px 12px;\">\r\n<h4>The Drawbacks of a Closed Ecosystem<\/h4>\r\n<p>It\u2019s important to note that AWS CloudFront, as an AWS product, works best with other AWS products, and doesn\u2019t exactly play nice with competitor products. As an independent cloud services provider, Fastly is vendor agnostic and works with many other cloud providers, including AWS\u2019s other products and Backblaze.<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">TLS (Transport Layer Security) Protocols<\/h3>\r\n\r\n\r\n\r\n<p>TLS or transport layer security (formerly known as secure sockets layer (SSL)) is an encryption device used to protect website data. Whenever you see the lock sign on your internet browser, you are using a website that is protected by an TLS (HTTPS).<\/p>\r\n\r\n\r\n\r\n<p>Fastly assigns a shared domain name to your CDN content. You can use the associated TLS certificate for free or bring your own TLS certificate and install it. Fastly offers detailed instructions and help guides so you can securely configure your content.<\/p>\r\n\r\n\r\n\r\n<p>Amazon\u2019s AWS CloudFront also assigns a unique URL for your CDN content. You can use an Amazon-issued certificate, the default TLS certificate installed on the server or use your own TLS. If you use your own TLS, you must follow the explicit instructions for key length and install it correctly on the server.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">Pricing<\/h3>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">Fastly<\/h4>\r\n\r\n\r\n\r\n<p>Fastly offers a free trial which includes $50 of traffic with pay-as-you-go bandwidth pricing after that. Bandwidth pricing is based on geographic location and starts at, for example, $0.12 per GB for the first 10TB for North America. The next 10TB is $0.08 per GB, and they charge $0.0075 per 10,000 requests. Fastly also offers tiered capacity-based pricing for edge cloud services, starting with its Essential product for small businesses, which includes 3TB of global delivery per month. Their Professional tier includes 10TB of global delivery per month, and their Enterprise tier is unlimited. They also offer add-on products for security and distributed applications.<\/p>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<h4 class=\"wp-block-heading\">AWS CloudFront<\/h4>\r\n\r\n\r\n\r\n<p>AWS CloudFront offers a free plan including 1TB of data transfer out, 10,000,000 HTTP or HTTPS requests, and 2,000,000 functions invocations each month. However, customers needing more than the basic plan will have to consider the tiered pricing based on bandwidth usage. AWS CloudFront\u2019s pricing starts at $0.085 per GB up to 10TB in North America. All told, there are seven pricing tiers from 10TB to &gt;5PB.<\/p>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Our Take<\/h4>\r\n\r\n\r\n\r\n<p>When it comes to content delivery, AWS CloudFront can\u2019t compete on total cost of ownership. Not only that, but Fastly\u2019s pay-as-you-go pricing model with only two tiers is simpler than AWS CloudFront\u2019s pricing with seven tiers. As with many AWS products, complexity demands configuration and management time. Customers tend to spend less time getting Fastly to work the way they want it to. With AWS CloudFront, customers also run the risk of getting locked in to the AWS ecosystem.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Our Final Take<\/h2>\r\n\r\n\r\n\r\n<p>Between the two CDNs, Fastly is the better choice for customers that rely on managing and serving dynamic content without paying high fees to create personalized experiences for their end users. Fastly wins over AWS CloudFront on a few key points:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>More price competitive for content delivery<\/li>\r\n\r\n\r\n\r\n<li>Simpler pricing tiers<\/li>\r\n\r\n\r\n\r\n<li>Vendor agnostic<\/li>\r\n\r\n\r\n\r\n<li>Better caching<\/li>\r\n\r\n\r\n\r\n<li>Easier image optimization<\/li>\r\n\r\n\r\n\r\n<li>Real-time log streaming<\/li>\r\n\r\n\r\n\r\n<li>More expensive, but better performing out-of-the-box WAF<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">Using a CDN with Cloud Storage<\/h2>\r\n\r\n\r\n\r\n<p>A CDN can greatly speed up your website load times, but there will still be times when a request will call the origin store. Having reliable and <a href=\"https:\/\/www.backblaze.com\/cloud-storage\" target=\"_blank\" rel=\"noopener\">affordable origin storage<\/a> is key when the cache doesn\u2019t have the content stored. When you pair a <a href=\"https:\/\/www.backblaze.com\/cloud-storage\/solutions\/cdn\" target=\"_blank\" rel=\"noopener\">CDN with origin storage in the cloud<\/a>, you get the benefit of both scalability and speed.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Read the first in our series comparing content delivery network (CDN) providers. Today, we compare AWS Cloudfront and Fastly.net. <\/p>\n","protected":false},"author":159,"featured_media":108054,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":"","jetpack_post_was_ever_published":false},"categories":[481,7,434],"tags":[468],"class_list":["post-108053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cdn","category-cloud-storage","category-featured-1","tag-b2cloud","entry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fastly vs. AWS CloudFront: Which CDN is Right for You?<\/title>\n<meta name=\"description\" content=\"We make a detailed comparison of Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN.\u00a0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fastly vs. AWS CloudFront: Which CDN is Right for You?\" \/>\n<meta property=\"og:description\" content=\"We make a detailed comparison of Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/\" \/>\n<meta property=\"og:site_name\" content=\"Backblaze Blog | Cloud Storage &amp; Cloud Backup\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/backblaze\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-16T17:50:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T16:00:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1440\" \/>\n\t<meta property=\"og:image:height\" content=\"820\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Molly Clancy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@backblaze\" \/>\n<meta name=\"twitter:site\" content=\"@backblaze\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Molly Clancy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fastly vs. AWS CloudFront: Which CDN is Right for You?","description":"We make a detailed comparison of Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN.\u00a0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/","og_locale":"en_US","og_type":"article","og_title":"Fastly vs. AWS CloudFront: Which CDN is Right for You?","og_description":"We make a detailed comparison of Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN.\u00a0","og_url":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/","og_site_name":"Backblaze Blog | Cloud Storage &amp; Cloud Backup","article_publisher":"https:\/\/www.facebook.com\/backblaze","article_published_time":"2023-02-16T17:50:09+00:00","article_modified_time":"2024-11-26T16:00:09+00:00","og_image":[{"width":1440,"height":820,"url":"https:\/\/www.backblaze.com\/blog\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","type":"image\/png"}],"author":"Molly Clancy","twitter_card":"summary_large_image","twitter_creator":"@backblaze","twitter_site":"@backblaze","twitter_misc":{"Written by":"Molly Clancy","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#article","isPartOf":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/"},"author":{"name":"Molly Clancy","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/a92e54b3011e599a575611dbbb443b5c"},"headline":"Fastly vs. AWS CloudFront: How Do the CDNs Stack Up?","datePublished":"2023-02-16T17:50:09+00:00","dateModified":"2024-11-26T16:00:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/"},"wordCount":2499,"commentCount":3,"publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","keywords":["B2Cloud"],"articleSection":["CDN","Cloud Storage","Featured"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/","url":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/","name":"Fastly vs. AWS CloudFront: Which CDN is Right for You?","isPartOf":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#primaryimage"},"image":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#primaryimage"},"thumbnailUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","datePublished":"2023-02-16T17:50:09+00:00","dateModified":"2024-11-26T16:00:09+00:00","description":"We make a detailed comparison of Fastly and AWS CloudFront to help you understand your options when it comes to choosing a CDN.\u00a0","breadcrumb":{"@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#primaryimage","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","width":1440,"height":820,"caption":"CDN Comparison: AWS CloudFront vs. Fastly"},{"@type":"BreadcrumbList","@id":"https:\/\/www.backblaze.com\/blog\/fastly-vs-aws-cloudfront-how-do-the-cdns-stack-up\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Fastly vs. AWS CloudFront: How Do the CDNs Stack Up?"}]},{"@type":"WebSite","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#website","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","name":"Backblaze Cloud Solutions Blog","description":"Cloud Storage &amp; Cloud Backup","publisher":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#organization","name":"Backblaze","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.backblaze.com\/blog\/wp-content\/uploads\/2017\/12\/backblaze_icon_transparent.png?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Backblaze"},"image":{"@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/backblaze","https:\/\/x.com\/backblaze","https:\/\/www.youtube.com\/user\/Backblaze","https:\/\/en.wikipedia.org\/wiki\/Backblaze"]},{"@type":"Person","@id":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/#\/schema\/person\/a92e54b3011e599a575611dbbb443b5c","name":"Molly Clancy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2021\/02\/ClancyMolly_Headshot_reduced-150x150.png","url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2021\/02\/ClancyMolly_Headshot_reduced-150x150.png","contentUrl":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2021\/02\/ClancyMolly_Headshot_reduced-150x150.png","caption":"Molly Clancy"},"description":"Molly Clancy is a content writer who specializes in explaining tech concepts in an easy, approachable way. With more than 15 years of experience, she has a broad background in industries ranging from B2B tech to engineering to luxury travel. A deep curiosity drives her repeated success explaining what terms like OS kernel and preflight request mean so that anyone can understand them.","url":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/author\/molly\/"}]}},"jetpack_featured_media_url":"https:\/\/backblazeprod.wpenginepowered.com\/wp-content\/uploads\/2023\/02\/bb-bh-Cloudfront-vs.-Fastly-e1676497664137.png","_links":{"self":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/108053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/comments?post=108053"}],"version-history":[{"count":0,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/posts\/108053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media\/108054"}],"wp:attachment":[{"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/media?parent=108053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/categories?post=108053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/backblazeprod.wpenginepowered.com\/blog\/wp-json\/wp\/v2\/tags?post=108053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}