SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Advanced Traffic Management
with Route 53 Traffic Flow
Sean Meckley
Principal Product Manager
Amazon Route 53
N E T 4 0 7
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
Goal: a good discussion
Questions/Discussions/Debates are welcome
Prepared topics:
What is Amazon Route 53 traffic flow?
Real-world use cases for traffic flow: from simple to complex
Geoproximity routing
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What is Route 53 traffic flow?
Global traffic management in the cloud
Built on top of Route 53
Policy-based traffic management and routing
Automatic versioning of policies and easy rollback
Additional routing rules/capabilities
Geoproximity routing with load biasing
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Policy management in the Route 53 console
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Simple backup website
Add redundancy to your website
Backup “fail whale page”
Or a backup copy of your dynamic application
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Simple backup website
Endpoint (+Health Check):
IP 1.2.3.4
Rule: Failover
Primary
Secondary
Endpoint:
S3 Website
Rules
+ add rule
Endpoints
+ add endpoint
Start
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Simple backup website
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Simple backup website
{
"AWSPolicyFormatVersion":"2015-10-01",
"RecordType":"A",
"StartRule":"failover-rule-1",
"Endpoints": {
"endpoint-failover-1": {
"Type":"value","Value":"1.2.3.4"
},
"endpoint-failover-2": {
"Type":"s3-website","Value":"example.com.s3-website-us-east-1.amazonaws.com","Region":"us-east-1"
}
},
"Rules": {
"failover-rule-1": {
"RuleType":"failover",
"Primary": {
"EndpointReference":"endpoint-failover-1",
"EvaluateTargetHealth":false,
"HealthCheck":"70448823-e87b-47fd-aee8-c183944d7bf4"
},
"Secondary": {
"EvaluateTargetHealth":true,
"EndpointReference":"endpoint-failover-2"
}
}
}
}
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Simple backup website
$ aws route53 create-traffic-policy --name "Simple Backup Website" --document file://~/myPolicy.json
Create traffic policy:
Apply traffic policy:
$ aws route53 create-traffic-policy-instance --hosted-zone-id Z3509RV2ZY3SLP --name example.com --ttl 60 --traffic-policy-id
4cc427e2-d0bf-4cbd-a216-133b845127f1 --traffic-policy-version 1
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Questions?
How do Route 53 health checks interact with traffic flow policies?
How does traffic flow work with alias records?
How do I do failover between Elastic Load Balancing/Application Load
Balancing/Network Load Balancing endpoints?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Weighted round robin
Distribute traffic among multiple app stacks or servers
Take health of each endpoint into account
Examples:
Blue/green deployment of stacks behind ELB: gradually increase weight of new stack and
reduce weight of old stack
DNS load balancing directly across servers
Containers—Amazon Elastic Container Service (Amazon ECS), Amazon Elastic Container
Service for Kubernetes (Amazon EKS)
Specialized applications where HTTP load balancing (such as ELB) isn’t possible
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Weighted round robin
Endpoint:
IP: 1.2.3.4
Rule: Weighted Round Robin
33%
33%
34%
Endpoint:
IP: 2.3.4.5
Endpoint:
IP: 3.4.5.6
Health Check
Health Check ID: abc123
Health Check
Health Check ID: def345
Health Check
Health Check ID: ghi789
Rules
+ add rule
Endpoints
+ add endpoint
Start
Typical container use case: simple WRR with health checks
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Blue/Green deployment
Traffic policy version Comment
1 Stack A: 1% / Stack B: 99%
2 Stack A: 2% / Stack B: 98%
3 Stack A: 5% / Stack B: 95%
… …
15
Stack A: 100% / Stack B: 0%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
$ aws route53 create-traffic-policy --name “Blue Green Deployment" --document file://~/blueGreen.json
{ ... "Id": "3cac5d4b-5dcf-4865-a486-c0611e486991" ... }
Blue/Green deployment: Policy versioning
Create traffic policy:
Apply traffic policy:
$ aws route53 create-traffic-policy-instance --hosted-zone-id Z3509RV2ZY3SLP --name bluegreen.example.com --ttl 60
--traffic-policy-id 3cac5d4b-5dcf-4865-a486-c0611e486991 --traffic-policy-version 1
{ ... "Id": "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" ... }
$ aws route53 create-traffic-policy-version --id 3cac5d4b-5dcf-4865-a486-c0611e486991 --document file://~/blueGreen.json
Create another traffic policy version with different weights:
Roll forward traffic policy:
$ aws route53 update-traffic-policy-instance --id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60
--traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991" --traffic-policy-version 2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
$ aws route53 update-traffic-policy-instance --id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60
--traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991" --traffic-policy-version 1
Deployment automation and rollback
Rollback (can do this at any time):
Fully automated blue/green deployment:
POLICY_INSTANCE='--id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60 --traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991"'
for i in $(seq 2 1 10)
do
# move to next policy version
aws route53 update-traffic-policy-instance $POLICY_INSTANCE --traffic-policy-version $i
# check health every 10 seconds for next 10 minutes before we move on.
for t in $(seq 0 10 600)
sleep 10
# Rollback and abort if we become unhealthy
if ! ~/bin/check-all-is-healthy; then
aws route53 update-traffic-policy-instance $POLICY_INSTANCE --traffic-policy-version 1
exit
fi
done
done | tee deployment-logfile.txt
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Multi-region application
Application endpoints distributed around the world
Redundancy plus improved performance for end users globally
Can be a mix of AWS Regions and own data centers or other endpoints
Can include one or more CDNs in front of your application
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Use case: Multi-region application
Endpoint:
ELB 1234 (Evaluate ELB Health)
Rule: Geo
Geo 1: [List of Eastern US states]
…
…
...
Geo 2: [List of Western US states]
…
…
...
Endpoint:
ELB 4567 (Evaluate ELB Health)
Rule: Failover
Primary
Secondary
Rule: Failover
Primary
Secondary
Rules
+ add rule
Endpoints
+ add endpoint
Start
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Questions?
Can I combine routing techniques like latency and geo in the same policy?
How can I manage load on each of my endpoints?
How can I reuse the same policy for multiple DNS names?
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Geoproximity routing
Tag record sets with geo coordinates
Resolvers/user networks matched to closest record set
eDNS client subnet enabled
Load balancing: change endpoint weight using bias
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“us-west-1”
loc=45,-122
“us-east-1”
loc=37,-78
Geoproximity routing: Load management
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“us-west-1”
loc=45,-122
“us-east-1”
loc=37,-78
a
b
Geoproximity routing: Load management
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Geoproximity routing: Load management
Bias expands or shrinks the size of the geographic region routed to a
given resource
Positive bias:
Biased distance = actual distance * [1 - (bias/100)]
Negative bias:
Biased distance = actual distance / [1 + (bias/100)]
Allowed bias values: {-99, +99}; default value is 0
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“us-west-1”
loc=45,-122
bias=0 “us-east-1”
loc=37,-78
bias=0
a
b
Geoproximity routing: Load management
Biased distance (us_west_1) < biased distance (us_east_1),
so send user to West
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
“us-west-1”
loc=45,-122
bias=0 “us-east-1”
loc=37,-78
bias=50
a
b
Biased distance (us_west_1) > biased distance (us_east_1),
so send user to East
Geoproximity routing: Load management
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Sean Meckley
meckleys@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

