PrepCity

Design a key-value store

Open the lab

By the last page, this is the design you will have built.

Lesson · 14 pages · about 12 min

Design a key-value store

Dynamo and Cassandra from the inside: keys spread by a hash, a ring so adding a node moves only a ninth, three copies with quorum reads and writes, and what reading one copy gives up.

Words you’ll learn

  • Capacity
  • API
  • Disk
  • Millisecond
  • Database
  • Shard
  • Lookup table
  • Hash
  • Stale read
  • Availability

Page by page