Apollo
discontinuedby Facebook (Meta) · since 2014 · also known as Facebook Apollo
Facebook's Raft-replicated, sharded C++ data store shown at QCon 2014; never released or open-sourced.
discontinued. Internal Facebook project presented in 2014; never released or open-sourced, with no public updates since.
Overview
Apollo was a distributed database that Facebook engineer Jeff Johnson presented at QCon New York in June 2014. Data was split into shards, each replicated with a Raft-based quorum protocol, and stored by default in RocksDB (MySQL was being tried as an alternative engine). Instead of a fixed document or key-value model it exposed atomic operations on data structures such as maps, queues, trees and key-value pairs, with read/write calls guarded by preconditions, and 'fault-tolerant state machines' handled cross-shard transactions, migration and load balancing. It was written in C++11 on Thrift 2 and targeted low-latency online storage, possible memcached replacements and reliable outbound message queues. It was not in production at the time, Facebook never open-sourced it, and nothing further was published, so it survives only as an early example of Raft-per-shard design.
Strengths & trade-offs
Strengths
- +Early public example of per-shard Raft replication at internet scale
- +Atomic conditional operations on rich data structures, not just opaque values
- +Storage-agnostic design with RocksDB as the primary engine
Trade-offs
- −Never released; no code, documentation or users outside Facebook
- −Only described in a single 2014 conference talk and its write-ups
Great for
- +Historical reference for Raft-per-shard database design
- +Background reading on Facebook's storage evolution
Think twice for
- −Any real deployment: the software is not available
Capabilities
Native or official first-party support · 2 of 25 tracked
Scale & consistency
- Comfortable data size
- Massive · Multi-PB
- Horizontal scaling
- Native
- Multi-region
- No
- Transactions
- Limited ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Distributed
- Query languages
- Conditional read/write API
Designed for thousands of shards, from three servers up to thousands, and datasets from megabytes to 10+ PB; never documented in production.
Deployment
Ecosystem
Alternatives to Apollo
CNCF-graduated, Raft-replicated transactional key-value store in Rust; the storage layer of TiDB.
apollo vs tikv →Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.
apollo vs cockroachdb →Apache-licensed distributed SQL that reuses the PostgreSQL query layer on a Raft-replicated storage engine.
apollo vs yugabytedb →Apple's ordered, strictly serializable distributed key-value store, built to have layers on top.
apollo vs foundationdb →Raft-based, strongly consistent key-value store that holds Kubernetes' cluster state.
apollo vs etcd →FIS's high-throughput M (MUMPS) database and compiler, behind major core-banking systems.
apollo vs gt-m →Apollo FAQ
What is Apollo?
Apollo is a key-value database by Facebook (Meta), first released in 2014. Apollo was a distributed database that Facebook engineer Jeff Johnson presented at QCon New York in June 2014. Data was split into shards, each replicated with a Raft-based quorum protocol, and stored by default in RocksDB (MySQL was being tried as an alternative engine). Instead of a fixed document or key-value model it exposed atomic operations on data structures such as maps, queues, trees and key-value pairs, with read/write calls guarded by preconditions, and 'fault-tolerant state machines' handled cross-shard transactions, migration and load balancing. It was written in C++11 on Thrift 2 and targeted low-latency online storage, possible memcached replacements and reliable outbound message queues. It was not in production at the time, Facebook never open-sourced it, and nothing further was published, so it survives only as an early example of Raft-per-shard design.
Is Apollo open source?
No. Apollo is proprietary, closed-source software. License: Internal (never released).
Does Apollo support ACID transactions?
Partly. Apollo offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.
Does Apollo scale horizontally?
Apollo scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at massive scale (Multi-PB).
What is Apollo best for?
Apollo is a strong fit for historical reference for Raft-per-shard database design and background reading on Facebook's storage evolution. Think twice for any real deployment: the software is not available.
What are the best alternatives to Apollo?
Common alternatives to Apollo include TiKV, CockroachDB, YugabyteDB, FoundationDB and etcd. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is Apollo still maintained?
Apollo is discontinued. Internal Facebook project presented in 2014; never released or open-sourced, with no public updates since.
How popular is Apollo?
Apollo has little measurable public adoption today, so it ranks near the bottom of the WhichDB Score.

