Scaling Embedded Key-Value Storage with a Local Partitioning Layer
Abstract
Embedded key-value stores such as LMDB, LevelDB and RocksDB are widely used due to their low deployment complexity, and efficient local persistence. However, operations within a single database are constrained by the synchronization and resource management mechanisms of the underlying storage engine, limiting concurrency under highly parallel workloads. This paper presents a partitioning layer that distributes data across multiple storage engine instances while exposing a unified key-value interface. The architecture uses fine-grained key-to-partition assignment through a routing index and partition-level synchronization. It also supports hash-based lock-striping strategy and optional workload-aware repartitioning. The design is storage-engine agnostic and requires no modifications to existing embedded databases. Experiments with YCSB workloads and multiple storage engines reach up to 2× the throughput of standalone instances on single-key operations, and show the costs of range scans, repartitioning, and extra resource use.