Distributed Database
ELI5 — The Vibe Check
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. The hard part is making all the servers agree on what the 'truth' is, which turns out to be one of the hardest problems in computer science.
Real Talk
A distributed database stores data across multiple physical nodes while presenting a unified logical database to clients. Key challenges include maintaining consistency across nodes, handling network partitions, managing replication, and executing distributed transactions. The CAP theorem defines the fundamental trade-offs involved.
When You'll Hear This
"We need a distributed database for our multi-region deployment." / "Distributed databases trade simplicity for resilience and scale."
Related Terms
CAP Theorem
The CAP theorem says a distributed database can only guarantee two out of three things: Consistency (everyone sees the same data), Availability (every requ...
Consensus Algorithm
A consensus algorithm is how a group of servers democratically agree on something even when some of them are flaky or unreachable.
Eventual Consistency
Eventual consistency means 'give it a moment and everything will match up.' You write data to one server, and the other servers will get the update...
Raft
Raft is a consensus algorithm designed to be understandable, unlike its predecessor Paxos which requires a PhD to read.