NuDB

maintenance

by C++ Alliance (Vinnie Falco) · since 2016

Header-only C++11 append-only key-value store tuned for random reads on SSDs, built for the XRP Ledger.

key-valueembedded libraryopen source (permissive)mature

maintenance. Feature-complete; the C++ Alliance repository gets occasional fixes (2.0.9, April 2025).

Overview

NuDB is an insert-only key-value store packaged as a header-only C++11 library, designed by Vinnie Falco (also the author of Boost.Beast) for content-addressable data where the key is a cryptographic digest. It keeps a data file and a separate key file of fixed-size hash buckets, so a lookup costs roughly one SSD read regardless of database size, memory use stays low, inserts are atomic, and the key file can be rebuilt from the data file; there are no updates or deletes, and all keys share one size. It was written for rippled, the XRP Ledger server, which runs it in production as a node-store backend. The code now lives under the C++ Alliance and receives occasional maintenance releases such as 2.0.9 in April 2025.

Strengths & trade-offs

Strengths

  • +About one SSD read per lookup no matter how large the database grows
  • +Low, size-independent memory footprint
  • +Header-only with no separate library to build
  • +Proven in production in the XRP Ledger's rippled server

Trade-offs

  • −Append-only: no updates or deletes
  • −All keys must be the same size
  • −Only point lookups and full iteration; no range queries

Great for

  • +Content-addressable storage keyed by hashes
  • +Blockchain and ledger node stores
  • +Write-once archival lookups on SSDs

Think twice for

  • −Mutable records
  • −Range scans or secondary indexes

Capabilities

Native or official first-party support · 1 of 25 tracked

✓Durable persistence
–Transactions
–Joins
–Secondary indexes
–Full-text search
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Medium · ≤ 10 TB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
Key-value API

File format supports databases up to 281 TB; read cost is designed to be independent of size.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsC++ API
client languagesC++

Alternatives to NuDB

Compare all→
RocksDBKey-Value48.2

Meta's embeddable LSM-tree key-value engine, the storage layer under dozens of databases.

nudb vs rocksdb →
LMDBKey-Value39.7

Tiny memory-mapped B+tree with ACID transactions and lock-free readers; reached 1.0 in 2026.

nudb vs lmdb →
LevelDBKey-Value33.4

Google's original small, fast LSM key-value library, now in limited-maintenance mode.

nudb vs leveldb →
BadgerKey-Value10.7

Pure-Go LSM key-value store that separates keys from values to cut write amplification.

nudb vs badger →
PebbleKey-Value5.6

Cockroach Labs' Go LSM engine, inspired by RocksDB and tuned for CockroachDB.

nudb vs pebble →
EhcacheKey-Value17.6

The standard embedded JVM cache, with heap, off-heap and disk tiers and optional Terracotta clustering.

nudb vs ehcache →

NuDB FAQ

What is NuDB?

NuDB is a key-value database by C++ Alliance (Vinnie Falco), first released in 2016. NuDB is an insert-only key-value store packaged as a header-only C++11 library, designed by Vinnie Falco (also the author of Boost.Beast) for content-addressable data where the key is a cryptographic digest. It keeps a data file and a separate key file of fixed-size hash buckets, so a lookup costs roughly one SSD read regardless of database size, memory use stays low, inserts are atomic, and the key file can be rebuilt from the data file; there are no updates or deletes, and all keys share one size. It was written for rippled, the XRP Ledger server, which runs it in production as a node-store backend. The code now lives under the C++ Alliance and receives occasional maintenance releases such as 2.0.9 in April 2025.

Is NuDB open source?

Yes. NuDB is open source. License: Boost Software License 1.0.

Does NuDB support ACID transactions?

Partly. NuDB offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does NuDB scale horizontally?

NuDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB).

How can I run NuDB?

You can self-host it and embed it in your application.

What is NuDB best for?

NuDB is a strong fit for content-addressable storage keyed by hashes; blockchain and ledger node stores; and write-once archival lookups on SSDs. Think twice for mutable records.

What are the best alternatives to NuDB?

Common alternatives to NuDB include RocksDB, LMDB, LevelDB, Badger and Pebble. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is NuDB still maintained?

NuDB is in maintenance mode. Feature-complete; the C++ Alliance repository gets occasional fixes (2.0.9, April 2025).

How popular is NuDB?

NuDB ranks #507 of 844 databases on the WhichDB Score (1.9/100), and #81 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.