TExcelTAD
Home › Azure & Google Cloud for AWS Users › Load Balancers, DNS and CDN

Load Balancers, DNS and CDN

AWS splits load balancing into ALB (layer 7), NLB (layer 4) and CloudFront at the edge. Azure has a similar split across four products. Google Cloud has one family, Cloud Load Balancing, whose flagship is a global anycast load balancer with a single IP for the whole world.

On AWS this is… Elastic Load Balancing (ALB, NLB, GWLB), Route 53 and CloudFront.

Load balancers

Job AWS Azure Google Cloud
L4 TCP/UDP, regional Network Load Balancer Azure Load Balancer (Standard SKU; public or internal) passthrough Network Load Balancer (external or internal)
L7 HTTP(S), regional Application Load Balancer Application Gateway (with optional WAF) regional external / internal Application Load Balancer
L7 HTTP(S), global, edge, with CDN and WAF CloudFront + ALB (+ Global Accelerator) Azure Front Door (Standard / Premium) global external Application Load Balancer + Cloud CDN + Cloud Armor
DNS-based global routing Route 53 routing policies Traffic Manager Cloud DNS routing policies
Kubernetes ingress AWS Load Balancer Controller Application Gateway for Containers, or the cluster's ingress controller GKE Gateway controller
WAF AWS WAF WAF on Front Door or Application Gateway Cloud Armor

The Google Cloud global load balancer deserves a closer look because nothing on AWS works quite like it: one anycast IP announced from Google's edge worldwide; a user in Tokyo and one in Frankfurt hit the same IP and are served by the nearest healthy backend (backend services can contain instance groups or Cloud Run services in many regions). Failover between regions happens inside the load balancer, not through DNS TTLs.

Azure's closest equivalent is Front Door, a global edge service with anycast entry points, caching, WAF and origin failover. Inside a region, Application Gateway or the Standard Load Balancer does the work.

Model: picking a backend

Global L7 load balancers send each request to the closest region that still has capacity and healthy backends. A rough model of that decision:

python · try it yourself
backends = {   # region: (healthy, capacity used %), plus made-up RTTs from each user location
    "europe-west1": (True, 72),
    "us-central1":  (True, 40),
    "asia-east1":   (False, 0),
}
rtt_ms = {
    "Frankfurt": {"europe-west1": 9, "us-central1": 105, "asia-east1": 210},
    "Chicago":   {"europe-west1": 98, "us-central1": 12, "asia-east1": 160},
    "Taipei":    {"europe-west1": 200, "us-central1": 150, "asia-east1": 6},
}
MAX_UTIL = 80

def pick(user, extra_load=0):
    for region in sorted(rtt_ms[user], key=rtt_ms[user].get):
        healthy, used = backends[region]
        if healthy and used + extra_load <= MAX_UTIL:
            return f"{region} ({rtt_ms[user][region]} ms)"
    return "no capacity"

for user in rtt_ms:
    print(f"{user:<10} normal: {pick(user):<24} with +15% surge: {pick(user, 15)}")
Frankfurt  normal: europe-west1 (9 ms)      with +15% surge: us-central1 (105 ms)
Chicago    normal: us-central1 (12 ms)      with +15% surge: us-central1 (12 ms)
Taipei     normal: us-central1 (150 ms)     with +15% surge: us-central1 (150 ms)

Taipei's nearest region is unhealthy, so its users go to us-central1; under a surge, Frankfurt overflows to the US too. With DNS-based failover (Route 53, Traffic Manager), the same move would wait for clients to re-resolve.

DNS

AWS Route 53 Azure DNS Google Cloud DNS
Public zones hosted zones DNS zones managed public zones
Private zones private hosted zones per VPC Private DNS zones linked to VNets private zones bound to networks
Alias to provider resources alias records alias record sets (to public IPs, Front Door, Traffic Manager) — (use A records to the LB IP)
Routing policies weighted, latency, geo, failover… in Traffic Manager (priority, weighted, performance, geographic) weighted round robin, geolocation, failover routing policies
Resolver for hybrid DNS Route 53 Resolver endpoints DNS Private Resolver inbound/outbound server policies, forwarding zones

Sample sessions:

bash
az network dns zone create -g rg-dns -n shop.example.com
az network dns record-set a add-record -g rg-dns -z shop.example.com -n www -a 20.50.10.7

gcloud dns managed-zones create shop --dns-name="shop.example.com." --description="shop public zone"
gcloud dns record-sets create www.shop.example.com. --zone=shop --type=A --ttl=300 --rrdatas=34.120.10.7

Note the trailing dot in Cloud DNS names: they are fully qualified.

CDN and edge

AWS Azure Google Cloud
CDN CloudFront Azure Front Door (the classic Azure CDN offerings are being retired in its favour) Cloud CDN on the global Application Load Balancer; Media CDN for large media
Origin types S3, ALB, any HTTP Storage, App Service, Application Gateway, any HTTP backend buckets (Cloud Storage), backend services, internet NEGs
Edge functions CloudFront Functions, Lambda@Edge Front Door rules engine edge routing rules, service extensions

Test yourself

Which Azure service is the closest match for CloudFront with WAF and global origin failover?

  1. Azure Load Balancer
  2. Application Gateway
  3. Azure Front Door
  4. Traffic Manager

What is distinctive about Google Cloud's global external Application Load Balancer?

  1. It is DNS-based
  2. A single anycast IP serves users worldwide and routes them to the nearest healthy backend
  3. It only supports one region
  4. It requires a CDN

Which Google Cloud product is the WAF / DDoS protection layer for its load balancers?

  1. Cloud Armor
  2. Cloud NAT
  3. Cloud Router
  4. Cloud Shield