Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudFront: Cost estimate

Tags:

Have to come up with a proposal to use Amazon S3 with CloudFront as CDN. One of the important thing is to do a cost estimate. I read over AWS website and forums, used their calculator, but couldn't come to a conclusion with the final number (approx) that I will be confident of. Honestly, I got confused between terms like "Data Transfer Out", "GET and Other Requests" and whether I need to fill in the details both at Amazon S3 and Amazon CloudFront and then do a sum total.

So need help here to estimate my monthly bill.

  • I will be using S3 to store files (mostly images)
  • I will be configuring cloud front with my S3 bucket to deliver the content.
  • Most of the client base (almost 95%) is in US.

  • Average file size: 500KB

  • Average number of files stored on S3 monthly: 80000 (80K)
  • Approx number of total users requesting for the file monthly or approx number of total requests to fetch the file from CloudFront: 30 Millions monthly
  • There will be some invalidation requests per month (lets say 1000)

Would be great if I can get more understanding as to how my monthly bill will be calculated and what approximately it will be.

Also, with the above data and estimates, any approx on how much the monthly bill, if I use Akamai or Rackspace.

like image 680
user1270392 Avatar asked Apr 02 '13 23:04

user1270392


People also ask

Is AWS CloudFront expensive?

CloudFront Cost & AWS Data Transfer Cost The initial rate for the serving data to the cheapest regions (United States, Mexico, Canada, Europe and Israel) is $0.085 per GB, and this cost doubles to $0.170 when serving data to the most expensive region (India).

Which all should you consider to estimate the cost of Amazon CloudFront?

Amazon CloudFront: The cost can be estimated by considering factors such as Traffic Distribution, the number and type of requests (HTTP or HTTPS) made and the geographic region in which the requests are made, and finally, the amount of data transferred out of the user's Amazon CloudFront edge locations.

What is cheaper S3 or CloudFront?

In addition, data transfer out for content by using CloudFront is often more cost effective than serving files directly from S3, and there is no data transfer fee from S3 to CloudFront. You only pay for what is delivered to the internet from CloudFront, plus request fees (see the full pricing information).

Is CloudFront more expensive than S3?

So, yes, CloudFront is cheaper in terms of data transfer, but you pay a bit more for each request.


2 Answers

I'll throw another number into the ring.

Using http://calculator.s3.amazonaws.com/calc5.html

CloudFront
data transfer out 0.5MB x 30 million = ~15,000GB

Average size 500kb

1000 invalidation requests

95% US

S3
Storage 80K x 0.5MB 4GB

requests 30million

My initial result is $1,413. As @user2240751 noted, a factor of safety of 2 isn't unreasonable, so that's in the $1,500 - $3,000/month range.

I'm used to working with smaller numbers, but the final amount is always more than you might expect because of extra requests and data transfer.

Corrections or suggestions for improvements welcome!

Good luck

like image 133
David Taiaroa Avatar answered Oct 21 '22 07:10

David Taiaroa


The S3 put and get request fields (in your case) should be restricted to the number of times you are likely to call / update the files in S3 from your application only.

To calculate the Cloudfront service costs, you should work out the rough outbound bandwidth of your page load (number of objects served from cloudfront per page - then double it - to give yourself some headroom), and fill in the rest of the fields.

Rough calc. 500GB data out (guess) 500k average object size 1000 invalidation requests 95% to US based edge location 5% to Europe based edge location

Comes in at $60.80 + your S3 costs.

like image 28
user2240751 Avatar answered Oct 21 '22 07:10

user2240751