Tech●●●●●Difficulty 4 of 5

How can a video reach millions of people at once without the internet buckling?

Content owners pay companies to keep copies of their content close to viewers. One of those companies, Akamai, grew out of a maths paper about relieving hot spots on the web.

▶ Start the story

The answer is to serve many copies instead of one original. That is what a content delivery network, or CDN, does: it is a geographically distributed network of proxy servers and data centres that provides high availability and performance by distributing content closer to end users. CDNs arose in the late 1990s to relieve the performance bottlenecks of an internet that was becoming a critical medium.

One faraway server or many nearby copies

Without a CDN

  • Every viewer fetches from the origin
  • Far viewers wait longer
  • A sudden crowd can overload one server

With a CDN

  • Copies sit on edge servers near viewers
  • Requests are routed to a suitable node
  • The load is spread across many machines

The business is simple to state. Content owners such as media companies and online shops pay CDN operators to deliver their content to their end users. In turn, the CDN pays internet service providers and network operators to host its servers in their data centres. Some CDNs reach thousands of nodes and tens of thousands of servers on many points of presence. Their caches store popular content where demand for it is greatest, which reduces the load on the original servers and improves response times.

The clever part is sending each visitor to the right copy. Request routing directs a client to the content source best able to serve it: the closest service node, or the one with the most capacity. It can use DNS-based request routing, or anycasting, among other methods. Akamai, a CDN company that grew out of research on consistent hashing, takes its name from a Hawaiian word meaning "clever".

Quiz me

0/3

  1. 1.How does a CDN make popular content faster?
  2. 2.What is request routing in a CDN?
  3. 3.Why does the existence of CDNs complicate the net neutrality debate?

Recap

Put the copy near the viewer, and use DNS or anycast to point each viewer at the right one.

💡 A trick to remember it · Don't make everyone drive to the factory: ship copies to every corner shop and point each customer to the nearest door.

Surprising fact · Akamai, whose name means clever in Hawaiian, grew out of research on consistent hashing.

Sources (3)

No source, no claim. Every fact in this lesson (17 claims) cites at least one of these.

  1. [1]Content delivery network · Wikipedia
  2. [2]Akamai Technologies · Wikipedia
  3. [3]Net neutrality · Wikipedia
More lessons in 💻 Tech (3) See all tech lessons →

One more light on your map.

Get one lesson like this every day, about the things you love. Free, in two or five minutes.

Get the share card for this lesson ↗