Cloudfront缓存仅按价格定价 [英] cloudfront cache hits only pricing

查看:325
本文介绍了Cloudfront缓存仅按价格定价的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我说我正在使用aws的s3与cloudfront连接。

lets say i am using aws's s3 connected with cloudfront .

然后s3发送一个大小为1 MB的图像文件,以缓存在所有cloudfront的边缘节点上。

And s3 sends one image file of size 1 MB to be cached on all cloudfront's edge nodes.

然后从cloudfront的边缘下载缓存的图像文件100万次。(图像不再从s3抓取)。

then the cached image file is downloaded 1 million times from cloudfront's edges .(the image is not grabbed again from s3 ).

我要支付

1-将文件从s3传输到云边缘的带宽。

1-the bandwidth for transferring the file from s3 to cloudfront edges.

2-将文件从s3传输到云端边缘的带宽+从云端边缘进行100万次下载的带宽。

2- the bandwidth for transferring the file from s3 to cloudfront edges + the bandwidth for 1 million downloads from the cloudfront edges .

还,如果答案是2,则那意味着缓存根本不能省钱吗?仅改善性能?

also , if the answer is 2 , then that means caching doesn't save money at all ? only impove performance ?

,如果是这种情况,为什么要使用cloudfront而不是cloudflare,因为cloudflare提供了免费带宽? (那里有货吗?)

and if that's the case why use cloudfront instead of cloudflare since cloudflare provides free bandwidth ? (is there a catch there ?)

推荐答案

您不需要从S3到Cloudfront付费:

You don't pay from S3 to Cloudfront:


如果您使用的是AWS原始数据,则自2014年12月1日起生效,从原始数据传输到边缘位置的数据(Amazon CloudFront原始获取)将是免费的。

If you are using an AWS origin, effective December 1, 2014, data transferred from origin to edge locations (Amazon CloudFront "origin fetches") will be free of charge.

您确实要支付出站转账。如果我们使用价格最低的Cloudfront层,您将为数据支付85美元,为HTTP请求支付75美分。

You do pay outbound transfer. If we stay with the lowest-priced Cloudfront tier, you'll pay $85 for data plus 75 cents for the HTTP requests.

相比之下,使用S3时,免费传输层,您将为数据支付90美元,再为HTTP请求支付40美分。

In comparison, using S3, ignoring the free transfer tier, you'll pay $90 for data plus 40 cents for HTTP requests.

那么,为什么要使用Cloudfront?首先,用户下载1mb文件的延迟会大大降低。其次,随着带宽等级的提高,价格仍然较低-如果您每月要运送300 TB的数据,则最终的价格将比S3价格便宜20%。

So, why use Cloudfront? First, users will get significantly lower latency to download your 1mb file. Second, the price remains lower as you go up the bandwidth tiers- if you are shipping 300tb of data per month, the final tier is 20% cheaper than the S3 price.

在服务器/文件/缓存的变化中,肯定有一些地方提供比AWS更好的带宽定价。如果您使用Cloudflare,则需要为Cloudflare支付S3。您可能只需要支付一次(1mb),但实际上它会不止一次。

There are certainly places that offer better bandwidth pricing than AWS, in server/file/cache variations. If you use Cloudflare you'll pay for S3 to Cloudflare. You may only need to pay it once (1mb), but in reality it'll be more than once.

这篇关于Cloudfront缓存仅按价格定价的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