Introduction
In this article, we will take a look into the differences between AWS Lambda and Lambda@Edge.
What is AWS Lambda?
AWS Lambda is a serverless, event-driven compute service that lets you run code for virtually any type of application or backend service without provisioning or managing servers. You can trigger Lambda from over 200 AWS services and software as a service (SaaS) applications and only pay for what you use.
What is Lambda@Edge?
Lambda@Edge is a feature of Amazon CloudFront that lets you run code closer to users of your application, which improves performance and reduces latency. With Lambda@Edge, you don't have to provision or manage infrastructure in multiple locations around the world. You pay only for the compute time you consume - there is no charge when your code is not running.
Comparison of AWS Lambda And Lambda@Edge
Conclusion
Lambda@Edge is run code closer to users of your application through CloudFront globally, which improves performance and reduces latency compared to running standalone regional lambda functions.
Sources
- https://aws.amazon.com/lambda/
- https://aws.amazon.com/lambda/edge/
- https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/edge-functions-restrictions.html