MongoDB Replica Set Features
29/33
Availability/Partition Tolerance (CAP)
How MongoDB replication works
•
A cluster of
n
servers
•
All writes to
primary
•
Reads can be from primary (default) or a secondary
•
Any
(one)
node can be primary
•
Consensus
election
of primary
•
Automatic failover and recovery