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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Etheredge, Marlon, Fahringer, Thomas, Erlacher, Felix, Kohler, Elias, Pedratscher, Stefan, Aznar-Poveda, Juan, Saurabh, Nishant, Lebre, Adrien
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913964785401856
author Etheredge, Marlon
Fahringer, Thomas
Erlacher, Felix
Kohler, Elias
Pedratscher, Stefan
Aznar-Poveda, Juan
Saurabh, Nishant
Lebre, Adrien
author_facet Etheredge, Marlon
Fahringer, Thomas
Erlacher, Felix
Kohler, Elias
Pedratscher, Stefan
Aznar-Poveda, Juan
Saurabh, Nishant
Lebre, Adrien
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2507_21685
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Collaborative State Machines: A Better Programming Model for the Cloud-Edge-IoT Continuum
Etheredge, Marlon
Fahringer, Thomas
Erlacher, Felix
Kohler, Elias
Pedratscher, Stefan
Aznar-Poveda, Juan
Saurabh, Nishant
Lebre, Adrien
Distributed, Parallel, and Cluster Computing
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.
title Collaborative State Machines: A Better Programming Model for the Cloud-Edge-IoT Continuum
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2507.21685