Can you explain the difference between a primary and secondary replica set in MongoDB?
Can you explain the difference between a primary and secondary replica set in MongoDB?
Student
The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
In MongoDB, a replica set is a group of MongoDB servers that maintain the same data set. Replica sets provide redundancy, high availability, and data protection. The terms primary and secondary refer to the roles that each member of the replica set can take.
1. Primary Replica Set
2. Secondary Replica Set
secondaryornearest).Key Differences:
Summary: