# AWS CloudFront Anatomy

How Amazon CloudFront copies files into nearby edge locations and regional caches, so a request either hits a local copy or travels back to the origin\.

By Numa

Topic: Computing, AI &amp; Electronics

[Open the interactive Jig](https://ask.jig.com/j/b18q50gwPpoZ)

## Transcript

### 1. A delivery network for the internet

When you open a website, its pictures and videos must travel to your screen\. Amazon CloudFront is a content delivery network, or CDN: a worldwide system that keeps copies of files close to the people who want them\. Follow the little parcel to see how\.

The parcel with the black edge is the file to watch\. Drag the paper to turn the model\.

### 2. The origin: where files live

Every website keeps its original files in one home, called the origin\. It can be an Amazon S3 storage bucket or a web server\. The origin always holds the true version, but it may be far away from you\.

CloudFront never replaces the origin\. It only keeps copies\.

### 3. Edge locations: shops near you

CloudFront runs more than 750 edge locations, also called points of presence, in over 100 cities\. Each one is a room full of servers\. Think of them as corner shops that keep popular things close to home\.

AWS figures for 2026: 750\+ points of presence in 50\+ countries\.

### 4. Finding the nearest shop

When you ask for a file, the internet's address book, called DNS, sends your request to the edge location that can answer fastest\. That is usually one near you\. Here it is the shop at the front of the row\.

Fastest means the quickest network trip, not always the shortest distance on a map\.

### 5. First request: a cache miss

Each shop keeps a cache: a shelf of recently used files\. The first time anyone asks for this file, the shelf is empty, which is called a miss\. The request travels on to a bigger regional cache, then to the origin, and the file rides all the way back\.

Watch the shelves on top: a copy stays behind at each stop\. You can also tap the laptop\.

### 6. Next request: a cache hit

Now the nearby shop has its own copy\. The next time anyone nearby asks, the file comes straight back from the edge location, with no long trip\. That is a hit, and it is much faster\.

CloudFront starts sending a file as soon as the first bytes arrive, without waiting for the whole thing\.

### 7. Regional caches: the warehouses

Between the shops and the origin sit 15 regional edge caches\. They are bigger and keep files for longer\. When a shop misses, the warehouse often has the file, so the origin is asked far less often\.

Many shops share one warehouse: a funnel from many, to few, to one\.

### 8. Shelf life

Every copy has a time to live, or TTL\. By default a copy is trusted for 24 hours, unless the website sets another time\. After that, the shop must check with the origin again before it serves the file\.

Website owners can also clear copies early\. This is called an invalidation\.

### 9. Why it matters

Copies close to people make pages load faster and save the origin a lot of work\. Millions of people can watch the same video without all asking one faraway server\. Many shops, a few warehouses and one home: that is CloudFront\.
