VOOZH about

URL: https://thenewstack.io/why-jiocinema-skipped-redis-for-recommendation-bloom-filters/

⇱ Why JioCinema Skipped Redis for Recommendation Bloom Filters - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-02-05 07:00:04
Why JioCinema Skipped Redis for Recommendation Bloom Filters
sponsor-scylladb,sponsored-post-contributed,
Data Streaming / Databases / Storage

Why JioCinema Skipped Redis for Recommendation Bloom Filters

Why the Indian streaming service took this unconventional path, including the trade-offs of the more obvious solutions.
Feb 5th, 2025 7:00am by Cynthia Dunlop
👁 Featued image for: Why JioCinema Skipped Redis for Recommendation Bloom Filters
Image from Proxima Studio on Shutterstock.
ScyllaDB sponsored this post.

When you log in to your favorite streaming service, first impressions matter. The featured content should instantly lure you into binge-watching mode. If it’s full of shows and movies you’ve already seen, your brain quickly shifts into “Hmmm, is it time to cancel this service?” mode.

At a technical level, ensuring fresh recommendations is something every streaming platform faces. But the standard solutions weren’t a good fit for JioCinema, a prominent Indian streaming service known for its affordability and extensive content library. It’s experiencing explosive growth with world-record–breaking 620 million Indian Premier League (IPL) viewers, peaking at over 20 million concurrent viewers.

Instead of building its own Bloom filters or using common solutions like Redis Bloom filters, the company took a different path: using ScyllaDB’s built-in Bloom filter support to check watch status in real time.

JioCinema’s Charan Kamal, a backend developer, and Harshit Jain, a software engineer, recently shared why they took this unconventional path, including the trade-offs of the more obvious solutions and the logistics of implementing this with ScyllaDB.

Watch their complete tech talk below, or read on to skim the highlights.

Enjoy engineering case studies like this? Choose your own adventure through 50+ tech talks at Monster Scale Summit (free + virtual). You can learn from experts like Martin Kleppmann, Kelsey Hightower and Gwen Shapira, plus engineers from Discord, Disney+, Slack, Atlassian, Uber, Canva, Medium, Cloudflare and more. 

Challenge: “Watch Discounting” for Fresh Recommendations

JioCinema is a leading “over the top” (OTT) streaming platform. The service features top Indian and international entertainment, including live sports (from IPL cricket to LaLiga European football to NBA basketball), new movies, HBO originals and more. The massive content library spans 10 Indian languages.

The JioCinema app uses customized content trays like “Because You Watched” to keep users engaged and help them discover new content. For example, after a user completes “Game of Thrones,” the platform might commonly recommend “House of the Dragon” — but if the user has already watched it, it will suggest something else.

👁 "Let's Look at some examples"

As Jain put it, “These personalized trays not only keep the customers engaged but also enhance content discoverability, fostering long-term engagement and reducing churn rates. However, personalization comes with its own challenges, particularly the issue of recommending content that the customers have already watched. To address this, we have implemented a solution and termed it ‘Watch Discounting.’”

This service must cost-efficiently satisfy low-latency requirements at an impressive scale (10 million daily active users consuming hundreds of thousands of shows and films per day). Kamal explained, “Keeping the sheer size of our customer base and catalog in mind, we had to use a data structure that was space-efficient as well as blazing fast. While we want to keep our recommendations fresh, we also want to avoid over-engineering and making the system overly complex. We could tolerate occasional false positives here. So this led us to Bloom filters — space-efficient probabilistic data structures designed for rapid membership lookup in a set.”

The Problem with Custom and Redis Bloom Filters

Okay, but which Bloom filters were the best fit here?

The team first considered building a custom Bloom filter to store and serve content. Although this “fun exercise” would have provided complete control over the implementation, it presented significant scaling challenges. They didn’t trust that a simple map of Bloom filters would scale vertically to keep pace with JioCinema’s massive and rapidly growing user base. Horizontal scaling would have required either implementing sticky sessions, where specific pods would hold Bloom filters for particular users, or replicating data across every pod in the system. While this would have been an interesting engineering challenge, it just didn’t make sense from a business perspective.

The next option they explored was Redis with Bloom filter capabilities. Their initial testing with an open source Redis cluster revealed an interesting issue with Redis’ cluster topology. During high load, nodes would occasionally get hot and trigger failovers, promoting replicas to primary nodes. This created a cascade effect where entire nodes within the cluster became unusable while primary-replica promotions continued in an endless loop.

Looking to avoid that risk, they explored Redis Enterprise. This approach showed significant performance improvements and indeed met their service-level agreement requirements. However, there was a catch. JioCinema’s business requires millisecond-level latency across multiple regions

👁 "Why In-Memory or Redis Filters Won't Work"

According to Kamal, “Even with Redis Enterprise, we faced a choice between an active-active deployment to maintain low latency or compromising the customer experience in certain regions. The latter was unacceptable for our use case. Additionally, Redis Enterprise imposed substantial charges for each operation and replication, making it challenging to justify the return on investment of this feature for our business. This led us to explore ScyllaDB.”

Implementing Watch Discounting with ScyllaDB

Kamal continued, “ScyllaDB not only supported Bloom filters out of the box, but we also had prior experience using it for different personalization use cases. Knowing its exceptional speed and ability to replicate data into multiple regions and serve customers from locations close to their origin, ScyllaDB seemed like a comprehensive solution. This allowed us to concentrate on developing what mattered most for our customers and enabled us to go to market fast.”

As the following diagram shows, the Watch Discounting feature was powered by two ingestion pipelines.

👁 Image

Batch processes compute users’ watch history within a specified time window, determining if a piece of content meets the completion criteria to be considered “watched.” If so, the system updates the ScyllaDB table with a time-to-live (TTL) attribute, ensuring content only becomes rediscoverable after a specified amount of time.

Short videos (30- to- 60-second videos that drive high engagement) require a different treatment. Here, content must be marked as “viewed” immediately, so real-time event streaming is used to update the watch discounting repository.

Why ScyllaDB

Kamal concluded, “As mentioned earlier, adopting ScyllaDB enabled us to prioritize developing new functionality over creating data structures. This approach allowed us to keep our nodes small and maintain a clear separation of concerns between Bloom filters and filtering watched content. The unmatched performance of ScyllaDB became evident, especially when dealing with high cardinality of partitions and small data sizes — precisely the characteristics of our data set. TTLs made cleanups easy and permitted the discovery of watched content after a specified period. Moreover, reading from `LOCAL_QUORUM` ensured that we could access data from the closest region to the user, resulting in high throughput and lower latencies. This strategic combination of features in ScyllaDB significantly contributed to the efficacy and effectiveness of our system.”

ScyllaDB is engineered to deliver predictable performance at scale. It’s adopted by organizations that need ultra-low latency, even over millions of ops/sec & PBs of data. Our unique architecture leverages the power of modern infrastructure – translating to fewer nodes, less admin & lower costs.
Learn More
The latest from ScyllaDB
Hear more from our sponsor
TRENDING STORIES
Cynthia Dunlop has been writing about software development and testing for much longer than she cares to admit. She's currently senior director of content strategy at ScyllaDB.
Read more from Cynthia Dunlop
ScyllaDB sponsored this post.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Canva.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.