AWS Route 53: Weighted Routing Policy

Introduction to Weighted Routing Policy

The Weighted Routing Policy in Amazon Route 53 allows you to distribute traffic across multiple resources by assigning them different weights. This approach provides fine-grained control over how DNS requests are directed to specific instances or endpoints.

How Weighted Routing Works

Example Scenario

Consider the following setup with three EC2 instances:

EC2 Instance Region Weight Traffic Share
Instance 1 us-east-1 70 70%
Instance 2 eu-central-1 20 20%
Instance 3 ap-southeast-1 10 10%

Configuration Steps in Route 53

  1. Create a new DNS record
  2. Add individual records with different weights
  3. Set a low TTL (Time to Live) value
  4. Associate optional health checks

Use Cases for Weighted Routing