More Related Content

What's hot

Deep Dive on Amazon RDS
Deep Dive on Amazon RDSDeep Dive on Amazon RDS
Deep Dive on Amazon RDS
Amazon Web Services
 
AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53
Amazon Web Services Japan
 
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon Web Services Korea
 
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
AWS Black Belt Online Seminar 2018 AWS Certificate ManagerAWS Black Belt Online Seminar 2018 AWS Certificate Manager
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
Amazon Web Services Japan
 
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
Amazon Web Services Japan
 
AWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices WebinarAWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices Webinar
Amazon Web Services
 
What is Database Freedom?
What is Database Freedom?What is Database Freedom?
What is Database Freedom?
Amazon Web Services
 
AWS Business Essentials Day
AWS Business Essentials DayAWS Business Essentials Day
AWS Business Essentials Day
Amazon Web Services
 
AWS Black Belt Techシリーズ AWS Direct Connect
AWS Black Belt Techシリーズ AWS Direct ConnectAWS Black Belt Techシリーズ AWS Direct Connect
AWS Black Belt Techシリーズ AWS Direct Connect
Amazon Web Services Japan
 
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch LogsAWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
Amazon Web Services Japan
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Web Services Korea
 
Managing Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech TalksManaging Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech Talks
Amazon 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
 
