As a database gets larger, you need to come up with solutions to improve its performance to support more queries over a period of time and throughput. The most common solution in databases is clustering. Using clustering, you can save data across multiple servers and obviously, share and distribute the pressure of data between different servers. In this chapter, you will learn the basic concepts of clustering in MongoDB.
MongoDB has a great solution to provide clustering. Sharding is one of the remarkable MongoDB features that enable developers to easily create a cluster in MongoDB using different
mongod instances in between the servers.
Sharding consists of various parts such as replica sets and ...