talira

Embeddable persistent key-value store for fast storage

open sourceGPL-2.0-only OR Apache-2.0free

RocksDB is an embeddable persistent key-value store for fast storage such as flash drives and RAM, developed and maintained by Meta's database engineering team and built on earlier work on Google's LevelDB. It's a C++ library with a log-structured merge (LSM) design whose trade-offs between write, read and space amplification can be tuned per workload, and multi-threaded compactions suit databases of several terabytes. Keys and values are arbitrary byte streams, with operations from simple reads and writes to merge operators and compaction filters. It's used as the storage engine inside other databases (MyRocks for MySQL), for application caches and for embedded workloads, from C++ or Java.

Problems it solves

  • an embedded key-value store for my C++ service that handles terabytes on SSD
  • a storage engine to build my own database on
  • persist a large on-disk cache inside my application
  • an LSM key-value store for write-heavy workloads in Java

Features

  • log-structured merge design tuned for flash and RAM
  • multi-threaded compactions for multi-terabyte databases
  • merge operators and compaction filters
  • C++ and Java APIs
  • used as the storage engine of other databases such as MyRocks

Capabilities

Has official SDKsplan not known