Wednesday, April 4, 2012

What is the difference between MongoDB Relplica Sets and Master-Slave Replication?

Replica Sets and Master-Slave are alternatives for achieving replication in MongoDb. The original implementation was Master-Slave until version 1.6 onwards which contained the Replica Set feature. From then on, Replica Set is a functional superset of the Master-Slave setup which supports asynchronous replication, automatic failover and automatic recovery of a member node. Things that master/slave didn't originally support.

It is therefore recommended that replica sets are used instead of master/slave setup to achieve replication for production environments using MongoDb.

For more info on MongoDb Replica Sets, click here.
For more info on MongoDb Master/Slave, click here.

  • Related Links Widget for Blogspot

No comments: