arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.19890cs.DB
收藏

通过及时和准确的预取实现低延迟的有状态流处理

Low-Latency Stateful Stream Processing through Timely and Accurate Prefetching

EPFL(洛桑联邦理工学院)

Eleni Zapridou, Anastasia Ailamaki

AI总结:

本文提出Keyed Prefetching和Timestamp-Aware Caching,通过解耦数据路径与状态访问,减少长时实时查询的延迟,同时保持吞吐量。

摘要:

关键应用往往持续运行并实时处理大量数据,同时要求低延迟。为处理这些应用的大量状态,现代流引擎依赖键值存储并将状态存储在本地或远程存储中,但访问此类状态会增加延迟。由于当前引擎紧密耦合数据路径与状态I/O,只有当元组到达有状态运算符时才会触发状态访问,导致I/O在关键路径上并阻塞CPU。然而,用于访问状态的键通常在查询计划中更早已知。基于这一见解,我们提出Keyed Prefetching,通过在上游运算符中提取未来访问键,并在元组到达前主动将相应状态预装入内存,从而重叠I/O与正在进行的计算,隐藏大状态访问的延迟。我们还结合Timestamp-Aware Caching,一种联合管理先前访问和预取条目的缓存淘汰策略,以高效利用内存。这些技术共同降低了长时实时查询的延迟,而不会牺牲吞吐量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