SlideShare a Scribd company logo
1 of 23
Download to read offline
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S u p e r c h a r g e Y o u r W e b s i t e s w i t h t h e P o w e r o f
L a m b d a @ E d g e
Alien Invasion W h y w a i t ? G e t S t a r t e d h e r e
http://bi t.l y/2j s7k7o
C T D 4 0 3
N o v e m b e r 2 8 , 2 0 1 7
AWS re:Invent
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alien Invasion
Lambda@Edge Workshop
M a k i n g F r i e n d s w i t h t h e U n - c a n n y !
S h u b h a m K a t i y a r
A l e x a n d e r K o r o b e y n i k o v
M a n i g a n d a n R a d h a k r i s h n a n
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What to Expect from This Workshop
• Overview of global serverless computing with AWS Lambda@Edge
• Benefits of AWS Lambda@Edge
• Meet the aliens—challenges
• Time to build!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Global Serverless Computing
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Lambda: Why Serverless?
Build and run applications without managing servers
• No servers to manage
• Run at scale
• Respond quickly to events
• Only pay for compute time that you use
• Developer productivity
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon CloudFront: Global Content
Delivery
• Global, growing content delivery network—107 Points of Presence, in 55 major cities, across 25 countries
• High performance—speed up distribution of your static and dynamic web content to your users across the
world
• DDoS resiliency, scale, and cost effective
• Flexible and highly programmable, with AWS Lambda@Edge
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Locations: Where is Your Customer?
107 Points of
Presence
55 cities
24 countries
16 AWS Regions
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Global Serverless: Run Lambda Functions
Across AWS Locations
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Benefits of AWS Lambda@Edge
Continuous
scaling
No servers to
manage
Never pay for
idle Global
presence
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Programmable CloudFront; Lambda@Edge
User Agents Origin
Viewer
Response
Viewer
Request
Origin
Request
Origin
Response
CloudFront
Cache
2 3 4
678
51
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
What Can You Do With Lambda@Edge?
High performance
Extend your apps to
AWS locations globally
1
No servers to manage
Simpler origin
Serverless
3
Program your CDN
Deliver personalized
experiences
2
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Aliens Are Here!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Meet the Un-Canny
Aliens have arrived, and established their bases over
major metropolitan areas across Earth. After several
failed attempts of peace dialogue, we realized—we just
can’t communicate.
Humans and Aliens do not share a common language!
This is our last attempt, and world leaders are looking
up to you to deliver a social platform—high
performance, highly available, and Serverless—for
Humans and Aliens to communicate through—Alien
Cards!
Alien Cards (Kindergarten cards, but for Aliens) might
be the last chance for humanity… and it rests on your
shoulders!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alien Connect—the Serverless Stack
AWS
Lambda@Edge
Amazon
S3
Amazon
DynamoDB
Amazon
CloudFront
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alien Connect Architecture
User Agents
Viewer
Response
Viewer
Request
Origin
Request
Origin
Response
Amazon
CloudFront
Amazon
DynamoDB
Amazon S3
Amazon S3Amazon
DynamoDB
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Lab Challenges!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#1 Enhance Security:
Secure your Alien Cards
Objective: let's check and improve your website security by configuring HTTP to HTTPs redirect and adding a
number of standard security headers to enforce HTTPS connection is always used and prevent XSS.
1. Strict-Transport-Security
2. Content-Security-Policy
3. X-XSS-Protection
4. X-Content-Type-Options
5. X-Frame-Options
https://observatory.mozilla.org
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#2 Generate Content:
View your Alien Cards, and Homepage
Objective: in this lab, you will enhance the look and feel of your web-site by using Lambda@Edge function
that dynamically generates HTML content that can be cached by CloudFront and returned back to your
viewers
1. Alien Card Details 2. Home Page
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#3 Simple API:
Like Your Alien Cards
Objective: in this lab, you will make your website interactive, by building API for your users to like cards they
enjoy
POST /api/like?id=<card_id>
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#4 Pretty URL:
Share Your Alien Cards
Objective: Instead of having ugly longer https://d3rugkzdgfe4op.cloudfront.net/item/k9b430fc, share,
Short URL: https://d3rugkzdgfe4op.cloudfront.net/tree, or
Short URL: https://d3rugkzdgfe4op.cloudfront.net/cat
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
#5 Personalize Content: Across Devices
Objective: in this lab, you will learn how to create a Lambda@Edge function that personalizes the content for
mobile delivery
1. Desktop Device 1. Mobile Device
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Alien Invasion—Time to Build!
• B r e a k i n t o g r o u p s ( l e s s t h a n f i v e p e o p l e )
• L a u n c h C l o u d F o r m a t i o n s t a c k
• D e c i d e o n t h e c h a l l e n g e s y o u ’ l l b u i l d
• S h a r e / T w e e t a s y o u b u i l d —
# r e i n v e n t # e d g e l a m b d a # a l i e n i n v a s i o n
L a b G u i d e — h t t p : / / b i t . l y / 2 j s 7 k 7 o
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

