Answer:
Master-slave replication helps with read scalability but doesn’t help with scalability of writes. It provides resilience against failure of a slave, but not of a master. Essentially, the master is still a bottleneck and a single point of failure. Peer-to-peer replication attacks these problems by not having a master. All the replicas have equal weight, they can all accept writes, and the loss of any of them doesn’t prevent access to the data store.With a peer-to-peer replication cluster, we can ride over node failures without losing access to data. Furthermore, we can easily add nodes to improve the performance.
Asked In: Many Interviews |
Alert Moderator