nessDB

discontinued

by Bohu Tang · since 2011

Bohu Tang's ANSI C embedded key-value engine for exploring LSM and buffered trees; archived teaching code.

key-valueembedded libraryopen source (permissive)legacy

discontinued. Repository archived; the author marks it teaching/research only. Use RocksDB, Pebble or another maintained engine.

Overview

nessDB is an embedded key-value storage engine in ANSI C with no external dependencies, written by Bohu Tang (later a co-founder of Databend) as a vehicle for experimenting with write-optimised indexes. Early versions used an LSM tree, v2 a small-splittable tree, and v3 a buffered (B-epsilon, fractal-style) tree with range queries, compression and simple transactions, behind a Redis-like SET/GET/DEL interface. The author labels it for teaching and research only, and the repository is now archived. It is a compact codebase for studying buffered-tree ideas, not something to deploy.

Strengths & trade-offs

Strengths

  • +Small, dependency-free C code showing LSM and buffered-tree designs
  • +Good companion to papers on fractal and B-epsilon trees

Trade-offs

  • −Archived; explicitly not intended for production
  • −No recovery/checkpointing and only coarse locking

Great for

  • +Teaching storage-engine internals
  • +Benchmarking write-optimised index ideas

Think twice for

  • −Production data
  • −Multi-threaded high-concurrency workloads

Capabilities

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

✓Transactions
✓Durable persistence
✓Compression
–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
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

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

Deployment

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

Ecosystem

apis & protocolsC API
client languagesC

Alternatives to nessDB

Compare all→
RocksDBKey-Value48.2

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

nessdb vs rocksdb →
LevelDBKey-Value33.4

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

nessdb vs leveldb →
PebbleKey-Value5.6

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

nessdb vs pebble →
WiredTigerKey-Value20.6

MongoDB's default storage engine: MVCC B-tree with compression and snapshot isolation.

nessdb vs wiredtiger →
SophiaKey-Value1.6

Embeddable C key-value/row storage library with MVCC and serializable snapshot isolation; no longer developed.

nessdb vs sophia →
EhcacheKey-Value17.6

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

nessdb vs ehcache →

nessDB FAQ

What is nessDB?

nessDB is a key-value database by Bohu Tang, first released in 2011. nessDB is an embedded key-value storage engine in ANSI C with no external dependencies, written by Bohu Tang (later a co-founder of Databend) as a vehicle for experimenting with write-optimised indexes. Early versions used an LSM tree, v2 a small-splittable tree, and v3 a buffered (B-epsilon, fractal-style) tree with range queries, compression and simple transactions, behind a Redis-like SET/GET/DEL interface. The author labels it for teaching and research only, and the repository is now archived. It is a compact codebase for studying buffered-tree ideas, not something to deploy.

Is nessDB open source?

Yes. nessDB is open source. License: BSD license.

Does nessDB support ACID transactions?

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

Does nessDB scale horizontally?

nessDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run nessDB?

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

What is nessDB best for?

nessDB is a strong fit for teaching storage-engine internals and benchmarking write-optimised index ideas. Think twice for production data.

What are the best alternatives to nessDB?

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

Is nessDB still maintained?

nessDB is discontinued. Repository archived; the author marks it teaching/research only. Use RocksDB, Pebble or another maintained engine.

How popular is nessDB?

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