[Paper Review] PanJoin: A Partition-based Adaptive Stream Join
PanJoin is a partition-based adaptive stream join algorithm that accelerates large-window stream processing by dividing sliding windows into subwindows and applying three novel data structures—BI-Sort, RaP-Table, and WiB+-Tree—to reduce probing overhead. It achieves over 1000x higher throughput than prior solutions, supports both equi-join and non-equi-join, and adapts well to skewed data, with FPGA-optimized BI-Sort delivering 4x better energy efficiency than CPU-based implementations.
In stream processing, stream join is one of the critical sources of performance bottlenecks. The sliding-window-based stream join provides a precise result but consumes considerable computational resources. The current solutions lack support for the join predicates on large windows. These algorithms and their hardware accelerators are either limited to equi-join or use a nested loop join to process all the requests. In this paper, we present a new algorithm called PanJoin which has high throughput on large windows and supports both equi-join and non-equi-join. PanJoin implements three new data structures to reduce computations during the probing phase of stream join. We also implement the most hardware-friendly data structure, called BI-Sort, on FPGA. Our evaluation shows that PanJoin outperforms several recently proposed stream join methods by more than 1000x, and it also adapts well to highly skewed data.
Motivation & Objective
- Address the performance bottleneck of sliding-window stream joins, especially under large window sizes and high input rates.
- Overcome limitations of existing solutions that rely on nested-loop joins or are restricted to equi-joins, particularly in handling non-equi-joins and skewed data.
- Design a scalable, hardware-friendly architecture that simplifies window expiration and enables efficient parallel processing across subwindows.
- Achieve ultra-high throughput (10M–28M tuples/sec) and energy efficiency by leveraging FPGA acceleration and adaptive data structures.
- Enable integration with real-time stream processing engines like Apache Storm without significant performance degradation.
Proposed method
- Propose a new stream join architecture that partitions a sliding window into time-based subwindows, chained like a circular buffer, enabling efficient expiration and reducing inter-node communication.
- Introduce three data structures—BI-Sort, RaP-Table, and WiB+-Tree—each optimized for different subwindow sizes and selectivity levels to minimize probing comparisons.
- Use value-based partitioning within each subwindow to reduce memory access and comparison overhead during join probing, significantly outperforming traditional nested-loop joins.
- Design adaptive mechanisms, including the Linked List Adaptive Table, to handle skewed data distributions by balancing load across partitions.
- Implement the most hardware-friendly data structure, BI-Sort, on FPGA to exploit parallelism and achieve high throughput and energy efficiency.
- Integrate PanJoin into Apache Storm to evaluate real-world compatibility, measuring end-to-end performance with minimal system overhead.
Experimental results
Research questions
- RQ1Can a partitioned, adaptive stream join architecture significantly reduce probing overhead in large-window stream processing compared to nested-loop-based approaches?
- RQ2How do different data structures (BI-Sort, RaP-Table, WiB+-Tree) perform across varying subwindow sizes, selectivity, and data skew levels?
- RQ3To what extent can FPGA acceleration improve throughput and energy efficiency in stream join processing compared to CPU-based implementations?
- RQ4How does PanJoin scale with increasing input rates and window sizes, especially under non-equi-join and skewed data workloads?
- RQ5Can PanJoin be efficiently integrated into existing stream processing engines like Apache Storm without degrading performance?
Key findings
- PanJoin achieves a peak throughput of 28.9M tuples per second on a cluster with a window size of 128M, outperforming recent solutions by more than 1000x.
- The BI-Sort data structure on FPGA delivers over 4x better energy efficiency than its CPU counterpart, demonstrating strong hardware suitability.
- For non-equi-joins with high selectivity (S > 1K), result receiving overhead exceeds 90% of processing time in RaP-Table and WiB+-Tree, making network communication a dominant bottleneck.
- When window size increases to 1G, PanJoin with BI-Sort maintains a throughput of approximately 10M tuples per second, while other solutions are 10–100x slower under high selectivity.
- PanJoin integrated into Apache Storm maintains 90% of its throughput relative to an empty system, proving its efficiency and compatibility with production stream engines.
- The system shows diminishing returns with more worker nodes due to network communication overhead, especially in non-equi-join scenarios with high selectivity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.