Stateful Execution Models for Serverless Computing

This direction is merged into another direction: serverless state management. Its last version stays readable and citable here.

Version 1 of 151 papers63 conceptsfrozen 2026-10-04

The first generation of serverless computing, epitomized by Functions-as-a-Service (FaaS), promised a world of infinite scalability and "pay-as-you-go" efficiency. However, as Jose M. Faleiro, Joseph E. Gonzalez, and their colleagues argued in Serverless Computing: One Step Forward, Two Steps Back, this model came with a significant architectural tax: statelessness. By forcing functions to be short-lived and ephemeral, the cloud effectively "stepped back" from the needs of data-intensive and stateful applications.

The core of the research direction today is the effort to re-introduce "state" into these elastic environments without losing the benefits of serverless scaling.

The Statelessness Bottleneck

In a traditional FaaS model, a function starts, executes, and disappears. If it needs to remember something—a user’s session, a database cursor, or a partially completed calculation—it must "ship" that data to an external store like S3 or DynamoDB.

As Blesson Varghese and Philipp Leitner point out in Cloud Futurology, this creates a performance wall. The latency of fetching state from remote storage often exceeds the execution time of the function itself. This "data shipping" problem makes it nearly impossible to run low-latency, stateful services like search engines or real-time analytics. For instance, Jimmy Lin demonstrated in A Prototype of Serverless Lucene that while search can work on Lambda, the fundamental challenge remains the decoupling of the stateful index from the stateless compute layer.

Decoupling Compute from Memory

To solve this, researchers are exploring disaggregated memory architectures. Instead of shipping data to a slow database, what if the compute nodes and the memory nodes were separate but connected by a high-speed fabric?

In MODC: Resilience for disaggregated memory architectures using task-based programming, Kimberly Keeton and Haris Volos propose moving task metadata and work queues into shared, disaggregated memory. This allows a new function to pick up exactly where a failed one left off, enabling near-instantaneous recovery. Similarly, Yiying Zhang advocates for a "resource-centric" approach in Resource-Centric Serverless Computing, where CPU and memory are allocated independently, allowing state to persist in memory even when the CPU is idle.

Declarative State and Dataflow

Another approach focuses on the programming model itself. If the infrastructure is going to handle state, the developer shouldn't have to manually manage locks or consistency.

The Hydro project, led by Joseph M. Hellerstein, Alvin Cheung, and Natacha Crooks, proposes a new stack described in New Directions in Cloud Programming. They suggest using a declarative intermediate representation called HydroLogic. By treating computations as a graph of operators (a stateful dataflow), the system can automatically decide how to scale and where to store state, ensuring consistency without the developer writing "cloud assembly" code.

Consistency in Decentralized Environments

The challenge of state becomes even more acute when moving from a single cloud provider to decentralized or "edge" environments. As Márk Jelasity and Antony I. T. Rowstron noted in their overview of Peer-to-Peer and Web Computing, coordinating state across symmetric, decentralized nodes without a central authority is a major technical hurdle.

Recent work like SERVERLESSBFT by Suyash Gupta and Mohammad Sadoghi attempts to bring Byzantine Fault Tolerance to these workflows. By decoupling request ordering from execution, they allow stateful transactions to occur across untrusted edge and cloud nodes. This is echoed in the work of Emmanuelle Anceaume on SplitChain, which addresses the difficulty of maintaining global consistency in sharded, stateful blockchain architectures.

The Path Forward

The research community is moving toward a consensus: the future of the cloud is not purely stateless. Whether through probabilistic caching at the edge (Chen Chen in pCache) or logical clocks for network functions (Junaid Khalid in StreamNF), the goal is to provide the developer with a "stateful" abstraction that feels like a single machine, while the underlying system handles the messy reality of distributed synchronization.

As Zijun Li and Bingsheng He conclude in their Serverless Computing Survey, transitioning from stateless to stateful models is the primary frontier for the next generation of cloud-native infrastructure.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_stateful_execution_models_for_serverless_36d29dee,
  title = {Stateful Execution Models for Serverless Computing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/stateful-execution-models-for-serverless-computing/rdr_36d29dee546646959eb64fa15666ed1a},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_stateful_execution_models_for_serverless_36d29dee_v1,
  title = {Stateful Execution Models for Serverless Computing},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/stateful-execution-models-for-serverless-computing/rdr_36d29dee546646959eb64fa15666ed1a/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}