CDN Tutorial

In this tutorial, you will build a small CDN simulation called BuzzStream, a media app whose viral video traffic starts overwhelming a single origin server.

The lab walks through CDN behavior one layer at a time: first, an origin server; then, an edge cache; then, routing across multiple edge nodes; and finally, resilience features such as stale responses, timeouts, and a backup origin.

By the end, you should be able to explain what an origin server does, why cache hits are faster than misses, why routing matters for cache locality, and how a CDN can keep serving content when the origin is slow or unavailable.

Overview PDF: included

Tutorial Instructions

Download and extract the tutorial zip file below. Everything needed for the tutorial is included inside the folder.

Start by opening:

README.md

Then work through the steps in order:

  • Step 0: Prerequisites
  • Step 1: Topology Overview
  • Step 2: Origin Only
  • Step 3: Edge Cache
  • Step 4: Routing
  • Step 5: Resilience

Each step has its own README.md with the commands to run, the files to inspect, and the checks that confirm the lab is working. Run the prerequisite check first, and remember to stop each Docker Compose stack before moving to the next step.

Lab Files: included


WRITE MY PAPER

Comments

Leave a Reply