Skip to main content

One post tagged with "write-concern"

View All Tags

· 7 min read

Introducing Replicasets

The way to achieve fault tolerance in MongoDB is through the use of replica sets.

Application
replicaset
Fetch Oplog
Fetch Oplog
secondary
primary
secondary

Two or more secondary nodes along with a primary node forms a replica set. Application makes all the read/write calls to the primary node which propagate all the write requests synchronously or asynchronously to the secondary nodes.

The Secondary nodes fetches the data via Oplog pull from Primary or other nodes.