More Related Content

What's hot

DEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSDEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSAmazon Web Services
 
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2Amazon Web Services
 
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017Amazon Web Services
 
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdfGAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdfAmazon Web Services
 
Launch Applications the Amazon Way - AWS Online Tech Talks
Launch Applications the Amazon Way - AWS Online Tech TalksLaunch Applications the Amazon Way - AWS Online Tech Talks
Launch Applications the Amazon Way - AWS Online Tech TalksAmazon Web Services
 
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfDEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfAmazon Web Services
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Amazon Web Services
 
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...Amazon Web Services
 
MBL306_Mobile State of the Union
MBL306_Mobile State of the UnionMBL306_Mobile State of the Union
MBL306_Mobile State of the UnionAmazon Web Services
 
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...Amazon Web Services
 
ARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleAmazon Web Services
 
MBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real WorldMBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real WorldAmazon Web Services
 
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...Amazon Web Services
 
CON208_Building Microservices on AWS
CON208_Building Microservices on AWSCON208_Building Microservices on AWS
CON208_Building Microservices on AWSAmazon Web Services
 
DEV326_DevOps Essentials An Introductory Workshop on CICD Practices
DEV326_DevOps Essentials An Introductory Workshop on CICD PracticesDEV326_DevOps Essentials An Introductory Workshop on CICD Practices
DEV326_DevOps Essentials An Introductory Workshop on CICD PracticesAmazon Web Services
 
SRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeSRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeAmazon Web Services
 
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...Amazon Web Services
 
SID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaSID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaAmazon Web Services
 
ARC331_How I Made My Motorbike Talk
ARC331_How I Made My Motorbike TalkARC331_How I Made My Motorbike Talk
ARC331_How I Made My Motorbike TalkAmazon Web Services
 

What's hot (20)

DEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWSDEV207_Deploying and Managing Ruby Applications on AWS
DEV207_Deploying and Managing Ruby Applications on AWS
 
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
CMP314_Bringing Deep Learning to the Cloud with Amazon EC2
 
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
NEW LAUNCH! Deep dive on Amazon Neptune - DAT318 - re:Invent 2017
 
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdfGAM309-Breathe Life into a Mobile Game_NoNotes.pdf
GAM309-Breathe Life into a Mobile Game_NoNotes.pdf
 
Launch Applications the Amazon Way - AWS Online Tech Talks
Launch Applications the Amazon Way - AWS Online Tech TalksLaunch Applications the Amazon Way - AWS Online Tech Talks
Launch Applications the Amazon Way - AWS Online Tech Talks
 
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdfDEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
DEV305_Manage Your Applications with AWS Elastic Beanstalk.pdf
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
 
