arXiv:2610.34658cs.DCOct 2026

Manuscript Offprint

arXiv:2610.34658

Live Adaptation of Dataflow Stream Processing for Hybrid Edge-Cloud Analytics

Yuanli Wang, Prateek Jain, Lei Huang, Le Xu, Vasiliki Kalavri

Abstract

Dataflow streaming systems, like Apache Flink and Spark Streaming, are integral to modern business analytics, providing real-time insights across industries. However, for emerging hybrid edge-cloud analytics pipelines, neither processing everything in the cloud nor static edge offloading can reliably sustain the target rate under dynamic WAN conditions and limited edge resources. In this paper, we explore how these datacenter-centric platforms can be extended to support such hybrid analytics pipelines. Our goal is to maintain full transparency for user applications, while retaining built-in fault tolerance, out-of-order processing, and existing ecosystem integrations. Achieving this is challenging because existing dataflow engines assume homogeneous resources, rely on static task placement, and do not support adaptation under dynamic network and edge conditions.

We introduce Sluice, an adaptive data stream processing system for hybrid clouds, compatible with dataflow streaming engines. Sluice's key contributions are: (i) an automatic query rewriter that decomposes applications into independent, fault-tolerant segments, and (ii) a live routing mechanism that shifts computations between edge and cloud without pausing execution while preserving event-time semantics. We implement Sluice on Apache Flink and evaluate it on a physical testbed with Raspberry Pi devices, as well as on a large simulated testbed of 100 VMs. Across five real-world applications, our results show that Sluice seamlessly shifts computations between edge and cloud, while consistently achieving higher throughput than baseline systems.

1 Introduction

The wide deployment of connected smart devices has enabled a new class of continuous analytics scenarios, such as traffic management systems, air quality monitoring, optimizing energy grid consumption, healthcare interventions, and video analytics [35,37,43,49,50,54,56,63]. These emerging applications ingest data from multiple edge locations (e.g., wearable devices, cameras, drones, and mobile sensors) and aggregate the results in the cloud to power web-based visualization dashboards or drive decision-making pipelines.

However, for these types of applications, neither streaming all raw data to the cloud nor statically offloading operators to the edge can reliably sustain the target rate under dynamic WAN conditions and limited edge resources. Recent research has explored the use of compute-enabled edge resources for analytics. Systems like DART [26, 44], Frontier [52], and NebulaStream [25, 49, 67] proposed new architectures for pure-edge processing, offering robustness under churn and scalability to hundreds of edge nodes and concurrent queries. Others, like Falcon [50] and Shepherd [56], focus on hybrid, hierarchical wide-area deployments, with optimizations for regional data aggregation and strategies to handle limited resources and dynamic conditions.

As summarized in Table 1, although previous work proposes innovative mechanisms for WAN- and edge-aware live adaptation, they often lack support for fault tolerance, event-time windows, monitoring and data connector integrations provided by mature engines such as Apache Flink [20,22,36], Spark Structured Streaming [14], and Kafka Streams [62]. Reimplementing these features and migrating existing applications require substantial engineering. In this paper, we investigate how to extend these datacenter-centric engines to hybrid edge–cloud deployments while preserving existing applications, familiar APIs, built-in features of fault tolerance, out-of-order processing, and ecosystem integration.

We identify three major challenges in adapting dataflow streaming systems for hybrid edge–cloud deployments: (i) Resource homogeneity assumption: As descendants of MapReduce [30], dataflow engines assume uniform resources and do not distinguish between high-bandwidth intra-datacenter links and slow, variable edge-to-cloud connections. Consequently, out-of-the-box deployments may generate task placements that cause excessive WAN traffic, overload edge devices, and create performance bottlenecks. (ii) Static task scheduling: Most dataflow systems assign tasks to workers statically, assuming stable operating conditions [38, 65]. Hybrid edge–cloud applications, however, require continuous adaptation: WAN links exhibit variable bandwidth, edge devices vary in capacity, and event rates shift over time [41, 56]. Under such dynamics, any static placement eventually becomes obsolete. Recent efforts at dynamic placement [50, 56, 65] either rely on stop-and-restart reconfiguration or lack automatic policies to detect when to adapt. (iii) Disruptive recovery: Cloud-centric dataflow systems rely on job-wide checkpoints [20, 33, 48, 57] for fault tolerance, so a failure in a single task triggers re-

Table 1: Comparison with representative prior systems.

SystemTarget settingCompatible with existing SPELive adaptationb^{\mathrm{b}}WAN-aware policyNo data lossc^{\mathrm{c}}ExpressivityOpen source
DART [44]Edge✕N.S.✕N.S.✓ (Partial)✓
Frontier [52]Edge✕✓✓✓✓ (Partial)✓
NebulaStream [25, 49, 67]Edge / Fog✕N.S.✕N.S.✓ (Partial)✓
Shepherd [56]Hierarchical wide-area✕✓ (Pause)✕✕✓ (Partial)✕
Falcon [50]Hierarchical wide-area✕✓ (Pause)✕✓✓ (Partial)✓
WASP [41]Geo-distributed✓ : Apache Flink✓ (Pause)✓✓✓✕
CAPSys [65]Data center✓ : Apache Flink✕✓✓✓✓
SluiceHybrid edge-cloud✓ : Apache Flink✓✓✓✓✓

a^{a} N.S. : Not explicitly stated: the paper does not make a clear claim about this aspect.

b^{b} Whether adaptation is performed without fully or partially pausing the job.

c^{c} Event delivery guarantee.

covery of the entire job. This approach is ill-suited to edge environments, where hardware failures are more frequent. A single slow or failed edge task can stall the whole pipeline, causing downtime, input backlog, or source-side data loss.

We address these challenges with Sluice, an adaptive data stream processing system for hybrid clouds, compatible with modern dataflow engines. Sluice dynamically reconfigures stateless preprocessing operators between edge and cloud, while stateful operators remain in the cloud. This design avoids state migration and supports common hybrid analytics pipelines, where lightweight preprocessing (e.g., filters and projections) reduces data volume before stateful computation [16,27,53].

Sluice makes three contributions:

  • An automatic query re-writer that transforms dataflow programs written for datacenter settings into independent, fault-tolerant query segments that can be scheduled, deployed, monitored, and reconfigured in isolation. A major benefit of this design is that a failure or slowdown in one segment does not affect the others.

  • An adaptive routing mechanism that enables reconfiguration without downtime. The re-writer generates both edge and cloud task replicas for the stateless preprocessing operators and inserts routing controllers. A reference routing policy guides these controllers: it continuously monitors metrics to detect performance bottlenecks and dynamically adjusts routing decisions to sustain the required event rate under changing conditions.

  • Correctness and no data loss across segments. Sluice guarantees event-time correctness and no data loss even though its query segments run as independent jobs. It propagates watermarks along both edge and cloud paths and coordinates them across segments, so that live rerouting preserves event-time semantics. It also combines per-segment checkpoints with a persistent message broker to provide at-least-once processing under transient edge and cloud failures (§4).

We implement Sluice on Apache Flink and evaluate it in two environments: a physical hybrid testbed with Raspberry Pi devices and a large-scale cloud testbed using 100 VMs to emulate edge nodes. Across five real-world applications, our results show that Sluice seamlessly shifts computations between edge and cloud, while its policy quickly converges to a configuration that achieves the target throughput under variable bandwidth, rate, and scarce compute conditions.

References (56)