H Hotstar Masterclass
Case Study: High-Concurrency Live Broadcasting

Hotstar Live Broadcast Masterclass

Deconstruct the systems that broadcast live sports tournaments to **59+ million concurrent viewers** globally. Explore the multi-CDN dynamic failover pipelines, real-time ad manifest manipulators, Erlang scorecard publishers, and edge payshields designed to handle hyper-spikes under sub-second network latencies.

01

The Massive Live Concurrency Scale

Live cricket broadcasting is uniquely challenging because it combines two high-stress system characteristics: **absolute low latency** (users must see a six before their neighbor screams) and **massive thundering herd spikes** (tens of millions of active users log in at the exact same second when a crucial wicket falls). Managing this scale requires a radical departure from traditional REST architectures, replacing them with specialized dynamic edge packaging grids.

Engineering Objectives

  • Sub-5 Second Glass-to-Glass Latency: Raw stadium capture encoded, packaged, and distributed globally to edge devices under 5 seconds.
  • Mitigate Thundering Herds: Handle spikes of 10M+ new requests per minute without buckling core database rings.
  • Real-Time Targeted Ad Insertion: Stitch personalized advertisements directly into HLS/DASH manifest chunks during over breaks.
  • Continuous Score updates: Broadcast scorecards to 50M+ users simultaneously with under 500ms lag.

Live Playout Metrics

Peak Concurrency
59 Million
Simultaneous users
Egress Bandwidth
30+ Tbps
Aggregated multi-CDN egress
Entitlement TPS
5 Million+
Paywall validations/sec
Glass-to-Glass Lag
< 4.2 Seconds
Encoding + CDN transit
02

Stadium-to-CDN Broadcast Plane

The broadcasting plane maps the journey of raw camera frames from the stadium ground up to the edge CDN servers. High-definition SDI baseband video signals are transmitted via fiber lines and satellite links to co-located **dual-active hardware encoding centers** in AWS, converting them into digital master streams.

STADIUM FEED 1080i Uncompressed SDI Fiber / Sat link INGEST HUB Redundant Gates Active-Active capture AWS MediaLive HEVC H.264/H.265 Multi-bitrate encoding MANIFEST ENGINE Dynamic Ad Stitcher Custom manifests MULTI-CDN GRID Akamai, Cloudflare Playout segments CLIENT APP Hotstar Player

Redundant Stadium Capture

The capture phase features highly redundant stadium connectivity. Dual high-frequency satellite transponders transmit raw 1.5 Gbps uncompressed HD-SDI signals from the stadium trucks, while parallel high-speed underground fiber optic lines push backup raw packets to redundant cloud-based VPC ingest nodes.

Split-Plane Routing

Hotstar decouples the control manifest generation layer (which creates customized playlist files for each user with personal ad structures) from the heavy video packet storage CDN layer. This segregates intensive rendering from database dependencies, preserving massive playback bandwidth.

03

Dual-Active Video Packaging Pipeline

To maintain absolute continuity, the raw ingestion feeds must be converted into Adaptive Bitrate (ABR) streams instantly. Redundant active-active encoders ingest the raw frames, compress them in parallel using HEVC/H.265, and chunk them into highly optimized **2-second segments** formatted in DASH and HLS.

STADIUM LINK Dual RTMP/SRT Stadium Truck AWS ENCODER A Dynamic ABR Live packaging AWS ENCODER B Dynamic ABR Hot standby redundancy UNIFIED PACKAGER HLS / DASH engine 2s media chunks AD INJECT ENGINE SCTE-35 Markers Ad splice pointers MANIFESTS Playout playlists

Advanced Packaging Mechanics:

Broadcast quality and robustness are maintained via three high-performance strategies:

  1. Active-Active Dual Encoders: AWS Elemental MediaLive processes two separate stadium inputs (Primary & Backup) concurrently. If Encoder A loses a packet, the downstream Packager dynamically fetches the missing segment from Encoder B without dropping a single frame.
  2. Sub-Second Chunking: Traditional HLS uses 6-second segments, introducing 18+ seconds of latency. Hotstar packages video into **2-second chunk segments** combined with CMAF (Common Media Application Format) chunking, reducing streaming lag down to 4.2 seconds.
  3. SCTE-35 Splice Markers: The master packaging engine injects SCTE-35 digital cue markers into HLS/DASH manifest structures during live breaks, telling downstream servers exactly where a commercial starts and ends.
04

Dynamic Multi-CDN Dynamic Switching

No single CDN provider (Akamai, Fastly, or Cloudflare) can sustain 30+ Tbps of peak live video traffic. A single regional network bottleneck would buffer millions of concurrent screens instantly. To solve this, Hotstar operates a **Multi-CDN Topology** governed by real-time client-side performance feedback loops.

