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

DFlow: Efficient Dataflow-based Invocation Workflow Execution for Function-as-a-Service

Xiaoxiang Shi, Chao Li, Zijun Li, Zihan Liu, Dianmo Sheng, Quan Chen, Jingwen Leng, Minyi GuoarXiv 2023 · DOI

Abstract

Serverless computing, or Function-as-a-Service (FaaS), increasingly relies on complex workflows structured as Directed Acyclic Graphs (DAGs). Traditional execution models utilize controlflow-based invocation, leading to significant latency and data-shipping overheads. This paper presents DFlow, a novel system that transitions to a dataflow-based execution pattern. By decoupling function invocation from strict completion signals and utilizing a distributed, hierarchical in-memory store (DStore) alongside a two-tier scheduler (DScheduler), DFlow enables execution overlap and out-of-order processing. Experimental results across various real-world and scientific benchmarks demonstrate that DFlow reduces end-to-end latency by up to 60% and improves throughput by up to 6x compared to state-of-the-art baselines.

1. Introduction and Problem Statement

The rise of FaaS has enabled developers to build scalable applications by composing small, independent functions into workflows. However, existing systems like CFlow and FaaSFlow typically follow a controlflow-based paradigm. In these models, a successor function is only triggered after its precursor has fully completed and reported back to a scheduler.

Comparison of centralized (CFlow) and decentralized (FaaSFlow) control-flow architectures.

As shown in Figure 3, centralized architectures (CFlow) suffer from scheduler bottlenecks, while decentralized ones (FaaSFlow) still adhere to rigid sequential execution. These approaches result in two primary inefficiencies: high end-to-end latency due to idle successor functions and significant data exchange overhead caused by relying on slow, remote storage for intermediate results.

2. The DFlow Architecture

DFlow addresses these bottlenecks by shifting the execution trigger from control signals to data availability. The system comprises two core innovations:

2.1 DScheduler: Distributed Dataflow Scheduling

DScheduler employs a two-tier hierarchy. A Global Scheduler (GS) handles high-level workflow partitioning, while Dataflow Local Schedulers (DLS) reside on worker nodes. Unlike traditional schedulers, the DLS monitors data dependencies. This allows functions to be invoked as soon as their required input data is available, even if the precursor function is still executing other tasks. This "execution overlap" effectively pipelines the DAG, significantly reducing wait times.

2.2 DStore: Hierarchical In-Memory Storage

To optimize data exchange, DFlow introduces DStore, a distributed key-value store. It separates metadata management from actual data storage to exploit locality.

Dataflow-based interaction between functions and the distributed storage layer.

As illustrated in Figure 5, DStore facilitates direct data transmission between functions. It features an auto-blocking/waking mechanism: if a function requests data not yet produced, DStore blocks the request and automatically wakes the function once the precursor writes the data. This receiver-driven coordination prevents sender-side bottlenecks and ensures smooth dataflow.

3. Evaluation and Results

The authors evaluated DFlow using six benchmarks, including real-world applications (Word Count, File Processing) and complex scientific workflows (Cycles, Epigenomics, Genome, SoyKB).

Key performance metrics include:

  • Latency: DFlow achieved an average improvement of 60% over CFlow and 40% over FaaSFlow in 99th-percentile latency.
  • Throughput: Under heavy load, DFlow sustained up to 6x higher throughput than FaaSFlow integrated with standard storage.
  • Network Efficiency: Bandwidth utilization improved by 2x–4x compared to CFlow by reducing redundant data movement.
  • Cold Starts: By pre-warming containers based on predicted data dependencies, DFlow reduced cold start latency by an average of 5.6x compared to CFlow.

4. Conclusion and Future Directions

DFlow demonstrates that moving from controlflow to dataflow is a highly effective strategy for optimizing serverless workflows. By enabling execution overlap and efficient, localized data exchange, it overcomes the inherent limitations of sequential FaaS execution. Future work will focus on enhancing fault tolerance through more granular checkpointing and exploring higher-level programming abstractions to simplify dataflow-based development.

Summary updated

BibTeX
@misc{shi2023dflow,
  author = {Xiaoxiang Shi and Chao Li and Zijun Li and Zihan Liu and Dianmo Sheng and Quan Chen and Jingwen Leng and Minyi Guo},
  title = {{DFlow: Efficient Dataflow-based Invocation Workflow Execution for Function-as-a-Service}},
  year = {2023},
  eprint = {2306.11043},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11043},
}
Figure