ElephantDB

discontinued

by Nathan Marz · since 2011 · also known as Elephant DB

Nathan Marz's read-only key/value server for Hadoop batch output: the Lambda Architecture's serving layer.

key-valuedatabase engineopen source (permissive)legacy

discontinued. No commits since 2014 (last version 0.5.1). The batch-built, read-only serving pattern lives on in systems such as Voldemort read-only stores.

Overview

ElephantDB was built by Nathan Marz (of Storm and the Lambda Architecture) to serve key/value data computed in Hadoop. A MapReduce job, usually written with Cascading or Cascalog, wrote a fixed number of indexed shards to the distributed file system; a ring of ElephantDB servers then downloaded their share of the shards and answered random reads over Thrift, hot-swapping to a new version without downtime when the next batch finished. Because servers never accept random writes there was almost nothing to go wrong, which made it very stable in production. Local storage was pluggable, with Berkeley DB Java Edition and LevelDB bundled. Development ended in 2014; Voldemort read-only stores and LinkedIn's Venice explored the same pattern.

Strengths & trade-offs

Strengths

  • +Read-only design leaves very few failure modes in the serving tier
  • +Shards are built offline in Hadoop, so serving nodes never pay indexing cost
  • +Hot-swaps a new dataset version without downtime
  • +Pluggable local storage (Berkeley DB JE or LevelDB)

Trade-offs

  • −No random writes: data is only as fresh as the last batch job
  • −Tied to the Hadoop 1.x/Cascading 2-era toolchain; unmaintained since 2014
  • −Thrift-only interface with sparse documentation

Great for

  • +Studying the serving layer of the Lambda Architecture
  • +Publishing precomputed batch views (recommendations, aggregates) for low-latency reads

Think twice for

  • −Workloads needing writes or real-time updates
  • −New deployments

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
Large · ≤ 1 PB
Horizontal scaling
Native
Multi-region
No
Transactions
None
Consistency
Eventual
Schema
Schemaless
Architecture
Distributed
Query languages
Key lookups over Thrift

Datasets are pre-sharded by the Hadoop job; each server in a ring serves a subset of shards read-only.

Deployment

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

Ecosystem

apis & protocolsThrift
client languagesJava, Clojure, Any Thrift-supported language

Alternatives to ElephantDB

Compare all→
Project VoldemortKey-Value7.1

LinkedIn's discontinued open-source Dynamo clone, retired in favour of Venice.

elephantdb vs project-voldemort →
Apache HBaseWide-Column26.6

Hadoop's Bigtable clone: strongly consistent wide-column tables on top of HDFS.

elephantdb vs apache-hbase →
RocksDBKey-Value48.2

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

elephantdb vs rocksdb →
Apache CassandraWide-Column55.9

Masterless wide-column database built for always-on writes across data centers.

elephantdb vs apache-cassandra →
Consul KVKey-Value39.0

The key-value store built into HashiCorp Consul for service config, locks and discovery.

elephantdb vs hashicorp-consul-kv →
libmdbxKey-Value4.9

Heavily reworked LMDB descendant: memory-mapped ACID B+tree with auto-growing files.

elephantdb vs libmdbx →

ElephantDB FAQ

What is ElephantDB?

ElephantDB is a key-value database by Nathan Marz, first released in 2011. ElephantDB was built by Nathan Marz (of Storm and the Lambda Architecture) to serve key/value data computed in Hadoop. A MapReduce job, usually written with Cascading or Cascalog, wrote a fixed number of indexed shards to the distributed file system; a ring of ElephantDB servers then downloaded their share of the shards and answered random reads over Thrift, hot-swapping to a new version without downtime when the next batch finished. Because servers never accept random writes there was almost nothing to go wrong, which made it very stable in production. Local storage was pluggable, with Berkeley DB Java Edition and LevelDB bundled. Development ended in 2014; Voldemort read-only stores and LinkedIn's Venice explored the same pattern.

Is ElephantDB open source?

Yes. ElephantDB is open source. License: BSD 3-Clause License.

Does ElephantDB support ACID transactions?

No. ElephantDB does not provide ACID transactions; its consistency model is eventual.

Does ElephantDB scale horizontally?

ElephantDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB).

How can I run ElephantDB?

You can self-host it.

What is ElephantDB best for?

ElephantDB is a strong fit for studying the serving layer of the Lambda Architecture; and publishing precomputed batch views (recommendations, aggregates) for low-latency reads. Think twice for workloads needing writes or real-time updates.

What are the best alternatives to ElephantDB?

Common alternatives to ElephantDB include Project Voldemort, Apache HBase, RocksDB, Apache Cassandra and Consul KV. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is ElephantDB still maintained?

ElephantDB is discontinued. No commits since 2014 (last version 0.5.1). The batch-built, read-only serving pattern lives on in systems such as Voldemort read-only stores.

How popular is ElephantDB?

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