Calvin
discontinuedby Yale University (Abadi group) · since 2012 · also known as CalvinDB
Yale research system for deterministic distributed transactions that commits without two-phase commit.
discontinued. Academic prototype (2012–2015, Yale, later UMD); code unmaintained. Its protocol influenced FaunaDB and later deterministic databases.
Overview
Calvin is a transaction scheduling and replication layer from Daniel Abadi's group at Yale, presented at SIGMOD 2012 by Alexander Thomson, Thaddeus Diamond, Shu-Chun Weng, Kun Ren, Philip Shao and Abadi. Instead of letting partitions and replicas negotiate each commit, a sequencing layer batches incoming transactions into short epochs, agrees on a global order, and replicates that input log; every node then executes transactions deterministically under a lock scheduler that follows the agreed order. Because the outcome is fixed before execution, distributed transactions need no two-phase commit and replicas stay consistent by replaying the same input. The C++ prototype on GitHub mostly backs the VLDB 2014 evaluation of deterministic databases. Calvin's protocol was adopted most visibly by FaunaDB and remains a staple of distributed-transaction research.
Strengths & trade-offs
Strengths
- +Distributed ACID transactions without two-phase commit by fixing the order before execution
- +Replication by input log: replicas stay identical by deterministically replaying the same transactions
- +Showed near-linear throughput scaling for TPC-C-style workloads in the SIGMOD paper
- +Clear, widely cited design that later systems, notably FaunaDB, built on
Trade-offs
- −Transactions must declare read/write sets up front or run a reconnaissance step first
- −Epoch batching adds latency to every transaction
- −Prototype code is unmaintained and not production-ready
Great for
- +Studying deterministic transaction processing
- +Research baseline for 2PC-free distributed commit
- +Teaching distributed concurrency control
Think twice for
- −Production deployments
- −Interactive transactions with unknown read/write sets
Capabilities
Native or official first-party support · 3 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- Native
- Multi-region
- Active active
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Distributed, In memory
- Query languages
- C++ transaction API
Partitions data across nodes and replicates the ordered input log to full replicas, synchronously via Paxos or asynchronously.
Deployment
Alternatives to Calvin
Apple's ordered, strictly serializable distributed key-value store, built to have layers on top.
calvin vs foundationdb →Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.
calvin vs cockroachdb →Google's globally consistent, horizontally scaling SQL service with graph, vector and full-text built in.
calvin vs google-cloud-spanner →Apache-licensed distributed SQL that reuses the PostgreSQL query layer on a Raft-replicated storage engine.
calvin vs yugabytedb →In-memory, partitioned SQL engine running Java stored procedures serially for millisecond decisioning.
calvin vs volt-active-data →FIS's high-throughput M (MUMPS) database and compiler, behind major core-banking systems.
calvin vs gt-m →Calvin FAQ
What is Calvin?
Calvin is a key-value database by Yale University (Abadi group), first released in 2012. Calvin is a transaction scheduling and replication layer from Daniel Abadi's group at Yale, presented at SIGMOD 2012 by Alexander Thomson, Thaddeus Diamond, Shu-Chun Weng, Kun Ren, Philip Shao and Abadi. Instead of letting partitions and replicas negotiate each commit, a sequencing layer batches incoming transactions into short epochs, agrees on a global order, and replicates that input log; every node then executes transactions deterministically under a lock scheduler that follows the agreed order. Because the outcome is fixed before execution, distributed transactions need no two-phase commit and replicas stay consistent by replaying the same input. The C++ prototype on GitHub mostly backs the VLDB 2014 evaluation of deterministic databases. Calvin's protocol was adopted most visibly by FaunaDB and remains a staple of distributed-transaction research.
Is Calvin open source?
No. Calvin is proprietary, closed-source software. License: No license (copyright Yale University).
Does Calvin support ACID transactions?
Yes. Calvin supports full ACID transactions, with strong consistency.
Does Calvin scale horizontally?
Calvin scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at small scale (≤ 100 GB). It supports active-active multi-region writes.
How can I run Calvin?
You can self-host it.
What is Calvin best for?
Calvin is a strong fit for studying deterministic transaction processing, research baseline for 2PC-free distributed commit and teaching distributed concurrency control. Think twice for production deployments.
What are the best alternatives to Calvin?
Common alternatives to Calvin include FoundationDB, CockroachDB, Google Cloud Spanner, YugabyteDB and Volt Active Data (VoltDB). The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Calvin still maintained?
Calvin is discontinued. Academic prototype (2012–2015, Yale, later UMD); code unmaintained. Its protocol influenced FaunaDB and later deterministic databases.
How popular is Calvin?
Calvin ranks #583 of 844 databases on the WhichDB Score (1.0/100), and #96 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.
