Datomic

active

by Nubank (Cognitect) · since 2012 · also known as Datomic Pro, Datomic Cloud, Datomic Local

Immutable Datalog database from Nubank where every fact is timestamped and queries run in the app process.

relationalgraphdatabase engineopen source (permissive)mature

Overview

Datomic stores data as immutable facts (datoms: entity, attribute, value, transaction) and never overwrites them, so any past database value can be queried with Datalog, and the full history is an ordinary query away. A single transactor serialises writes while peers cache index segments and run queries inside the application process, on top of pluggable storage such as DynamoDB, PostgreSQL or Cassandra. Nubank, which acquired Cognitect in 2020, runs it at large scale and made the Datomic binaries free under Apache-2.0 in 2023. It is excellent for audit-heavy domain models in Clojure or Java, and far less common outside the JVM.

Strengths & trade-offs

Strengths

  • +Immutable facts with as-of, since and history queries built in
  • +Datalog makes recursive and graph-style queries concise
  • +Queries run in-process on cached indexes, scaling reads with app servers
  • +Proven at Nubank's scale and now free to use

Trade-offs

  • −Single transactor limits write throughput
  • −Closed source despite the Apache-2.0 binary licence
  • −Ecosystem is largely Clojure; tooling outside the JVM is thin
  • −Storage grows forever unless you excise data

Great for

  • +Financial and banking domain models needing auditability
  • +Systems that must answer what was known at a given time
  • +Complex domain graphs in Clojure services

Think twice for

  • −Write-heavy event ingestion
  • −Teams outside the JVM ecosystem
  • −Analytics over very large datasets

Capabilities

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

✓Transactions
✓Joins
✓Secondary indexes
✓Full-text search
✓Change data capture
✓Durable persistence
✓Time travel
–Vector search
–Geospatial
–JSON
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–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
Full ACID
Consistency
Strong
Schema
Flexible
Architecture
Distributed, Shared storage
Query languages
Datalog, Pull API

Reads scale with peers; the single transactor caps write throughput.

Deployment

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

available on · AWS

Ecosystem

apis & protocolsPeer library, Client API
client languagesClojure, Java
used byNubank

Alternatives to Datomic

Compare all→
XTDBRelational8.3

Bitemporal SQL database on object storage that keeps every version of every row.

datomic vs xtdb →
TerminusDBGraph21.0

Git-for-data document and knowledge-graph database with branches, diffs and time travel.

datomic vs terminusdb →
PostgreSQLRelational93.2

The extensible, standards-first open-source relational database.

datomic vs postgresql →
immudbLedger17.2

Immutable, tamper-evident database with cryptographic proofs, offering key-value, SQL and document APIs.

datomic vs immudb →
CozoDBGraph13.9

Embedded Datalog database blending relational, graph and vector queries; dormant since 2024.

datomic vs cozodb →
Apache AGEGraph20.2

PostgreSQL extension that adds openCypher graph queries alongside SQL.

datomic vs apache-age →

Datomic FAQ

What is Datomic?

Datomic is a relational database by Nubank (Cognitect), first released in 2012. Datomic stores data as immutable facts (datoms: entity, attribute, value, transaction) and never overwrites them, so any past database value can be queried with Datalog, and the full history is an ordinary query away. A single transactor serialises writes while peers cache index segments and run queries inside the application process, on top of pluggable storage such as DynamoDB, PostgreSQL or Cassandra. Nubank, which acquired Cognitect in 2020, runs it at large scale and made the Datomic binaries free under Apache-2.0 in 2023. It is excellent for audit-heavy domain models in Clojure or Java, and far less common outside the JVM.

Is Datomic open source?

Yes. Datomic is open source. License: Apache-2.0 (binaries only; source not published).

Does Datomic support ACID transactions?

Yes. Datomic supports full ACID transactions, with strong consistency.

Does Datomic scale horizontally?

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

You can self-host it and embed it in your application. It is available on AWS.

What is Datomic best for?

Datomic is a strong fit for financial and banking domain models needing auditability; systems that must answer what was known at a given time; and complex domain graphs in Clojure services. Think twice for write-heavy event ingestion.

What are the best alternatives to Datomic?

Common alternatives to Datomic include XTDB, TerminusDB, PostgreSQL, immudb and CozoDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is Datomic?

Datomic ranks #225 of 844 databases on the WhichDB Score (14.9/100), and #69 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.