SUBSCRIBER Hotstar Client Requests segment DYNAMIC ROUTER Conviva Telemetry CDN selection AKAMAI CDN Edge Cache Capacity: 12 Tbps FASTLY CDN (BEST) Low RTT ISP peering Active Egress Route CLOUDFLARE CDN Edge Cache Capacity: 10 Tbps LOCAL ISP GRID Comcast, Airtel Peered delivery Real-time Buffer & Latency telemetry reports

Live Client Telemetry Loop

The Hotstar player client embedded inside subscriber devices sends continuous QoS telemetry logs (reporting frame drops, local ISP buffer depths, and segment request latencies) back to the **Conviva / Cedexis** cloud router. If an Akamai endpoint in Bangalore starts buffering, the router redirects the client's next 2-second segment request to Fastly instantly.

Multi-CDN Peer Offloading

Decoupled CDN routing maps dynamically balance workloads by checking capacity limits. If India's local exchanges hit capacity limits, the intelligent load balancer automatically shifts international and non-critical streams to alternative transit lines to protect critical domestic links.

05

Dynamic Ad Insertion (DAI)

Dynamic Ad Insertion (DAI) represents Hotstar's primary monetization source. When the overs end, Hotstar must serve different, personalized advertisements to millions of active streams concurrently. Stitching ads on the client-side creates latency and buffering. Hotstar solves this with server-side **Manifest Manipulation**.

CLIENT PLAYER Requests stream HLS index playlist MANIPULATOR Server-Side Stitch HLS/DASH rewriter AD DECISION (ADS) User Demographic Picks targeted ad LIVE PLAYS 2s cricket segments Continuous broadcast AD SEGMENTS 1080p dynamic ad Cached on CDN STITCHED FEED

Server-Side Manifest Manipulation

Stitching commercials on client apps requires the device to download separate ad video links, tear down the main decoder screen, and buffer the commercial—creating severe lagging and visual drops.

To prevent this, Hotstar performs **Server-Side Manifest Manipulation**. When a subscriber requests their next playout HLS index file (`playlist.m3u8`), the **Manifest Manipulator** interceptor queries the **Ad Decision Server (ADS)**, fetches targeted commercials tailored to the user's age and location, and physically rewrites the manifest lines. The player client simply receives a single seamless index stream containing both the game segment and the targeted commercial chunks, resulting in **zero-buffering transitions**.

06

Thundering Herd Mitigation (Entitlement Caching)

When a crucial moment occurs (e.g. MS Dhoni walking out to bat), millions of new users click the push notification to join the stream concurrently. Standard authentication and payment verification architectures will buckle under this volume. Hotstar shields its relational databases by caching subscription entitlements directly at the Edge.

50M+ USERS Join concurrently Thundering Herd INGRESS PROXY Go API Proxy Rate Limiting Gate REDIS EDGE CACHE Cache hit: 99.8% Low-latency session check API CONTROL Database Check Cache Miss route SUBSCRIBERS DB Cassandra Database Persistent State AUTH GRANTED

Paywall Entitlement Verification

To view a live match, a user must pass paywall entitlements (verifying that their account is premium and authorized).

If millions of clients fetch this status from relational database disks simultaneously during peak seconds, the DB connections pool will starve. Hotstar mitigates this by converting the entitlement check into an **edge validation pattern**.

When you pay for a subscription, a secure **cryptographically signed entitlement JWT token** containing your session permissions and expirations is generated and cached inside highly sharded, memory-optimized **Redis clusters** physically co-located in the close Ingress proxy zones. When a subscriber joins the stream, the Go proxy intercepts the request and verifies the JWT cache locally under **< 1.2ms** without making a single database call, shielding database structures.

07

Low-Latency Scorecard Pub-Sub

Alongside video, millions of users consume interactive overlays, live scorecards, and predictive games ("Watch & Play") concurrently. Building these score feeds over traditional polling (HTTP requests every 5 seconds) would generate hundreds of millions of requests per second on AWS web containers. Hotstar replaces polling with server-pushed **Server-Sent Events (SSE)**.

STADIUM SCORER Enters run event API update payload KAFKA STREAM Runs Broker Topic Ordered log GO SSE ENGINE Pub-sub listener Server-Sent-Events REDIS PUB/SUB In-Memory channel Updates under 20ms GAMING ENGINE xPredictive states Real-time locks CLIENTS Shedded updates

Server-Sent Events vs polling Scale

If 50 million active users poll score updates every 5 seconds, it generates **10 million HTTP requests per second** on AWS API gateways. This would lead to massive cloud costs and server failures.

Hotstar replaces this with **Server-Sent Events (SSE)**. When a subscriber launches the match screen, a single **persistent, unidirectional HTTP connection** (`text/event-stream`) is established and kept open. When the scorer updates the scorecard in the stadium, the event is processed by a highly partitioned **Kafka Topic** and consumed by a Go pub-sub broker cluster. The Go brokers immediately push the tiny event update down the established HTTP pipe to all 50M concurrent devices under **< 100ms** latency, consuming virtually **zero connection CPU overhead** and preventing millions of recurrent server queries.

08

Expert Interview Q&A

