AWS for Developers: ECS and Multi-Region Load Balancing

AWS for Developers: ECS and Multi-Region Load Balancing

2h 20mIntermediate2019-08-02

Authors

Jeremy Villeneuve

Jeremy Villeneuve

Founder of Halvanta, LLC, an IT consulting firm

Course details

As your application grows, you need to design for scalability and redundancy. Load balancing—splitting traffic among many servers—is key. Amazon Web Services (AWS) has tools for load balancing across multiple regions, so that users can experience the fastest response times with minimal downtime. This course explains how to set up multi-region load balancing with Amazon Route 53. Learn how to replicate data across multiple data centers using DynamoDB and set up continuous deployment across multiple regions with ECS and CodePipeline. Then discover how to use Route 53 to load balance between multiple regions, with policies for location-based routing and health checks to ensure that your traffic doesn’t go to a region that is suffering from a regional failure.

Learning objectives
Creating DynamoDB global tables
Inserting records into DynamoDB tables
Creating ECS clusters
Pushing Docker images to ECR with CodeBuild
Deploying Docker images from ECR to ECS
Single-region load balancing with ALB
Deploying across multiple regions
Load balancing with DNS
Location-based routing with Route53
Testing cross-region failover

Skills covered

Amazon Web Services (AWS)AmazonCloud ServicesCloud PlatformsCloud ComputingDeep Dive (X:Y)

Concepts

Introduction

  • Why load balance across regions
  • What you should know
  • Course outline

DynamoDB Global Tables

  • Overview of DynamoDB
  • Creating a DynamoDB table
  • Availability Zones vs. Regions
  • DynamoDB cross-region replication
  • Creating a DynamoDB global table
  • Inserting records into DynamoDB

Deploying Docker Containers with CodePipeline to ECS

  • Track code changes using CodeCommit
  • Storing Docker images with ECR
  • Create an ECS task definition
  • Create an ECS cluster
  • CI with Docker and CodeBuild
  • CD with ECS and CodeDeploy

Load Balancing Within a Single Region

  • Overview of Application Load Balancer
  • ALB Listener Rules
  • Adding an SSL certificate to ALB
  • Health checks with ALB
  • Testing failover with ALB

Scaling Across Regions with Route 53

  • Deploying across regions
  • Cross-region actions with CodePipeline
  • Load balancing with DNS
  • DNS routing with Route53
  • Location-based routing
  • Testing cross-region failover

Conclusion

  • Next steps
80,000 Toman