Build real-time streaming data pipelines to AWS with Confluent
Build real-time streaming data pipelines to AWS with ConfluentBuild real-time streaming data pipelines to AWS with Confluent
Build real-time streaming data pipelines to AWS with Confluent
confluent
 
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
Amazon Web Services Korea
 
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
Amazon Web Services Korea
 
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
Amazon Web Services Japan
 
GPSBUS205_Power to the People- Amazon Connect
GPSBUS205_Power to the People- Amazon ConnectGPSBUS205_Power to the People- Amazon Connect
GPSBUS205_Power to the People- Amazon Connect
Amazon Web Services
 
Introduction to Amazon Aurora
Introduction to Amazon AuroraIntroduction to Amazon Aurora
Introduction to Amazon Aurora
Amazon Web Services
 
Amazon Aurora: Under the Hood
Amazon Aurora: Under the HoodAmazon Aurora: Under the Hood
Amazon Aurora: Under the Hood
Amazon Web Services
 

What's hot (20)

Deep Dive on Amazon RDS
Deep Dive on Amazon RDSDeep Dive on Amazon RDS
Deep Dive on Amazon RDS
 
AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53AWS Black Belt Techシリーズ Amazon Route53
AWS Black Belt Techシリーズ Amazon Route53
 
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
 
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
AWS Black Belt Online Seminar 2018 AWS Certificate ManagerAWS Black Belt Online Seminar 2018 AWS Certificate Manager
AWS Black Belt Online Seminar 2018 AWS Certificate Manager
 
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
20191218 AWS Black Belt Online Seminar AWSのマネジメント&ガバナンス サービスアップデート
 
AWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices WebinarAWS Cost Optimisation Best Practices Webinar
AWS Cost Optimisation Best Practices Webinar
 
What is Database Freedom?
What is Database Freedom?What is Database Freedom?
What is Database Freedom?
 
AWS Business Essentials Day
AWS Business Essentials DayAWS Business Essentials Day
AWS Business Essentials Day
 
AWS Black Belt Techシリーズ AWS Direct Connect
AWS Black Belt Techシリーズ AWS Direct ConnectAWS Black Belt Techシリーズ AWS Direct Connect
AWS Black Belt Techシリーズ AWS Direct Connect
 
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch LogsAWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
AWS Blackbelt 2015シリーズ Amazon CloudWatch & Amazon CloudWatch Logs
 
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
 
Managing Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech TalksManaging Container Images with Amazon ECR - AWS Online Tech Talks
Managing Container Images with Amazon ECR - AWS Online Tech Talks
 
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)...
 
Build real-time streaming data pipelines to AWS with Confluent
Build real-time streaming data pipelines to AWS with ConfluentBuild real-time streaming data pipelines to AWS with Confluent
Build real-time streaming data pipelines to AWS with Confluent
 
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
SK Telecom - 망관리 프로젝트 TANGO의 오픈소스 데이터베이스 전환 여정 - 발표자 : 박승전, Project Manager, ...
 
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
AWS Backup을 이용한 데이터베이스의 백업 자동화와 편리한 복구방법
 
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
AWS Black Belt Online Seminar 2016 AWS上でのサーバーレスアーキテクチャ入門
 
GPSBUS205_Power to the People- Amazon Connect
GPSBUS205_Power to the People- Amazon ConnectGPSBUS205_Power to the People- Amazon Connect
GPSBUS205_Power to the People- Amazon Connect
 
Introduction to Amazon Aurora
Introduction to Amazon AuroraIntroduction to Amazon Aurora
Introduction to Amazon Aurora
 
