← Lessons

quiz vs the machine

Silver1080

System Design

CDN Offload

Pushing cacheable content to edge servers near users to cut origin load and latency.

3 min read · intro · beat Silver to climb

What a CDN does

A content delivery network is a fleet of servers spread around the world. It stores copies of your content at the edge, close to users, so requests do not have to travel back to your origin.

The two wins

  • Lower latency because content is served from a nearby city.
  • Origin offload because the CDN answers most requests, so your servers handle far fewer.

What to put on it

  • Static assets like images, scripts, and styles.
  • Cacheable API responses that change slowly.
  • Large downloads and video segments.

Each item carries a time to live that says how long the edge may serve it before checking the origin again.

Most requests stop at the edge, and only misses reach the origin, which is why a CDN can absorb huge traffic spikes cheaply.

Key idea

Serve cacheable content from edge servers so users get speed and your origin sheds load.

Check yourself

Answer to earn rating on the learn ladder.

1. What are the two main benefits of a CDN?

2. What controls how long an edge may serve cached content?