website/src/content/docs/self-hosting/foundationdb.mdx
FoundationDB is the recommended storage backend for scalable, production-ready Rivet deployments. It is a distributed, ordered key-value store originally built by Apple.
FoundationDB powers some of the largest infrastructure in the world:
Its strict serializability guarantees, fault tolerance, and ability to scale linearly across nodes make it the ideal backend for Rivet's actor state and orchestration layer.
| RocksDB (File System) | PostgreSQL | FoundationDB | |
|---|---|---|---|
| Scalability | Single node | Primary/replica failover | Linear horizontal scaling |
| Fault tolerance | None | Primary/replica failover | Automatic recovery with no data loss |
| Production readiness | Development and small deployments | Experimental for multi-node | Battle-tested at global scale |
FoundationDB configuration and cluster setup are handled as part of enterprise onboarding. Contact enterprise support to get started.