slides/mongodb/repl-eventual-consistency.xml
Eventual Consistency
30/32
How MongoDB replication works
Wrapping up
  • • Read Preference (except RP_PRIMARY)
  • • Driver will always send writes to primary
  • • Driver will send read requests to secondaries
  • • Options to prefer primary, secondary, or nearest
  • • Warning!
  • • Secondaries may be out of date
  • • Failover may happen while you're trying to write