Skip to main content
QUICK REVIEW

[Paper Review] Serverless Workflows with Durable Functions and Netherite

Sebastian Burckhardt, Chris Gillum|arXiv (Cornell University)|Feb 26, 2021
Cloud Computing and Resource ManagementComputer Science21 references10 citations
TL;DR

This paper proposes Durable Functions, a serverless programming model that enables developers to author complex, stateful workflows using standard code in any language, and Netherite, a distributed execution engine that efficiently scales these workflows. Netherite achieves low latency and high throughput by using partitioning, recovery logs, asynchronous snapshots, and speculative communication, outperforming existing serverless workflow solutions by orders of magnitude in key workloads.

ABSTRACT

Serverless is an increasingly popular choice for service architects because it can provide elasticity and load-based billing with minimal developer effort. A common and important use case is to compose serverless functions and cloud storage into reliable workflows. However, existing solutions for authoring workflows provide a rudimentary experience compared to writing standard code in a modern programming language. Furthermore, executing workflows reliably in an elastic serverless environment poses significant performance challenges. To address these, we propose Durable Functions, a programming model for serverless workflows, and Netherite, a distributed execution engine to execute them efficiently. Workflows in Durable Functions are expressed as task-parallel code in a host language of choice. Internally, the workflows are translated to fine-grained stateful communicating processes, which are load-balanced over an elastic cluster. The main challenge is to minimize the cost of reliably persisting progress to storage while supporting elastic scale. Netherite solves this by introducing partitioning, recovery logs, asynchronous snapshots, and speculative communication. Our results show that Durable Functions simplifies the expression of complex workflows, and that Netherite achieves lower latency and higher throughput than the prevailing approaches for serverless workflows in Azure and AWS, by orders of magnitude in some cases.

Motivation & Objective

  • To address the limitations of existing serverless workflow solutions, which offer poor programmability and performance.
  • To enable developers to express complex, stateful workflows using familiar programming constructs instead of declarative or unstructured composition.
  • To build a scalable, reliable execution engine that supports elastic scaling while minimizing storage I/O costs for durable state.
  • To provide a strong, developer-understandable reliability guarantee—causally consistent commit—that ensures atomicity of dependent workflow steps.
  • To reduce the performance bottleneck of per-workflow state persistence by introducing efficient, batched, and speculative state management.

Proposed method

  • Durable Functions translates workflows into fine-grained, stateful communicating processes in a host language such as C#, Python, or JavaScript.
  • The system uses a computation model with two primitives: stateless tasks and stateful instances, decoupling the programming model from execution.
  • Netherite implements this model using partitioning to distribute state across nodes, enabling elastic scaling.
  • It employs recovery logs to ensure progress durability and enable fast restarts after failures.
  • Asynchronous snapshots reduce the cost of state persistence by deferring checkpointing until after task completion.
  • Speculative communication allows message delivery to proceed before state is fully persisted, improving throughput and reducing latency.

Experimental results

Research questions

  • RQ1How can serverless workflows be expressed in a way that is both programmable and composable using standard programming languages?
  • RQ2What execution model enables efficient, elastic scaling of stateful serverless workflows while minimizing storage I/O overhead?
  • RQ3How can strong reliability guarantees—such as causally consistent commit—be efficiently implemented in a serverless environment?
  • RQ4What performance improvements are possible over existing serverless workflow systems like AWS Step Functions and Azure Durable Functions?
  • RQ5Can partitioning, speculative communication, and asynchronous snapshots collectively reduce latency and increase throughput in stateful serverless execution?

Key findings

  • Durable Functions enables developers to write complex, stateful workflows using familiar control flow constructs and language ecosystems, significantly improving programmability over declarative or unstructured models.
  • Netherite achieves lower latency and higher throughput than existing serverless workflow solutions, with performance improvements by orders of magnitude in certain workloads.
  • The use of partitioning and speculative communication reduces end-to-end latency by enabling concurrent message processing before state is fully persisted.
  • Asynchronous snapshots and recovery logs reduce the I/O cost of durable state persistence, enabling efficient scaling across large clusters.
  • The causally consistent commit guarantee ensures atomicity of dependent steps, preventing partial or inconsistent state changes even under failures.
  • End-to-end evaluation shows that Netherite scales efficiently under high load, maintaining low latency and high throughput compared to baseline systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.