Amazon Aurora: Under the Hood
Amazon Aurora: Under the HoodAmazon Aurora: Under the Hood
Amazon Aurora: Under the Hood
 

Similar to Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - AWS re:Invent 2018

Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Amazon Web Services
 
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with FargateDEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
Amazon Web Services
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
Amazon Web Services
 
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
Amazon Web Services
 
Building Cloudscale Networks
Building Cloudscale NetworksBuilding Cloudscale Networks
Building Cloudscale Networks
Amazon Web Services
 
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
HostedbyConfluent
 
Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends
Amazon Web Services
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
Amazon Web Services
 
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
Amazon Web Services
 
AWS Lambda Powertools walkthrough.pdf
AWS Lambda Powertools walkthrough.pdfAWS Lambda Powertools walkthrough.pdf
AWS Lambda Powertools walkthrough.pdf
Heitor Lessa
 
Building CloudScale Networks - AWS Summit Sydney 2018
Building CloudScale Networks - AWS Summit Sydney 2018Building CloudScale Networks - AWS Summit Sydney 2018
Building CloudScale Networks - AWS Summit Sydney 2018
Amazon Web Services
 
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Amazon Web Services
 
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
Amazon Web Services
 
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
Amazon Web Services
 
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
Amazon Web Services
 
Loading Data into Redshift
Loading Data into RedshiftLoading Data into Redshift
Loading Data into Redshift
Amazon Web Services
 
Loading Data into Redshift with Lab
Loading Data into Redshift with LabLoading Data into Redshift with Lab
Loading Data into Redshift with Lab
Amazon Web Services
 
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at ScaleAWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
Amazon Web Services
 
Data Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksData Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech Talks
Amazon Web Services
 
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
Amazon Web Services
 

Similar to Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - AWS re:Invent 2018 (20)

Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
Shift-Left SRE: Self-Healing with AWS Lambda Functions (DEV313-S) - AWS re:In...
 
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with FargateDEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
DEM07 Best Practices for Monitoring Amazon ECS Containers Launched with Fargate
 
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
[NEW LAUNCH!] Introducing AWS App Mesh – service mesh on AWS (CON367) - AWS r...
 
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
[NEW LAUNCH!] How to Architect for Multi-Region Redundancy Using Anycast IPs ...
 
Building Cloudscale Networks
Building Cloudscale NetworksBuilding Cloudscale Networks
Building Cloudscale Networks
 
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
Get More from your Data: Accelerate Time-to-Value and Reduce TCO with Conflue...
 
Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends Building Global Multi-Region, Active-Active Serverless Backends
Building Global Multi-Region, Active-Active Serverless Backends
 
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
建構全球跨區域  x Active-Active架構的無伺服器化後台服務建構全球跨區域  x Active-Active架構的無伺服器化後台服務
建構全球跨區域 x Active-Active架構的無伺服器化後台服務
 
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
Why GE Aviation Migrated from Cassandra to Amazon DynamoDB (DAT332) - AWS re:...
 
AWS Lambda Powertools walkthrough.pdf
AWS Lambda Powertools walkthrough.pdfAWS Lambda Powertools walkthrough.pdf
AWS Lambda Powertools walkthrough.pdf
 
Building CloudScale Networks - AWS Summit Sydney 2018
Building CloudScale Networks - AWS Summit Sydney 2018Building CloudScale Networks - AWS Summit Sydney 2018
Building CloudScale Networks - AWS Summit Sydney 2018
 
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
Proven Methodologies for Accelerating Your Cloud Journey (ENT308-S) - AWS re:...
 
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
Fully Realizing the Microservices Vision with Service Mesh (DEV312-S) - AWS r...
 
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
Use Monitoring, Logs, and Analytics Tools to Measure CDN and Site Performance...
 
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
How GumGum Migrated from Cassandra to Amazon DynamoDB (DAT345) - AWS re:Inven...
 
Loading Data into Redshift
Loading Data into RedshiftLoading Data into Redshift
Loading Data into Redshift
 
