Distributed Key-Value Store — Dynamo-Style

Distributed Key-Value Store — Dynamo-Style An architecture diagram generated by Archify. Client · get / put · Architecture component Client get / put Coordinator · any node · Architecture component Coordinator any node Hash ring · vnodes, N = 3 · Architecture component Hash ring vnodes, N = 3 Replica A · memtable + SSTables · Architecture component Replica A memtable + SSTables Replica B · memtable + SSTables · Architecture component Replica B memtable + SSTables Replica C · memtable + SSTables · Architecture component Replica C memtable + SSTables Gossip · membership, failure · Architecture component Gossip membership, failure Hinted handoff · writes for down node · Architecture component Hinted handoff writes for down node put(k, v) preference list write replicate replicate if down heartbeats Legend Frontend Backend Database Cloud

Partitioning

  • • Consistent hashing with virtual nodes
  • • Key stored on next N distinct nodes

Quorums

  • • W + R > N for overlap
  • • Read repair and Merkle-tree anti-entropy

Availability

  • • Sloppy quorum + hinted handoff
  • • Vector clocks or LWW for conflicts