A Performance Analysis of Fault Recovery in Stream Processing Frameworks
The DOI matches its Crossref record; 45 of the 45 references it cites were found in a registry or an index.
Abstract
Distributed stream processing frameworks have gained widespread adoption in the last decade because they abstract away the complexity of parallel processing. One of their key features is built-in fault tolerance. In this work, we dive deeper into the implementation, performance, and efficiency of this critical feature for four state-of-the-art frameworks. We include the established Spark Streaming and Flink frameworks and the more novel Spark Structured Streaming and Kafka Streams frameworks. We test the behavior under different types of faults and settings: master failure with and without high-availability setups, driver failures for Spark frameworks, worker failure with or without exactly-once semantics, application and task failures. We highlight differences in behavior during these failures on several aspects, e.g., whether there is an outage, downtime, recovery time, data loss, duplicate processing, accuracy, and the cost and behavior of different message delivery guarantees. Our results highlight the impact of framework design on the speed of fault recovery and explain how different use cases may benefit from different approaches. Due to their task-based scheduling approach, the Spark frameworks can recover within 30 seconds and in most cases without necessitating an application restart. Kafka Streams has only a few seconds of downtime, but is slower at catching up on delays. Finally, Flink can offer end-to-end exactly-once semantics at a low cost but requires job restarts for most failures leading to high recovery times of around 50 seconds.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Distributed snapshots: determining global states of distributed systems
Chandy, K. M., & Lamport, L. (1985) · ACM Transactions on Computer Systems · doi:10.1145/214451.214456 · Cited by 2,443
Time, clocks, and the ordering of events in a distributed system
Massachusetts Computer Associates, I., & Lamport, L. (2019) · Concurrency: the Works of Leslie Lamport · doi:10.1145/3335772.3335934 · Cited by 1,979
A survey of rollback-recovery protocols in message-passing systems
Elnozahy, E. N. (., Alvisi, L., Wang, Y.-M., & Johnson, D. B. (2002) · ACM Computing Surveys · doi:10.1145/568522.568525 · Cited by 1,804
Notes on data base operating systems
Gray, J. N. (1978) · Lecture Notes in Computer Science · doi:10.1007/3-540-08755-9_9 · Cited by 1,656
Discretized streams: fault-tolerant streaming computation at scale
Zaharia, M., Das, T., Li, H., Hunter, T., Shenker, S., & Stoica, I. (2013) · Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles · doi:10.1145/2517349.2522737 · Cited by 982
Akidau, T., Bradshaw, R., Chambers, C., Chernyak, S., Fernández-Moctezuma, R. J., Lax, R., McVeety, S., Mills, D., Perry, F., Schmidt, E., et al. (2015) · Proceedings of the VLDB Endowment · doi:10.14778/2824032.2824076 · Cited by 750 · cited 2×
“, fault tolerance [1], accuracy [2], managing state [3], time recording [4].”
BackgroundUnderstanding fault-tolerant distributed systems
Cristian, F. (1991) · Communications of the ACM · doi:10.1145/102792.102801 · Cited by 694
Consensus on transaction commit
Gray, J., & Lamport, L. (2006) · ACM Transactions on Database Systems · doi:10.1145/1132863.1132867 · Cited by 346
Integrating scale out and fault tolerance in stream processing using operator state management
Castro Fernandez, R., Migliavacca, M., Kalyvianaki, E., & Pietzuch, P. (2013) · Proceedings of the 2013 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2463676.2465282 · Cited by 338
Exploiting punctuation semantics in continuous data streams
Tucker, P. A., Maier, D., Sheard, T., & Fegaras, L. (2003) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2003.1198390 · Cited by 308
Benchmarking Streaming Computation Engines: Storm, Flink and Spark Streaming
Chintapalli, S., Dagit, D., Evans, B., Farivar, R., Graves, T., Holderbaugh, M., Liu, Z., Nusbaum, K., Patil, K., Peng, B. J., et al. (2016) · 2016 IEEE International Parallel and Distributed Processing Symposium Workshops (IPDPSW) · doi:10.1109/ipdpsw.2016.138 · Cited by 297
State management in Apache Flink®: Consistent stateful distributed stream processing
Carbone, P., Ewen, S., Fóra, G., Haridi, S., Richter, S., & Tzoumas, K. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3137765.3137777 · Cited by 285 · cited 2×
“Flink implements this [18], [31] via the Two-Phase Commit Protocol [37].”
BackgroundMethodSamza: Stateful scalable stream processing at LinkedIn
Noghabi, S. A., Paramasivam, K., Pan, Y., Ramesh, N., Bringhurst, J., Gupta, I., & Campbell, R. H. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3137765.3137770 · Cited by 276 · cited 1×
“These requirements count for most frameworks [24]–[26], [31], [32].”
BackgroundHigh-Availability Algorithms for Distributed Stream Processing
Hwang, J.-H., Balazinska, M., Rasin, A., Cetintemel, U., Stonebraker, M., & Zdonik, S. (2005) · 21st International Conference on Data Engineering (ICDE'05) · doi:10.1109/icde.2005.72 · Cited by 261
Fault-tolerance in the Borealis distributed stream processing system
Bałazińska, M., Balakrishnan, H., Madden, S. R., & Stonebraker, M. R. (2005) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/1066157.1066160 · Cited by 226
Structured Streaming: A Declarative API for Real-Time Applications in Apache Spark
Armbrust, M., Das, T., Torres, J., Yavuz, B., Zhu, S., Xin, R., Ghodsi, A., Stoica, I., & Zaharia, M. (2018) · Proceedings of the 2018 International Conference on Management of Data · doi:10.1145/3183713.3190664 · Cited by 209
A survey on the evolution of stream processing systems
Fragkoulis, M., Carbone, P., Kalavri, V., & Katsifodimos, A. (2024) · The VLDB Journal · doi:10.1007/s00778-023-00819-8 · Cited by 207 · cited 3×
“A thorough overview of research on high-availability setups in stream processing has been given in [33] and [52].”
Highly available, fault-tolerant, parallel dataflows
Shah, M. A., Hellerstein, J. M., & Brewer, E. (2004) · Proceedings of the 2004 ACM SIGMOD international conference on Management of data · doi:10.1145/1007568.1007662 · Cited by 204
Benchmarking Distributed Stream Data Processing Systems
Karimov, J., Rabl, T., Katsifodimos, A., Samarev, R., Heiskanen, H., & Markl, V. (2018) · 2018 IEEE 34th International Conference on Data Engineering (ICDE) · doi:10.1109/icde.2018.00169 · Cited by 167
Adaptive Stream Processing using Dynamic Batch Sizing
Das, T., Zhong, Y., Stoica, I. G., & Shenker, S. J. (2014) · ACM Symposium on Cloud Computing (SoCC) · doi:10.1145/2670979.2670995 · Cited by 147
Evaluation of stream processing frameworks
van Dongen, G., & Van den Poel, D. (2020) · IEEE Transactions on Parallel and Distributed Systems · doi:10.1109/tpds.2020.2978480 · Cited by 110 · cited 10×
“Without a failure, the latency and batch interval of Spark Streaming are much lower than that of Structured Streaming [5].”
BackgroundMethodInfluentialStream Bench: Towards Benchmarking Modern Distributed Stream Computing Frameworks
Lu, R., Wu, G., Xie, B., & Hu, J. (2014) · 2014 IEEE/ACM 7th International Conference on Utility and Cloud Computing · doi:10.1109/ucc.2014.15 · Cited by 104
Recent Advancements in Event Processing
Dayarathna, M., & Perera, S. (2019) · ACM Computing Surveys · doi:10.1145/3170432 · Cited by 98
Fault-tolerant stream processing using a distributed, replicated file system
Kwon, Y., Bałazińska, M., & Greenberg, A. G. (2008) · Proceedings of the VLDB Endowment · doi:10.14778/1453856.1453920 · Cited by 90
A survey of state management in big data processing systems
To, Q.-C., Soto, J., & Markl, V. (2018) · The VLDB Journal · doi:10.1007/s00778-018-0514-9 · Cited by 81
A Performance Comparison of Open-Source Stream Processing Platforms
Lopez, M. A., Lobato, A. G. P., & Duarte, O. C. M. B. (2016) · 2016 IEEE Global Communications Conference (GLOBECOM) · doi:10.1109/glocom.2016.7841533 · Cited by 80
Beyond Analytics: The Evolution of Stream Processing Systems
Carbone, P., Fragkoulis, M., Kalavri, V., & Katsifodimos, A. (2020) · Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data · doi:10.1145/3318464.3383131 · Cited by 59
A Hybrid Approach to High Availability in Stream Processing Systems
Zhang, Z., Gu, Y., Ye, F., Yang, H., Kim, M., Lei, H., & Liu, Z. (2010) · IEEE International Conference on Distributed Computing Systems (ICDCS) · doi:10.1109/icdcs.2010.81 · Cited by 57
Streams and Tables: Two Sides of the Same Coin
Sax, M. J., Wang, G., Weidlich, M., & Freytag, J.-C. (2018) · Proceedings of the International Workshop on Real-Time Business Intelligence and Analytics · doi:10.1145/3242153.3242155 · Cited by 51
An adaptive replication scheme for elastic data stream processing systems
Heinze, T., Zia, M., Krahn, R., Jerzak, Z., & Fetzer, C. W. (2015) · ACM International Conference on Distributed and Event-Based Systems (DEBS) · doi:10.1145/2675743.2771831 · Cited by 42
Hazelcast jet: low-latency stream processing at the 99.99 th percentile
Gencer, C., Topolnik, M., Ďurina, V., Demirci, E., Kahveci, E. B., Gürbüz, A., Lukáš, O., Bartók, J., Gierlach, G., Hartman, F., et al. (2021) · Proceedings of the VLDB Endowment · doi:10.14778/3476311.3476387 · Cited by 38
Benchmarking modern distributed streaming platforms
Qian, S., Wu, G., Huang, J., & Das, T. (2016) · 2016 IEEE International Conference on Industrial Technology (ICIT) · doi:10.1109/icit.2016.7474816 · Cited by 37
Toward high-performance distributed stream processing via approximate fault tolerance
Huang, Q., & Lee, P. P. C. (2016) · Proceedings of the VLDB Endowment · doi:10.14778/3021924.3021925 · Cited by 36
Tolerating correlated failures in Massively Parallel Stream Processing Engines
Su, L., & Zhou, Y. (2016) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde.2016.7498267 · Cited by 34
Jayasekara, S., Harwood, A., & Karunasekera, S. A. (2020) · Future Generation Computer Systems · doi:10.1016/j.future.2020.04.019 · Cited by 30
Consistent regions: guaranteed tuple processing in IBM streams
Jacques-Silva, G., Zheng, F., Debrunner, D., Wu, K.-L., Dogaru, V., Johnson, E., Spicer, M., & Sariyüce, A. E. (2016) · Proceedings of the VLDB Endowment · doi:10.14778/3007263.3007272 · Cited by 29
A Comparison of Stream Processing Frameworks
Karakaya, Z., Yazici, A., & Alayyoub, M. (2017) · 2017 International Conference on Computer and Applications (ICCA) · doi:10.1109/comapp.2017.8079733 · Cited by 27
E-Storm: Replication-Based State Management in Distributed Stream Processing Systems
Liu, X., Harwood, A., Karunasekera, S. A., Rubinstein, B. I. P., & Buyya, R. (2017) · Proceedings of the International Conference on Parallel Processing · doi:10.1109/icpp.2017.66 · Cited by 20
Passive and Partially Active Fault Tolerance for Massively Parallel Stream Processing Engines
Su, L., & Zhou, Y. (2017) · IEEE Transactions on Knowledge and Data Engineering · doi:10.1109/tkde.2017.2720602 · Cited by 18
Shrink: prescribing resiliency solutions for streaming
Chandramouli, B., & Goldstein, J. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3055540.3055544 · Cited by 7
van Dongen, G., Steurtewagen, B., & den Poel, D. V. (2018) · IEEE International Congress on Big Data (BigData Congress) · doi:10.1109/bigdatacongress.2018.00043 · Cited by 6
Self-citationOnline Failure Forecast for Fault-Tolerant Data Stream Processing
Gu, X., Papadimitriou, S., Yu, P. S., & Chang, S. (2008) · Proceedings - International Conference on Data Engineering · doi:10.1109/icde.2008.4497565
On Composing Stream Applications in Peer-to-Peer Environments
Gu, X., & Nahrstedt, K. (2006) · IEEE Transactions on Parallel and Distributed Systems · doi:10.1109/tpds.2006.107
Integrating fault-tolerance and elasticity in a distributed data stream processing system
Madsen, K. G. S., Thyssen, P., & Zhou, Y. (2014) · International Conference on Scientific and Statistical Database Management · doi:10.1145/2618243.2618288
Reconfigurable Atomic Transaction Commit
Bravo, M., & Gotsman, A. (2019) · ACM Symposium on Principles of Distributed Computing (PODC) · doi:10.1145/3293611.3331590
Research works printed but not linked: 33
- zhang, 2021, Research on optimal checkpointing-interval for flink stream processing applications, Mobile Netw Appl, 4, 1
- 2020, Apache Zookeeper
- 2020, Enabling Exactly-Once in Kafka Streams
- 2020, Spark Streaming Programming Guide - Apache Spark
- kreps, 2011, Kafka: A distributed messaging system for log processing, Proc NetDB, 1
- rohrmann, 2021, Flip-160 Adaptive Scheduler
- silvestre, 2021, Clonos: Consistent causal recovery for highly-available streaming dataflows, Proc Int Conf Manage Data, 1637
- 10.1145/2517349.2522737 · DOI · Paper page
- bellavista, 2014, Adaptive fault-tolerance for dynamic resource provisioning in distributed stream processing systems, Proc EDBT, 85
- zaharia, 2012, Resilient distributed datasets: A fault-tolerant abstraction for in-memory cluster computing, Proc 9th USENIX Conf Netw Syst Design Implement, 15
- heise, 2020, Flip-76 Unaligned Checkpoints
- torres, 2018, Introducing low-latency continuous processing mode in structured streaming in apache spark 2 3
- carbone, 2015, Lightweight asynchronous snapshots for distributed dataflows, arXiv 1506 08603
- carbone, 2015, Apache flink: Stream and batch processing in a single engine, Bull IEEE Comput Soc Tech Committee Data Eng, 36, 1
- 2020, From Eager to Smarter in Apache Kafka Consumer Rebalances
- schepler, 2021, Flip-138 Declarative Resource Management
- rohrmann, 2021, Flip-159
- 2020, Apache Flink Stateful Computations over Data Streams
- 2017, NDW Nationale Databank Wegverkeersgegevens
- 2020, Apache Storm
- 2020, Apache samza - a distributed stream processing framework
- 2020, Apache Kafka Kafka Streams
- 2020, Apache Kafka
- akidau, 2018, Streaming Systems The What Where When and How of Large-Scale Data Processing
- 2020, An Overview of End-to-End Exactly-Once Processing in Apache Flink
- 2020, Apache Spark Structured Streaming Programming Guide
- henning, 2020, Theodolite: Scalability benchmarking of distributed stream processing engines in microservice architectures, arXiv 2009 00304
- 2021, Hadoop HDFS Architecture Guide
- byzek, 2018, Optimizing Your Apache Kafka Deployment
- wang, 2015, Tuning Java Garbage Collection for Spark Applications
- 2021, DC/OS
- 2019, ADVISOR
- 2021, ET Docker
Cited by
Benchmarking scalability of stream processing frameworks deployed as microservices in the cloud
Henning, S., & Hasselbring, W. (2024) · Journal of Systems and Software · doi:10.1016/j.jss.2023.111879 · Cited by 85
“While this work particularly addresses scalability, there are other recent studies that benchmark qualities such as throughput [8, 65, 80], latency [8, 9, 65], and fault-tolerance [82].”
BackgroundMethod
Metadata
- Authors
- van Dongen, G., & Poel, D. V. D.
- Venue
- IEEE Access
- Published
- 2021
- Volume
- 9
- Pages
- 93745-93763
- ISSN
- 2169-3536
- Cited by
- 24
- References
- 45
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.