arXiv:2608.29103cs.DCAug 2026

Manuscript Offprint

arXiv:2608.29103

CLASP: Chained-Request-Aware Scaling and Operator Placement for Serverless Stream Processing

Tianyu Qi, Maria A. Rodriguez, Rajkumar Buyya

TIANYU QI, MARIA A. RODRIGUEZ, and RAJKUMAR BUYYA, Quantum Cloud Computing and Distributed Systems (qCLOUDS) Lab, School of Computing and Information Systems, The University of Melbourne, Australia

Stateful serverless (Function-as-a-Service) environments, whose workers host state servers, are increasingly used for stream processing. A stream application is a pipeline of operators, where each operator forwards intermediate data downstream through a chained request. As input rates fluctuate, the system should adjust operator parallelism and place instances across workers to sustain the incoming rate. Existing approaches do so without fully accounting for chained-request overhead, leading them to misestimate the required number of workers. Too few leave the cluster unable to keep up with the input rate, while too many route a larger fraction of chained requests across worker boundaries, increasing end-to-end latency.

We propose CLASP, a scaling and scheduling strategy for stream processing in stateful serverless environments. At runtime, CLASP estimates execution cost and chained-request cost from observed metrics. Under a capacity model that covers the two costs, it adjusts operator parallelism and packs operators onto the fewest workers that can sustain the target input rate. Once a scaling decision is made, CLASP migrates each operator's state together with its instances, thereby minimizing execution pause time. Experiments show that CLASP improves throughput by up to 3.3×3.3\times and reduces median end-to-end latency by up to 76% compared with state-of-the-art scaling strategies.

CCS Concepts: • Computer systems organization → Cloud computing; Real-time operating systems; • Software and its engineering → Scheduling.

Additional Key Words and Phrases: Serverless, FaaS, Auto-Scaling, Elasticity

ACM Reference Format:

Tianyu Qi, Maria A. Rodriguez, and Rajkumar Buyya. 2026. CLASP: Chained-Request-Aware Scaling and Operator Placement for Serverless Stream Processing. 1, 1 (September 2026), 22 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn

1 Introduction

Serverless computing has emerged as a compelling cloud execution model, as it offloads infrastructure management to the provider and elastically scales lightweight execution units in response to workload fluctuations [7]. These properties align closely with the requirements of stream processing applications, which demand low-latency execution, elastic scalability, and minimal operational overhead [31]. Driven by this alignment, extensive research has investigated the deployment of streaming applications on serverless platforms, with representative use cases including video processing [2], data analytics [24], and IoT sensor monitoring [11, 16, 38].

Authors' Contact Information: Tianyu Qi, tiqi@student.unimelb.edu.au; Maria A. Rodriguez, marodriguez@unimelb.edu.au; Rajkumar Buyya, rbuyya@unimelb.edu.au, Quantum Cloud Computing and Distributed Systems (qCLOUDS) Lab, School of Computing and Information Systems, The University of Melbourne, Melbourne, Victoria, Australia.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

Qi et al.

A stream processing application is modeled as a directed acyclic graph (DAG) of operators, where each operator processes incoming data and forwards results to its downstream operators [17]. In serverless environments, these operators are deployed as ephemeral functions, and inter-operator data transfer is realized through chained function invocations, where each function instance invokes one or more downstream functions upon completing its local processing [21]. We refer to such an invocation, together with the intermediate data it carries, as a chained request. To avoid the latency of forwarding chained requests through a centralized scheduler, distributed scheduling is commonly adopted in serverless DAG applications, where each worker maintains a local scheduler that independently dispatches its locally generated chained requests to the destination workers [9, 32, 42]. Additionally, many operators are intrinsically stateful, relying on the state accumulated from prior events to process incoming data [37]. Since function instances are ephemeral in serverless environments, operator state must be persisted in external storage. To reduce state access time, stateful serverless platforms are commonly used for stream processing, which retain the operator state on the worker nodes [22, 27, 29].

To accommodate fluctuating input rates, recent work has explored elastic scaling in serverless stream processing by tuning each operator's degree of parallelism (DoP), i.e., the number of concurrently executing function instances per operator [21, 35, 43]. In stateful serverless environments with distributed scheduling, however, determining the required DoP is only part of the scaling problem. Once the DoP of each operator is chosen, the system must also determine how much workload each worker can sustain and how the resulting instances should be placed across workers. Existing approaches typically model worker capacity using the number of available function-instance slots [21, 25], or leave placement to the underlying platform [4, 35, 43]. Such approaches account for the capacity consumed by function execution, but overlook the capacity consumed by processing chained requests. Under distributed scheduling, each worker runs a local scheduler alongside its function instances. When an instance completes, the scheduler determines the destination of each chained request and dispatches it accordingly. Requests whose successors are placed on the same worker incur little dispatch overhead, whereas requests sent to remote workers require additional processing such as serialization and network transmission [26, 39]. We refer to the worker capacity consumed by this scheduling and dispatch activity as the chained-request cost. Because this cost is not captured by DoP or slot-based capacity models, a worker may appear to have available execution capacity even when it is already saturated by the combined execution and chained-request workload.

Another question is how many workers to use, which itself involves a trade-off: too few workers cannot sustain the input rate, while spreading the workload across too many forces more chained requests across worker boundaries and inflates end-to-end latency. Placing operator instances into workers so as to minimize the number of workers, while keeping heavily communicating operators together and respecting each worker's capacity, generalizes the classic operator-placement problem, which is known to be NP-hard [1, 3]. To keep the worker count low, some methods bin-pack instances onto workers according to each worker's available execution slots [15, 21]. Because slot-based methods do not account for the chained-request cost a new placement induces, they pack more workload onto a worker than it can sustain and consequently provision too few workers. Zhang24 [41] spreads operator instances over more workers than actually required, reducing the workload on each to leave capacity for chained-request cost. However, it controls the spread with user-specified weights and does not quantify the cost of local versus remote chained requests. What is needed is an efficient heuristic method that packs operators onto the fewest workers able to sustain the input rate. Its capacity model must consider execution and chained-request cost together, and must evaluate the chained-request cost under the new placement as operators are assigned.

When scaling the number of workers, operator function instances are migrated across workers, and their co-located state must be redistributed accordingly. Otherwise, state access will frequently cross worker boundaries, leading to high latency [18]. However, existing state-migration schemes are designed for incremental rebalancing rather than for a scaling step. They revisit one operator at a time and relocate part of its state in response to the currently observed imbalance [23, 34], so a cluster-wide change in placement is reached only after many such rounds. Elastic scaling poses a different requirement. Once a new worker count and operator placement have been selected, the system should transition directly to that placement, relocating the affected operator instances and their state in a coordinated migration step. This allows execution to resume with state co-located at the new placement after a single scaling transition, rather than gradually converging through repeated rebalancing rounds.

To address these challenges, we propose CLASP, a chained-request-aware elastic scaling and operator placement for stream processing applications in stateful serverless environments. CLASP proactively scales the number of workers to accommodate fluctuating input rates while minimizing the number of workers used. To this end, it continuously monitors worker metrics and uses online regression over historical observations to estimate each worker's capacity, accounting for both execution workload and chained-request cost. When scaling is triggered, it packs the projected workloads onto workers, accounting for both execution and chained-request costs. Once the scaling decision is made, it dispatches function instances to their assigned workers and seamlessly migrates the operator state and in-flight requests alongside them, minimizing processing interruption. Implemented on Faasm [29], our method achieves performance gains over the FaaSFlow [21] and Zhang24 [41], including a throughput improvement of up to 3.3×3.3 \times and an end-to-end latency reduction of up to 76%.

References (19)