Every distributed database faces the same embarrassing conversation: two replicas both think they can modify the same record, so they start a choreographed argument — locks, prepare messages, abort votes — just to decide who goes first. In large clusters this argument eats most of the time that could be spent doing actual work.
Calvin (Thomson, Diamond, and Weihl, SIGMOD 2012) bets that the argument is unnecessary. Its core idea is startlingly simple: decide the global order of transactions before any of them touch a single byte of data. A component called the sequencer collects incoming transactions and stamps a global sequence number on each one. Every replica receives the same stamped log and executes each transaction in that exact order — no locks needed, no votes, no coordinator.
The result is that every replica is mathematically guaranteed to end in identical state after any prefix of the log, a property called deterministic execution. Coordination cost shrinks from round-trips per transaction to zero.
Comments
Loading comments...