PrepCity

Database sharding

Route · 16 of 34Route 16 / 34, see the whole routeOpen the lab

By the last page, this is the design you will have built. Drag it, or Show all, to see every part.

Route · step 16 of 34 · 6 pages · about 5 min

Database sharding

Split the data across separate databases by a shard key, so each one holds and serves a slice. One very busy key, or a question without the key, undoes the split.

New words you’ll learn

  • Router
  • Hot key
  • Scatter-gather
  • Hash

Page by page