Need advice about which tool to choose?Ask the StackShare community!
Amazon CloudFront vs Amazon S3: What are the differences?
Developers describe Amazon CloudFront as "Content delivery with low latency and high data transfer speeds". Amazon CloudFront can be used to deliver your entire website, including dynamic, static, streaming, and interactive content using a global network of edge locations. Requests for your content are automatically routed to the nearest edge location, so content is delivered with the best possible performance. On the other hand, Amazon S3 is detailed as "Store and retrieve any amount of data, at any time, from anywhere on the web". Amazon Simple Storage Service provides a fully redundant data storage infrastructure for storing and retrieving any amount of data, at any time, from anywhere on the web.
Amazon CloudFront and Amazon S3 are primarily classified as "Content Delivery Network" and "Cloud Storage" tools respectively.
Some of the features offered by Amazon CloudFront are:
- Fast- Using a network of edge locations around the world, Amazon CloudFront caches copies of your static content close to viewers, lowering latency when they download your objects and giving you the high, sustained data transfer rates needed to deliver large popular objects to end users at scale.
- Simple- A single API call lets you get started distributing content from your Amazon S3 bucket or Amazon EC2 instance or other origin server through the Amazon CloudFront network.
- Designed for use with other Amazon Web Services Amazon CloudFront is designed for use with other Amazon Web Services, including Amazon S3, where you can durably store the definitive versions of your static files, and Amazon EC2, where you can run your application server for dynamically generated content.
On the other hand, Amazon S3 provides the following key features:
- Write, read, and delete objects containing from 1 byte to 5 terabytes of data each. The number of objects you can store is unlimited.
- Each object is stored in a bucket and retrieved via a unique, developer-assigned key.
- A bucket can be stored in one of several Regions. You can choose a Region to optimize for latency, minimize costs, or address regulatory requirements. Amazon S3 is currently available in the US Standard, US West (Oregon), US West (Northern California), EU (Ireland), Asia Pacific (Singapore), Asia Pacific (Tokyo), Asia Pacific (Sydney), South America (Sao Paulo), and GovCloud (US) Regions. The US Standard Region automatically routes requests to facilities in Northern Virginia or the Pacific Northwest using network maps.
"Fast", "Cdn" and "Compatible with other aws services" are the key factors why developers consider Amazon CloudFront; whereas "Reliable", "Scalable" and "Cheap" are the primary reasons why Amazon S3 is favored.
According to the StackShare community, Amazon S3 has a broader approval, being mentioned in 3235 company stacks & 1616 developers stacks; compared to Amazon CloudFront, which is listed in 3388 company stacks and 622 developer stacks.
We offer our customer HIPAA compliant storage. After analyzing the market, we decided to go with Google Storage. The Nodejs API is ok, still not ES6 and can be very confusing to use. For each new customer, we created a different bucket so they can have individual data and not have to worry about data loss. After 1000+ customers we started seeing many problems with the creation of new buckets, with saving or retrieving a new file. Many false positive: the Promise returned ok, but in reality, it failed.
That's why we switched to S3 that just works.
At Joyn we use AWS infrastructures extensively, so we need a wide range of different tools starting from file storage until the health monitoring of our running services. For Smart TV stack we use S3 to mostly store static files (like scripts, styles and html), CloudFront to keep good response times using the cache, Lambda to recognize the TV platform and serve appropriate bundle (except Samsung Tizen platform where application is packaged), CloudWatch to receive alerts in case we have any issues inside of our lambda function.
Pros of Amazon CloudFront
- Fast245
- Cdn166
- Compatible with other aws services157
- Simple125
- Global108
- Cheap41
- Cost-effective36
- Reliable27
- One stop solution19
- Elastic9
- Object store1
- HTTP/2 Support1
Pros of Amazon S3
- Reliable592
- Scalable493
- Cheap458
- Simple & easy329
- Many sdks83
- Logical30
- Easy Setup13
- REST API11
- 1000+ POPs11
- Secure6
- Easy4
- Plug and play4
- Web UI for uploading files3
- Flexible2
- GDPR ready2
- Faster on response2
- Easy integration with CloudFront1
- Easy to use1
- Plug-gable1
Sign up to add or upvote prosMake informed product decisions
Cons of Amazon CloudFront
- UI could use some work3
- Invalidations take so long1
Cons of Amazon S3
- Permissions take some time to get right7
- Takes time/work to organize buckets & folders properly6
- Requires a credit card5
- Complex to set up3