Loading Data into Redshift with Lab
Loading Data into Redshift with LabLoading Data into Redshift with Lab
Loading Data into Redshift with Lab
 
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at ScaleAWS Enterprise Summit Netherlands - Cost Optimisation at Scale
AWS Enterprise Summit Netherlands - Cost Optimisation at Scale
 
Data Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech TalksData Transformation Patterns in AWS - AWS Online Tech Talks
Data Transformation Patterns in AWS - AWS Online Tech Talks
 
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
Introduction to Amazon Route 53 Resolver for Hybrid Cloud (NET215) - AWS re:I...
 

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 Fargate
Amazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
Amazon 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
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
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 Workloads
Amazon Web Services
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
Amazon 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 sfatare
Amazon 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 NodeJS
Amazon 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 web
Amazon 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 sfatare
Amazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on 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 Service
Amazon Web Services
 

More from Amazon Web Services (20)

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

Advanced Traffic Management with Amazon Route 53 Traffic Flow (NET407-R1) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Advanced Traffic Management with Route 53 Traffic Flow Sean Meckley Principal Product Manager Amazon Route 53 N E T 4 0 7
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda Goal: a good discussion Questions/Discussions/Debates are welcome Prepared topics: What is Amazon Route 53 traffic flow? Real-world use cases for traffic flow: from simple to complex Geoproximity routing
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is Route 53 traffic flow? Global traffic management in the cloud Built on top of Route 53 Policy-based traffic management and routing Automatic versioning of policies and easy rollback Additional routing rules/capabilities Geoproximity routing with load biasing
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Policy management in the Route 53 console
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Simple backup website Add redundancy to your website Backup “fail whale page” Or a backup copy of your dynamic application
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Simple backup website Endpoint (+Health Check): IP 1.2.3.4 Rule: Failover Primary Secondary Endpoint: S3 Website Rules + add rule Endpoints + add endpoint Start
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Simple backup website
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Simple backup website { "AWSPolicyFormatVersion":"2015-10-01", "RecordType":"A", "StartRule":"failover-rule-1", "Endpoints": { "endpoint-failover-1": { "Type":"value","Value":"1.2.3.4" }, "endpoint-failover-2": { "Type":"s3-website","Value":"example.com.s3-website-us-east-1.amazonaws.com","Region":"us-east-1" } }, "Rules": { "failover-rule-1": { "RuleType":"failover", "Primary": { "EndpointReference":"endpoint-failover-1", "EvaluateTargetHealth":false, "HealthCheck":"70448823-e87b-47fd-aee8-c183944d7bf4" }, "Secondary": { "EvaluateTargetHealth":true, "EndpointReference":"endpoint-failover-2" } } } }
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Simple backup website $ aws route53 create-traffic-policy --name "Simple Backup Website" --document file://~/myPolicy.json Create traffic policy: Apply traffic policy: $ aws route53 create-traffic-policy-instance --hosted-zone-id Z3509RV2ZY3SLP --name example.com --ttl 60 --traffic-policy-id 4cc427e2-d0bf-4cbd-a216-133b845127f1 --traffic-policy-version 1
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Questions? How do Route 53 health checks interact with traffic flow policies? How does traffic flow work with alias records? How do I do failover between Elastic Load Balancing/Application Load Balancing/Network Load Balancing endpoints?
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Weighted round robin Distribute traffic among multiple app stacks or servers Take health of each endpoint into account Examples: Blue/green deployment of stacks behind ELB: gradually increase weight of new stack and reduce weight of old stack DNS load balancing directly across servers Containers—Amazon Elastic Container Service (Amazon ECS), Amazon Elastic Container Service for Kubernetes (Amazon EKS) Specialized applications where HTTP load balancing (such as ELB) isn’t possible
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Weighted round robin Endpoint: IP: 1.2.3.4 Rule: Weighted Round Robin 33% 33% 34% Endpoint: IP: 2.3.4.5 Endpoint: IP: 3.4.5.6 Health Check Health Check ID: abc123 Health Check Health Check ID: def345 Health Check Health Check ID: ghi789 Rules + add rule Endpoints + add endpoint Start Typical container use case: simple WRR with health checks
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Blue/Green deployment Traffic policy version Comment 1 Stack A: 1% / Stack B: 99% 2 Stack A: 2% / Stack B: 98% 3 Stack A: 5% / Stack B: 95% … … 15 Stack A: 100% / Stack B: 0%
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. $ aws route53 create-traffic-policy --name “Blue Green Deployment" --document file://~/blueGreen.json { ... "Id": "3cac5d4b-5dcf-4865-a486-c0611e486991" ... } Blue/Green deployment: Policy versioning Create traffic policy: Apply traffic policy: $ aws route53 create-traffic-policy-instance --hosted-zone-id Z3509RV2ZY3SLP --name bluegreen.example.com --ttl 60 --traffic-policy-id 3cac5d4b-5dcf-4865-a486-c0611e486991 --traffic-policy-version 1 { ... "Id": "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" ... } $ aws route53 create-traffic-policy-version --id 3cac5d4b-5dcf-4865-a486-c0611e486991 --document file://~/blueGreen.json Create another traffic policy version with different weights: Roll forward traffic policy: $ aws route53 update-traffic-policy-instance --id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60 --traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991" --traffic-policy-version 2
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. $ aws route53 update-traffic-policy-instance --id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60 --traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991" --traffic-policy-version 1 Deployment automation and rollback Rollback (can do this at any time): Fully automated blue/green deployment: POLICY_INSTANCE='--id "8aab72aa-b2e6-4ed1-a9d8-353164098cdf" --ttl 60 --traffic-policy-id "3cac5d4b-5dcf-4865-a486-c0611e486991"' for i in $(seq 2 1 10) do # move to next policy version aws route53 update-traffic-policy-instance $POLICY_INSTANCE --traffic-policy-version $i # check health every 10 seconds for next 10 minutes before we move on. for t in $(seq 0 10 600) sleep 10 # Rollback and abort if we become unhealthy if ! ~/bin/check-all-is-healthy; then aws route53 update-traffic-policy-instance $POLICY_INSTANCE --traffic-policy-version 1 exit fi done done | tee deployment-logfile.txt
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Multi-region application Application endpoints distributed around the world Redundancy plus improved performance for end users globally Can be a mix of AWS Regions and own data centers or other endpoints Can include one or more CDNs in front of your application
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Use case: Multi-region application Endpoint: ELB 1234 (Evaluate ELB Health) Rule: Geo Geo 1: [List of Eastern US states] … … ... Geo 2: [List of Western US states] … … ... Endpoint: ELB 4567 (Evaluate ELB Health) Rule: Failover Primary Secondary Rule: Failover Primary Secondary Rules + add rule Endpoints + add endpoint Start
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Questions? Can I combine routing techniques like latency and geo in the same policy? How can I manage load on each of my endpoints? How can I reuse the same policy for multiple DNS names?
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Geoproximity routing Tag record sets with geo coordinates Resolvers/user networks matched to closest record set eDNS client subnet enabled Load balancing: change endpoint weight using bias
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “us-west-1” loc=45,-122 “us-east-1” loc=37,-78 Geoproximity routing: Load management
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “us-west-1” loc=45,-122 “us-east-1” loc=37,-78 a b Geoproximity routing: Load management
  • 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Geoproximity routing: Load management Bias expands or shrinks the size of the geographic region routed to a given resource Positive bias: Biased distance = actual distance * [1 - (bias/100)] Negative bias: Biased distance = actual distance / [1 + (bias/100)] Allowed bias values: {-99, +99}; default value is 0
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “us-west-1” loc=45,-122 bias=0 “us-east-1” loc=37,-78 bias=0 a b Geoproximity routing: Load management Biased distance (us_west_1) < biased distance (us_east_1), so send user to West
  • 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. “us-west-1” loc=45,-122 bias=0 “us-east-1” loc=37,-78 bias=50 a b Biased distance (us_west_1) > biased distance (us_east_1), so send user to East Geoproximity routing: Load management
  • 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 27. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Sean Meckley meckleys@amazon.com
  • 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.