O'Reilly logo

MongoDB in Action, Second Edition: Covers MongoDB version 3.0 by Peter Bakkum Kyle Banker Shaun Verch, Douglas Garrett, and Tim Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12. Scaling your system with sharding

This chapter covers

  • Sharding motivation and architecture
  • Setting up and loading a sample shard cluster
  • Querying and indexing a sharded cluster
  • Choosing a shard key
  • Deploying sharding in production

With the increasing scale of modern applications, it’s become more and more expensive, and in some cases impossible, to get a single machine powerful enough to handle the load. One solution to the problem is to pool the capacity of a large number of less powerful machines. Sharding in MongoDB is designed to do just that: partition your database into smaller pieces so that no single machine has to store all the data or handle the entire load. On top of that, sharding in MongoDB is transparent to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required