skip to Main Content

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?

2

Answers


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

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search