Advantages of sharding

Here are some of the advantages of sharding:

  • When we use sharding, the load of the read/write operations gets distributed across sharded clusters.
  • As sharding is used to distribute data across a shard cluster, we can increase the storage capacity by adding shards horizontally.
  • MongoDB allows continuing the read/write operation even if one of the shards is unavailable. In the production environment, shards should deploy with a replication mechanism to maintain high availability and add fault tolerance in a system.