SysPad › Examples › Video streaming

Video streaming

Netflix-style: a video CDN over S3 origin + Glacier archive, a catalog API, a continue-watching cache, and a playback-events analytics pipeline.

Network-dominated cost (multi-MB CDN objects) and a playback-analytics pipeline.

DNS Route 53 Video CDN CloudFront Video Origin S3 Cold Archive Glacier API LB ALB Streaming API Fargate Auth Cognito AT LIMIT Continue-Watching ElastiCache Catalog DynamoDB Playback Events Kinesis Event Aggregator Lambda Analytics Warehouse Redshift AT LIMIT

How it works

Continue-Watching
Caches each viewer resume position so playback picks up instantly.
Playback Events
Playback pings stream out fire-and-forget; the whole analytics pipeline runs off the response.

Request flows

Start playback

  1. DNS
  2. API LB
  3. Streaming API
  4. Auth
  5. Continue-Watching
  6. Catalog

Playback heartbeat

  1. DNS
  2. API LB
  3. Streaming API
  4. Playback Events
  5. Event Aggregator
  6. Analytics Warehouse

Lessons for this architecture

Worked step by step

The same interview question, built up one twist at a time, with a simulation at each stage.

Other reference architectures

Open this architecture in SysPad · All examples