Optimization of Threshold Functions over Streams
Walter Cai, Philip A. Bernstein, Wentao Wu, Badrish Chandramouli
Abstract
A common stream processing application is alerting, where the data stream management system (DSMS) continuously evaluates a threshold function over incoming streams. If the threshold is crossed, the DSMS raises an alarm. The threshold function is often calculated over two or more streams, such as combining temperature and humidity readings to determine if moisture will form on a machine and therefore cause it to malfunction. This requires taking a temporal join across the input streams. We show that for the broad class of functions called quasiconvex functions, the DSMS needs to retain very few tuples per-data-stream for any given time interval and still never miss an alarm. This surprising result yields a large memory savings during normal operation. That savings is also important if one stream fails, since the DSMS would otherwise have to cache all tuples in other streams until the failed stream recovers. We prove our algorithm is optimal and provide experimental evidence that validates its substantial memory savings.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- Factor Windows: Cost-based Query Rewriting for Optimizing Correlated Window AggregatesWentao Wu, Philip A. Bernstein, Alex Raizman, Christina PavlopoulouICDE 2022 · 4 citations
- TSUBASA: Climate Network Construction on Historical and Real-Time DataYunlong Xu, Jinshu Liu, Fatemeh NargesianSIGMOD 2022 · 2 citations
Related papers
- Approximate Range ThresholdingZhuo Zhang, Junhao Gan, Zhifeng Bao, Seyed Mohammad Hussein Kazemi et al.SIGMOD 2022 · 4 citations
- Unraveling the Impact of Window Semantics: Optimizing Join Order for Efficient Stream ProcessingAriane Ziehn, Jan Szlang, Steffen Zeuch, Volker MarklVLDB 2025 · 2 citations
- DLACEP: A Deep-Learning Based Framework for Approximate Complex Event ProcessingAdar Amir, Ilya Kolchinsky, Assaf SchusterSIGMOD 2022 · 12 citations
- Scout Sketch: Finding Promising Items in Data StreamsTianyu Ma, Guoju Gao, He Huang, Yu-e Sun et al.INFOCOM 2024 · 4 citations
- Together is Better: Heavy Hitters Quantile EstimationRana Shahout, Roy Friedman, Ran Ben BasatSIGMOD 2023 · 15 citations