ALX328_Smart Devices Everywhere
ALX328_Smart Devices EverywhereALX328_Smart Devices Everywhere
ALX328_Smart Devices Everywhere
 
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
CMP319_Easily Coordinate Microservices, Build Serverless Apps, and Automate T...
 
MBL306_Mobile State of the Union
MBL306_Mobile State of the UnionMBL306_Mobile State of the Union
MBL306_Mobile State of the Union
 
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
ATC303-Cache Me If You Can Minimizing Latency While Optimizing Cost Through A...
 
ARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at ScaleARC325_Managing Multiple AWS Accounts at Scale
ARC325_Managing Multiple AWS Accounts at Scale
 
MBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real WorldMBL201_Progressive Web Apps in the Real World
MBL201_Progressive Web Apps in the Real World
 
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
DEV325_Application Deployment Techniques for Amazon EC2 Workloads with AWS Co...
 
CON208_Building Microservices on AWS
CON208_Building Microservices on AWSCON208_Building Microservices on AWS
CON208_Building Microservices on AWS
 
DEV326_DevOps Essentials An Introductory Workshop on CICD Practices
DEV326_DevOps Essentials An Introductory Workshop on CICD PracticesDEV326_DevOps Essentials An Introductory Workshop on CICD Practices
DEV326_DevOps Essentials An Introductory Workshop on CICD Practices
 
SRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the EdgeSRV312_Taking Serverless to the Edge
SRV312_Taking Serverless to the Edge
 
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...Podcasting on AWS – A Discussion on Everything from Production to Distributio...
Podcasting on AWS – A Discussion on Everything from Production to Distributio...
 
SID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and AlexaSID302_Force Multiply Your Security Team with Automation and Alexa
SID302_Force Multiply Your Security Team with Automation and Alexa
 
ARC331_How I Made My Motorbike Talk
ARC331_How I Made My Motorbike TalkARC331_How I Made My Motorbike Talk
ARC331_How I Made My Motorbike Talk
 

Similar to Supercharge Websites with Lambda@Edge - Build an Alien Communication Platform

NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017
NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017
NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017Amazon Web Services
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Amazon Web Services
 
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...Amazon Web Services
 
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018Amazon Web Services
 
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...Amazon Web Services
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...Amazon Web Services
 
Journey Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersJourney Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersAdrian Hornsby
 
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...Amazon Web Services
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017Amazon Web Services
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Amazon Web Services
 
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon Web Services
 
How serverless helps startups innovate and scale
How serverless helps startups innovate and scaleHow serverless helps startups innovate and scale
How serverless helps startups innovate and scaleGabe Hollombe
 
Serverless: State of The Union I AWS Dev Day 2018
Serverless: State of The Union I AWS Dev Day 2018Serverless: State of The Union I AWS Dev Day 2018
Serverless: State of The Union I AWS Dev Day 2018AWS Germany
 
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017Amazon Web Services
 
Devoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSDevoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSAdrian Hornsby
 
Innovations fueled by IoT and the Cloud
Innovations fueled by IoT and the CloudInnovations fueled by IoT and the Cloud
Innovations fueled by IoT and the CloudAdrian Hornsby
 
AWS Edge Media Services
AWS Edge Media ServicesAWS Edge Media Services
AWS Edge Media ServicesM5sime
 
Case Study: The internals of Amazon.com's architecture that allows it to secu...
Case Study: The internals of Amazon.com's architecture that allows it to secu...Case Study: The internals of Amazon.com's architecture that allows it to secu...
Case Study: The internals of Amazon.com's architecture that allows it to secu...Amazon Web Services
 
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017Amazon Web Services
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemAmazon Web Services
 

Similar to Supercharge Websites with Lambda@Edge - Build an Alien Communication Platform (20)

NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017
NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017
NEW LAUNCH! Introduction to Amazon GuardDuty - SID218 - re:Invent 2017
 
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
Building Serverless Websites with Lambda@Edge - CTD309 - re:Invent 2017
 
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
Bringing the Superpower of Bots to Your Company with a Serverless Bot Solutio...
 
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
Customizing Content Delivery with Lambda@Edge (CTD415-R1) - AWS re:Invent 2018
 
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
NEW LAUNCH! AWS PrivateLink: Bringing SaaS Solutions into Your VPCs and Your ...
 
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
ARC306_High Resiliency & Availability Of Online Entertainment Communities Usi...
 
Journey Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million UsersJourney Towards Scaling Your API to 10 Million Users
Journey Towards Scaling Your API to 10 Million Users
 
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
SRV331_Build a Multi-Region Serverless Application for Resilience and High Av...
 
What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017What's New in Serverless - SRV305 - re:Invent 2017
What's New in Serverless - SRV305 - re:Invent 2017
 
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...Building .NET-based Serverless Architectures and Running .NET Core Microservi...
Building .NET-based Serverless Architectures and Running .NET Core Microservi...
 
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
Amazon GuardDuty: Intelligent Threat Detection and Continuous Monitoring to P...
 
How serverless helps startups innovate and scale
How serverless helps startups innovate and scaleHow serverless helps startups innovate and scale
How serverless helps startups innovate and scale
 
Serverless: State of The Union I AWS Dev Day 2018
Serverless: State of The Union I AWS Dev Day 2018Serverless: State of The Union I AWS Dev Day 2018
Serverless: State of The Union I AWS Dev Day 2018
 
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
Compute at the Edge with AWS Greengrass - IOT309 - re:Invent 2017
 
Devoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWSDevoxx: Building AI-powered applications on AWS
Devoxx: Building AI-powered applications on AWS
 
Innovations fueled by IoT and the Cloud
Innovations fueled by IoT and the CloudInnovations fueled by IoT and the Cloud
Innovations fueled by IoT and the Cloud
 
AWS Edge Media Services
AWS Edge Media ServicesAWS Edge Media Services
AWS Edge Media Services
 
Case Study: The internals of Amazon.com's architecture that allows it to secu...
Case Study: The internals of Amazon.com's architecture that allows it to secu...Case Study: The internals of Amazon.com's architecture that allows it to secu...
Case Study: The internals of Amazon.com's architecture that allows it to secu...
 
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017
Testing and Troubleshooting with AWS Device Farm - MBL301 - re:Invent 2017
 
Use Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition SystemUse Amazon Rekognition to Build a Facial Recognition System
Use Amazon Rekognition to Build a Facial Recognition System
 

More from Amazon Web Services

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...Amazon Web Services
 
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...Amazon Web Services
 
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 FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
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 Amazon Web Services
 
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...Amazon Web Services
 
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...Amazon Web Services
 
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 WorkloadsAmazon Web Services
 
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 sfatareAmazon Web Services
 
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 NodeJSAmazon Web Services
 
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 webAmazon Web Services
 
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 sfatareAmazon 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 AWSAmazon 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 DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon 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
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon 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
 

