CDN Video Delivery: Streaming Architecture

· Priya Sharma · 4 min read

Video Delivery Challenges

Video is the most demanding CDN use case: large files (gigabytes per stream), sustained bandwidth (megabits per second per viewer), real-time requirements (live streaming), and quality expectations (no buffering). CDNs handle 80%+ of global video traffic. For foundational context, read CDN Performance Metrics: What to Measure — FlyFish NWA.

Streaming Protocols

ProtocolUse CaseLatencyCDN Compatibility
HLS (HTTP Live Streaming)On-demand + live6-30 secondsExcellent (HTTP-based)
DASH (Dynamic Adaptive Streaming)On-demand + live6-30 secondsExcellent (HTTP-based)
CMAF (Common Media Application Format)On-demand + live3-6 secondsExcellent (HLS + DASH compatible)
LL-HLS (Low-Latency HLS)Low-latency live2-4 secondsGood (requires partial segment support)
WebRTCReal-time communication< 1 secondLimited (peer-to-peer, not HTTP)

Adaptive Bitrate Streaming (ABR)

ABR encodes video at multiple quality levels. The player dynamically switches between levels based on available bandwidth:

Performance Comparison: Edge vs Origin Processing
Metric Edge Processing Origin Processing Improvement
Latency (p50)8–15 ms120–300 ms15–20x faster
Cache Hit Ratio85–95%N/AReduces origin load
TLS Handshake1–5 ms (nearby PoP)50–150 ms10–30x faster
Bandwidth Cost$0.01–0.04/GB$0.05–0.12/GB3–5x cheaper
Availability99.99% (multi-PoP)99.9% (single DC)10x fewer outages
Content Delivery Flow — Optimization pipeline from request to responseContent Delivery Flow — Optimization pipeline from request to response CDN Request Flow — From Browser to Edge CDN Request Lifecycle Step 1 DNS Lookup Step 2 TCP Connect Step 3 TLS Handshake Step 4 Edge Server Step 5 Cache Check Step 6 Response Cache HIT → 5ms response Cache MISS → Fetch origin 0ms ~50ms (cache hit) ~200ms (cache miss)
Figure 1: Content Delivery Flow — Optimization pipeline from request to response
Bitrate Ladder (example):
  360p:  800 kbps
  480p:  1500 kbps
  720p:  3000 kbps
  1080p: 6000 kbps
  4K:    15000 kbps

The CDN serves small segments (2-10 seconds each) at the appropriate quality. When the viewer's bandwidth drops, the player requests lower-quality segments. This prevents buffering.

Video CDN Architecture

  1. Ingest — Origin receives video (upload or live encoder)
  2. Transcoding — Encode into multiple bitrates and formats
  3. Packaging — Create HLS/DASH manifests and segments
  4. CDN distribution — Segments cached at edge PoPs
  5. Playback — Player fetches manifest, then segments sequentially

CDN Optimization for Video

Live Streaming Specifics

Live streaming requires special CDN handling:

Performance Impact — Measurable improvements from optimizationPerformance Impact — Measurable improvements from optimization CDN Performance Dashboard — Core Web Vitals Core Web Vitals with CDN LCP 1.8s Target: < 2.5s Good FID 45ms Target: < 100ms Good CLS 0.05 Target: < 0.1 Good TTFB 120ms Target: < 800ms Good
Figure 2: Performance Impact — Measurable improvements from optimization

Video CDN Providers

External References

References & Standards: HTTP/2 specification · OWASP CDN Security