In Chapter 4, we discussed various indexes in MongoDB. In this chapter, we cover the following topics:
Replication.
Sharding.
Replication
Replication is the process of creating and managing a duplicate version of a database across servers to provide redundancy and increase availability of data.
In MongoDB, replication is achieved with the help of a replica set, a group of mongod instances that maintain the same data set. A replica set contains one primary node that is responsible for all ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.