Low-Latency Stateful Stream Processing Through Timely and Accurate Prefetching
摘要
Mission-critical applications often run "forever" and process large data volumes in real time while demanding low latency. To handle the large state of these applications, modern streaming engines rely on key-value stores and store state on local storage or remotely, but accessing such state inflates latency. As today's engines tightly couple the data path with state I/O, a tuple triggers state access only when it reaches a stateful operator, placing I/O on the critical path and stalling the CPU. However, the keys used to access the state are frequently known earlier in the query plan. Building on this insight, we propose Keyed Prefetching, which decouples the data path from state access by extracting future access keys at upstream operators and proactively staging the corresponding state in memory before tuples arrive. This overlaps I/O with ongoing computation and hides the latency of large-state accesses. We pair Keyed Prefetching with Timestamp-Aware Caching, a cache-eviction policy that jointly manages previously accessed and prefetched entries to use memory efficiently. Together, these techniques reduce latency for long-running, real-time queries without sacrificing throughput.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- Fries: Fast and Consistent Runtime Reconfiguration in Dataflow Systems with Transactional Guarantees 引用了 Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
- Meces: Latency-efficient Rescaling via Prioritized State Migration for Stateful Distributed Stream Processing Systems 引用了 Rhino: Efficient Management of Very Large Distributed State for Stream Processing Engines
它引用的 Paper7
- Rhino: Efficient Management of Very Large Distributed State for Stream Processing EnginesBonaventura Del Monte, Steffen Zeuch, Tilmann Rabl, Volker MarklSIGMOD 2020 · 56 次引用
- Meces: Latency-efficient Rescaling via Prioritized State Migration for Stateful Distributed Stream Processing SystemsRong Gu, Han Yin, Weichang Zhong, Chunfeng Yuan 等USENIX ATC 2022 · 22 次引用
- A new benchmark harness for systematic and robust evaluation of streaming state storesEsmail Asyabi, Yuanli Wang, John Liagouris, Vasiliki Kalavri 等EuroSys 2022 · 15 次引用
- EIRES: Efficient Integration of Remote Data in Event Stream ProcessingBo Zhao, Han van der Aa, Thanh Tam Nguyen, Quoc Viet Hung Nguyen 等SIGMOD 2021 · 13 次引用
- Fries: Fast and Consistent Runtime Reconfiguration in Dataflow Systems with Transactional GuaranteesZuozhi Wang, Shengquan Ni, Avinash Kumar, Chen LiVLDB 2023 · 9 次引用
相关 Paper
- FlowKV: A Semantic-Aware Store for Large-Scale State Management of Stream Processing EnginesGyewon Lee, Jaewoo Maeng, Jinsol Park, Jangho Seo 等EuroSys 2023 · 6 次引用
- S-QUERY: Opening the Black Box of Internal Stream Processor StateJim Verheijde, Vassilios Karakoidas, Marios Fragkoulis, Asterios KatsifodimosICDE 2022 · 5 次引用
- Klink: Progress-Aware Scheduling for Streaming Data SystemsOmar Farhat, Khuzaima Daudjee, Leonardo QuerzoniSIGMOD 2021 · 7 次引用
- Scabbard: Single-Node Fault-Tolerant Stream ProcessingGeorgios Theodorakis, Fotios Kounelis, Peter R. Pietzuch, Holger PirkVLDB 2022 · 21 次引用
- TiLT: A Time-Centric Approach for Stream Query Optimization and ParallelizationAnand Jayarajan, Wei Zhao, Yudi Sun, Gennady PekhimenkoASPLOS 2023 · 6 次引用
