This article details JioHotstar's distributed engineering approach to serving personalized ad requests within strict latency requirements at streaming scale. It highlights the multi-stage ad decision workflow, balancing campaign delivery, inventory, and advertiser constraints. The system emphasizes low latency, high traffic handling, caching, and reliability across numerous backend services.
Read original on InfoQ ArchitectureJioHotstar's ad request workflow is a prime example of a complex, distributed system designed to deliver personalized advertisements in real-time during video playback. The core challenge lies in making swift ad decisions (within 100 milliseconds) while handling massive streaming traffic, ensuring playback reliability, and balancing diverse business requirements.
The ad decision process is not a simple lookup but involves multiple backend components coordinating to evaluate eligible ads, apply targeting rules, and generate a final response. This orchestration is critical for handling various ad formats (pre-roll, mid-roll) and ensuring relevant ads are shown.
Key Engineering Challenges
Pawan Nagar, an Engineering Leader, highlights that beyond API communication, the real backend challenges in ad serving include managing low latency, handling huge traffic, utilizing caching, and maintaining service reliability.
The architecture requires coordinating services responsible for ad inventory, decisioning, content metadata, tracking, and analytics, all while maintaining low latency. Robust mechanisms for handling failures, retries, and partial service availability are essential to prevent individual component issues from disrupting the user's playback experience. This necessitates close collaboration between advertising, platform engineering, and reliability teams.
While industry standards like OpenRTB define protocols for programmatic advertising, streaming platforms typically build additional internal services for deep personalization, content-aware targeting, and proprietary business logic to differentiate their offerings.