NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BriskStream: Scaling Data Stream Processing on Shared-Memory Multicore Architectures

Shuhao Zhang, Jiong He, Amelie Chi Zhou, Bingsheng He

Abstract

Modern "scale-up" servers with many-core processors and Non-Uniform Memory Access (NUMA) architectures offer immense potential for high-performance data stream processing. However, traditional distributed Data Stream Processing Systems (DSPSs) often fail to exploit this potential due to a lack of hardware awareness, resulting in excessive cross-socket traffic and thread interference. This paper presents BriskStream, a system designed to maximize throughput on shared-memory multicore architectures. Central to BriskStream is Relative-Location Aware Scheduling (RLAS), an optimization framework that jointly determines operator replication and placement by modeling processing capacity as a function of NUMA distance. Our evaluation shows that BriskStream outperforms popular systems like Apache Storm and Flink by up to 20x in throughput while maintaining drastically lower latency.

Introduction

As data volumes continue to surge, the industry has shifted toward "scale-up" servers—machines equipped with dozens or hundreds of CPU cores and terabytes of RAM. These systems utilize Non-Uniform Memory Access (NUMA) architectures, where memory access latency depends on the physical distance between a CPU core and the memory bank. While these architectures are powerful, they present a significant bottleneck for traditional Data Stream Processing Systems (DSPSs) like Apache Storm and Apache Flink.

Existing DSPSs were largely designed for distributed clusters. When deployed on a single large multicore machine, they often treat all cores and memory as uniform resources. This hardware-agnostic approach leads to random operator placement, causing massive cross-socket traffic, severe thread interference, and poor cache locality. The fundamental challenge lies in the fact that an operator’s processing capability is not static; it changes dynamically based on its physical distance from the operator feeding it data. BriskStream addresses this by introducing a scheduling paradigm that is fundamentally aware of the underlying hardware topology.

Relative-Location Aware Scheduling (RLAS)

BriskStream’s core innovation is Relative-Location Aware Scheduling (RLAS). Unlike traditional schedulers that optimize for load balancing or simple resource availability, RLAS treats operator replication and placement as a joint optimization problem.

NUMA-Aware Performance Model

At the heart of RLAS is a performance model that recognizes that an operator’s output rate is a function of both its execution time and its data fetch time. In a NUMA environment, the fetch time scales based on the distance between the producer and the consumer. By formalizing this relationship, BriskStream can predict the throughput of a specific execution plan before deployment.

The RLAS Algorithm

The RLAS algorithm iteratively identifies bottleneck operators—those receiving data faster than they can process it—and scales their replication level. To navigate the massive search space of placing these replicas across multiple CPU sockets, BriskStream employs a Branch and Bound (B&B) approach enhanced by several key heuristics:

  • Collocation: The scheduler prioritizes placing producer-consumer pairs in close physical proximity to minimize remote memory access.
  • Best-fit and Redundant-elimination: These techniques allow the system to quickly slot in independent operators and prune identical sub-problems during the search process, making the optimization computationally feasible.
  • Graph Compression: By grouping multiple replicas of an operator into a single block, the system reduces the granularity of the optimization task, significantly speeding up the search for an optimal plan.

System-Level Efficiency

Beyond scheduling, BriskStream introduces several system-level optimizations to eliminate the overhead inherent in distributed designs. Traditional systems often suffer from heavy instruction footprints due to serialization and complex cross-process communication. BriskStream utilizes pass-by-reference memory sharing and introduces "Jumbo Tuples." By batching multiple tuples destined for the same consumer into a single object with a shared header, the system drastically reduces queue insertion overhead and instruction cache misses.

Evaluation

The authors evaluated BriskStream using four standard streaming benchmarks: Word Count (WC), Fraud Detection (FD), Spike Detection (SD), and Linear Road (LR). These benchmarks represent a variety of computational and memory bandwidth demands.

Throughput and Latency

BriskStream achieved between 2.8x and 20.2x higher throughput compared to Apache Storm and Flink. The performance gap was most pronounced in memory-intensive tasks where NUMA bottlenecks are most severe. Furthermore, BriskStream maintained significantly lower latency under high load. In the Word Count task, BriskStream’s 99th-percentile end-to-end latency was 21.9 ms, while Storm and Flink saw latencies balloon to 37 seconds and 5.6 seconds, respectively.

Scalability and Algorithm Impact

The system demonstrated near-linear scalability from 1 to 4 CPU sockets. While scalability tapered slightly at 8 sockets due to the extreme latency of crossing physical CPU trays, BriskStream continued to outperform the baselines. Critically, the RLAS optimization algorithm itself was responsible for a 119% to 455% improvement in throughput compared to naive scheduling approaches that ignore NUMA effects.

Conclusion and Future Work

BriskStream demonstrates that significant performance gains are possible by making stream processing systems hardware-aware. By moving away from the "one-size-fits-all" distributed model and embracing the realities of NUMA architectures, BriskStream provides a blueprint for the next generation of scale-up data processing.

Future work includes adapting RLAS for dynamic workloads where stream rates fluctuate in real-time. Additionally, the authors plan to explore operator fusion—combining multiple operators into a single execution unit—to further reduce communication overhead in shared-memory environments.

Summary updated

BibTeX
@inproceedings{zhang2019briskstream,
  author = {Shuhao Zhang and Jiong He and Amelie Chi Zhou and Bingsheng He},
  title = {{BriskStream: Scaling Data Stream Processing on Shared-Memory Multicore Architectures}},
  booktitle = {SIGMOD},
  year = {2019},
  doi = {10.1145/3299869.3300067},
}
Figure