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 storyThe 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.
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
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.
Connects to
- 📖 How does your browser find a website from just its name?
- 🧱 Why can one company's bad day take down so much of the web?
- 🗃️ Why does a processor keep a tiny memory right next to itself?
- 📦 How does the internet deliver your data without ever giving you a line of your own?
- 🌊 How does the internet cross the oceans?
- Net neutrality
Sources (3)
No source, no claim. Every fact in this lesson (17 claims) cites at least one of these.