Flo:渐进式流处理的语义基础
Flo: a Semantic Foundation for Progressive Stream Processing
AI总结:
本文提出参数化流处理语言 Flo,通过流处理进展和即时执行两个语义属性,确保流处理输出的确定性与新鲜度,并证明 Flink、LVars 和 DBSP 等系统语义可由 Flo 建模。
摘要:
流处理系统普遍存在于现代应用中,实时处理连续数据。现有的流处理语言具有多种语义模型和保证,且往往互不兼容。然而,所有这些语言都被视为“流处理”——它们有何共同点?在本文中,我们识别出两个通用且精确的语义属性:流处理进展和即时执行。二者共同确保流处理输出是确定性的,并且相对于流处理输入保持新鲜。我们在 Flo 的上下文中形式化地定义了这些属性,Flo 是一种参数化流处理语言,对数据流算子和流的底层结构进行抽象。它利用轻量级类型系统区分有界流(允许算子在终止时阻塞)和无界流。此外,Flo 提供了用于数据流组合和带环嵌套图的构造。为了证明我们属性的通用性,我们展示了来自代表性流处理和增量计算系统(Flink、LVars 和 DBSP)的关键思想,其语义可以在 Flo 中建模,且其保证可映射到我们的属性。
英文摘要:
Streaming systems are present throughout modern applications, processing continuous data in real-time. Existing streaming languages have a variety of semantic models and guarantees that are often incompatible. Yet all these languages are considered "streaming" -- what do they have in common? In this paper, we identify two general yet precise semantic properties: streaming progress and eager execution. Together, they ensure that streaming outputs are deterministic and kept fresh with respect to streaming inputs. We formally define these properties in the context of Flo, a parameterized streaming language that abstracts over dataflow operators and the underlying structure of streams. It leverages a lightweight type system to distinguish bounded streams, which allow operators to block on termination, from unbounded ones. Furthermore, Flo provides constructs for dataflow composition and nested graphs with cycles. To demonstrate the generality of our properties, we show how key ideas from representative streaming and incremental computation systems -- Flink, LVars, and DBSP -- have semantics that can be modeled in Flo and guarantees that map to our properties.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。