There was a desire to use CDN, but the question remained, “how much can I afford it?” In principle, you can look at the prices on
the site itself or even use a
calculator , but it still remains unclear how much it can cost $ 1 or $ 30.
Minimum price
Without fail, you will have to order Amazon S3, because clouds can only work in conjunction with them, it costs at least 4 cents (by cent for space + traffic + PUT, COPY, POST, LIST + GET and other requests).
With CloudFront, the situation is like at least 8 cents, at a cent for traffic and requests in four directions. All rounding occurs to cents (up), then summed up.
')
Total minimum : 12 cents (~ 3.6 rubles)
In reality
The average figure per day was tested on a website with attendance: 900 visits, 5,000 views (statistics of Ya.Metrika for February 2010).
From the site I glued all the css and js so that there would be one file at a time, they made copies with .gz to those who support (tracking on the server side), laid out static pictures. The logo, 2 banners, 1 or 2 js, 1 css are given on the page, we give everything, caching through the headers. Heavy multimedia files did not dare to upload.
What happened in the money last month:
Service | Service | how many | Price |
---|
Amazon S3 | File storage | 5MB | $ 0.01 |
---|
Data Transfer Inside Amazon | 8MB | is free |
Data transfer to the external network | 11MB | $ 0.01 |
PUT, COPY, POST, LIST requests | 9,800 | $ 0.10 |
GET and other requests | 16 800 | $ 0.02 |
CloudFront US | Data transfer | 112MB | $ 0.02 |
---|
GET requests | 9 300 | $ 0.01 |
CloudFront EU | Data transfer | 1.4GB | $ 0.21 |
---|
GET requests | 106 500 | $ 0.13 |
CloudFront JP | Data transfer | 5MB | $ 0.01 |
---|
GET requests | 250 | $ 0.01 |
CloudFront CN | Data transfer | 21MB | $ 0.01 |
---|
GET requests | 1,500 | $ 0.01 |
Total | $ 0.55 |
---|
In general, it is not as expensive as it may seem at first glance.