Lune

USENIX ATC2022Top-tier venue

Meces: Latency-efficient Rescaling via Prioritized State Migration for Stateful Distributed Stream Processing Systems

Rong Gu, Han Yin, Weichang Zhong, Chunfeng Yuan, Yihua Huang

Abstract

Stateful distributed stream processing engines (SPEs) usually call for dynamic rescaling due to varying workloads. However, existing state migration approaches suffer from latency spikes, or high resource usage, or major disruptions as they ignore the order of state migration during rescaling. This paper reveals the importance of state migration order to the latency performance in SPEs. Based on that, we propose Meces, an on-the-fly state migration mechanism which prioritizes the state migration of hot keys (those being processed or about to be processed by downstream operator tasks) to achieve smooth rescaling. Meces leverages a fetch-on-demand design which migrates operator states at record-granularity for state consistency. We further devise a hierarchical state data structure and gradual strategy for migration efficiency. Meces is implemented on Apache Flink and evaluated with diversified benchmarks and scenarios. Compared to state-of-the-art approaches, Meces improves stream processing performance in terms of latency and throughput during rescaling by orders of magnitude, with negligible overhead and no disruption to non-rescaling periods.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Fugue: Online Elasticity for Distributed Stateful Stream Processing cites Towards Fine-Grained Scalability for Stateful Stream Processing Systems
  • Fugue: Online Elasticity for Distributed Stateful Stream Processing cites Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
  • Styx: Transactional Stateful Functions on Streaming Dataflows cites Fault-tolerant and transactional stateful serverless workflows
  • Styx: Transactional Stateful Functions on Streaming Dataflows cites Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
  • Towards Fine-Grained Scalability for Stateful Stream Processing Systems cites Sponge: Fast Reactive Scaling for Stream Processing with Serverless Frameworks
  • Towards Fine-Grained Scalability for Stateful Stream Processing Systems cites Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
  • Sponge: Fast Reactive Scaling for Stream Processing with Serverless Frameworks cites Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Sponge: Fast Reactive Scaling for Stream Processing with Serverless FrameworksWon Wook Song, Taegeon Um, Sameh Elnikety, Myeongjae Jeon et al.USENIX ATC 2023 · 28 citations
  2. Styx: Transactional Stateful Functions on Streaming DataflowsKyriakos Psarakis, George Christodoulou, Georgios Siachamis, Marios Fragkoulis et al.SIGMOD 2025 · 3 citations
  3. Towards Fine-Grained Scalability for Stateful Stream Processing SystemsYunfan Qing, Wenli ZhengICDE 2025 · 2 citations
  4. Impeller: Stream Processing on Shared LogsZhiting Zhu, Zhipeng Jia, Newton Ni, Dixin Tang et al.EuroSys 2025 · 1 citation
  5. Fugue: Online Elasticity for Distributed Stateful Stream ProcessingYuqiu Zhang, Yunhao Mao, Hans-Arno JacobsenVLDB 2026

Builds on5

  1. Differentiated Key-Value Storage Management for Balanced I/O PerformanceYongkun Li, Zhen Liu, Patrick P. C. Lee, Jiayu Wu et al.USENIX ATC 2021 · 79 citations
  2. Rhino: Efficient Management of Very Large Distributed State for Stream Processing EnginesBonaventura Del Monte, Steffen Zeuch, Tilmann Rabl, Volker MarklSIGMOD 2020 · 56 citations
  3. Shared Arrangements: practical inter-query sharing for streaming dataflowsFrank McSherry, Andrea Lattuada, Malte Schwarzkopf, Timothy RoscoeVLDB 2020 · 25 citations
  4. Fault-tolerant and transactional stateful serverless workflowsHaoran Zhang, Adney Cardoza, Peter Baile Chen, Sebastian Angel et al.OSDI 2020 · 20 citations
  5. Controlling Memory Footprint of Stateful Streaming Graph ProcessingPourya Vaziri, Keval VoraUSENIX ATC 2021 · 16 citations

Related papers

  1. StreamSwitch: Fulfilling Latency Service-Layer Agreement for Stateful StreamingZhaochen She, Yancan Mao, Hailin Xiang, Xin Wang et al.INFOCOM 2023 · 5 citations
  2. FlowKV: A Semantic-Aware Store for Large-Scale State Management of Stream Processing EnginesGyewon Lee, Jaewoo Maeng, Jinsol Park, Jangho Seo et al.EuroSys 2023 · 6 citations
  3. Enjima: A Resource-Adaptive Stream Processing SystemLasantha Fernando, Taebin Kim, Khuzaima Daudjee, Tilmann RablSIGMOD 2026
  4. Latency-Oriented Elastic Memory Management at Task-Granularity for Stateful Streaming ProcessingRengan Dou, Richard T. B. MaINFOCOM 2023 · 2 citations
  5. Emma: Elastic Multi-Resource Management for Realtime Stream ProcessingRengan Dou, Xin Wang, Richard T. B. MaINFOCOM 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines