arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.21685cs.DC
收藏

协作状态机:面向云-边-物联网连续体的更优编程模型

Collaborative State Machines: A Better Programming Model for the Cloud-Edge-IoT Continuum

Marlon Etheredge, Thomas Fahringer, Felix Erlacher, Elias Kohler, Stefan Pedratscher, Juan Aznar-Poveda, Nishant Saurabh, Adrien Lebre

AI总结:

针对云-边-物联网应用现有编程模型难管理动态有状态特性的问题,提出支持状态机自主协作的CSM编程模型,配套运行时系统经多场景测试验证,在吞吐量、处理速度和开发效率上均显著优于现有基准系统。

摘要:

云-边-物联网应用的开发需要稳健的编程模型。现有模型通常难以有效管理这类应用的动态性和有状态特性。本文提出协作状态机(Collaborative State Machines,CSM)编程模型以应对这些复杂性。CSM为面向云-边-物联网连续体的反应式、事件驱动型有状态应用的开发提供支持。基于CSM构建的应用由多个状态机构成,这些状态机可自主协作,且能分布在连续体的不同层级中。CSM的核心特性包括:(1)借助事件与持久数据实现的状态机间精细化协作机制;(2)通过状态机的固有状态与持久数据完成状态封装;(3)将动作与服务调用集成在状态和状态转换过程中,从而将复杂应用逻辑与计算、数据处理服务解耦;(4)支持处理具有明确作用域和生命周期的本地、静态及持久数据的高级数据模型。除提出CSM编程模型外,本文还介绍了一套运行时系统,并对所提方法开展了全面评估。本次评估基于三个用例展开:大规模基础设施压力测试、监控系统应用、复杂智能工厂场景,所有用例均部署在Grid'5000测试平台上。实验结果表明,在压力测试中,凭借全新的语言特性,吞吐量提升了12倍。与当前最先进的基准系统Serverless Workflow相比,在监控系统用例中,单张图像处理耗时提升2.3倍;在智能工厂用例中,总处理时间降低了55倍;且在所有用例中整体开发效率均有所提升。

英文摘要:

The development of Cloud-Edge-IoT applications requires robust programming models. Existing models often struggle to manage the dynamic and stateful nature of these applications effectively. This paper introduces the Collaborative State Machines (CSM) programming model to address these complexities. CSM facilitates the development of reactive, event-driven, and stateful applications targeting the Cloud-Edge-IoT continuum. Applications built with CSM are composed of state machines that collaborate autonomously and can be distributed across different layers of the continuum. Key features of CSM include (i) a sophisticated collaboration mechanism among state machines utilizing events and persistent data; (ii) encapsulation of state through the inherent state of state machines and persistent data; (iii) integration of actions and service invocations within states and state transitions, thereby decoupling complex application logic from compute and data processing services; and (iv) an advanced data model that supports the processing of local, static, and persistent data with defined scope and lifetime. In addition to introducing the CSM programming model, we present a runtime system and a comprehensive evaluation of our approach. This evaluation is based on three use cases: a stress test on a large-scale infrastructure, a surveillance system application, and a complex smart factory scenario, all deployed on the Grid'5000 testbed. Our results demonstrate a 12x increase in throughput through novel language features in the stress test. Compared to Serverless Workflow, a state-of-the-art baseline system, we show a 2.3x improvement in processing time per processed image in a surveillance system use case, a 55x reduction in total processing time for a smart factory use case, and an overall improvement in productivity across these use cases.

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

↑