Master-replica replication

This is the most straightforward method of replication. It can be explained as follows:

  1. We take a cluster of databases:
Cluster of databases
  1. Designate one of them as the master, and the remaining databases as replicas:
DB-3 is designated as the master
  1. All writes are performed to the master:
Three writes are performed on the master
  1. All reads are performed from the replicas:
>
Reads performed from the replicas ...

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.