Member-only story
Improve Your Content Delivery Using AWS Lambda@Edge
Learn how to attach Lambda functionality to your CloudFront distribution
AWS Lambdas are one of the most known services in the Amazon cloud. With Lambda functions, you can create serverless API or you can react to specific events in your system as messages are pushed to queues or items are updated in the DynamoDB
table.
But there is one application of the Lambda functions that is less known. Moreover, this solution has its own name and is called the Lambda@Edge
. The 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.
In this article, I’m describing a few use cases where the Lambda@Edge
is useful. I will also show you how to create one Lambda@Edge
function. So, as usual, grab your cup of coffee, sit comfortably, and follow me along :).
To fully understand what the Lambda@Edge
can offer us, we have to step back and describe what it is the CloudFront.
“Amazon CloudFront is a web service that speeds up distribution of your static and dynamic web content, such as .html, .css, .js, and image files, to your users. CloudFront delivers your content through a worldwide network of data centers called edge locations…