Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Content Delivery Networks (CDN) Architecture: Edge PoPs, Origin Shields, and Caching.
senior LevelMost AskedSystem Design
In Simple Words:
- Edge PoPs (Points of Presence): Distributed servers close to users that serve cached static assets (images, CSS, JS) in $< 10 ext{ms}$.
- Origin Shield: A centralized intermediate caching layer between edge PoPs and the primary origin data center, protecting origin servers from thundering herd cache misses.
Cache-Control: stale-while-revalidate=60: Tells the browser to serve stale cached content instantly while asynchronously fetching a fresh version in the background, delivering instant zero-latency UI loads.