Skip to content
TeachTrails
System DesignInterviews

Design a Key-Value Store (DynamoDB, Cassandra)

Design a distributed key-value store like DynamoDB or Cassandra: consistent hashing, replication, quorums, vector clocks, hinted handoff and LSM trees.

Sudipta Biswas, AI Engineer

14 min read

Beginner friendly
DESIGN A KEY-VALUE STOREA dictionary the size of a data centre that never says no.1Hash the keyconsistent hashing2Copy to 3 nodesreplication3Wait for W / Rquorums4Heal failureshints, Merkle trees5Store on diskLSM treeAmazon DynamoDB, Apache Cassandra, Riak, ScyllaDB, and the storage under shopping carts, sessions and feeds

Checking your access…