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

Restructuring Serverless Computing with Data-Centric Function Orchestration

Minchen Yu, Tingjia Cao, Wei Wang, Ruichuan ChenarXiv 2021

Abstract

Serverless applications are typically composed of function workflows in which multiple short-lived functions are triggered to exchange data in response to events or state changes. Current serverless platforms coordinate and trigger functions by following high-level invocation dependencies but are oblivious to the underlying data exchanges between functions. This design is neither efficient nor easy to use in orchestrating complex workflows. We argue that function orchestration should follow a data-centric approach. In our design, the platform provides a data bucket abstraction to hold intermediate data. Developers use a rich set of data trigger primitives to control when and how function output drives the workflow. We present Pheromone, a scalable, low-latency serverless platform following this design. Pheromone cuts function interaction and data exchange latencies by orders of magnitude compared to commercial platforms.

What Problem Does This Paper Address?

In the world of serverless computing (Function-as-a-Service), applications are rarely single functions; they are complex workflows of many short-lived tasks. Currently, platforms like AWS Step Functions (ASF) coordinate these tasks using a function-oriented model, tracking which function calls the next in a Directed Acyclic Graph (DAG).

The problem is that these platforms are "data-blind." They do not know when or how data is actually exchanged between functions. This forces developers to use clunky workarounds—like writing intermediate data to slow external storage like S3—just to pass information between steps. This results in massive latency overheads, limited expressiveness for complex patterns like shuffles, and poor performance for data-heavy workloads.

Latency comparison of existing serverless orchestration and storage options.

Methods

The authors introduce Pheromone, a system built on the philosophy of "following the data, not the function." Its core components include:

  • Data Buckets: A new abstraction that holds intermediate data in a logical object store. Functions push data into these buckets rather than calling each other directly.
  • Trigger Primitives: Buckets are "smart." Developers configure them with triggers that launch the next function only when specific conditions are met, such as ByBatchSize (for batching), ByTime (for stream windows), or DynamicGroup (for shuffles).
  • Two-Tier Scheduling: A local scheduler on each worker node prioritizes executing downstream functions on the same machine to maintain data locality. If a node is overloaded, a sharded global coordinator manages inter-node scheduling.
  • Zero-Copy Sharing: For functions on the same node, Pheromone uses a shared-memory object store. Instead of copying data, it passes a pointer, making data exchange nearly instantaneous.
The data bucket abstraction in Pheromone, showing how source functions trigger target functions via intermediate storage.

Key Results

  • Massive Latency Reduction: Pheromone reduces local function interaction latency to ~40µs—10x faster than Cloudburst and 450x faster than AWS Step Functions.
  • Superior Scalability: Pheromone can launch 4,000 parallel functions in under 40ms, whereas commercial platforms often take seconds or tens of seconds to coordinate such scale.
  • Data Transfer Efficiency: For a 100MB data exchange, Pheromone takes 0.1ms locally compared to over 600ms for platforms requiring serialization and network transfer.
  • Real-World Performance: In a MapReduce sort case study, Pheromone-MR outperformed PyWren by 1.6x while requiring significantly less code to implement complex shuffling logic.

Limitations and Future Work

The current prototype is optimized for C++, and while a Python client exists, zero-copy benefits are most pronounced in languages that directly manipulate memory pointers. Additionally, Pheromone trades off durability for speed by keeping intermediate data in RAM, and it currently lacks a mechanism to "spill" data to disk if memory fills up. Future work may address these memory management and persistence trade-offs for extremely large datasets.

Summary updated

BibTeX
@misc{yu2021restructuring,
  author = {Minchen Yu and Tingjia Cao and Wei Wang and Ruichuan Chen},
  title = {{Restructuring Serverless Computing with Data-Centric Function Orchestration}},
  year = {2021},
  eprint = {2109.13492},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.13492},
}
Figure