NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DataFlower: Exploiting the Data-flow Paradigm for Serverless Workflow Orchestration

Zijun Li, Chuhao Xu, Quan Chen, Jieru Zhao, Minyi Guo

Abstract

Serverless computing that runs functions with auto-scaling is a popular task execution pattern in the cloud-native era. By connecting serverless functions into workflows, tenants can achieve complex functionality. Prior researches adopt the control-flow paradigm to orchestrate a serverless workflow. However, the control-flow paradigm inherently results in long response latency, due to the heavy data persistence overhead, sequential resource usage, and late function triggering. Our investigation shows that the data-flow paradigm has the potential to resolve the above problems, with careful design and optimization. We propose DataFlower, a scheme that achieves the data-flow paradigm for serverless workflows. In DataFlower, a container is abstracted to be a function logic unit and a data logic unit. The function logic unit runs the functions, and the data logic unit handles the data transmission asynchronously. Moreover, a host-container collaborative communication mechanism is used to support efficient data transfer. Our experimental results show that compared to state-of-the-art serverless designs, DataFlower reduces the 99%-ile latency of the benchmarks by up to 35.4%, and improves the peak throughput by up to 3.8X.

Introduction

In the cloud-native landscape, serverless computing has emerged as a dominant model for deploying scalable applications. By chaining independent functions into workflows, developers can build complex systems. However, traditional orchestration relies on a control-flow paradigm, where a centralized orchestrator manages state and execution order. This centralized approach introduces significant performance bottlenecks, including high I/O overhead from remote storage, idle resource cycles, and scheduling delays.

To address these challenges, we introduce DataFlower, a novel orchestration scheme that shifts serverless workflows toward a decentralized data-flow paradigm. By decoupling computation from communication and enabling direct, streaming data transfers, DataFlower significantly optimizes the execution of serverless chains.

The Bottlenecks of Control-Flow

Our research identifies three primary "performance killers" inherent in the control-flow model:

  1. Double Data Transfer: To pass information between steps, Function A must write to remote storage (e.g., S3), and Function B must read it back. This creates massive I/O overhead.
  2. Sequential Resource Usage: Containers often experience "resource gaps" where the CPU sits idle while waiting for data to download, or the network sits idle while the CPU computes.
  3. Orchestrator Lag: Centralized controllers add scheduling overhead (averaging ~63ms per step) and cannot trigger a function until the predecessor is entirely finished, even if the necessary data was available earlier.

The DataFlower Architecture

DataFlower replaces the "wait for command" logic with a "run when data arrives" model. The system is built on several key architectural innovations:

FLU/DLU Abstraction

DataFlower splits the function container into two distinct units: the Function Logic Unit (FLU) for computation and the Data Logic Unit (DLU) for asynchronous communication. This separation allows a function to begin streaming its output data while the computation is still ongoing, effectively overlapping I/O and processing tasks.

Decentralized Workflow Engine

Rather than relying on a single central brain, DataFlower deploys a local engine on every worker node. These engines parse the data-flow graph and trigger functions locally as soon as the required input data arrives, eliminating the round-trip delay to a central orchestrator.

Host-Container Collaborative Communication

A common hurdle in direct function-to-function communication is the "cold start" problem—the destination container may not be active when data arrives. DataFlower solves this using a Data Sink on the host node to cache incoming data. High-performance "Pipe Connectors" are then used to stream this data to the container once it is ready.

Pressure-aware Scaling

DataFlower implements a unique scaling mechanism that monitors the DLU. If the data-production rate of the FLU exceeds the network's transmission capacity (backpressure), the system automatically scales out additional containers to resolve the bottleneck.

Experimental Evaluation

We evaluated DataFlower on a 5-node cluster using four production-level benchmarks: video processing (vid), ML-based image processing (img), math-heavy Singular Value Decomposition (svd), and data-intensive WordCount (wc). We compared DataFlower against FaaSFlow (decentralized control-flow) and SONIC (local storage data passing).

Key Results

  • Latency Reduction: DataFlower reduced 99th-percentile (tail) latency by 5.7% to 35.4% compared to FaaSFlow.
  • Throughput Gains: The system improved peak throughput by 1.03X to 3.8X.
  • Resource Efficiency: By finishing functions faster and releasing data proactively, DataFlower reduced container memory usage by up to 69.3%.
  • Burst Handling: Under sudden traffic spikes, DataFlower maintained significantly lower average latencies than competitors due to its pressure-aware scaling.

Conclusion and Future Work

DataFlower demonstrates that shifting to a data-flow paradigm can resolve the fundamental inefficiencies of serverless orchestration. By decoupling communication and computation, the system effectively hides the "data tax" of distributed workflows.

Future work will focus on reducing developer effort by simplifying data dependency declarations and implementing pre-warming strategies to start containers before data even arrives, further mitigating cold-start delays. Additionally, we aim to optimize fault tolerance and state management in these high-speed, decentralized environments.

Summary updated

BibTeX
@inproceedings{li2023dataflower,
  author = {Zijun Li and Chuhao Xu and Quan Chen and Jieru Zhao and Chen Chen and Minyi Guo},
  title = {{DataFlower: Exploiting the Data-flow Paradigm for Serverless Workflow Orchestration}},
  booktitle = {ASPLOS},
  year = {2023},
  doi = {10.1145/3623278.3624755},
}
Figure