SlideShare a Scribd company logo
1 of 31
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
@ric__harvey
rjh@amazon.com
Amazon CloudFront +
Lambda@Edge
Ric Harvey, Technical Developer Evangelist
Content Delivery Network
§ Accelerate static and dynamic
§ Protect origin servers from load
§ Global Infrastructure
§ Highly Secure
§ Massively Scalable
§ Self Service
§ Priced to Minimize Cost
CloudFront: Global Content Delivery Network
Amazon CloudFront Global Content Delivery Network
113 PoPs (102 Edge Locations + 11 Regional Edge Caches)
Edge Locations
Multiple Edge Locations
Regional Caches
Customers across many industries
Social Media, Digital
Advertising, EdTech,
Finance
Enterprise
E-commerce
Media &
Entertainment
Gaming
Why are CDN’s important?
Bring your own……
Amazon Route 53 allows you to bring your own alias’s to
a Cloudfront distribution
AWS Certificate Manager (ACM) makes it easy to
provision, manage, deploy, and renew SSL/TLS
certificates on the AWS platform.
Bring your own……
Serverless
No servers to provision
or manage
Scales with usage
Never pay for idle Built-in availability
and fault tolerance
Serverless means …
How it works
Event source Services (anything)
Changes in data
state
Requests to
endpoints
Changes in
resource state
Function
…but what if you could run your Lambda functions
at multiple locations closer to the viewer?
Amazon CloudFrontAWS Lambda Lambda@Edge
Lambda@Edge
Globally
distributed
Scales with usage Never pay for idle Built-in availability
and fault tolerance
Bring your own code to the edge to improve user experience
Lambda@Edge
No servers to provision
or manage
Write once, run Lambda functions globally
N Virginia
AWS Location
AWS Location
AWS Location
AWS Location
AWS Location
AWS Location
Lambda@Edge
Origin
AWS Location
AWS Location
AWS Location
AWS Location
AWS Location
AWS Location
Compute
Storage
Database
Lambda@Edge
Content-based routing
to any origin
Response generation
• Generate custom responses at the
edge
• Read and write access to headers,
query string, and cookies
Network calls
• Origin events
• Viewer events
Lambda vs Lambda@Edge
Lambda Lambda@Edge
Languages Node.js, Python, C#, Java Node.js
Memory 128->1536MB 128MB
Execution time <300 seconds <3 seconds (Origin-facing)
<1 seconds (Viewer-facing)
Deployment size <50MB <1MB
Request pricing First 1 million free
$0.20 per 1 million
$0.60 per 1 million
Duration
granularity
100ms 50ms
128MB for 100ms $0.000000208 $0.000000625
Use cases
Usecases – Response generation
Multiple origins
Personalisation (e.g. ‘Ric’s Account’ in the top-left)
Results of multiple API calls
Content-type transformation (e.g. XML->JSON)
Usecases – HTTP Redirects
Cool URIs don’t change (…though they may redirect)
Redirect to latest version
Redirect example.com -> www.example.com
Usecases – URL Rewriting
Semantic (pretty) URLs
/foo-cms/view/42.asp -> /articles/42
Adaptive content
Client capabilities – Accept-Type header, screen size
Image cropping/resizing
Usecases – Security Best Practices
Add security response headers:
• Strict-Transport-Security
• Content-Security-Policy
• X-Content-Type-Options
• X-Frame-Options
• X-XSS-Protection
• Referrer-Policy
• Public-Key-Pins
Remove informational response headers:
• Server
• Powered-By
Usecases –Authorization
Bot handling – using CAPTCHA
Non-standard authorization (not HTTP Basic/Digest/etc)
Origin doesn’t implement authorization
Pay-per-view / Paywall application
Usecases – A/B Testing
Test your theory on a proportion of users
Measure valuable metric (social likes/shares, engagement,
purchases, etc)
Implement findings
Usecases: Origin request, Origin selection
id user
1 alex
2 bob
3 joe
4 jane
User database
200 OK
Application
User Agent
POST /login
user=jane&pass=***
home-region
na
eu
ap
eu
Set-Cookie: home-region=eu
User Agent CloudFront distribution
www.example.com
North America
origin
User DB
Cache Behavior
/login
North America
app DB
hom
e-region=na ?
Europe origin Europe app DB
home-region=eu ?
APAC origin APAC app DB
home-region=ap ?
Cache Behavior
/app
Origin Request
Event
Set-Cookie
Usecases: Origin request, Origin selection
Summary
CloudFront
CDN’s are good!
• They protect origins from load
• Accelerate static and dynamic content (websites, APIs)
• Scalable and Global
• Cache content closer to the user
• Support HTTP/2 and IPv6
Summary Lambda@Edge
Features:
Header manipulation
URL rewrites
Response generation
Benefits:
Bring your own code
Familiar programming model
Write once, run everywhere
Ric Harvey, Technical Developer Evangelist
@ric__harvey
rjh@amazon.com

