RocksDB
An open-source embedded key-value store developed by Facebook (Meta), built on an LSM-tree structure. It delivers high write throughput and is widely used as an underlying storage engine in large-scale systems.
Timeline (last 90 days)
The most representative LSM-Tree implementations are Google's LevelDB and Meta's open-source RocksDB, the latter of which has been used in TiKV, CockroachDB, and the MyRocks fork of MySQL.
MyRocks is the result of Facebook integrating RocksDB into MySQL in 2016, open-sourced in 2017, and is currently maintained by communities including Percona.
RocksDB was developed by Facebook and is based on an LSM-tree structure, offering extremely high write throughput.
Implementing a simplified LSM-Tree storage engine by hand helps in understanding the architectural design of LevelDB, RocksDB, and Cassandra.
The LSM tree is the foundation of modern NoSQL systems such as LevelDB, RocksDB, and Cassandra; writes first enter an in-memory buffer called a MemTable, which is sequentially flushed to an SSTable once a threshold is reached, with background compaction maintaining a multi-level sorted structure.
SQLite's WAL mode, PostgreSQL's pg_wal directory, and RocksDB's MANIFEST file are all typical implementations of the write-ahead logging mechanism.
Memory-mapped files (mmap) are an OS-provided mechanism that maps file contents directly into a process's address space, and storage engines such as Lucene and RocksDB make extensive use of mmap.
All Facts (7)
The most representative LSM-Tree implementations are Google's LevelDB and Meta's open-source RocksDB, the latter of which has been used in TiKV, CockroachDB, and the MyRocks fork of MySQL.
50%UnverifiedMyRocks is the result of Facebook integrating RocksDB into MySQL in 2016, open-sourced in 2017, and is currently maintained by communities including Percona.
50%UnverifiedRocksDB was developed by Facebook and is based on an LSM-tree structure, offering extremely high write throughput.
50%UnverifiedImplementing a simplified LSM-Tree storage engine by hand helps in understanding the architectural design of LevelDB, RocksDB, and Cassandra.
50%UnverifiedThe LSM tree is the foundation of modern NoSQL systems such as LevelDB, RocksDB, and Cassandra; writes first enter an in-memory buffer called a MemTable, which is sequentially flushed to an SSTable once a threshold is reached, with background compaction maintaining a multi-level sorted structure.
50%UnverifiedSQLite's WAL mode, PostgreSQL's pg_wal directory, and RocksDB's MANIFEST file are all typical implementations of the write-ahead logging mechanism.
50%UnverifiedMemory-mapped files (mmap) are an OS-provided mechanism that maps file contents directly into a process's address space, and storage engines such as Lucene and RocksDB make extensive use of mmap.
50%