EnnoDB

discontinued

by Enno Rehling · since 2015 · also known as ennodb

Deliberately naive C key-value store served over FastCGI, built on a crit-bit tree and an append-only log.

key-valuedatabase engineopen source (permissive)legacy

discontinued. Hobby project; versions 1.0-1.4 released in June 2015, no commits since 2016.

Overview

EnnoDB is a tiny hobby key-value database written in C by Enno Rehling and published in June 2015; its own README warns against using it for anything serious. It runs as a FastCGI application behind a web server such as nginx, exposing keys under a /k/ endpoint for get and set and a /l/ endpoint for listing keys by prefix. Data lives in memory in a crit-bit tree, and every write is appended to a binary log that is replayed on start-up, with an optional read-only mode set from an .ini file. Versions 1.0 through 1.4 all shipped within ten days in June 2015, and the repository has been idle since 2016. It is a compact example of a log-structured in-memory store, not a production system.

Strengths & trade-offs

Strengths

  • +Very small, readable C codebase: crit-bit index plus append-only log
  • +Prefix listing comes for free from the crit-bit tree
  • +ISC licence allows any reuse

Trade-offs

  • −Author explicitly says not to use it for serious projects
  • −Whole dataset must fit in RAM and the log is never compacted
  • −No authentication, replication or concurrency guarantees

Great for

  • +Learning how log-replay key-value stores work
  • +Toy HTTP key-value service behind nginx

Think twice for

  • −Any production data
  • −Datasets larger than memory

Capabilities

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

✓In-memory
✓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
–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
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
None
Consistency
Strong
Schema
Schemaless
Architecture
Single node, In memory, Client server
Query languages
HTTP key and prefix lookups

Deployment

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

Ecosystem

apis & protocolsHTTP via FastCGI

Alternatives to EnnoDB

Compare all→
RedisKey-Value84.3

The in-memory data structure server that became the default cache, now with search, JSON and vectors built in.

ennodb vs redis →
MemcachedKey-Value50.6

The original multi-threaded, dead-simple distributed memory cache for key-value blobs.

ennodb vs memcached →
LevelDBKey-Value33.4

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

ennodb vs leveldb →
SQLiteRelational75.5

The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.

ennodb vs sqlite →
EhcacheKey-Value17.6

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

ennodb vs ehcache →
EVCacheKey-Value2.8

Netflix's memcached-based distributed cache with zone-aware replication, built for AWS microservices.

ennodb vs evcache →

EnnoDB FAQ

What is EnnoDB?

EnnoDB is a key-value database by Enno Rehling, first released in 2015. EnnoDB is a tiny hobby key-value database written in C by Enno Rehling and published in June 2015; its own README warns against using it for anything serious. It runs as a FastCGI application behind a web server such as nginx, exposing keys under a /k/ endpoint for get and set and a /l/ endpoint for listing keys by prefix. Data lives in memory in a crit-bit tree, and every write is appended to a binary log that is replayed on start-up, with an optional read-only mode set from an .ini file. Versions 1.0 through 1.4 all shipped within ten days in June 2015, and the repository has been idle since 2016. It is a compact example of a log-structured in-memory store, not a production system.

Is EnnoDB open source?

Yes. EnnoDB is open source. License: ISC License.

Does EnnoDB support ACID transactions?

No. EnnoDB does not provide ACID transactions; its consistency model is strong.

Does EnnoDB scale horizontally?

EnnoDB 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 EnnoDB?

You can self-host it.

What is EnnoDB best for?

EnnoDB is a strong fit for learning how log-replay key-value stores work and toy HTTP key-value service behind nginx. Think twice for any production data.

What are the best alternatives to EnnoDB?

Common alternatives to EnnoDB include Redis, Memcached, LevelDB, SQLite and Ehcache. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is EnnoDB still maintained?

EnnoDB is discontinued. Hobby project; versions 1.0-1.4 released in June 2015, no commits since 2016.

How popular is EnnoDB?

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