HaloDB

maintenance

by Yahoo (Oath) · since 2018

Yahoo's embedded Java key-value store: off-heap index of every key plus append-only data files.

key-valueembedded libraryopen source (permissive)mature

maintenance. No release since 0.5.6 (May 2021) and only documentation commits since; the repository remains open under Yahoo.

Overview

HaloDB is an embedded key-value store for the JVM that Yahoo (Oath) built for the storage layer of a high-throughput, low-latency key-value service behind its ad platforms. Its design follows Bitcask: every key lives in an in-memory index held off-heap to avoid garbage-collection pauses, while values are appended to log-structured data files, so a read costs at most one disk seek and writes are sequential. Background compaction reclaims stale entries, tombstone files record deletes, and the index is rebuilt in parallel on open. The trade-off is that all keys must fit in RAM and there are no range scans. The latest release is 0.5.6 from May 2021, and the repository has been quiet since 2023.

Strengths & trade-offs

Strengths

  • +At most one disk seek per read thanks to the full in-memory key index
  • +Off-heap index avoids JVM garbage-collection pauses
  • +Sequential append-only writes suit SSDs and spinning disks alike
  • +Proven behind Yahoo's ad-serving key-value service

Trade-offs

  • −Every key must fit in memory
  • −No range queries, ordered iteration or transactions
  • −Effectively dormant since 2021

Great for

  • +Embedded storage for a custom JVM key-value service
  • +Point-lookup workloads with SSD-resident values
  • +Local persistent caches

Think twice for

  • −Range scans or secondary indexes
  • −Key sets larger than RAM

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
None
Consistency
Strong
Schema
Schemaless
Architecture
Embedded
Query languages
Java API

Single-process library; capacity is bounded by RAM available for the key index.

Deployment

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

Ecosystem

apis & protocolsJava API
client languagesJava

Alternatives to HaloDB

Compare all→
RocksDBKey-Value48.2

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

halodb vs rocksdb →
LMDBKey-Value39.7

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

halodb vs lmdb →
Chronicle MapKey-Value8.7

Off-heap, memory-mapped key-value store for Java with microsecond latency and cross-process sharing.

halodb vs chronicle-map →
MapDBKey-Value7.6

Embedded Java database exposing concurrent Maps, Sets and Queues backed by disk or off-heap memory.

halodb vs mapdb →
XodusKey-Value6.8

JetBrains' embedded transactional Java/Kotlin store behind YouTrack; in sunset in favour of YouTrackDB.

halodb vs xodus →
EhcacheKey-Value17.6

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

halodb vs ehcache →

HaloDB FAQ

What is HaloDB?

HaloDB is a key-value database by Yahoo (Oath), first released in 2018. HaloDB is an embedded key-value store for the JVM that Yahoo (Oath) built for the storage layer of a high-throughput, low-latency key-value service behind its ad platforms. Its design follows Bitcask: every key lives in an in-memory index held off-heap to avoid garbage-collection pauses, while values are appended to log-structured data files, so a read costs at most one disk seek and writes are sequential. Background compaction reclaims stale entries, tombstone files record deletes, and the index is rebuilt in parallel on open. The trade-off is that all keys must fit in RAM and there are no range scans. The latest release is 0.5.6 from May 2021, and the repository has been quiet since 2023.

Is HaloDB open source?

Yes. HaloDB is open source. License: Apache License 2.0.

Does HaloDB support ACID transactions?

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

Does HaloDB scale horizontally?

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

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

What is HaloDB best for?

HaloDB is a strong fit for embedded storage for a custom JVM key-value service, point-lookup workloads with SSD-resident values and local persistent caches. Think twice for range scans or secondary indexes.

What are the best alternatives to HaloDB?

Common alternatives to HaloDB include RocksDB, LMDB, Chronicle Map, MapDB and Xodus. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is HaloDB still maintained?

HaloDB is in maintenance mode. No release since 0.5.6 (May 2021) and only documentation commits since; the repository remains open under Yahoo.

How popular is HaloDB?

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