Chronicle Map

active

by Chronicle Software · since 2014 · also known as OpenHFT Chronicle Map

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

key-valueembedded libraryopen source (permissive)mature

Overview

Chronicle Map is an open-source Java key-value store from Chronicle Software (the OpenHFT project) that implements ConcurrentMap but keeps entries off the JVM heap in memory-mapped files. Maps can therefore hold far more data than the heap, survive restarts when backed by a file, and be shared by several JVM processes on the same host, with microsecond-level reads and writes and almost no garbage-collection pressure. You size a map up front (expected entries and average key/value size), and lookups are by key only. It is used mainly in trading and other latency-sensitive financial systems. Cross-host multi-master replication is part of Chronicle's commercial offering, and the company's product pages now lead with a Chronicle Queue-backed map, but the Apache 2.0 library keeps shipping releases (2026.1 in January 2026).

Strengths & trade-offs

Strengths

  • +Microsecond-level reads and writes with near-zero GC because data lives off-heap
  • +Memory-mapped files let several JVMs on one host share the same map
  • +Capacity bounded by disk rather than heap size
  • +Drop-in ConcurrentMap API
  • +Apache 2.0 core with a commercial support path

Trade-offs

  • −Key lookups only: no query language or secondary indexes
  • −Maps must be sized up front (entry count, average key and value size)
  • −Cross-machine replication is commercial-only
  • −JVM only

Great for

  • +Low-latency reference data and order-book state in trading systems
  • +Sharing state between JVM processes on one host
  • +Large off-heap caches that survive restarts

Think twice for

  • −Ad-hoc querying or analytics
  • −Non-JVM applications
  • −Multi-node storage without a commercial license

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
Medium · ≤ 10 TB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Flexible
Architecture
Embedded, In memory
Query languages
Java Map API

Capacity is bounded by disk rather than heap; the open-source edition is single-host (multi-process). Cross-host replication needs the commercial edition.

Deployment

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

Ecosystem

apis & protocolsjava.util.concurrent.ConcurrentMap
client languagesJava

Alternatives to Chronicle Map

Compare all→
MapDBKey-Value7.6

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

chronicle-map vs mapdb →
HazelcastKey-Value33.5

A Java in-memory data grid and stream processor that embeds in your app or runs as a cluster.

chronicle-map vs hazelcast →
EhcacheKey-Value17.6

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

chronicle-map vs ehcache →
LMDBKey-Value39.7

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

chronicle-map vs lmdb →
Apache IgniteKey-Value28.3

A distributed, memory-first SQL database and compute grid; Ignite 3 rebuilt it around Raft and Calcite.

chronicle-map vs apache-ignite →
RedisKey-Value84.3

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

chronicle-map vs redis →

Chronicle Map FAQ

What is Chronicle Map?

Chronicle Map is a key-value database by Chronicle Software, first released in 2014. Chronicle Map is an open-source Java key-value store from Chronicle Software (the OpenHFT project) that implements ConcurrentMap but keeps entries off the JVM heap in memory-mapped files. Maps can therefore hold far more data than the heap, survive restarts when backed by a file, and be shared by several JVM processes on the same host, with microsecond-level reads and writes and almost no garbage-collection pressure. You size a map up front (expected entries and average key/value size), and lookups are by key only. It is used mainly in trading and other latency-sensitive financial systems. Cross-host multi-master replication is part of Chronicle's commercial offering, and the company's product pages now lead with a Chronicle Queue-backed map, but the Apache 2.0 library keeps shipping releases (2026.1 in January 2026).

Is Chronicle Map open source?

Yes. Chronicle Map is open source. License: Apache License 2.0.

Does Chronicle Map support ACID transactions?

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

Does Chronicle Map scale horizontally?

Chronicle Map 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 Chronicle Map?

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

What is Chronicle Map best for?

Chronicle Map is a strong fit for low-latency reference data and order-book state in trading systems; sharing state between JVM processes on one host; and large off-heap caches that survive restarts. Think twice for ad-hoc querying or analytics.

What are the best alternatives to Chronicle Map?

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

How popular is Chronicle Map?

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