More Related Content

What's hot

Scaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
Amazon Web Services
 
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 201830분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
Amazon Web Services Korea
 

What's hot (20)

Serverless architecture
Serverless architectureServerless architecture
Serverless architecture
 
ABCs of AWS: S3
ABCs of AWS: S3ABCs of AWS: S3
ABCs of AWS: S3
 
AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3) AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3)
 
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
개발자가 알아야 할 Amazon DynamoDB 활용법 :: 김일호 :: AWS Summit Seoul 2016
 
Scaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million UsersScaling on AWS for the First 10 Million Users
Scaling on AWS for the First 10 Million Users
 
Introduction to AWS Storage Services
Introduction to AWS Storage ServicesIntroduction to AWS Storage Services
Introduction to AWS Storage Services
 
Azure storage
Azure storageAzure storage
Azure storage
 
Introduction to Amazon S3
Introduction to Amazon S3Introduction to Amazon S3
Introduction to Amazon S3
 
AWS-S3.pptx
AWS-S3.pptxAWS-S3.pptx
AWS-S3.pptx
 
온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020
온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020
온라인 주문 서비스를 서버리스 아키텍쳐로 구축하기 - 김태우(Classmethod) :: AWS Community Day Online 2020
 
AWS Storage Options
AWS Storage OptionsAWS Storage Options
AWS Storage Options
 
Deep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS PerformanceDeep Dive: Maximizing EC2 and EBS Performance
Deep Dive: Maximizing EC2 and EBS Performance
 
[AWS Builders] Effective AWS Glue
[AWS Builders] Effective AWS Glue[AWS Builders] Effective AWS Glue
[AWS Builders] Effective AWS Glue
 
Getting Started with AWS Compute Services
Getting Started with AWS Compute ServicesGetting Started with AWS Compute Services
Getting Started with AWS Compute Services
 
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 201830분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
30분만에 만드는 AWS 기반 빅데이터 분석 애플리케이션::안효빈::AWS Summit Seoul 2018
 
AWS vs Azure vs Google Cloud Storage Deep Dive
AWS vs Azure vs Google Cloud Storage Deep DiveAWS vs Azure vs Google Cloud Storage Deep Dive
AWS vs Azure vs Google Cloud Storage Deep Dive
 
AWS Storage Services - AWS Presentation - AWS Cloud Storage for the Enterpris...
AWS Storage Services - AWS Presentation - AWS Cloud Storage for the Enterpris...AWS Storage Services - AWS Presentation - AWS Cloud Storage for the Enterpris...
AWS Storage Services - AWS Presentation - AWS Cloud Storage for the Enterpris...
 
Messaging in the AWS Cloud
Messaging in the AWS CloudMessaging in the AWS Cloud
Messaging in the AWS Cloud
 
AWS S3 and GLACIER
AWS S3 and GLACIERAWS S3 and GLACIER
AWS S3 and GLACIER
 
Deep Dive on Amazon S3
Deep Dive on Amazon S3Deep Dive on Amazon S3
Deep Dive on Amazon S3
 

Similar to Amazon CloudFront and Lambda@Edge

OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud servicesOpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
Alkacon Software GmbH & Co. KG
 

Similar to Amazon CloudFront and Lambda@Edge (20)

