Home › Forums › AWS › AWS Certified Solutions Architect Professional › CloudFront Functions executes Lambda@Edge › Reply To: CloudFront Functions executes Lambda@Edge
-
Hi Chris,
Thank you for your question and catching that — we appreciate your attention to detail!
You are absolutely correct: Amazon CloudFront Functions and Lambda@Edge are two separate features that both run code at CloudFront edge locations, but they operate independently. CloudFront Functions do not invoke Lambda@Edge functions.
CloudFront Functions are designed for lightweight, high-performance JavaScript operations at the edge. They’re ideal for simple tasks like modifying viewer requests/responses with minimal latency.
Lambda@Edge, on the other hand, allows you to run more complex AWS Lambda functions in response to CloudFront events, offering greater flexibility but with slightly higher latency.
We apologize for the earlier confusion and have updated our explanation to reflect this distinction accurately.
Please don’t hesitate to ask any further questions — we’re happy to help!
Best,
Irene @ Tutorials Dojo