Introduction
Modern cloud development is increasingly shifting toward disaggregated applications composed of various managed services. While this serverless model promises ease of use and infinite scalability, it often introduces significant complexity. Developers are currently forced to manually manage distributed systems issues such as failure handling, intermediate state storage, and cost-effective scaling. A notable case study from Amazon Prime Video highlighted how standard serverless architectures can lead to increased costs and reduced scalability, necessitating massive rewrites.
This paper proposes Serverless State Management Systems (SSMS), a new abstraction layer designed to simplify cloud development by decoupling an application's logical flow from its physical deployment. Similar to how Database Management Systems (DBMS) revolutionized data handling, SSMS aims to automate fault tolerance, scaling, and cost-optimization, potentially mitigating the 90% cost overheads seen in naive serverless implementations.
System Architecture
The proposed SSMS V0.1 acts as a mediating runtime between the application and cloud infrastructure, structured across three primary layers: the Application Layer, the Runtime Layer, and the Management Layer.
The design is built on three core pillars:
- Logical Application Model: Users define "virtual automata" (stateful message handlers) rather than coding for specific VMs or APIs. This model, inspired by the Actor model, allows for coarse-grained processing.
- Fault-Tolerance Primitives: Using the Composable Resilient Steps (CReSt) model, every action is treated as an atomic unit. Actions either complete entirely, updating state and sending messages, or fail and restart from a checkpoint. This is supported by DARQ, a cloud-native storage service.
- Automatic Cost-based Optimization: A management layer collects runtime statistics and uses a cost model to make placement decisions, such as scaling components or co-locating them to reduce latency.
Evaluation and Results
The prototype was evaluated on the Azure public cloud using a synthetic "Pi-calculator" workload with varying scale factors ($c=100k, 1m, 10m$). The evaluation explored the trade-offs between different VM sizes (D32s v3, D8s v3) and storage backends, including Managed SSDs and Azure Blobs.
A key finding was the significant impact of component placement. In I/O-intensive scenarios, physically co-locating compute and storage units resulted in orders-of-magnitude improvements in throughput by eliminating communication overhead.
The results demonstrated that SSMS provides substantial cost-performance flexibility. For non-compute-intensive tasks, upgrading storage proved more cost-efficient than upgrading VMs. Furthermore, the system showed effective multi-tenancy scaling, with throughput increasing almost linearly until hardware limits were reached.
Discussion and Future Work
While SSMS offers a promising path toward simplified cloud development, several challenges remain. Currently, the system does not automatically partition large workers; this logic remains with the developer. Future work will explore layering abstractions to automate this process. Additionally, while deactivating idle components saves costs, the resulting "cold start" delay may not be suitable for ultra-low-latency applications. The authors also plan to integrate machine learning to refine cost models and deployment strategies over time.
Summary updated