Prepare for elite, senior-level system design loops. Study the exact technical questions and robust responses covering Hotstar’s broadcast scaling.

Q1. How does the system handle an instantaneous regional fiber cut on a primary CDN transit line?

Answer: Dynamic multi-CDN telemetry intercepts. When the local client-side telemetry detects segment download failures or RTT spikes, the local Conviva player library redirects the next 2-second segment request to the secondary CDN within **< 2 seconds** without the viewer experiencing any buffer drop. Dynamic DNS routers simultaneously update IP tables globally.

Q2. Why is manifest manipulation used over standard client-side ad insertion for high scale?

Answer: Client-side ad insertion (CSAI) degrades player performance and increases buffering rates. Fetching ad URLs, executing client scripts, and rebuilding decoders is unstable on low-end devices. Manifest manipulation processes ad insertion **on the server-side** by physically rewriting the HLS playlist chunks. The client player receives a single continuous stream, preventing buffer crashes.

Q3. How are subscription paywall checks (entitlements) scaled to handle a massive thundering herd spike?

Answer: Entitlements are shifted to an **edge token validation pattern**. Cryptographically signed subscription JWT keys are generated at checkout and stored directly in in-memory **Redis Edge clusters**. When users join, the Go ingress proxies decrypt and validate the JWT locally in under **1.2ms**, preventing millions of database queries.

Q4. How does the system prevent score updates from choking web app capacity?

Answer: The scorecard is sent via **Server-Sent Events (SSE)**. Unidirectional persistent HTTP streams are established at launch. Score events in the stadium publish to a highly partitioned **Kafka topic**, which dynamic Go brokers broadcast down active user pipes instantly. This consumes minimal server memory and prevents client polling spikes.

09

Unified End-to-End Broadcast Flow

Below is the ultimate, unified architecture topology representing the complete Hotstar broadcasting ecosystem. It traces stadium uncompressed feeds to redundant encoders, control plane authorization caches, manifest manipulation DAI stitchers, and multi-CDN dynamic delivery.

USER APP (HOTSTAR) Playout segments Telemetry QoS logs INGRESS GATE Kong API Proxy Dynamic route splitting CONVIVA ROUTER Multi-CDN dynamic Telemetry-based paths REDIS ENTIRE Edge Entitlements Paywall verification MANIFEST STITCH Dynamic Ad Stitch Servermanifest manipulation CASSANDRA Account states Master storage MULTI-CDN PLAYS Akamai, Cloudflare Aggregated 30 Tbps S3 LIBRARIES Master video binaries AD DECISION (ADS)

Live Stream Playout: Step-by-Step System Journey

01

Stadium Frame Capture & Dual Ingestion

Raw HD uncompressed camera frames are captured in the stadium at 1.5 Gbps baseband and transmitted via dual redundant sat links and dedicated fibers to co-located ingestion VPCs in AWS. Redundant active-active captured feeds prevent single point of failures from physical stadium line cuts.

02

Dynamic ABR Packaging (2s Chunks)

AWS Elemental MediaLive transcodes the raw signals in parallel, converting them into HEVC (H.265) video profiles across 1080p, 720p, 480p, and 360p resolutions. Unified Streaming packagers group the digital chunks into **2-second segments** wrapped in HLS and DASH containers to support ultra-low live playout latency.

03

User Request Ingress & Edge Token Validation

When a subscriber clicks "Watch Live Match", the player client queries the Go-based API Gateway. To protect the main Cassandra accounts database from buckling under a 10M+ thundering herd, Ingress proxies intercept requests and validate JWT entitlement caches stored in in-memory **Redis Edge clusters** in under **< 1.2ms**.

04

Dynamic Ad Manifest Manipulation

When SCTE-35 markers signal an over break, the server-side **Manifest Manipulator** intercepts playout playlist requests, queries the Ad Decision Server (ADS) to fetch user-targeted commercial segments, and rewrites index manifests on-the-fly. The client simply streams the written list, showing targeted ads with zero-buffering transitions.

05

Real-time Telemetry Multi-CDN Routing

The client player requests the segment from a dynamic CDN router (Conviva/Cedexis). Based on constant buffer telemetry reported by client devices, Cedexis dynamically shifts subscriber routing across Akamai, Fastly, and Cloudflare to bypass localized ISP bottlenecks.

06

Edge CDN Segment Playout

The resolved edge CDN server fetches the encoded ABR chunks and delivers them directly down local peered ISP exchanges (Airtel, Jio, Comcast) in the viewer's city. The video is decoded locally on user decoders, completing the stadium-to-screen loop inside **< 4.2 seconds**.

07

Server-Sent Events Scorecard Push

Simultaneously, live scoreboard changes inside the stadium are published to highly partitioned **Kafka topics**. Specialized Go pub-sub gateways consume these run events and push the updates down established, persistent unidirectional HTTP connections (Server-Sent Events) to millions of screens in under **100ms** latency without client-side polling spikes.