Web infrastructure

CDNs are the internet copy machine

A CDN makes the web feel close by putting copies near people. The hard part is deciding when those copies stop being true.

~5 minTech
scroll
01 · the shape

Distance is latency

If every image, script, and page has to travel from one origin server, users far away pay for geography. A CDN stores copies at edge locations so repeated requests take a shorter path.

curl · edge hit

The useful signal is usually already there.

system steady

Systems stories get more interesting when you can feel the pressure move through the stack.

02 · the move

Version the things you can cache forever

Static assets love long cache lifetimes when the filename changes with the content. User-specific pages need stricter rules.

asset-name.txt

Hashed filenames turn cache invalidation into deployment math.

03 · the check

Inspect the headers

CDN bugs usually show up in headers: cache status, age, vary, and cache-control. Read those before blaming the app.

reliability control room
brittle
resilient0
brittle: the system works only while the weather is perfect

Flip the switches and watch the story turn into a tiny operating model.

0origin shielded by many edge copies
0headers worth checking first
0private user data in public cache
04 · the takeaway

The edge is part of the app

A CDN is not just hosting plumbing. It is where performance, correctness, and cache policy meet.

source trail