Log-Structured Merge-tree (LSM-tree) based Key-Value stores have become the cornerstone of modern data infrastructure, powering systems like RocksDB, LevelDB, and TiKV. This survey synthesizes over 100 research papers from 2020 to 2025, detailing how these systems are evolving to meet the demands of cloud-native environments, multi-tenancy, and next-generation hardware.
The LSM-tree Architecture and its Bottlenecks
LSM-trees excel at high-throughput write workloads by converting random writes into sequential appends. Data initially enters a memory-resident MemTable. Once full, it is flushed to disk as an SSTable (Sorted String Table) at Level 0 ($L_0$). As levels fill up, a background process called compaction merges SSTables into deeper levels ($L_1$ to $L_n$).
Despite their efficiency, LSM-trees suffer from a "compaction tax" that manifests in three primary ways:
- Write Stalls: Intensive background compaction can saturate I/O, leading to latency spikes for user requests.
- Write/Space Amplification: Data is repeatedly rewritten during merges, which accelerates SSD wear and consumes excess capacity.
- Read Amplification: Finding a specific key may require searching multiple levels and Bloom filters, increasing query latency.
Taxonomy of Modern Optimizations
Recent research categorizes optimizations into four critical dimensions:
- Internal Management: Moving beyond manual parameter tuning toward ML-based and LLM-assisted configurations to handle the "black magic" of performance optimization.
- Compaction Strategies: Refining the selection of data for merging (Leveling vs. Tiering) to better balance the Read-Update-Memory (RUM) overhead.
- Architectural Evolution: Transitioning from single-node engines to distributed, disaggregated systems.
- Hardware Synergy: Exploiting Zoned Namespace (ZNS) SSDs, Persistent Memory, and offloading merge logic to DPUs or FPGAs.
Architectural Evolution: From Local to Disaggregated
A significant trend in the last five years is the shift toward Compute-Storage Disaggregation. In these architectures, the LSM-tree logic is split: compute nodes handle request processing and MemTables, while storage nodes manage persistent SSTables.
This shift has enabled "Compaction-as-a-Service" (CaaS). By offloading compaction to a pool of remote, stateless workers, systems can prevent background maintenance from interfering with foreground user performance. Furthermore, multi-tenant environments now utilize virtualized LSM-trees to ensure I/O isolation between "noisy neighbors" in the cloud.
Hardware Synergy and ML-Driven Tuning
Modern LSM-trees are increasingly "hardware-aware." By utilizing ZNS SSDs, systems can bypass the Flash Translation Layer (FTL), allowing the LSM-tree to manage physical data placement directly. This eliminates the internal garbage collection conflicts that typically plague SSD-based storage.
On the software side, Large Language Models (LLMs) are being explored to navigate the complex parameter space of LSM-trees. While promising for long-term optimization, the high latency of model inference (e.g., ~100 seconds for DeepSeek V3) remains a barrier for real-time adaptation to bursty traffic.
Future Directions
While significant progress has been made, several "holy grails" remain. Achieving "zero-cost" compaction is still elusive, as the trade-off between write and read speed remains a fundamental constraint. Future research is likely to focus on "workload-agile" systems that can adapt instantly to traffic shifts, as well as privacy-aware designs that handle GDPR-compliant "right to be forgotten" deletions without incurring massive compaction overheads.
Summary updated