Cutty

Aggregate sharing for user-defined windows

Conference Paper (2016)
Author(s)

Paris Carbone (KTH Royal Institute of Technology)

Jonas Traub (Technical University of Berlin)

A Katsifodimos (Technical University of Berlin)

Seif Haridi (KTH Royal Institute of Technology)

Volker Markl (Technical University of Berlin)

Affiliation
External organisation
DOI related publication
https://doi.org/10.1145/2983323.2983807
More Info
expand_more
Publication Year
2016
Language
English
Affiliation
External organisation
Volume number
24-28-October-2016
Pages (from-to)
1201-1210
ISBN (electronic)
9781450340731

Abstract

Aggregation queries on data streams are evaluated over evolving and often overlapping logical views called windows. While the aggregation of periodic windows were extensively studied in the past through the use of aggregate sharing techniques such as Panes and Pairs, little to no work has been put in optimizing the aggregation of very common, non-periodic windows. Typical examples of non-periodic windows are punctuations and sessions which can implement complex business logic and are often expressed as user-defined operators on platforms such as Google Dataflow or Apache Storm. The aggregation of such non-periodic or user-defined windows either falls back to expensive, best-effort aggregate sharing methods, or is not optimized at all. In this paper we present a technique to perform efficient aggregate sharing for data stream windows, which are declared as user-defined functions (UDFs) and can contain arbitrary business logic. To this end, we first introduce the concept of User-Defined Windows (UDWs), a simple, UDF-based programming abstraction that allows users to programmatically define custom windows. We then define semantics for UDWs, based on which we design Cutty, a low-cost aggregate sharing technique. Cutty improves and outperforms the state of the art for aggregate sharing on single and multiple queries. Moreover, it enables aggregate sharing for a broad class of non-periodic UDWs. We implemented our techniques on Apache Flink, an open source stream processing system, and performed experiments demonstrating orders of magnitude of reduction in aggregation costs compared to the state of the art.

No files available

Metadata only record. There are no files for this record.