Netflix accelerates Cassandra: splits partitions by ID, latency drops to ms

Discover how Netflix reduced read latency from seconds to milliseconds by splitting wide Cassandra partitions by ID. Innovative technique of

jueves, 9 de julio de 2026 • 2 min read • Q2BSTUDIO Team

Dynamic repartitioning by ID reduces latency

In today's massive data ecosystem, managing time-series stores with millisecond latencies is a challenge few companies can successfully tackle. Netflix, operating one of the world's largest streaming platforms, faced a classic problem in distributed databases: wide partitions in Apache Cassandra. When a partition key accumulates too many events — for example, the playback history of an active user over years — reads slow down drastically, going from milliseconds to several seconds, and even causing timeouts, garbage collection pauses, and thread saturation.

To solve this, Netflix's engineering team developed a dynamic repartitioning mechanism by individual identifier. Instead of resizing entire tables — an expensive operation that only corrects global mismatches — this system detects on the read path which partitions exceed a configurable threshold (e.g., 10 MB) and emits an event to Kafka. An asynchronous scheduler reads the original partition, calculates an optimal split into smaller sub-partitions (assigning more event buckets), and validates the operation using checksums. The original partitions are never deleted, serving as a safe fallback. The read path uses Bloom filters (with microsecond latencies) and a cached metadata table to redirect queries to the new sub-partitions, merging the results. The result: average latency dropped from seconds to tens of milliseconds, the extreme latency tail was reduced to ~200 ms, and partitions over 500 MB remained accessible.

This approach is especially valuable when only a small percentage of identifiers generate wide partitions — so-called data outliers — while the rest of the table behaves normally. Netflix calls this solution 'Dynamic Partitioning per ID' and complements it with Time Slice repartitioning for table-level adjustments. The combination avoids cluster over-provisioning and optimizes operational costs.

At Q2BSTUDIO, we understand that efficient large-scale data management is critical for any digital company. That's why we offer custom applications and custom software that integrate artificial intelligence for businesses, enabling the detection of performance patterns and automation of scaling decisions. Our AI agents can monitor database metrics and trigger corrective actions, similar to Netflix's detection pipeline but adapted to any infrastructure.

Netflix's experience also demonstrates the importance of AWS and Azure cloud services as a platform for implementing distributed solutions. At Q2BSTUDIO, we provide AWS and Azure cloud services that include fault-tolerant architectures, auto-scaling, and compliance. Additionally, we combine business intelligence with Power BI and other tools — our business intelligence services — to visualize partition behavior and anticipate bottlenecks. Cybersecurity also plays a fundamental role: when handling sensitive time-series data, applying cybersecurity in storage and communication layers is essential.

In summary, Netflix's case illustrates how intelligent partition design, combined with automation and rigorous validation, can transform Cassandra's performance without the need to resize hardware. At Q2BSTUDIO, we apply these principles in every project, offering solutions ranging from custom application development to the implementation of AI agents to optimize business processes. Because, as Netflix shows, innovation lies not in increasing resources, but in managing them more intelligently.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.