Use Cases

What can you build with Lambda@Edge and Amazon CloudFront? Learn more about the use cases below:

SIMPLIFY AND REDUCE ORIGIN INFRASTRUCTURE

You can use Lambda@Edge as an extension of or replacement for your origin. This enables you to do everything from simple HTTP request and response processing at the edge to more advanced functionality, such as website security, real-time image transformation, intelligent bot mitigation, search engine optimization, and more.

Website Security and Privacy

You can trigger a Lambda function to add HTTP security headers on all origin responses without having to modify your application code on your origin. This helps improve security and privacy for your users and content providers, while using CloudFront to deliver the content at low latencies.

Read the blog. >>

Website Security and Privacy

Dynamic Web Application at the Edge

By combining Lambda@Edge with other AWS services, developers can build powerful web applications at the edge that automatically scale up and down—with zero origin infrastructure and administrative effort required for automatic scaling, backups, or data center redundancy.

Dynamic Web Application at the Edge

Search Engine Optimization (SEO)

You can use Lambda@Edge to improve search engine optimization (SEO) for your website. For example, you can trigger a Lambda function to deliver a pre-rendered HTML page stored in Amazon S3 when the user-agent is a search engine bot such as Googlebot or Bingbot.

Read the blog. >>

SEO

Intelligently Route Across Origins and Data Centers

By using Lambda@Edge to dynamically route requests to different origins based on different viewer characteristics, you can balance the load on your origins, while improving the performance for your users. For example, you can route requests to origins within a home region, based on a viewer's location.

Read the blog. >>

AWS-Lambda-at-Edge_Intelligently-Route-Across-Origins-Data-Centers-diagram

Bot Mitigation at the Edge

Lambda@Edge can help you block unwanted bots at the edge, and let the authorized traffic go through. By intelligently mitigating these automated processes, you can help protect your origin infrastructure from unhelpful web crawlers and bots, while improving performance for real users.

Bot Mitigation at the Edge

IMPROVED USER EXPERIENCE

Lambda@Edge can help improve your users' experience with your websites and web applications across the world, by letting you personalize content for them without sacrificing performance.

Real-time Image Transformation

You can customize your users' experience by transforming images on the fly based on the user characteristics. For example, you can resize images based on the viewer's device type—mobile, desktop, or tablet. You can also cache the transformed images at CloudFront Edge locations to further improve performance when delivering images.

Read the blog. >>

Real-time Image Transformation

A/B Testing

You can test and serve different versions of your website to the users without re-directs or changing the browser URL. This allows you to seamlessly release updates to your website to improve your website's overall experience while continuing to deliver responsiveness for users.

A/B Testing

User Authentication and Authorization

You can use Lambda@Edge to help authenticate and authorize users for the premium pay-wall content on your website, filtering out unauthorized requests before they reach your origin infrastructure. For example, you can trigger a Lambda function to authorize each viewer request by calling authentication and user management service such as Amazon Cognito.

Read the blog. >>

User Authentication and Authorization

User Prioritization

Lambda@Edge can help you to control and prioritize access to your website by routing users to different pages and experiences. For example, you can trigger a Lambda function that runs code to prioritize premium and paid users on your e-commerce website as the traffic surges during shopping sales. You can also redirect other shoppers to a temporary “waiting room”— an alternate site with branding and marketing deals where they can wait for a turn to access your main retail site.

Read the blog. >>

User Prioritization

User Tracking and Analytics

By using Lambda@Edge and Kinesis together, you can process real-time streaming data so that you can track and analyze globally-distributed user activity on your website and mobile applications, including click stream analysis.

Read the blog. >>

User Tracking and Analytics
Lambda@Edge blogs
 
 
Read about new use cases, new features, and get tips in the AWS Networking and Content Delivery blog.
 
Lambda@Edge case studies
 
Find out from AWS customers how they are taking advantage of Amazon CloudFront and Lambda@Edge.
 
AWS forum 
 

Engage with other developers about Amazon CloudFront and Lambda@Edge in the discussion forum.

Lambda@Edge FAQs
 

Find answers to the most common questions.

Product-Page_Standard-Icons_01_Product-Features_SqInk
Check out the Lambda@Edge documentation

In our documentation, you can find more details about customizing content at the Edge with Amazon CloudFront and Lambda@Edge 

Learn more 
Product-Page_Standard-Icons_02_Sign-Up_SqInk
Sign up for an account

Instantly get access to the AWS Console. 

Sign up 
Product-Page_Standard-Icons_03_Start-Building_SqInk
Start building in the console

Get started building with Lambda@Edge in the AWS Console.

Get started