[Paper Review] Following the Data, Not the Function: Rethinking Function Orchestration in Serverless Computing
This paper proposes Pheromone, a data-centric serverless platform that rethinks function orchestration by modeling workflows around data flow rather than function invocation dependencies. By introducing data bucket abstractions and fine-grained data trigger primitives, Pheromone enables low-latency, high-performance function interactions—cutting interaction latencies by orders of magnitude compared to existing platforms—while simplifying complex workflow development through explicit data consumption and optimized scheduling and data transfer mechanisms.
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 -- developers often have to manage complex function interactions by themselves, with customized implementation and unsatisfactory performance. In this paper, we argue that function orchestration should follow a data-centric approach. In our design, the platform provides a data bucket abstraction to hold the intermediate data generated by functions. Developers can use a rich set of data trigger primitives to control when and how the output of each function should be passed to the next functions in a workflow. By making data consumption explicit and allowing it to trigger functions and drive the workflow, complex function interactions can be easily and efficiently supported. We present Pheromone -- a scalable, low-latency serverless platform following this data-centric design. Compared to well-established commercial and open-source platforms, Pheromone cuts the latencies of function interactions and data exchanges by orders of magnitude, scales to large workflows, and enables easy implementation of complex applications.
Motivation & Objective
- To address the inefficiency and complexity of current serverless platforms in orchestrating function workflows, which rely on invocation dependencies without tracking actual data exchanges.
- To reduce high interaction latencies (tens of milliseconds) in serverless function chains that accumulate and hinder performance in latency-sensitive workloads.
- To simplify the development of complex workflows—such as MapReduce and stream processing—by making data consumption explicit and composable through a unified interface.
- To enable low-latency, scalable function execution by scheduling downstream functions close to their input data using a two-tier scheduling hierarchy.
- To optimize data exchange performance by trading durability for speed via zero-copy shared-memory object stores and direct data transfer between nodes.
Proposed method
- Introduces a data bucket abstraction to hold intermediate function outputs, enabling explicit, configurable data consumption and triggering of downstream functions.
- Employs a two-tier scheduling hierarchy: local schedulers on each worker node manage workflow state via data buckets and schedule functions locally when possible; global coordinators handle cross-node scheduling when needed.
- Uses a zero-copy shared-memory object store within nodes and direct data transfer between nodes to minimize data exchange latency, sacrificing durability for performance.
- Deploys sharded global coordinators to enable horizontal scaling, with each coordinator managing a disjoint set of workflows to avoid bottlenecks.
- Provides both a low-level data trigger API and a high-level function-oriented interface, allowing developers to express complex workflows with or without explicit bucket management.
- Supports advanced patterns like MapReduce and stream processing via primitives such as DynamicGroup and ByTime triggers, enabling automatic function invocation based on data availability.
Experimental results
Research questions
- RQ1Can a data-centric approach to function orchestration reduce interaction latency in serverless workflows compared to function dependency-based models?
- RQ2How can intermediate data be managed efficiently to enable low-latency, high-throughput function interactions in serverless environments?
- RQ3To what extent can explicit data consumption and trigger primitives simplify the implementation of complex workflows such as MapReduce and stream processing?
- RQ4Can a two-tier scheduling hierarchy with local and global coordination scale to large, complex workflows while maintaining low latency?
- RQ5What performance trade-offs are feasible when sacrificing durability of short-lived intermediate data for faster data exchange in serverless systems?
Key findings
- Pheromone reduces function interaction and data exchange latencies by orders of magnitude compared to commercial and open-source serverless platforms.
- The platform supports large-scale workflows with low-latency scheduling and data transfer, enabling efficient execution of complex, data-intensive applications.
- The use of zero-copy shared-memory object stores and direct data transfer reduces data exchange latency within nodes and between nodes, respectively.
- Garbage collection in Pheromone effectively reduces memory footprint by promptly evicting unused in-memory data objects after request completion.
- The implementation of Pheromone-MR, a MapReduce framework on Pheromone, requires only 380 lines of C++ and 120 lines of Python, significantly less than PyWren on AWS Lambda, which uses ~6,000 lines for map-only operations.
- The function-oriented interface enables developers to express workflows via dependencies without managing buckets directly, while still supporting complex workflows through the low-level data trigger API.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.