AWS Lambda@Edge的费用是否额外计入CloudFront费用?

huangapple go评论102阅读模式
英文:

Are AWS lambda@edge costs in addition to cloudfront?

问题

我们的AWS CloudFront成本非常高。有人建议,如果我们的一些请求由lambda@edge提供,这些成本可以降低。

但是,我不确定lambda@edge的成本是否会额外产生CloudFront成本;例如:

CloudFront成本:每百万次1.20美元
lambda@edge成本:每百万次0.20美元(加上持续时间成本)。

从表面上看,lambda@edge可能比CloudFront更便宜... 除非我们也必须支付CloudFront。

有人能告诉我是否使用lambda@edge也会产生CloudFront成本吗?

英文:

We have very high AWS cloudfront costs. It has been suggested that if some of our requests were served by lambda@edge, these costs could be reduced.

However, I am unsure if lambda@edge costs are in addition to cloudfront; For example:

Cloudfront costs: $1.20 per million
lambda@edge costs: $ 0.20 per million (plus duration costs).

On the face of it, lambda@edge could be cheaper than Cloudfront.... Unless we have to pay Cloudfront also.

Can anyone tell me if using lambda@edge also incurs Cloudfront costs or not?

答案1

得分: 1

Lambda@edge 是 CloudFront 的附加功能。内容仍然由 CloudFront 提供。

英文:

Lambda@edge is in addition to CloudFront. The content is still served by CloudFront.

答案2

得分: 0

CoudFront功能在运行最接近用户的小脚本时很有用。Lambda@Edge功能更适用于需要访问外部服务或互联网的更复杂的代码,Lambda@Edge在响应全局的Amazon CloudFront事件时每次启动执行都会计算一次请求。Lambda@Edge是AWS Lambda的扩展,它是一个计算服务,允许您执行定制CloudFront传递的内容的功能。

英文:

CoudFront Functions are useful when running small scripts that are closest to users. Lambda@Edge Functions are better suited for more complex code that requires access to external services or the Internet and Lambda@Edge counts a request each time it starts executing in response to an Amazon CloudFront event globally.Lambda@Edge is an extension of AWS Lambda, a compute service that lets you execute functions that customize the content that CloudFront delivers.

答案3

得分: 0

如果您正在使用Lambda@Edge与Amazon CloudFront,您将支付CloudFront + Lambda@Edge的费用。

例如,如果请求来自美国:
每百万请求 $1.60 +
每GB传输 $0.085 +
函数执行时间费用

重要的是要记住,这项服务非常昂贵,AWS将会为所有请求收费,而不管WAF速率限制如何,除非您能够每月在AWS Shield上花费$3,000。

英文:

If you are using Lambda@Edge with Amazon CloudFront, you will pay for CloudFront + Lambda@Edge.

For example, if the requests come from the United States:
$1.60/million requests +
$0.085/GB transfer +
function duration charges.

It's important to remember that this service is very, very expensive and AWS will charge you for all requests regardless of WAF rate limiting unless you are able to spend $3,000/month on AWS Shield.

huangapple
  • 本文由 发表于 2023年8月10日 18:27:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76874870.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定