AWS Cloud Architecture•Part 2: Networking, VPC & Traffic Routing (6 - 20)
AWS Global Accelerator vs CloudFront.
In Simple Words:
- CloudFront: CDN that caches static and dynamic HTTP content at 450+ global Edge Locations.
- Global Accelerator: Uses AWS's private fiber network and Anycast static IPs to route traffic fast for both HTTP and non-HTTP protocols (TCP, UDP, gaming, VoIP) without content caching.
hcl
# AWS Global Accelerator provisioning two static Anycast IPs:
resource "aws_globalaccelerator_accelerator" "game_accelerator" {
name = "gaming-accelerator"
ip_address_type = "IPV4"
enabled = true
}