Skip to content
Theory · MongoDB: Aggregation, Indexes and Scaling · lesson 12 of 13

Sharding

A replica set keeps all the data in full on every node. When there is more data or more writing than one server can carry, copies do not help: each copy hits the same limit.

In this lesson

  • How a cluster is built
  • Shard key and chunks
  • Targeted and broadcast queries
  • Range or hash
  • Common mistake
  • Key points