SlideShare uma empresa Scribd logo
1 de 50
Baixar para ler offline
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
A Few Milliseconds in the Life of an
HTTP Request
Jorge Vasquez
Software Engineer
Amazon CloudFront
C T D 4 1 6
Hongmin Liu
Software Engineer
Amazon CloudFront
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Ø Overview
Ø DNS lookup
Ø TCP/TLS
Ø Request flow inside Amazon CloudFront
Ø CloudFront Layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon CloudFront?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lake Crescent, Olympic Peninsula, WA
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
d1886tp5fhflpy.cloudfront.net?
CloudFront DNS
CloudFront POP
Http request lifecycle
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Request lifecycle
DNS
TCP/TLS
Request flow
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS lookup
Resolver
POP
Performance
Server Capacity
POP Health
Network Capacity
DNS
• AWS re:Invent 2017: Measuring the Internet in Real Time
(CTD406 https://www.youtube.com/watch?v=54kPAADonqA)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS
TCP/TLS
Request flow
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
TCP connection
2 RTT
1 RTT
TCP/TLS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
TLS security
• Security
• Secrecy
• Identity
• Non-replayability
TCP/TLS
• CloudFront
• On top of security issues
• Best practices
• Compliance
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
TLS performance
2 RTT
Server
1 RTT
Server
TCP/TLS
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS
TCP/TLS
Request flow
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
POP architecture Request flow
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
POP architecture Request flow
→ Infrequent → Dynamic → Dynamic & frequent
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Regional Edge Caches architecture Request flow
→ Dynamic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS
TCP/TLS
Request flow
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
→ Dynamic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security - Content protection
• Signed URLs
• Field-Level Encryption(FLE)
• AWS WAF
• Lambda@Edge
Signed URLS FLE WAF Lambda@Edge
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security - Content protection
Signed URLs FLE AWS WAF Lambda@edge
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Signed URLs
403
x
Signature
Signature
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Signed URL Policy Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Signed URLs
Example signed URL for a web distribution:
http://d111111abcdef8.cloudfront.net/image.jpg ? color=red&size=medium
&Policy=eyANCiAgICEXAMPLEW1lbnQiOiBbeyANCiAgICAgICJSZXNvdXJjZSI6Imh0dHA
6Ly9kemJlc3FtN3VuMW0wLmNsb3VkZnJvbnQubmV0L2RlbW8ucGhwIiwgDQogICAgI
CAiQ 29uZGl0aW9uIjp7IA0KICAgICAgICAgIklwQWRkcmVzcyI6eyJBV1M6U291cmNlSXAiOiI
yMDcuMTcxLjE4MC4xMDEvMzIifSwNCiAgICAgICAgICJEYXRlR3JlYXRlclRoYW4iOnsi
Q VdTOkVwb2NoVGltZSI6MTI5Njg2MDE3Nn0sDQogICAgICAgICAiRGF0ZUxlc3NUaGFuIjp
7IkFXUzpFcG9jaFRpbWUiOjEyOTY4NjAyMjZ9DQogICAgICB9IA0KICAgfV0gDQp9DQo
&Signature=nitfHRCrtziwO2HwPfWw~yYDhUF5EwRunQA-j19DzZrvDh6hQ73lDx~ -
ar3UocvvRQVw6EkC~GdpGQyyOSKQim-TxAnW7d8F5Kkai9HVx0FIu-5jcQb0UEmat EXAMPLE3Re
XySpLSMj0yCd3ZAB4UcBCAqEijkytL6f3fVYNGQI6&Key-Pair-Id=APKA9ONS7QCOWEXAMPLE
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security - Content protection
Signed URLs FLE AWS WAF Lambda@edge
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
FLE (Field-Level Encryption)
TLS
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Intercept sensitive fields at the edge
POST / HTTP/1.1
Host: origin.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 56
UserId=1234&CreditCardNum=<encrypted>ejYx52fx...</encrypted>
POST / HTTP/1.1
Host: www.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 32
UserId=1234&CreditCardNum=12345678
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Signed URLs FLE AWS WAF Lambda@edge
Security - Content protection Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS WAF (Web Application Firewall)
x
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security - Content protection
Signed URLs FLE AWS WAF Lambda@Edge
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge
Session-Id
valid?
Signed-In Users
Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda@Edge Layer 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS
TCP/TLS
Architecture
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance - Collapse Forwarding
Live Content Caching
POP REC Origin
POP
Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance - Collapse Forwarding
Collapse
Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Performance - Collapse Forwarding
Live Content Caching
POP REC Origin
POP
Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability - When things go wrong… Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability - When things go wrong…
Configuring Custom Error Pages
• CloudFront returns and caches the
custom error page
• Error caching minimum TTL (five
minutes by default)
• Allows changing HTTP status code
Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability - When things go wrong…
Origin Failover
Cache layers
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DNS
TCP/TLS
Architecture
Layer 1
Cache layers
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
→ Dynamic
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Origin Facing Optimizations
• Regional Edge Cache (REC)
• Compression
• Lambda@Edge
• Persistent Connections
Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Persistent connections Layer 3
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Finish Line
HTTP Request
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Additional Resources
• AWS re:Invent 2017: Measuring the Internet in Real Time
(CTD406 https://www.youtube.com/watch?v=54kPAADonqA)
• Serving Private Content with Signed URLs and Signed Cookies
(https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer
Guide/PrivateContent.html)
• Using Field-Level Encryption to Help Protect Sensitive Data
(https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer
Guide/field-level-encryption.html)
• How CloudFront Processes and Caches HTTP 4xx and 5xx Status
Codes from Your Origin
(https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer
Guide/HTTPStatusCodes.html)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Related breakouts
Thursday, Nov 29
SEC402-R1 - [REPEAT 1] AWS, I Choose You: Pokemon's Battle against the Bots
3:15 PM - 4:15 PM | Venetian, Level 4, Marcello 4505
Thursday, Nov 29
CTD415-R1 - [REPEAT 1] Rendering Websites at the Edge with AWS Lambda@Edge
2:30 PM - 4:45 PM | Bellagio, Level 1, Grand Ballroom 6
Wednesday, Nov 28
CTD416 – Meet & Greet
1:30 – 2:00 PM | Aria East, Level 1, Willow Lounge
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Jorge Vasquez
jorgevas@amazon.com
Hongmin Liu
hongmliu@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Mais conteúdo relacionado

Mais procurados

Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018
Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018
Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018Amazon Web Services
 
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...Amazon Web Services
 
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...Amazon Web Services
 
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018Amazon Web Services
 
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...Amazon Web Services
 
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Amazon Web Services
 
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...Amazon Web Services
 
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...Amazon Web Services
 
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018Amazon Web Services
 
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...Amazon Web Services
 
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...Amazon Web Services
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Amazon Web Services
 
AWS 良好架構服務概述 (Level: 200)
AWS 良好架構服務概述 (Level: 200)AWS 良好架構服務概述 (Level: 200)
AWS 良好架構服務概述 (Level: 200)Amazon Web Services
 
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018Amazon Web Services
 
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)Amazon Web Services
 
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Amazon Web Services
 
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...Amazon Web Services
 
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...Amazon Web Services
 
Amazon GuardDuty Threat Detection and Remediation
Amazon GuardDuty Threat Detection and RemediationAmazon GuardDuty Threat Detection and Remediation
Amazon GuardDuty Threat Detection and RemediationAmazon Web Services
 
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Amazon Web Services
 

Mais procurados (20)

Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018
Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018
Under the Hood of Amazon Route 53 (ARC408-R1) - AWS re:Invent 2018
 
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...
Visualize and Monitor Live OTT Media Services on AWS (CTD402) - AWS re:Invent...
 
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...
AWS Storage Leadership Session: What's New in Amazon S3, Amazon EFS, Amazon E...
 
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
Amazon VPC: Security at the Speed Of Light (NET313) - AWS re:Invent 2018
 
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...
Architecture Patterns for Multi-Region Active-Active Applications (ARC209-R2)...
 
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
Optimizing Costs as You Scale on AWS (ENT302) - AWS re:Invent 2018
 
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...
Amazon Prime Video: Delivering the Amazing Video Experience (CTD203-R1) - AWS...
 
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...
From Russia with Love: Fox Sports World Cup Production (ARC333) - AWS re:Inve...
 
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018
Continuous Integration Best Practices (DEV319-R1) - AWS re:Invent 2018
 
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
[NEW LAUNCH!] AWS Transit Gateway and Transit VPCs - Reference Architectures ...
 
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...
Optimizing Storage for Enterprise Workloads and Migrations (STG202) - AWS re:...
 
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
Capacity Management Made Easy with Amazon EC2 Auto Scaling (CMP377) - AWS re:...
 
AWS 良好架構服務概述 (Level: 200)
AWS 良好架構服務概述 (Level: 200)AWS 良好架構服務概述 (Level: 200)
AWS 良好架構服務概述 (Level: 200)
 
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018
VPC Design Scenarios for Real-Life Use Cases (NET320) - AWS re:Invent 2018
 
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
運用 AWS Edge Services 作為遊戲行業的關鍵基礎設施元件 (Level 200)
 
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
Serverless:It All Started in Vegas (DVC306) - AWS re:Invent 2018
 
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...
Security Framework Shakedown: Chart Your Journey with AWS Best Practices (SEC...
 
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...
Reuters Lives: Scaling & Monitoring Live Video in the Cloud (DEV316-S) - AWS ...
 
Amazon GuardDuty Threat Detection and Remediation
Amazon GuardDuty Threat Detection and RemediationAmazon GuardDuty Threat Detection and Remediation
Amazon GuardDuty Threat Detection and Remediation
 
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
Building and Moving Live Broadcasting to AWS (CTD305) - AWS re:Invent 2018
 

Semelhante a A Few Milliseconds in the Life of an HTTP Request (CTD416) - AWS re:Invent 2018

A few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS SummitA few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS SummitAmazon Web Services
 
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...Amazon Web Services
 
Scaling up to and beyond 10M users
Scaling up to and beyond 10M usersScaling up to and beyond 10M users
Scaling up to and beyond 10M usersAmazon Web Services
 
How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...Amazon Web Services
 
Serverless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLVServerless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLVBoaz Ziniman
 
Scaling Push Messaging for Millions of Netflix Devices
Scaling Push Messaging for Millions of Netflix DevicesScaling Push Messaging for Millions of Netflix Devices
Scaling Push Messaging for Millions of Netflix DevicesSusheel Aroskar
 
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...Amazon Web Services
 
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...Amazon Web Services
 
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...Amazon Web Services
 
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...Amazon Web Services
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Amazon Web Services
 
Making Headless Drupal Serverless
Making Headless Drupal ServerlessMaking Headless Drupal Serverless
Making Headless Drupal ServerlessAmazon Web Services
 
Scaling from zero to millions of users
Scaling from zero to millions of usersScaling from zero to millions of users
Scaling from zero to millions of usersAmazon Web Services
 
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018Amazon 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
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Amazon Web Services
 
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
SRV316 Serverless Data Processing at Scale: An Amazon.com Case StudyAmazon Web Services
 

Semelhante a A Few Milliseconds in the Life of an HTTP Request (CTD416) - AWS re:Invent 2018 (20)

A few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS SummitA few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
A few milliseconds in the life of an HTTP request - SVC303 - New York AWS Summit
 
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...
How to Secure Sensitive Customer Data Using Amazon CloudFront - AWS Online Te...
 
Scaling up to and beyond 10M users
Scaling up to and beyond 10M usersScaling up to and beyond 10M users
Scaling up to and beyond 10M users
 
How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...How to build scalable and resilient applications in the cloud - AWS Summit Ca...
How to build scalable and resilient applications in the cloud - AWS Summit Ca...
 
Serverless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLVServerless Architectural Patterns - ServerlessDays TLV
Serverless Architectural Patterns - ServerlessDays TLV
 
Scaling Push Messaging for Millions of Netflix Devices
Scaling Push Messaging for Millions of Netflix DevicesScaling Push Messaging for Millions of Netflix Devices
Scaling Push Messaging for Millions of Netflix Devices
 
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...
Inside AWS: Technology Choices for Modern Applications (SRV305-R1) - AWS re:I...
 
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...
How to Build Multi-Region Applications in the Cloud: AWS Developer Workshop -...
 
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...
Get the Most out of Your Elastic Load Balancer for Different Workloads (NET31...
 
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
Using Amazon VPC Flow Logs for Predictive Security Analytics (NET319) - AWS r...
 
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
Vonage & Aspect: Transform Real-Time Communications & Customer Engagement (TL...
 
Making Headless Drupal Serverless
Making Headless Drupal ServerlessMaking Headless Drupal Serverless
Making Headless Drupal Serverless
 
Neptune webinar AWS
Neptune webinar AWS Neptune webinar AWS
Neptune webinar AWS
 
Scaling from zero to millions of users
Scaling from zero to millions of usersScaling from zero to millions of users
Scaling from zero to millions of users
 
AWS re:Invent recap
AWS re:Invent recapAWS re:Invent recap
AWS re:Invent recap
 
Best of AWS re:Invent 2017
Best of AWS re:Invent 2017Best of AWS re:Invent 2017
Best of AWS re:Invent 2017
 
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018
Post-Production Media Delivery at Scale with AWS (STG391) - AWS re:Invent 2018
 
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
 
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
Scaling Up to Your First 10 Million Users (ARC205-R1) - AWS re:Invent 2018
 
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
SRV316 Serverless Data Processing at Scale: An Amazon.com Case Study
 

Mais de 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
 

Mais de 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
 

A Few Milliseconds in the Life of an HTTP Request (CTD416) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. A Few Milliseconds in the Life of an HTTP Request Jorge Vasquez Software Engineer Amazon CloudFront C T D 4 1 6 Hongmin Liu Software Engineer Amazon CloudFront
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Ø Overview Ø DNS lookup Ø TCP/TLS Ø Request flow inside Amazon CloudFront Ø CloudFront Layers
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is Amazon CloudFront?
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lake Crescent, Olympic Peninsula, WA
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. d1886tp5fhflpy.cloudfront.net? CloudFront DNS CloudFront POP Http request lifecycle
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Request lifecycle DNS TCP/TLS Request flow Layer 1 Cache layers Layer 3
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS lookup Resolver POP Performance Server Capacity POP Health Network Capacity DNS • AWS re:Invent 2017: Measuring the Internet in Real Time (CTD406 https://www.youtube.com/watch?v=54kPAADonqA)
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS TCP/TLS Request flow Layer 1 Cache layers Layer 3
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. TCP connection 2 RTT 1 RTT TCP/TLS
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. TLS security • Security • Secrecy • Identity • Non-replayability TCP/TLS • CloudFront • On top of security issues • Best practices • Compliance
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. TLS performance 2 RTT Server 1 RTT Server TCP/TLS
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS TCP/TLS Request flow Layer 1 Cache layers Layer 3
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. POP architecture Request flow
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. POP architecture Request flow → Infrequent → Dynamic → Dynamic & frequent
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Regional Edge Caches architecture Request flow → Dynamic
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS TCP/TLS Request flow Layer 1 Cache layers Layer 3
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. → Dynamic
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security - Content protection • Signed URLs • Field-Level Encryption(FLE) • AWS WAF • Lambda@Edge Signed URLS FLE WAF Lambda@Edge Layer 1
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security - Content protection Signed URLs FLE AWS WAF Lambda@edge Layer 1
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Signed URLs 403 x Signature Signature Layer 1
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Signed URL Policy Layer 1
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Signed URLs Example signed URL for a web distribution: http://d111111abcdef8.cloudfront.net/image.jpg ? color=red&size=medium &Policy=eyANCiAgICEXAMPLEW1lbnQiOiBbeyANCiAgICAgICJSZXNvdXJjZSI6Imh0dHA 6Ly9kemJlc3FtN3VuMW0wLmNsb3VkZnJvbnQubmV0L2RlbW8ucGhwIiwgDQogICAgI CAiQ 29uZGl0aW9uIjp7IA0KICAgICAgICAgIklwQWRkcmVzcyI6eyJBV1M6U291cmNlSXAiOiI yMDcuMTcxLjE4MC4xMDEvMzIifSwNCiAgICAgICAgICJEYXRlR3JlYXRlclRoYW4iOnsi Q VdTOkVwb2NoVGltZSI6MTI5Njg2MDE3Nn0sDQogICAgICAgICAiRGF0ZUxlc3NUaGFuIjp 7IkFXUzpFcG9jaFRpbWUiOjEyOTY4NjAyMjZ9DQogICAgICB9IA0KICAgfV0gDQp9DQo &Signature=nitfHRCrtziwO2HwPfWw~yYDhUF5EwRunQA-j19DzZrvDh6hQ73lDx~ - ar3UocvvRQVw6EkC~GdpGQyyOSKQim-TxAnW7d8F5Kkai9HVx0FIu-5jcQb0UEmat EXAMPLE3Re XySpLSMj0yCd3ZAB4UcBCAqEijkytL6f3fVYNGQI6&Key-Pair-Id=APKA9ONS7QCOWEXAMPLE Layer 1
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security - Content protection Signed URLs FLE AWS WAF Lambda@edge Layer 1
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. FLE (Field-Level Encryption) TLS Layer 1
  • 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Intercept sensitive fields at the edge POST / HTTP/1.1 Host: origin.example.com Content-Type: application/x-www-form-urlencoded Content-Length: 56 UserId=1234&CreditCardNum=<encrypted>ejYx52fx...</encrypted> POST / HTTP/1.1 Host: www.example.com Content-Type: application/x-www-form-urlencoded Content-Length: 32 UserId=1234&CreditCardNum=12345678 Layer 1
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Signed URLs FLE AWS WAF Lambda@edge Security - Content protection Layer 1
  • 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS WAF (Web Application Firewall) x Layer 1
  • 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Security - Content protection Signed URLs FLE AWS WAF Lambda@Edge Layer 1
  • 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge Session-Id valid? Signed-In Users Layer 1
  • 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lambda@Edge Layer 1
  • 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS TCP/TLS Architecture Layer 1 Cache layers Layer 3
  • 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance - Collapse Forwarding Live Content Caching POP REC Origin POP Cache layers
  • 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance - Collapse Forwarding Collapse Cache layers
  • 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Performance - Collapse Forwarding Live Content Caching POP REC Origin POP Cache layers
  • 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability - When things go wrong… Cache layers
  • 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability - When things go wrong… Configuring Custom Error Pages • CloudFront returns and caches the custom error page • Error caching minimum TTL (five minutes by default) • Allows changing HTTP status code Cache layers
  • 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability - When things go wrong… Origin Failover Cache layers
  • 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. DNS TCP/TLS Architecture Layer 1 Cache layers Layer 3
  • 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. → Dynamic
  • 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Origin Facing Optimizations • Regional Edge Cache (REC) • Compression • Lambda@Edge • Persistent Connections Layer 3
  • 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Persistent connections Layer 3
  • 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Finish Line HTTP Request
  • 47. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Additional Resources • AWS re:Invent 2017: Measuring the Internet in Real Time (CTD406 https://www.youtube.com/watch?v=54kPAADonqA) • Serving Private Content with Signed URLs and Signed Cookies (https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer Guide/PrivateContent.html) • Using Field-Level Encryption to Help Protect Sensitive Data (https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer Guide/field-level-encryption.html) • How CloudFront Processes and Caches HTTP 4xx and 5xx Status Codes from Your Origin (https://docs.aws.amazon.com/AmazonCloudFront/latest/Developer Guide/HTTPStatusCodes.html)
  • 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Related breakouts Thursday, Nov 29 SEC402-R1 - [REPEAT 1] AWS, I Choose You: Pokemon's Battle against the Bots 3:15 PM - 4:15 PM | Venetian, Level 4, Marcello 4505 Thursday, Nov 29 CTD415-R1 - [REPEAT 1] Rendering Websites at the Edge with AWS Lambda@Edge 2:30 PM - 4:45 PM | Bellagio, Level 1, Grand Ballroom 6 Wednesday, Nov 28 CTD416 – Meet & Greet 1:30 – 2:00 PM | Aria East, Level 1, Willow Lounge
  • 49. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Jorge Vasquez jorgevas@amazon.com Hongmin Liu hongmliu@amazon.com
  • 50. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.