AlgoViz

Introduction to a CDN

easy 26 min

A content delivery network (CDN) is a set of servers in many places that keep copies of your content and answer users from nearby.

Where it shows up

The same pattern appears across everyday software.

  • Netflix Open Connect

    Netflix runs its own delivery network and places appliances inside the networks of internet providers, so that video travels a short way.

  • Static site in a bucket

    Files live in [object storage](/learn/system-design/object-storage). A CDN in front adds speed, HTTPS on your own name and cheaper reads.

  • Software downloads

    An update is read by millions in one day. Edge copies keep the publisher's servers calm.

  • News on a big day

    One article gets most of the traffic. A few seconds of caching at the edge turn thousands of requests into one per PoP.

  • Shop pictures

    Product photos rarely change and are read by everybody, while the cart is never cached in a shared place.

  • Public JavaScript libraries

    Services such as cdnjs and jsDelivr serve exact versions of open libraries, which can be cached for a very long time.