Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between AWS lambda and AWS Lambda@EDGE?

What is the difference between simple aws lambda and aws lambda@edge ?

like image 384
mnhmilu Avatar asked Aug 08 '18 11:08

mnhmilu


2 Answers

Lambda executes functions based on certain triggers. The use case for Lambda is quite broad and there is heavy integration with many AWS Services. You can even use it to simply execute the code via AWS's API and receive the code into your scripts separate from AWS. Common use cases include Lambdas being simply executed and the output received, plugged into API Gateway to serve user requests, modifying objects as they are placed into S3 buckets, etc.

Lambda@Edge is a service that allows you to execute Lambda functions that modify the behaviour of CloudFront specifically. Lambda@Edge simply runs during the request cycle and makes logical decisions that affect the delivery of the CloudFront content.

https://aws.amazon.com/lambda/features/

https://docs.aws.amazon.com/lambda/latest/dg/lambda-edge.html

like image 78
HammoTime Avatar answered Oct 05 '22 14:10

HammoTime


  • Lambda@Edge is Lambda functions in response to CloudFront events.
  • You still create lambda@edge function under Lambda, but Lambda@Edge function must be created in us-east-1.
  • You need configure lambda@edge to the cloundfront distribution behavior on viewer request or others.
like image 34
Jacob Avatar answered Oct 05 '22 13:10

Jacob