Supercharge Websites with Lambda@Edge - Build an Alien Communication Platform

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. S u p e r c h a r g e Y o u r W e b s i t e s w i t h t h e P o w e r o f L a m b d a @ E d g e Alien Invasion W h y w a i t ? G e t S t a r t e d h e r e http://bi t.l y/2j s7k7o C T D 4 0 3 N o v e m b e r 2 8 , 2 0 1 7 AWS re:Invent
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alien Invasion Lambda@Edge Workshop M a k i n g F r i e n d s w i t h t h e U n - c a n n y ! S h u b h a m K a t i y a r A l e x a n d e r K o r o b e y n i k o v M a n i g a n d a n R a d h a k r i s h n a n
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What to Expect from This Workshop • Overview of global serverless computing with AWS Lambda@Edge • Benefits of AWS Lambda@Edge • Meet the aliens—challenges • Time to build!
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Global Serverless Computing
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Lambda: Why Serverless? Build and run applications without managing servers • No servers to manage • Run at scale • Respond quickly to events • Only pay for compute time that you use • Developer productivity
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon CloudFront: Global Content Delivery • Global, growing content delivery network—107 Points of Presence, in 55 major cities, across 25 countries • High performance—speed up distribution of your static and dynamic web content to your users across the world • DDoS resiliency, scale, and cost effective • Flexible and highly programmable, with AWS Lambda@Edge
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Locations: Where is Your Customer? 107 Points of Presence 55 cities 24 countries 16 AWS Regions
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Global Serverless: Run Lambda Functions Across AWS Locations
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Benefits of AWS Lambda@Edge Continuous scaling No servers to manage Never pay for idle Global presence
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Programmable CloudFront; Lambda@Edge User Agents Origin Viewer Response Viewer Request Origin Request Origin Response CloudFront Cache 2 3 4 678 51
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. What Can You Do With Lambda@Edge? High performance Extend your apps to AWS locations globally 1 No servers to manage Simpler origin Serverless 3 Program your CDN Deliver personalized experiences 2
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Aliens Are Here!
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Meet the Un-Canny Aliens have arrived, and established their bases over major metropolitan areas across Earth. After several failed attempts of peace dialogue, we realized—we just can’t communicate. Humans and Aliens do not share a common language! This is our last attempt, and world leaders are looking up to you to deliver a social platform—high performance, highly available, and Serverless—for Humans and Aliens to communicate through—Alien Cards! Alien Cards (Kindergarten cards, but for Aliens) might be the last chance for humanity… and it rests on your shoulders!
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alien Connect—the Serverless Stack AWS Lambda@Edge Amazon S3 Amazon DynamoDB Amazon CloudFront
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alien Connect Architecture User Agents Viewer Response Viewer Request Origin Request Origin Response Amazon CloudFront Amazon DynamoDB Amazon S3 Amazon S3Amazon DynamoDB
  • 16. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Lab Challenges!
  • 17. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #1 Enhance Security: Secure your Alien Cards Objective: let's check and improve your website security by configuring HTTP to HTTPs redirect and adding a number of standard security headers to enforce HTTPS connection is always used and prevent XSS. 1. Strict-Transport-Security 2. Content-Security-Policy 3. X-XSS-Protection 4. X-Content-Type-Options 5. X-Frame-Options https://observatory.mozilla.org
  • 18. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #2 Generate Content: View your Alien Cards, and Homepage Objective: in this lab, you will enhance the look and feel of your web-site by using Lambda@Edge function that dynamically generates HTML content that can be cached by CloudFront and returned back to your viewers 1. Alien Card Details 2. Home Page
  • 19. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #3 Simple API: Like Your Alien Cards Objective: in this lab, you will make your website interactive, by building API for your users to like cards they enjoy POST /api/like?id=<card_id>
  • 20. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #4 Pretty URL: Share Your Alien Cards Objective: Instead of having ugly longer https://d3rugkzdgfe4op.cloudfront.net/item/k9b430fc, share, Short URL: https://d3rugkzdgfe4op.cloudfront.net/tree, or Short URL: https://d3rugkzdgfe4op.cloudfront.net/cat
  • 21. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. #5 Personalize Content: Across Devices Objective: in this lab, you will learn how to create a Lambda@Edge function that personalizes the content for mobile delivery 1. Desktop Device 1. Mobile Device
  • 22. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Alien Invasion—Time to Build! • B r e a k i n t o g r o u p s ( l e s s t h a n f i v e p e o p l e ) • L a u n c h C l o u d F o r m a t i o n s t a c k • D e c i d e o n t h e c h a l l e n g e s y o u ’ l l b u i l d • S h a r e / T w e e t a s y o u b u i l d — # r e i n v e n t # e d g e l a m b d a # a l i e n i n v a s i o n L a b G u i d e — h t t p : / / b i t . l y / 2 j s 7 k 7 o
  • 23. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!