Multi-leader replication (also called master-master or active-active replication) is a database architecture where write operations can be processed by any of several designated leader nodes. Each leader independently accepts writes from clients and asynchronously propagates those changes to the other leaders. This design improves write availability and reduces latency for geographically distributed users by allowing writes to a local leader, but it introduces the core challenge of write-write conflicts when concurrent modifications to the same data occur on different leaders.
