Google News
logo
MongoDB - Interview Questions
What is replication and what are the primary and secondary replica sets?
Replication means synchronizing the data across multiple servers. It increases data availability. If a single server is lost, data is still intact in the other servers.
 
Primary replica set : MongoDB writes data only to primary or master replica set.

Secondary replica set : secondary or slave nodes can accept only reads. They replicate from the primary.
Advertisement