Jio Cinema user handling system design: A technical deep dive into streaming video content at scale

AnsalCoding 68 views 19 slides Oct 16, 2024
Slide 1
Slide 1 of 19
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19

About This Presentation

CURIOUS : HOW JIOCINEMA HANDLED 32M CONCURRENT USERS .
A technical deep dive into streaming video content at scale

JioCinema is an Indian OTT media streaming service offering video streaming services. Since 2023, JioCinema has held the exclusive digital rights to broadcast the Indian Premier League...


Slide Content

CURIOUS : HOW JIOCINEMA HANDLED 32M CONCURRENT USERS A technical deep dive into streaming video content at scale Present By : Ansal KA

JIOCINEMA’S MULTI-CAM IPL STREAMING JioCinema is an Indian OTT media streaming service offering video streaming services. Since 2023, JioCinema has held the exclusive digital rights to broadcast the Indian Premier League (IPL) in India. With multiple cameras available on the ground, it is now possible for viewers to switch to their preference camera angle while watching IPL. This includes spider camera view, batsman view, bird's eye view, wicketkeeper view and recently added Hero Cam. Production Control Rooms (PCRs).

JIO CINEMA STATISTICS

INTRODUCTION

BASIC FLOW

FRONTEND OPTIMIZATION Feature Flags : Implemented for controlled feature rollouts to identify issues early. Features can be rolled back instantly if causing app crashes or performance drops. Enhances agility in handling real-time issues without impacting the entire user base.

FRONTEND OPTIMIZATION Scenario Simulations : Tools like Charles used to simulate different network conditions (low bandwidth, high latency). Test real-world scenarios like DNS failures , API call timeouts , and backend errors to ensure preparedness.

FRONTEND OPTIMIZATION Graceful Degradation : When certain features fail, default content is shown (e.g., home screen UI fallback). Core , P1 and P2 Features classification Errors are hidden from the user to ensure continuous satisfaction . Exponential Backoff technique for retrying failed API calls to avoid server overload.

EXPONENTIAL BACKOFF

BACKEND INFRASTRUCTURE A content delivery network (CDN) is a network of interconnected servers that speeds up webpage loading for data-heavy applications. By distributing content across multiple servers located in different geographic locations, CDNs can deliver content faster and more efficiently to users. That way, it reduces latency, improves page load times, and provides a better user experience.

BACKEND INFRASTRUCTURE

MULTI-CDN OPTIMIZATION

CACHE MANAGEMENT & OFFLOADING

PANIC MODE & SNAPSHOT-BASED FAILOVER

ASYNCHRONOUS PROCESSING WITH KAFKA

LADDER-BASED SCALING DOWN

AD INSERTION MECHANISM

CONCLUSION & FUTURE READINESS Key Takeaways : Scalability : Proactive planning and simulations ensured readiness for up to 32M users. Resilience : Panic Mode and static content delivery helped prevent system crashes during high load. Efficiency : Efficient CDN and cache management played a crucial role in handling traffic. Ad Scalability : Smooth ad insertion techniques ensured monetization without affecting the user experience. Future Improvements : Further refinement of caching policies. Enhanced database simulations for faster scaling. Even greater automation in scaling and Panic Mode activation.

QUESTIONS? References: Medium: Behind the Scenes: How JioCinema Seamlessly Streams IPL Matches to 20 Million Fans Youtube : How JioCinema live streams IPL to 20 million concurrent devices w/ Prachi Sharma | Ep 7