techdiagrams.net
← All templates

Dynamo-style key-value store

A leaderless replicated KV store composing consistent hashing, quorum writes, hinted handoff, read-repair and Merkle anti-entropy — the Cassandra/Riak blueprint.

Open in editor — free, no login Download JSON
REPLICA SET FOR KEY K · RF=3 ON THE RINGput(k,v) · W=2replicatereplicatereplicate ✗store hint for Creplay when C returnsMerkle anti-entropyClientput(k,v) · get(k)Coordinatorany node · ring lookupReplica Aack ✓Replica Back ✓Replica CDOWNNode D — hint storehint: (C, k=v)quorum math: W=2 + R=2 > RF=3 →every read overlaps every write.A+B ack, so the client gets successwith C dead — no failover, no leader.vector clocks: concurrent puts createsiblings the client must reconcile —Dynamo detects conflicts, it doesn'tinvent a winner (LWW would).

What this design does

The architecture behind Cassandra, Riak and Scylla: no leader, any node coordinates, and availability comes from quorum arithmetic instead of failover. This diagram shows a write meeting W=2 while replica C is dead — the hint stored on a neighbor, the replay path when C returns, and the Merkle-tree repair that guarantees convergence even when hints expire. We've written deep dives on two of these patterns: hinted handoff and Merkle anti-entropy, both on the blog.

The patterns it composes

Import it, attach your own numbers, and verify the design against failures — or read the engineering notes.