SDI.
All Architectures

Netflix

Global video streaming platform serving 260M+ subscribers with personalized content delivery, adaptive bitrate streaming, and microservices at massive scale.

260M+

subscribers

~500M hours/day

daily Streaming Hours

~15% of global internet downstream traffic

bandwidth

1,000+ microservices

microservices

~1,200 variants per title

encoding Variants

17,000+ servers in 6,000+ locations

open Connect Servers

Architecture Diagram

Client AppclientAPI GatewaygatewayContent APIservicePlayback ServiceserviceRecommendation EngineserviceEncoding PipelineserviceOpen Connect CDNcdnCatalog DBdatabaseUser DBdatabaseEVCachecacheObject StorestorageKafkaqueue

Data Flow

1

Client AppAPI GatewayBrowse

Client requests homepage. Gateway routes to Content API with auth context.

2

API GatewayContent APIFetch Content

Content API assembles personalized rows by calling Recommendation Engine and Catalog DB.

3

Content APIEVCacheCache Check

Hot data served from EVCache. Cache miss falls through to Catalog DB.

4

Content APIRecommendation EnginePersonalize

ML models rank content based on viewing history, time of day, device, and A/B test group.

5

Client AppAPI GatewayPlay Request

User clicks play. Client sends play request with device capabilities.

6

API GatewayPlayback ServiceGet Manifest

Playback service generates DASH/HLS manifest with DRM license and optimal CDN URLs.

7

Client AppOpen Connect CDNStream Video

Client fetches video segments from nearest Open Connect appliance. Adaptive bitrate adjusts quality.

8

Client AppKafkaViewing Events

Client streams viewing telemetry (play, pause, seek, quality changes) to Kafka for analytics.

9

Encoding PipelineObject StoreStore Encoded

New content is transcoded into multiple bitrates/resolutions and stored in S3.

10

Object StoreOpen Connect CDNPre-position

Popular content is pre-positioned to ISP appliances during off-peak hours.

Key Architectural Decisions

  • Custom CDN (Open Connect) placed inside ISPs reduces transit costs and latency — 95% of traffic never crosses the internet backbone
  • Per-title encoding optimizes bitrate ladders — an animated show needs fewer bits than live action at the same perceptual quality
  • Microservices with Zuul gateway enables independent deployment of 1,000+ services by hundreds of teams
  • EVCache (memcached-based) chosen over Redis for simplicity at Netflix's specific scale and access patterns
  • Chaos engineering (Chaos Monkey) as a first-class practice ensures resilience is tested continuously

Tradeoffs

Strengths

  • Open Connect CDN is a massive competitive moat — better quality at lower cost than any third-party CDN
  • Per-title encoding delivers optimal quality per bit, reducing bandwidth costs
  • Microservices architecture enables Netflix's rapid feature velocity across many teams
  • Chaos engineering culture means the system is tested for failure continuously

Weaknesses

  • Microservices complexity requires massive investment in platform tooling (service mesh, observability)
  • Open Connect requires physical hardware relationships with ISPs globally
  • Recommendation system complexity means debugging "why was this recommended" is extremely difficult
  • Cold start problem for new users with no viewing history

Interview Drilldown Questions

  • How does adaptive bitrate streaming work, and what are the tradeoffs between DASH and HLS?
  • How would you design the content recommendation system to handle 260M users?
  • What's the strategy for pre-positioning content on CDN nodes?
  • How does Netflix handle regional content licensing in its catalog?
  • How would you design the A/B testing infrastructure at Netflix's scale?

Components

client

Client App

Smart TV, mobile, browser — adaptive bitrate player

Learn more →
gateway

API Gateway

Zuul gateway handling routing, auth, rate limiting

Learn more →
service

Content API

Serves catalog metadata, recommendations, and search results

Learn more →
service

Playback Service

Generates playback manifests with DRM tokens and CDN URLs

service

Recommendation Engine

ML-based personalization for content discovery

Learn more →
service

Encoding Pipeline

Transcodes source video into 1000+ variants per title

cdn

Open Connect CDN

Custom CDN with ISP-embedded appliances serving 95%+ of traffic

Learn more →
database

Catalog DB

Content metadata, licensing, and availability by region

Learn more →
database

User DB

Profiles, viewing history, preferences, and A/B test assignments

Learn more →
cache

EVCache

Distributed memcached layer caching user data and API responses

Learn more →
storage

Object Store

S3 for encoded video segments and artwork

Learn more →
queue

Kafka

Event bus for viewing events, logging, and real-time analytics

Learn more →

Source: editorial — Synthesized from Netflix Tech Blog, Open Connect documentation, and public engineering talks

Command Palette

Search for a command to run...