CockroachDB
ELI5 — The Vibe Check
CockroachDB is the database that just won't die, like the bug it's named after. It spreads your data across multiple servers so even if one goes down, everything keeps working. It speaks PostgreSQL, so you already know how to talk to it.
Real Talk
CockroachDB is a distributed, cloud-native NewSQL database that provides horizontal scalability, strong consistency, and survivability through automatic data replication across nodes. It implements the SQL standard with PostgreSQL wire protocol compatibility and uses the Raft consensus algorithm for distributed coordination.
When You'll Hear This
"We migrated to CockroachDB for multi-region resilience." / "CockroachDB handles failover automatically, no manual intervention needed."
Related Terms
Distributed Database
A distributed database spreads your data across multiple computers that work together like a hive mind. If one server dies, the others pick up the slack.
NewSQL
NewSQL databases are like someone said 'I want the scale of NoSQL but I refuse to give up SQL and transactions.
Raft
Raft is a consensus algorithm designed to be understandable, unlike its predecessor Paxos which requires a PhD to read.
Strong Consistency
Strong consistency means the moment you write something, everyone everywhere immediately sees the updated value. No 'give it a sec' nonsense.