LMQ-Sketch: Lagom Multi-Query Sketch for High-Rate Online Analytics
Paper in 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.
Data Sketches
Synchronization
Freshness
IVL
Concurrent Data Structures
Author
Martin Hilgendorf
University of Gothenburg
Chalmers, Computer Science and Engineering (Chalmers), Computer and Network Systems
Marina Papatriantafilou
Chalmers, Computer Science and Engineering (Chalmers), Computer and Network Systems
University of Gothenburg
Leibniz International Proceedings in Informatics, LIPIcs
18688969 (ISSN)
Vol. 356 36:1-36:24 36978-3-95977-402-4 (ISBN)
Berlin, Germany,
Relaxed Semantics Across the Data Analytics Stack (RELAX-DN)
European Commission (EC) (EC/HE/101072456), 2023-03-01 -- 2027-03-01.
INDEED: Information and Data-processing in Focus for Energy Efficiency
Chalmers, 2020-01-01 -- .
SESBC TANDEM: InTelligent Energy DAta MaNagement and Online DEcision Making
Swedish Energy Agency (SESBC,TANDEM), 2022-09-01 -- 2026-12-21.
Scalability and quality control in AM - Big Data and ML in Production
Chalmers, 2020-01-01 -- .
VR EPITOME - Summarization and structuring of continuous data in concurrent processing pipelines
Swedish Research Council (VR) (2021-05424), 2022-01-01 -- 2025-12-31.
Areas of Advance
Information and Communication Technology
Production
Energy
Subject Categories (SSIF 2025)
Computer Sciences
Algorithms
Networked, Parallel and Distributed Computing
DOI
10.4230/LIPIcs.DISC.2025.36