FoundationDB
activeby Apple · since 2013 · also known as FDB
Apple's ordered, strictly serializable distributed key-value store, built to have layers on top.
Overview
FoundationDB is a distributed, ordered key-value store that gives you multi-key ACID transactions with strict serializability across a whole cluster, and almost nothing else on purpose. Higher-level data models (records, documents, SQL, queues) are built as stateless 'layers' on top, which is how Apple runs CloudKit and Snowflake runs its metadata catalog on it. Its deterministic simulation testing is legendary and it is among the most correctness-focused databases you can run. The trade-offs are hard limits (5-second transactions, 10 MB transaction size, 100 KB values) and the need to build or adopt a layer for anything beyond raw keys.
Strengths & trade-offs
Strengths
- +Strictly serializable multi-key transactions across the whole cluster
- +Deterministic simulation testing gives exceptional reliability
- +Ordered keyspace enables efficient range scans and custom indexes
- +Layer architecture: Record Layer and others add data models on a common core
- +Self-healing: automatic data distribution, replication and recovery
Trade-offs
- −Transactions limited to 5 seconds and 10 MB; values capped at 100 KB
- −Raw key-value API: you must build or adopt a layer for documents, SQL or secondary indexes
- −No official managed service and a steep operational learning curve
- −Smaller community; much development happens inside Apple and Snowflake
Great for
- +Metadata stores for larger systems (catalogs, object stores)
- +Foundation for custom databases and layers
- +Multi-tenant app backends via the Record Layer
- +Transactional queues and job systems
Think twice for
- −Long-running analytical transactions
- −Teams wanting SQL out of the box
- −Storing large blobs directly
Capabilities
Native or official first-party support · 4 of 25 tracked
Scale & consistency
- Comfortable data size
- Large · ≤ 1 PB
- Horizontal scaling
- Native
- Multi-region
- Read replicas
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Distributed, Client server
- Query languages
- FoundationDB API
Automatic range sharding and rebalancing; multi-region configurations replicate synchronously to a satellite and fail over to a standby region.
Deployment
Ecosystem
Alternatives to FoundationDB
CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.
foundationdb vs tikv →Raft-based, strongly consistent key-value store that holds Kubernetes' cluster state.
foundationdb vs etcd →Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.
foundationdb vs cockroachdb →Google's globally consistent, horizontally scaling SQL service with graph, vector and full-text built in.
foundationdb vs google-cloud-spanner →AWS's serverless key-value and document store with single-digit-millisecond reads at any scale.
foundationdb vs amazon-dynamodb →Pure-Go LSM key-value store that separates keys from values to cut write amplification.
foundationdb vs badger →FoundationDB FAQ
What is FoundationDB?
FoundationDB is a key-value database by Apple, first released in 2013. FoundationDB is a distributed, ordered key-value store that gives you multi-key ACID transactions with strict serializability across a whole cluster, and almost nothing else on purpose. Higher-level data models (records, documents, SQL, queues) are built as stateless 'layers' on top, which is how Apple runs CloudKit and Snowflake runs its metadata catalog on it. Its deterministic simulation testing is legendary and it is among the most correctness-focused databases you can run. The trade-offs are hard limits (5-second transactions, 10 MB transaction size, 100 KB values) and the need to build or adopt a layer for anything beyond raw keys.
Is FoundationDB open source?
Yes. FoundationDB is open source. License: Apache License 2.0.
Does FoundationDB support ACID transactions?
Yes. FoundationDB supports full ACID transactions, with strong consistency.
Does FoundationDB scale horizontally?
FoundationDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB). It supports cross-region read replicas.
How can I run FoundationDB?
You can self-host it.
What is FoundationDB best for?
FoundationDB is a strong fit for metadata stores for larger systems (catalogs, object stores); foundation for custom databases and layers; and multi-tenant app backends via the Record Layer. Think twice for long-running analytical transactions.
What are the best alternatives to FoundationDB?
Common alternatives to FoundationDB include TiKV, etcd, CockroachDB, Google Cloud Spanner and Amazon DynamoDB. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is FoundationDB?
FoundationDB ranks #54 of 844 databases on the WhichDB Score (36.8/100), and #9 among key-value databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.

