LMQ-Sketch: Lagom Multi-Query Sketch for High-Rate Online Analytics
Paper i proceeding, 2025
We investigate the trade-offs around efficiency, consistency, and accuracy to be balanced and synthesize key ideas into LMQ-Sketch, a single, composite data sketch supporting concurrent updates and multiple queries (frequency point queries, frequency moments F₁, and F₂ as representative selection). Our method "Lagom" is a cornerstone of LMQ-Sketch for low-latency global querying (<100µs), combining freshness, timeliness, and accuracy with a low memory footprint and high throughput (>2B updates/s). We analyze and evaluate the accuracy of Lagom, which builds on a simple geometric argument and efficiently combines work distribution with synchronization for proper concurrency semantics - monotonicity of operations and intermediate value linearizability. Comparing with state-of-the-art methods, which, as mentioned, provide either mixed queries or concurrency separately, LMQ-Sketch shows highly competitive throughput, with additional accuracy guarantees and concurrency semantics, while also reducing the required memory budget by an order of magnitude. We expect the methodology to have broader impact on concurrent multi-query sketches.
IVL
Concurrent Data Structures
Synchronization
Data Sketches
Freshness
Författare
Martin Hilgendorf
Chalmers, Data- och informationsteknik, Dator- och nätverkssystem
Marina Papatriantafilou
Chalmers, Data- och informationsteknik, Dator- och nätverkssystem
Leibniz International Proceedings in Informatics, LIPIcs
18688969 (ISSN)
Vol. 356 36:1-36:24 36978-3-95977-402-4 (ISBN)
Berlin, Germany,
VR EPITOME - Sammanfattning och strukturering av kontinuerlig data i pipelines för samtidig behandling
Vetenskapsrådet (VR) (2021-05424), 2022-01-01 -- 2025-12-31.
Styrkeområden
Produktion
Energi
Ämneskategorier (SSIF 2025)
Datavetenskap (datalogi)
Algoritmer
Nätverks-, parallell- och distribuerad beräkning
DOI
10.4230/LIPIcs.DISC.2025.36