arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.00710cs.DCcs.DB
收藏

有状态实体:作为分布式数据流的面向对象云应用

Stateful Entities: Object-oriented Cloud Applications as Distributed Dataflows

Kyriakos Psarakis, Wouter Zorgdrager, Marios Fragkoulis, Guido Salvaneschi, Asterios Katsifodimos

AI总结:

本文提出将有状态实体(Python命令式事务编程模型)编译为有状态流式数据流,通过编译器流水线屏蔽状态与故障管理复杂性,实验证明事务负载下延迟可低于100毫秒。

摘要:

尽管云已经达到了稳健的状态,但使用其资源的负担却落在了程序员的肩上,他们难以跟上不断增长的云基础设施服务和抽象。因此,可扩展云应用的状态管理、扩展、运维和故障管理,所需的努力远超开发应用实际业务逻辑本身。我们的愿景旨在通过将有状态实体——一种支持用 Python 编写命令式事务程序的编程模型——编译为有状态流式数据流,来提高可扩展云应用编程的抽象层次。我们提出了一条编译器流水线,该流水线分析有状态实体的抽象语法树,并将其转换为基于有状态数据流图的中间表示。然后,它将中间表示编译到不同的数据流引擎中,利用其精确一次(exactly-once)消息处理保证,防止状态或故障管理原语“泄漏”到编程模型层面。使用概念验证实现的初步实验表明,尽管进行了程序转换并翻译为数据流,有状态实体即使在事务性工作负载下也能以低于 100 毫秒的延迟运行。

英文摘要:

Although the cloud has reached a state of robustness, the burden of using its resources falls on the shoulders of programmers who struggle to keep up with ever-growing cloud infrastructure services and abstractions. As a result, state management, scaling, operation, and failure management of scalable cloud applications, require disproportionately more effort than developing the applications' actual business logic. Our vision aims to raise the abstraction level for programming scalable cloud applications by compiling stateful entities -- a programming model enabling imperative transactional programs authored in Python -- into stateful streaming dataflows. We propose a compiler pipeline that analyzes the abstract syntax tree of stateful entities and transforms them into an intermediate representation based on stateful dataflow graphs. It then compiles that intermediate representation into different dataflow engines, leveraging their exactly-once message processing guarantees to prevent state or failure management primitives from "leaking" into the level of the programming model. Preliminary experiments with a proof of concept implementation show that despite program transformation and translation to dataflows, stateful entities can perform at sub-100ms latency even for transactional workloads.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