Edge Locations and Global Services
Overview
Not every request needs to travel all the way to a Region. Edge locations are AWS sites in cities around the world that cache content and answer requests close to your users. They power services such as Amazon CloudFront (a content delivery network) and Amazon Route 53 (DNS).
Picture a publisher with one huge warehouse (the Region) and many small newsstands (edge locations). Instead of everyone driving to the warehouse for a newspaper, most readers pick one up at the newsstand down the street. Delivery is faster and the warehouse is less busy.
This lesson also introduces the infrastructure options that sit between the Region and the user: Local Zones, Wavelength and Outposts, which the exam asks you to distinguish.
Key Concepts
- Edge locations (and regional edge caches) are AWS points of presence used by CloudFront, Route 53 and AWS Global Accelerator to reduce latency.
- Amazon CloudFront is a CDN that caches static and dynamic content at the edge; it integrates with S3, ALB, EC2 and custom origins.
- Amazon Route 53 is a highly available, scalable DNS service that also offers domain registration, health checks and routing policies.
- AWS Global Accelerator gives you static anycast IP addresses and routes traffic over the AWS backbone to the nearest healthy endpoint.
- AWS Local Zones place compute and storage close to large population centres for single-digit-millisecond latency.
- AWS Wavelength embeds AWS compute in telecom 5G networks for ultra-low latency mobile applications.
- AWS Outposts extends AWS infrastructure and services to your own data center or on-site location.
Detailed Notes
Why edge computing matters
Latency depends on distance. A user in Sydney fetching an image from a bucket in Virginia waits for a long round trip. With CloudFront, the first request caches the image at a Sydney edge location, so later requests are served locally in a few milliseconds.
Comparing the edge-related services
| Service | What it does | Typical use |
|---|---|---|
| CloudFront | Caches and delivers content from edge locations | Websites, video, software downloads, API acceleration |
| Route 53 | DNS, health checks, routing policies | Map www.example.com to your application, failover |
| Global Accelerator | Static anycast IPs, AWS backbone routing | Gaming, VoIP, multi-Region applications needing fixed IPs |
| Lambda@Edge / CloudFront Functions | Run code at the edge | URL rewrites, header manipulation |
| AWS WAF and Shield (at CloudFront) | Block malicious traffic at the edge | Protect the origin |
CloudFront versus Global Accelerator
- CloudFront caches content, mainly HTTP/HTTPS. Best when content can be cached.
- Global Accelerator does not cache; it improves the network path to your application over the AWS backbone, supports TCP and UDP, and gives fixed IP addresses.
Route 53 routing policies (overview)
| Policy | Behaviour |
|---|---|
| Simple | One record, one answer |
| Weighted | Split traffic by percentage, useful for testing |
| Latency-based | Send users to the lowest-latency Region |
| Failover | Active/passive using health checks |
| Geolocation | Route based on the user's location |
Edge locations, Local Zones and Regional Edge Caches
| Component | Role |
|---|---|
| Edge location | Cache point for CloudFront, Route 53 DNS and Shield/WAF protection, close to end users |
| Regional edge cache | Larger intermediate cache between edge locations and the origin |
| Local Zone | Extension of a Region placing compute and storage in a metro area for single-digit millisecond latency |
| Wavelength Zone | Compute embedded in 5G networks for ultra-low latency mobile apps |
| Outposts | AWS-managed hardware in your own data center |
Edge locations are far more numerous than Regions (hundreds of points of presence), and they are used by global services such as CloudFront, Route 53 and WAF.
Extending AWS closer to you
| Option | Location | Use case |
|---|---|---|
| Local Zone | Near a large city | Media rendering, real-time gaming |
| Wavelength Zone | Inside a 5G carrier network | Connected vehicles, AR/VR on mobile |
| Outposts | Your own data center | Low-latency to on-premises systems, data residency |
Example: front an S3 bucket with CloudFront
aws cloudfront create-distribution \
--origin-domain-name my-site-bucket.s3.amazonaws.com \
--default-root-object index.html
Use Origin Access Control so the bucket is reachable only through CloudFront. TLS certificates for CloudFront come from AWS Certificate Manager in us-east-1.
Real World Example
A global e-learning company stores course videos in one S3 bucket in Ireland. Students in Asia complained about buffering. The company added CloudFront, so videos are cached at local edge locations, and used Route 53 latency-based routing for its dynamic API running in two Regions.
Buffering dropped dramatically, and S3 request volume - and data-transfer cost from the origin - fell because most requests were served from cache.
Architecture Diagram
- 1The user's browser asks Route 53 for the site name.
- 2DNS returns a CloudFront distribution address.
- 3The nearest edge location serves cached content immediately.
- 4On a cache miss, CloudFront fetches from the origin, caches it and returns it.
Best Practices
- ✓Use CloudFront for cacheable content to cut latency and origin load.
- ✓Restrict origins using Origin Access Control so users cannot bypass the CDN.
- ✓Use Route 53 health checks with failover routing for resilience.
- ✓Choose Global Accelerator when you need static IPs or non-HTTP (TCP/UDP) acceleration.
- ✓Attach AWS WAF and Shield at the edge to filter attacks early.
Common Interview Questions
Exam Tips
CLF-C02 focus
- "Deliver content with low latency worldwide" = CloudFront.
- "DNS" = Route 53; "static anycast IPs" = Global Accelerator.
- "AWS infrastructure in our own data center" = Outposts.
- Edge locations are not the same as Regions or AZs; they cache and route.
Finished this lesson?
0 of 43 lessons done · 0% of the course

