Structured Streaming: A Declarative API for Real-Time Applications in Apache Spark
The DOI matches its Crossref record; 17 of the 17 references it cites were found in a registry or an index.
Abstract
With the ubiquity of real-time data, organizations need streaming systems that are scalable, easy to use, and easy to integrate into business applications. Structured Streaming is a new high-level streaming API in Apache Spark based on our experience with Spark Streaming. Structured Streaming differs from other recent streaming APIs, such as Google Dataflow, in two main ways. First, it is a purely declarative API based on automatically incrementalizing a static relational query (expressed using SQL or DataFrames), in contrast to APIs that ask the user to build a DAG of physical operators. Second, Structured Streaming aims to support end-to-end real-time applications that integrate streaming with batch and interactive analysis. We found that this integration was often a key challenge in practice. Structured Streaming achieves high performance via Spark SQL's code generation engine and can outperform Apache Flink by up to 2x and Apache Kafka Streams by 90x. It also offers rich operational features such as rollbacks, code updates, and mixed streaming/batch execution. We describe the system's design and use cases from several hundred production deployments on Databricks, the largest of which process over 1 PB of data per month.
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
Resilient distributed datasets: a fault-tolerant abstraction for in-memory cluster computing
Zaharia, M., Chowdhury, M., Das, T., Dave, A., Ma, J. H., McCauley, M., Franklin, M. J. M., Shenker, S. J., & Stoica, I. G. (2012) · UC Berkeley · Cited by 4,952
Self-citationThe R Project in Statistical Computing
Ripley, B. D. (2001) · MSOR Connections · doi:10.11120/msor.2001.01010023 · Cited by 2,529
The design of the borealis stream processing engine
Abadi, D. J., Ahmad, Y., Bałazińska, M., Cherniack, M., Hwang, J.-H., Lindner, W., Maskey, A. S., Rasin, A., Ryvkina, E., Tatbul, N., et al. (2005) · Cited by 1,543
Spark SQL: Relational Data Processing in Spark
Armbrust, M., Xin, R. S., Lian, C., Huai, Y., Liu, D., Bradley, J. K., Meng, X., Kaftan, T., Franklin, M. J., Ghodsi, A., et al. (2015) · Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2723372.2742797 · Cited by 1,253
Self-citationDiscretized 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 · cited 10×
“By default, the system uses a microbatch model similar to Discretized Streams in Spark Streaming, which supports dynamic load balancing, rescaling, fault recovery and straggler mitigation by dividing work into small tasks [37].”
BackgroundMethodResultInfluentialSelf-citationIssues in data stream management
Golab, L., & ÖZSU, M. T. (2003) · ACM SIGMOD Record · doi:10.1145/776985.776986 · Cited by 964 · cited 2×
“For execution, Structured Streaming uses concepts similar to discretized streams formicrobatchmode [37] and traditional streaming engines for continuous processing mode [1, 13, 21].”
MethodHive - a petabyte scale data warehouse using Hadoop
Thusoo, A., Sarma, J. S., Jain, N., Shao, Z., Chakka, P., Zhang, N., Antony, S., Liu, H., & Murthy, R. (2010) · 2010 IEEE 26th International Conference on Data Engineering (ICDE 2010) · doi:10.1109/icde.2010.5447738 · Cited by 929 · cited 1×
“In this case, a streaming job is used to update summary tables in a structured storage system such as an RDBMS or Apache Hive [33].”
MethodAkidau, 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 10×
“Internally, Structured Streaming also tracks an output mode for each physical operator in the DAG produced during incrementalization, similar to the refinement mode for aggregation operators in Dataflow [2].”
BackgroundMethodInfluentialTelegraphCQ: continuous dataflow processing
Chandrasekaran, S., Cooper, O., Deshpande, A., Franklin, M. J., Hellerstein, J. M., Hong, W., Krishnamurthy, S., Madden, S. R., Reiss, F., & Shah, M. A. (2003) · Proceedings of the 2003 ACM SIGMOD international conference on Management of data · doi:10.1145/872757.872857 · Cited by 744 · cited 4×
“Because the API supports fine-grained execution, Structured Streaming jobs could theoretically run on any existing distributed streaming engine design [1, 13, 17].”
BackgroundMethodInfluentialNaiad: a timely dataflow system
Murray, D. G., McSherry, F., Isaacs, R., Isard, M., Barham, P., & Abadi, M. (2013) · Proceedings of the Twenty-Fourth ACM Symposium on Operating Systems Principles · doi:10.1145/2517349.2522738 · Cited by 656 · cited 1×
“While there has been tremendous progress in distributed stream processing systems in the past few years [2, 15, 17, 27, 32], these systems still remain fairly challenging to use in practice.”
Background
Cited by
Machine learning for streaming data: state of the art, challenges, and opportunities
Gomes, H. M., Read, J., Bifet, A., Barddal, J. P., & Gama, J. (2019) · ACM SIGKDD Explorations Newsletter · doi:10.1145/3373464.3373470 · Cited by 267
Delta lake: high-performance ACID table storage over cloud object stores
Armbrust, M., Das, T., Sun, L., Yavuz, B., Zhu, S., Murthy, M., Torres, J., van Hovell, H., Ionescu, A., Łuszczak, A., et al. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3415478.3415560 · Cited by 257
Self-citationEvaluation 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
“Structured Streaming bene-fits greatly from its micro-batch execution optimizations when processing bursts, confirming [6].”
BackgroundMethodInfluentialHazelcast 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
A Performance Analysis of Fault Recovery in Stream Processing Frameworks
van Dongen, G., & Poel, D. V. D. (2021) · IEEE Access · doi:10.1109/access.2021.3093208 · Cited by 24
(2024) · doi:10.1145/3642970.3655844 · Cited by 4
“Resolving this tension is a key challenge for efficient load balancing, and requires distributed prompt-aware scheduling ; we discuss some preliminary ideas in §6.2.”
InfluentialSelf-citation
Metadata
- Authors
- Armbrust, M., Das, T., Torres, J., Yavuz, B., Zhu, S., Xin, R., Ghodsi, A., Stoica, I., & Zaharia, M.
- Venue
- Proceedings of the 2018 International Conference on Management of Data
- Publisher
- ACM
- Published
- 2018-05-27
- Pages
- 601-613
- ISSN
- 0730-8078 (ISSN-L)
- OpenAlex
- W2798434712
- Cited by
- 209
- References
- 17
- FWCI
- 20.68
- Type
- conference paper
- Language
- en
- Open access
- closed
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.