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

📅 2025-07-29
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Existing programming models struggle to address the dynamic and stateful nature of cloud-edge-end continuum applications. This paper proposes the Collaborative State Machine (CSM) programming model, designed to support reactive, event-driven, and stateful application development across the continuum. Its core contributions are: (1) a collaborative state machine mechanism jointly driven by events and persistent data, encapsulating state and embedding service invocations; and (2) a high-level data model with explicit scope and lifecycle management, unifying local, static, and persistent data handling. A distributed runtime enables autonomous coordination among state machines, decoupling complex logic while ensuring efficient execution. Evaluation demonstrates significant improvements: 12× higher throughput; 2.3× faster processing than Serverless Workflow in image monitoring; 55× reduction in total processing time for smart factory workloads; and substantially enhanced developer productivity.

Technology Category

Application Category

📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

Develop robust programming models for Cloud-Edge-IoT applications
Manage dynamic and stateful nature of distributed applications effectively
Improve throughput and processing time in Cloud-Edge-IoT continuum
Innovation

Methods, ideas, or system contributions that make the work stand out.

Collaborative State Machines for Cloud-Edge-IoT applications
Event-driven state machines with persistent data
Integrated actions and service invocations in states
🔎 Similar Papers
No similar papers found.