Multileader Replication

Introduction

An extension of single-leader replication is multileader replication, which includes more than one leader receiving writes. This method is also called active-active replication.

In a multileader replication:

  • There are multiple leaders receiving writes.

  • Each leader simultaneously acts as a follower to other leaders.

  • The process of replication remains the same as single-leader replication.

Multileader replication finds its application in multi-data center setups that include a leader and followers in each data center. The client connects to the leader of a particular data center for write requests. Similarly, the client connects to the leader or followers of the data center to read data. Once the write request is successful in a data center, the leader asynchronously replicates the data to other data center leaders.

Get hands-on with 1400+ tech skills courses.