Scotty
Jonas Traub, Philipp M. Grulich, Alejandro Rodríguez Cuéllar et al. · ACM Transactions on Database Systems · 2021
Window aggregation is a core operation in data stream processing. Existing aggregation techniques focus on reducing latency, eliminating redundant computations, or minimizing memory usage. However, each technique operates under different assumptions with respect to workload characteristics, such as properties of aggregation functions (e.g., invertible, associative), window types (e.g., sliding, sessions), windowing measures (e.g., time- or count-based), and stream (dis)order. In this article, we present Scotty , an efficient and general open-source operator for sliding-window aggregation in stream processing systems, such as Apache Flink, Apache Beam, Apache Samza, Apache Kafka, Apache Spark, and Apache Storm. One can easily extend Scotty with user-defined aggregation functions and window types. Scotty implements the concept of general stream slicing and derives workload characteristics from aggregation queries to improve performance without sacrificing its general applicability. We provide an in-depth view on the algorithms of the general stream slicing approach. Our experiments show that Scotty outperforms alternative solutions.
Cited by 25 works. doi:10.1145/3433675
Authors
- Jonas Traub
- Philipp M. Grulich
- Alejandro Rodríguez Cuéllar
- Sebastian Breß
- Asterios Katsifodimos
- Tilmann Rabl
- Volker Markl
References
- Data Cube: A Relational Aggregation Operator Generalizing Group-By, Cross-Tab, and Sub-Totals
- Apache Spark
- Apache flink : Stream and batch processing in a single engine
- Discretized streams: an efficient and fault-tolerant model for stream processing on large clusters
- The dataflow model
- Exploiting punctuation semantics in continuous data streams
- The Stratosphere platform for big data analytics
- Distributed aggregation for data-parallel computing
- Semantics and evaluation techniques for window aggregates in data streams
- Benchmarking Streaming Computation Engines: Storm, Flink and Spark Streaming