[Paper Review] Benchmarking Distributed Stream Processing Engines.
This paper presents a benchmarking framework to evaluate the throughput and latency of stateful windowed operations in three major stream processing engines—Apache Storm, Spark, and Flink. By decoupling the system under test from the driver and using real-world workloads, the study reveals that each engine excels in different use cases, with no single system outperforming all others across the board.
Over the last years, stream data processing has been gaining attention both in industry and in academia due to its wide range of applications. To fulfill the need for scalable and efficient stream analytics, numerous open source stream data processing systems (SDPSs) have been developed, with high throughput and low latency being their key performance targets. In this paper, we propose a framework to evaluate the performance of three SDPSs, namely Apache Storm, Apache Spark, and Apache Flink. Our evaluation focuses in particular on measuring the throughput and latency of windowed operations. For this benchmark, we design workloads based on real-life, industrial use-cases. The main contribution of this work is threefold. First, we give a definition of latency and throughput for stateful operators. Second, we completely separate the system under test and driver, so that the measurement results are closer to actual system performance under real conditions. Third, we build the first driver to test the actual sustainable performance of a system under test. Our detailed evaluation highlights that there is no single winner, but rather, each system excels in individual use-cases.
Motivation & Objective
- To address the lack of standardized, realistic performance evaluation for distributed stream processing engines (SDPSs).
- To define precise metrics for throughput and latency in stateful stream operators, which are critical for accurate benchmarking.
- To eliminate measurement overhead and bias by completely isolating the system under test from the driver, ensuring results reflect real-world performance.
- To develop a sustainable performance driver capable of measuring the actual long-term throughput and latency of SDPSs under realistic workloads.
- To evaluate and compare the performance of Apache Storm, Apache Spark, and Apache Flink across diverse, industry-inspired use cases.
Proposed method
- Designing workloads based on real industrial use cases to ensure relevance and realism in performance evaluation.
- Defining latency and throughput metrics specifically for stateful operators, accounting for stateful processing semantics in windowed operations.
- Implementing a fully decoupled driver architecture that isolates the system under test, minimizing interference and measurement noise.
- Building a high-fidelity, sustainable performance driver capable of generating consistent, measurable workloads over extended periods.
- Using a controlled experimental setup where the system under test and driver run on separate nodes to simulate production conditions.
- Measuring end-to-end throughput and latency across multiple windowing operations, including sliding and tumbling windows, under varying data rates and system configurations.
Experimental results
Research questions
- RQ1How do Apache Storm, Apache Spark, and Apache Flink compare in terms of throughput and latency for stateful windowed stream processing operations?
- RQ2To what extent does the choice of system affect performance when processing real-world, industrial-scale workloads?
- RQ3Can a decoupled driver architecture provide more accurate and realistic performance measurements than traditional co-located testing setups?
- RQ4Which system demonstrates the most sustainable performance under long-running, high-throughput workloads?
- RQ5In which specific use-case scenarios does each system exhibit superior performance?
Key findings
- No single stream processing engine outperforms the others across all workloads; each excels in different operational scenarios.
- Apache Flink demonstrates superior performance in low-latency, high-throughput windowed operations, particularly for sliding windows with small window sizes.
- Apache Spark shows strong performance in batch-windowed operations and when processing large data volumes with complex stateful transformations.
- Apache Storm achieves high throughput in simple, stateless or lightweight stateful operations, especially under low-to-moderate data rates.
- The decoupled driver setup significantly reduces measurement overhead and provides more accurate, production-like performance results compared to co-located testing.
- Sustainable performance varies significantly across systems, with Flink maintaining stable throughput over extended durations, while Storm and Spark show performance degradation under sustained high load in some configurations.
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.