Distributed

Lesson 06.4

Sharding, partitioning & hot partitions

Partitioning splits data into pieces and sharding places those pieces across servers; the partition key controls data locality, query fan-out, balance, and where hot spots form.

Point reads by customer ID

Ava looks up one customer's cookie orders. The customer's number should lead to one balanced computer.

In this lesson you'll

  1. 1Predict both read fan-out and the busiest shard before choosing a partition key.
  2. 2Predict what changes before revealing the result
  3. 3Help Ava with the new request while keeping every rule