Better Programming

Advice for programmers.

Follow publication

Member-only story

Improve Your Content Delivery Using AWS Lambda@Edge

Piotr Mol
Better Programming
Published in
7 min readJun 27, 2022

--

Photo by Safar Safarov on Unsplash

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…

--

--

Piotr Mol
Piotr Mol

Written by Piotr Mol

Web dev. Mobile dev. Father. | Writing: cloud computing, best practices, technology. | YouTube: https://www.youtube.com/channel/UCn_3Y3wBpImXX1_dllMF0eg

Write a response