RocksDB vs WiredTiger
RocksDB: Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases. WiredTiger: MongoDB's default storage engine: MVCC B-tree with compression and snapshot isolation.
key differences
- Licensing: RocksDB is open source (permissive) (Apache License 2.0 or GPL-2.0 (dual)); WiredTiger is open source (copyleft) (GNU GPL v2 or v3, or MongoDB commercial license).
- Only RocksDB has ttl / expiry.
- Only WiredTiger has columnar storage, encryption at rest, time travel.
choose rocksdb for
- +Storage engine for a custom database or service
- +Stream-processing state stores (Kafka Streams, Flink)
- +MySQL storage engine via MyRocks
- +Write-heavy local indexes and caches on SSD
best at · Embedded, OLTP, Streaming
choose wiredtiger for
- +Storage engine inside MongoDB
- +Embedding a transactional engine in a custom C system
- +Research on MVCC B-tree storage
best at · Embedded, OLTP
RocksDB vs WiredTiger: FAQ
What is the difference between RocksDB and WiredTiger?
RocksDB: Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases. WiredTiger: MongoDB's default storage engine: MVCC B-tree with compression and snapshot isolation. Licensing: RocksDB is open source (permissive) (Apache License 2.0 or GPL-2.0 (dual)); WiredTiger is open source (copyleft) (GNU GPL v2 or v3, or MongoDB commercial license). Only RocksDB has ttl / expiry. Only WiredTiger has columnar storage, encryption at rest, time travel.
When should I choose RocksDB over WiredTiger?
Choose RocksDB for storage engine for a custom database or service; stream-processing state stores (Kafka Streams, Flink); and MySQL storage engine via MyRocks. Choose WiredTiger for storage engine inside MongoDB, embedding a transactional engine in a custom C system and research on MVCC B-tree storage.
Is RocksDB or WiredTiger more popular?
RocksDB ranks #30 on the WhichDB Score (48.2/100) and WiredTiger ranks #155 (20.6/100). Popularity is not fit: check the requirements that matter for your project.
Are RocksDB and WiredTiger open source?
Yes. RocksDB is open source. License: Apache License 2.0 or GPL-2.0 (dual). Yes. WiredTiger is open source. License: GNU GPL v2 or v3, or MongoDB commercial license.