[Paper Review] Reproducible Experiments for Comparing Apache Flink and Apache Spark on Public Clouds
This paper presents a reproducible experimental framework for comparing Apache Flink and Apache Spark on public clouds using the Karamel orchestration platform. By integrating Terasort (batch) and Yahoo Stream (stream) benchmarks into Karamel-configured, cloud-deployable workflows, the authors enable easy replication of experiments with configurable parameters, validating prior performance claims and demonstrating Flink’s slight edge in latency and memory efficiency.
Big data processing is a hot topic in today's computer science world. There is a significant demand for analysing big data to satisfy many requirements of many industries. Emergence of the Kappa architecture created a strong requirement for a highly capable and efficient data processing engine. Therefore data processing engines such as Apache Flink and Apache Spark emerged in open source world to fulfil that efficient and high performing data processing requirement. There are many available benchmarks to evaluate those two data processing engines. But complex deployment patterns and dependencies make those benchmarks very difficult to reproduce by our own. This project has two main goals. They are making few of community accepted benchmarks easily reproducible on cloud and validate the performance claimed by those studies.
Motivation & Objective
- To address the lack of reproducibility in existing Apache Flink and Apache Spark performance benchmarks due to complex deployment and configuration dependencies.
- To enable researchers and practitioners to easily reproduce Flink and Spark experiments on public clouds using automated, version-controlled deployment workflows.
- To validate prior performance claims—particularly from Dongwong Kim’s study—by re-implementing and re-running key benchmarks in a controlled, reproducible environment.
- To provide a reusable, open-source framework for future performance comparisons of stream and batch processing engines in cloud environments.
Proposed method
- Using the Karamel orchestration platform to define and manage end-to-end experimental workflows for Flink and Spark deployments on public clouds.
- Integrating community-accepted benchmarks: Terasort for batch processing and Yahoo Stream benchmark for stream processing, with modifications for compatibility.
- Leveraging Karamel’s DSL and GUI to configure cluster size, cloud provider (e.g., EC2), and software dependencies via declarative configuration files.
- Extending the HiBench streaming benchmark to be compatible with Karamel’s automated deployment pipeline for reproducibility.
- Automating cluster deployment using Karamel-compatible Chef cookbooks for Hadoop, Kafka, Zookeeper, Spark, and Flink.
- Collecting application-level metrics (latency, throughput) and system-level metrics (CPU, memory usage) using tools like Collectl during benchmark execution.
Experimental results
Research questions
- RQ1Can Apache Flink and Apache Spark performance be reliably reproduced across different cloud environments using automated orchestration?
- RQ2How do Flink and Spark compare in terms of latency and resource consumption (CPU, memory) under identical streaming workloads?
- RQ3To what extent can prior performance claims—especially those from Dongwong Kim’s study—be validated in a fully reproducible, cloud-based experimental setup?
- RQ4How does the Karamel platform facilitate reproducibility in distributed data processing benchmarking compared to manual deployment?
Key findings
- Apache Flink demonstrated slightly better performance than Apache Spark in the Yahoo Stream benchmark, particularly in latency and memory efficiency.
- Flink consumed less than 14GB of memory during stream processing, while Spark consumed approximately 18GB, indicating lower memory footprint for Flink.
- CPU utilization patterns were similar between Flink and Spark, with spikes during data initialization and post-processing stages, confirming consistent system behavior across both engines.
- The Karamel-based framework enabled consistent, repeatable deployment and execution of clusters and benchmarks, significantly reducing setup overhead and configuration complexity.
- The results from the re-executed benchmarks closely matched the performance trends reported in prior studies, such as those by Dongwong Kim, thereby validating the reliability of the original findings.
- The framework supports parameterized experimentation, allowing users to easily vary cluster size and input load to study scalability and performance trade-offs.
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.