© Nicholas Cottrell 2020
N. CottrellMongoDB Topology Designhttps://doi.org/10.1007/978-1-4842-5817-0_10

10. Advanced Sharding

Nicholas Cottrell1 
(1)
St-Aubin-sur-Mer, France
 

In this chapter, we expand the discussion on sharding by planning for deployments with very large datasets or extensive write workloads. We review challenges for sharding in these cases and explore methods to avoid or mitigate problems as the data grows.

Since we are working with shards, all examples and commands shown in this chapter must always be run through a mongos instance and never directly on the shards themselves.

Indications for sharding

There are a few different options for scaling depending on the size of the data and the access patterns. If you have a “small” database ...

Get MongoDB Topology Design: Scalability, Security, and Compliance on a Global Scale now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.