11. Global Infrastructure

Why make a global application?

Global AWS Infrastructure

Global Applications in AWS

Amazon Route 53 Overview

Route 53 - Diagram for A Record

Route 53

Route 53 Routing Policies

Need to know them at a high-level for the Cloud Practitioner Exam

simple routing policy

weighted routing policy

latency routing policy

failover routing policy


Imagine Route 53 as a wise traffic controller in the cloud, orchestrating how requests to your website find their destination. Each routing policy is a different strategy—a poetic dance of decision-making—that directs traffic based on simple rules or sophisticated conditions. Here’s a high-level, no-nonsense look at four key policies:

1. Simple Routing Policy

What It Is:
The simplest of all. It’s like giving a one-way street—every query goes to the same destination.

How It Works:

Example:
If you run a small website, you might have a single server at IP address 192.0.2.1. Every request to example.com goes straight to that IP. It’s as simple as flipping a light switch.

2. Weighted Routing Policy

What It Is:
Imagine you’re a conductor blending different musical notes. Weighted routing lets you distribute traffic among multiple servers based on assigned “weights” (percentages).

How It Works:

Example:
Suppose you have two servers: Server A (weight 7) and Server B (weight 3). When 10 queries hit your domain, approximately 7 go to Server A and 3 to Server B. It’s like deciding which part of your audience gets which song during a concert.

3. Latency Routing Policy

What It Is:
This policy is all about speed—it directs users to the server that promises the lowest delay. Think of it as sending your guests to the nearest exit in a sprawling, busy building.

How It Works:

Example:
If you host your website on servers in New York and London, a visitor from Paris will likely be directed to the London server because it offers lower latency. It’s like choosing the fastest route in rush hour—no detours, no wasted time.

4. Failover Routing Policy

What It Is:
In the unpredictable theater of the internet, failover routing is your backup plan. It’s like having a safety net, ensuring that if the primary server stumbles, the show goes on with a secondary resource.

How It Works:

Example:
Imagine your primary website server is in New York. If it goes down (say, due to maintenance or an unexpected crash), Route 53 directs all traffic to a standby server in San Francisco. It’s the digital equivalent of a backup dancer stepping in when the lead is injured.

Each of these policies is a tool for managing your site's availability, performance, and testing capabilities. They allow you to fine-tune how your visitors experience your site, ensuring that your cloud infrastructure not only works but thrives in a dynamic environment.

References

AWS CloudFront

CloudFront - Origins

CloudFront vs S3 Cross Region Replication

CloudFront S3 Cross Region Replication
Global Edge network Must be setup for each region you want replication to happen
Files are cached for a TTL (Time to Live) (maybe a day) Files are updated in near real-time, Read only
Great for static content that must be available everywhere Great for dynamic content that needs to be available at low-latency in few regions

S3 Transfer Acceleration

AWS Global Accelerator

AWS Global Accelerator vs CloudFront

AWS Outposts

AWS Outposts Benefits

AWS WaveLength

AWS Local Zones

Global Applications - Summary