Master-master replication

You may have noticed two issues with the master-replica setup:

  • The master is used extensively for database writes, and hence is under constant duress
  • The issue of reads has been solved with replicas but the single point of failure for writes is still present

Master-master replication tries to solve these issues by making every database a master. It can be explained as follows:

  1. We take a cluster of databases:
Cluster of databases
  1. We designate every database as a master:
All databases are designated as a master ...

Get Distributed Computing with Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.