AWS Lambda@Edge Lightning Demos
AWS Lambda@Edge Lightning Demos AWS Lambda@Edge Lightning Demos
AWS Lambda@Edge Lightning Demos
 
게임을 위한 Cloud Native on AWS (김일호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
게임을 위한 Cloud Native on AWS (김일호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018게임을 위한 Cloud Native on AWS (김일호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
게임을 위한 Cloud Native on AWS (김일호 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
 
Overview of AWS by Andy Jassy - SVP, AWS
Overview of AWS by Andy Jassy - SVP, AWSOverview of AWS by Andy Jassy - SVP, AWS
Overview of AWS by Andy Jassy - SVP, AWS
 
Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...
Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...
Forge - DevCon 2016: Developing & Deploying Secure, Scalable Applications on ...
 
Cloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for PartnersCloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for Partners
 
Cloud Migration, Application Modernization, and Security
Cloud Migration, Application Modernization, and Security Cloud Migration, Application Modernization, and Security
Cloud Migration, Application Modernization, and Security
 
Cloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for PartnersCloud Migration, Application Modernization and Security for Partners
Cloud Migration, Application Modernization and Security for Partners
 
AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?AWS Webcast - What is Cloud Computing?
AWS Webcast - What is Cloud Computing?
 
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud servicesOpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
 
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioniContent Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
Content Delivery: accelerare in modo sicuro e flessibile siti web e applicazioni
 
Securing Media Content and Applications in the Cloud (MED401) | AWS re:Invent...
Securing Media Content and Applications in the Cloud (MED401) | AWS re:Invent...Securing Media Content and Applications in the Cloud (MED401) | AWS re:Invent...
Securing Media Content and Applications in the Cloud (MED401) | AWS re:Invent...
 
Build A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million UsersBuild A Website on AWS for Your First 10 Million Users
Build A Website on AWS for Your First 10 Million Users
 
Escalando para sus primeros 10 millones de usuarios
Escalando para sus primeros 10 millones de usuariosEscalando para sus primeros 10 millones de usuarios
Escalando para sus primeros 10 millones de usuarios
 
Digital Workloads on AWS
Digital Workloads on AWSDigital Workloads on AWS
Digital Workloads on AWS
 
AWS Summit Sydney 2014 | Running your First Application on AWS
AWS Summit Sydney 2014 | Running your First Application on AWSAWS Summit Sydney 2014 | Running your First Application on AWS
AWS Summit Sydney 2014 | Running your First Application on AWS
 
Escalando para sus primeros 10 millones de usuarios
Escalando para sus primeros 10 millones de usuariosEscalando para sus primeros 10 millones de usuarios
Escalando para sus primeros 10 millones de usuarios
 
Scalable Media Workflows in the Cloud
Scalable Media Workflows in the CloudScalable Media Workflows in the Cloud
Scalable Media Workflows in the Cloud
 
AWS Startup Day Bangalore: Being Well-Architected in the Cloud
AWS Startup Day Bangalore: Being Well-Architected in the CloudAWS Startup Day Bangalore: Being Well-Architected in the Cloud
AWS Startup Day Bangalore: Being Well-Architected in the Cloud
 
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
Scaling on AWS for the First 10 Million Users (ARC206) | AWS re:Invent 2013
 
Building scalable OTT workflows on AWS - Serverless Video Workflows
Building scalable OTT workflows on AWS - Serverless Video WorkflowsBuilding scalable OTT workflows on AWS - Serverless Video Workflows
Building scalable OTT workflows on AWS - Serverless Video Workflows
 

More from Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

Amazon CloudFront and Lambda@Edge

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. @ric__harvey rjh@amazon.com Amazon CloudFront + Lambda@Edge Ric Harvey, Technical Developer Evangelist
  • 3. § Accelerate static and dynamic § Protect origin servers from load § Global Infrastructure § Highly Secure § Massively Scalable § Self Service § Priced to Minimize Cost CloudFront: Global Content Delivery Network
  • 4. Amazon CloudFront Global Content Delivery Network 113 PoPs (102 Edge Locations + 11 Regional Edge Caches) Edge Locations Multiple Edge Locations Regional Caches
  • 5. Customers across many industries Social Media, Digital Advertising, EdTech, Finance Enterprise E-commerce Media & Entertainment Gaming
  • 6. Why are CDN’s important?
  • 7. Bring your own…… Amazon Route 53 allows you to bring your own alias’s to a Cloudfront distribution
  • 8. AWS Certificate Manager (ACM) makes it easy to provision, manage, deploy, and renew SSL/TLS certificates on the AWS platform. Bring your own……
  • 10. No servers to provision or manage Scales with usage Never pay for idle Built-in availability and fault tolerance Serverless means …
  • 11. How it works Event source Services (anything) Changes in data state Requests to endpoints Changes in resource state Function
  • 12. …but what if you could run your Lambda functions at multiple locations closer to the viewer?
  • 13. Amazon CloudFrontAWS Lambda Lambda@Edge Lambda@Edge
  • 14. Globally distributed Scales with usage Never pay for idle Built-in availability and fault tolerance Bring your own code to the edge to improve user experience Lambda@Edge No servers to provision or manage
  • 15. Write once, run Lambda functions globally N Virginia AWS Location AWS Location AWS Location AWS Location AWS Location AWS Location
  • 16. Lambda@Edge Origin AWS Location AWS Location AWS Location AWS Location AWS Location AWS Location Compute Storage Database
  • 17. Lambda@Edge Content-based routing to any origin Response generation • Generate custom responses at the edge • Read and write access to headers, query string, and cookies Network calls • Origin events • Viewer events
  • 18. Lambda vs Lambda@Edge Lambda Lambda@Edge Languages Node.js, Python, C#, Java Node.js Memory 128->1536MB 128MB Execution time <300 seconds <3 seconds (Origin-facing) <1 seconds (Viewer-facing) Deployment size <50MB <1MB Request pricing First 1 million free $0.20 per 1 million $0.60 per 1 million Duration granularity 100ms 50ms 128MB for 100ms $0.000000208 $0.000000625
  • 20. Usecases – Response generation Multiple origins Personalisation (e.g. ‘Ric’s Account’ in the top-left) Results of multiple API calls Content-type transformation (e.g. XML->JSON)
  • 21. Usecases – HTTP Redirects Cool URIs don’t change (…though they may redirect) Redirect to latest version Redirect example.com -> www.example.com
  • 22. Usecases – URL Rewriting Semantic (pretty) URLs /foo-cms/view/42.asp -> /articles/42 Adaptive content Client capabilities – Accept-Type header, screen size Image cropping/resizing
  • 23. Usecases – Security Best Practices Add security response headers: • Strict-Transport-Security • Content-Security-Policy • X-Content-Type-Options • X-Frame-Options • X-XSS-Protection • Referrer-Policy • Public-Key-Pins Remove informational response headers: • Server • Powered-By
  • 24. Usecases –Authorization Bot handling – using CAPTCHA Non-standard authorization (not HTTP Basic/Digest/etc) Origin doesn’t implement authorization Pay-per-view / Paywall application
  • 25. Usecases – A/B Testing Test your theory on a proportion of users Measure valuable metric (social likes/shares, engagement, purchases, etc) Implement findings
  • 26. Usecases: Origin request, Origin selection id user 1 alex 2 bob 3 joe 4 jane User database 200 OK Application User Agent POST /login user=jane&pass=*** home-region na eu ap eu Set-Cookie: home-region=eu
  • 27. User Agent CloudFront distribution www.example.com North America origin User DB Cache Behavior /login North America app DB hom e-region=na ? Europe origin Europe app DB home-region=eu ? APAC origin APAC app DB home-region=ap ? Cache Behavior /app Origin Request Event Set-Cookie Usecases: Origin request, Origin selection
  • 29. CloudFront CDN’s are good! • They protect origins from load • Accelerate static and dynamic content (websites, APIs) • Scalable and Global • Cache content closer to the user • Support HTTP/2 and IPv6
  • 30. Summary Lambda@Edge Features: Header manipulation URL rewrites Response generation Benefits: Bring your own code Familiar programming model Write once, run everywhere
  • 31. Ric Harvey, Technical Developer Evangelist @ric__harvey rjh@amazon.com