More Related Content
Similar to Build Workflows with Amazon CloudFront, Amazon Route 53, & Lambda@Edge (CTD407-R2) - AWS re:Invent 2018 (20)
More from Amazon Web Services (20)
Build Workflows with Amazon CloudFront, Amazon Route 53, & Lambda@Edge (CTD407-R2) - AWS re:Invent 2018
- 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Build Workflows with Amazon CloudFront,
Amazon Route 53, & Lambda@Edge
Archit Jain
Software Development Engineer
Amazon
C T D 4 0 7
Alexander Korobeynikov
Software Development Engineer
Amazon
- 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Problems
• Building fault tolerant multiple-origin setup systems
• Building low latency websites which serve content from nearest
location
- 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon Route 53 (Route 53)?
Users
Elastic IP
address
- 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Amazon CloudFront ?
Users
- 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Lambda@Edge?
Users
Viewer request
Viewer response
Origin request
Origin response
Generate response
- 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using CloudFront & Route 53 with multi origin
When should you use it?
• Multiple non–Amazon Simple Storage
Service (Amazon S3) origins
• Health check & latency based routing
to nearest servers
Users
Elastic
IP
address
- 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using CloudFront with native origin failover capability
When should you use it?
• Primary-secondary origin setup
• Ability to failover for every request
Users
4xx/5xx
200 OK
Secondary
origin
Primary
origin
- 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
When should you use it?
• Location based origin selection
• Select origin based on request parameters
• Content generation with Lambda@Edge
Origin request
Users
Re-define origin
Origin as updated in
origin request function
Using Amazon CloudFront with Lambda@Edge
- 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Comparison
Route 53
CloudFront origin
fallback
Lambda@Edge
Select nearest
origin (latency) ✔︎ ✔︎
Multi-region
Amazon S3 origin ✔︎ ✔︎
Failover on every
origin errors ✔︎
Health check ✔︎
- 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Questions
- 12. Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Archit Jain
Software Development Engineer
Amazon
Alexander Korobeynikov
Software Development Engineer
Amazon
- 13. Please complete the session
survey in the mobile app.
!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.