InterviewSolution
Saved Bookmarks
| 1. |
What is a Replica Set in MongoDB? |
|
Answer» To keep identical copies of your data on multiple servers, we use REPLICATION. It is RECOMMENDED for all production deployments. Use replication to keep your application running and your data safe, even if something happens to one or more of your servers. Such replication can be created by a REPLICA set with MongoDB. A replica set is a GROUP of servers with one primary, the server taking writes, and multiple secondaries, servers that keep copies of the primary’s data. If the primary crashes, the secondaries can elect a new primary from amongst themselves. |
|