StreamQRE: modular specification and efficient evaluation of quantitative queries over streaming data

Author:

Mamouras Konstantinos1,Raghothaman Mukund1,Alur Rajeev1,Ives Zachary G.1,Khanna Sanjeev1

Affiliation:

1. University of Pennsylvania, USA

Abstract

Real-time decision making in emerging IoT applications typically relies on computing quantitative summaries of large data streams in an efficient and incremental manner. To simplify the task of programming the desired logic, we propose StreamQRE, which provides natural and high-level constructs for processing streaming data. Our language has a novel integration of linguistic constructs from two distinct programming paradigms: streaming extensions of relational query languages and quantitative extensions of regular expressions. The former allows the programmer to employ relational constructs to partition the input data by keys and to integrate data streams from different sources, while the latter can be used to exploit the logical hierarchy in the input stream for modular specifications. We first present the core language with a small set of combinators, formal semantics, and a decidable type system. We then show how to express a number of common patterns with illustrative examples. Our compilation algorithm translates the high-level query into a streaming algorithm with precise complexity bounds on per-item processing time and total memory footprint. We also show how to integrate approximation algorithms into our framework. We report on an implementation in Java, and evaluate it with respect to existing high-performance engines for processing streaming data. Our experimental evaluation shows that (1) StreamQRE allows more natural and succinct specification of queries compared to existing frameworks, (2) the throughput of our implementation is higher than comparable systems (for example, two-to-four times greater than RxJava), and (3) the approximation algorithms supported by our implementation can lead to substantial memory savings.

Funder

National Science Foundation

National Institutes of Health

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference47 articles.

1. Apache Flink: Scalable batch and stream data processing. https://flink.apache.org/. Apache Flink: Scalable batch and stream data processing. https://flink.apache.org/.

2. Esper for Java. http://www.espertech.com/esper/. Esper for Java. http://www.espertech.com/esper/.

3. ReactiveX: An API for asynchronous programming with observable streams. http://reactivex.io/. ReactiveX: An API for asynchronous programming with observable streams. http://reactivex.io/.

4. Aurora: a new model and architecture for data stream management

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Randomized First-Order Monitoring with Hashing;Runtime Verification;2022

2. An order-aware dataflow model for parallel Unix pipelines;Proceedings of the ACM on Programming Languages;2021-08-22

3. Specifying and detecting temporal patterns with shape expressions;International Journal on Software Tools for Technology Transfer;2021-06-29

4. Synchronization Schemas;Proceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2021-06-20

5. A Verified Online Monitor for Metric Temporal Logic with Quantitative Semantics;Runtime Verification;2020

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3