AWS Cloudfront Bill for Cache是否命中?
我知道AWS CloudFront Bills数据传输(并且免费层中有1 TB)。但是我想知道哪些云将什么算作数据传输。是否将任何数据传输到Internet(CloudFront Cached Data aka Cache命中,从EC2/S3传输的数据)?
例如,,假设Origin Server(EC2)将1 GB的数据返回到Internet,CloudFront缓存了它,最终请求的数据被请求&转移了4次到互联网。会向我向我收取5 GB的数据传输或仅用于1 GB(以及其他4 GB,因为它是缓存的)
仅用于上下文:我有一个返回图像的EC2应用程序(存储在S3中),现在我收到了越来越多的请求,因此数据传输EC2的成本越来越多。我一直在寻找缓存图像的选项,以降低数据传输成本。我发现的两个选项是 Cloudflare & CloudFront 。 CloudFlare似乎是一个不错的选择,并且可以实现缓存,但是与此同时,我正在尝试弄清楚云方面的工作原理(因为我正在使用AWS生态系统)。
如果该云层向每个数据传输(即使是缓存)收费,那么我想它不会降低数据传输成本。
I know that AWS CloudFront bills Data Transfer Out (and there's 1 TB of free in the free tier). But I was wondering what CloudFront counts as Data Transfer. Is any data transferred to the Internet (CloudFront cached data aka cache hit, data that is transferred from EC2/S3) billed?
For instance, let's say the origin server (EC2) returned 1 Gb of data to the Internet and CloudFront cached it, and eventually cached data got requested & transferred 4 times to the Internet. Will AWS bill me for 5 Gb of Data Transfer Out or only for 1 Gb (and the other 4 Gb won't be billed since it's cached)
Just for context: I have an EC2 application that returns images (that are stored in S3) and now I'm getting more and more requests and therefore more and more costs for the Data Transfer Out of EC2. I was looking for the option to cache images for some time in order to reduce Data Transfer costs. Two options that I found are Cloudflare & CloudFront. Cloudflare seems like a good option and allows to implement caching but in the meantime, I am trying to figure out how CloudFront works (since I'm using AWS ecosystem).
If that CloudFront bills every data transfer (even that is cached) then I suppose it won't reduce the Data Transfer cost.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是文档所说的。
在 Origin Server到Amazon Cloudfront(Origin Fetches)
AWS Cloud Services和Amazon Cloudfront for Origin Fetes 之间的免费数据传输
此处有关CloudFront价格的详细信息以及价格计算器。
Here's what the docs say.
On Origin server to Amazon CloudFront (origin fetches)
Free data Transfer between AWS cloud services and Amazon CloudFront for origin fetches
Here's detailed information on CloudFront Pricing along with a Price Calculator.