cdb vs RocksDB
cdb: D. J. Bernstein's constant database: immutable on-disk hash tables with two-read lookups and atomic swaps. RocksDB: Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases.
key differences
- RocksDB is built for larger datasets (≤ 10 TB) than cdb (≤ 100 GB).
- Transactions: cdb offers limited ACID; RocksDB offers full.
- Only RocksDB has transactions, ttl / expiry, compression.
choose cdb for
- +Mail and DNS server lookup tables
- +Read-only configuration or routing maps rebuilt in batches
- +Static key/value datasets shipped with an application
best at · Embedded, Coordination, Metadata
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
cdb vs RocksDB: FAQ
What is the difference between cdb and RocksDB?
cdb: D. J. Bernstein's constant database: immutable on-disk hash tables with two-read lookups and atomic swaps. RocksDB: Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases. RocksDB is built for larger datasets (≤ 10 TB) than cdb (≤ 100 GB). Transactions: cdb offers limited ACID; RocksDB offers full. Only RocksDB has transactions, ttl / expiry, compression.
When should I choose cdb over RocksDB?
Choose cdb for mail and DNS server lookup tables; read-only configuration or routing maps rebuilt in batches; and static key/value datasets shipped with an application. Choose RocksDB for storage engine for a custom database or service; stream-processing state stores (Kafka Streams, Flink); and MySQL storage engine via MyRocks.
Is cdb or RocksDB more popular?
RocksDB ranks #30 on the WhichDB Score (48.2/100) and cdb ranks #434 (3.5/100). Popularity is not fit: check the requirements that matter for your project.
Are cdb and RocksDB open source?
Yes. cdb is open source. License: Public domain. Yes. RocksDB is open source. License: Apache License 2.0 or GPL-2.0 (dual).