SYSTEM Cited by 1 source
CockroachDB¶
CockroachDB is a distributed SQL database by Cockroach Labs, design-inspired by Google Spanner and implemented on Raft for strong consistency + Range-based partitioning. It exposes a PostgreSQL wire-compatible SQL interface.
Why it uses gossip¶
CockroachDB uses Raft for data-plane consensus (per-range consensus groups) but a gossip protocol for node-metadata propagation โ information that every node needs but doesn't need to be serialized through consensus. From sources/2023-07-16-highscalability-gossip-protocol-explained:
"CockroachDB operates the gossip protocol to propagate the node metadata."
Concretely, gossip carries things like:
- Node liveness / health / capacity.
- Range descriptor updates โ which ranges live on which nodes.
- Zone configuration changes.
- System-table hints used by the query planner.
This is a useful architectural illustration: gossip and Raft are complementary, not alternatives. Raft handles the "state that must be linearizable"; gossip handles the "state where stale-for-a-few-seconds is fine." See concepts/no-distributed-consensus for the adjacent design decision at Fly.io Corrosion.
Wiki scope¶
This is a stub. For CockroachDB-specific material cite CockroachLabs's engineering blog or the Cockroach source directly.
Seen in¶
- sources/2023-07-16-highscalability-gossip-protocol-explained โ named as a canonical gossip deployment (node-metadata propagation).