Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/CDN & Edge Computing
FUNDAMENTALS & NETWORKING · SUBTOPIC

Push vs. Pull CDNs & Origin Shield

Fetch on demand (Pull), pre-warm ahead of spikes (Push), and protect origin with an Origin Shield.

BeginnerPart of CDN & Edge Computing
Practice in AI HLD
Subtopics in CDN & Edge Computing (2)
OverviewPush vs. Pull CDNEdge & Headers

In plain words

A Pull CDN grabs an item from the warehouse only after the first customer asks for it. A Push CDN stocks the local shop shelves before the store even opens.

Think of it like…

Local bookstore ordering a book when first requested (Pull) vs. stocking 1,000 copies on release eve (Push).

Loading interactive diagram
Loading interactive exercise

Theory & how it works

Why Origin Shield matters

If 200 edge PoPs all miss on a brand-new viral image at the same second, all 200 might slam your origin at once. An Origin Shield is a mid-tier cache sitting right in front of your origin that collapses those 200 requests into a single origin fetch.

Key points & practical guide

Summary checklist

  • Use Pull CDN as the default
  • Add an Origin Shield to prevent global thundering herds
  • Version filenames (/bundle.v42.js) instead of running constant cache purges

When to use it

  • Any public static media, JS/CSS, video segments, or cacheable GET APIs

Watch out for

  • Caching personalized or authenticated responses at a shared public edge without proper Vary / private headers

Quick check

Loading quiz
Parent topic
CDN & Edge Computing
Next subtopic
Edge Computing & Cache-Control