Skip to content
Theory · PostgreSQL Replication and Scaling · lesson 9 of 12

Sharding

The coffee chain has grown. There are five copies of the ledger now, and price lookups are fast. But there are so many corrections that the head clerk cannot keep up, and every copy repeats all the same corrections after him. So the ledger is split: customers numbered up to 5000 are kept at one office, the rest at another, and each office has its own corrections.

In this lesson

  • Replicas scale reads
  • Sharding
  • Common mistake
  • Key points