Spiegato, Home

Technology and Gadgets

What Is a Multi-Master Replication?

  • Published by Spiegato
  • 2 min read

Multi-master replication is a technique employed by database management software so multiple copies of a single database stored on different computers can be used and updated by many users in a de-centralized way. When a change is made to a database that is using multi-master replication, the change that is made is transmitted to all other computers on the network so all copies of the database being used are updated. Some advantages of a multi-master replication setup include redundant data backups and a de-centralized architecture in which updates to copies of a database can be maintained even if one of the computers in the network ceases to function. Without a single assigned master system, as is the case in master-slave architecture, changes and administrative commands to control the database can be issued from any of the multi-master terminals within the network instead of relying on only one physical terminal. The largest complication that can occur with the use of a multi-master replication system involves updating all systems fast enough so that data remains synchronized at all times across the network.

The term “multi-master” stems from the more basic method of master-slave replication, in which a single terminal is designated as the master. In a master-slave situation, only a single master is capable of updating information on the slave drives. A multi-master replication system has multiple systems designated as masters and each master might only be responsible for itself or could be in charge of a number of computers known as a replication group. With multiple masters, any master system can initiate a change to all other master systems, potentially leading to very complex network interactions in very large systems.

There are two forms of multi-master replication, the first being synchronous replication. Synchronous replication functions by updating in real time all copies of a database each time a change is made. This removes most situations that can occur when data is not synchronized across the network, but it creates a huge amount of network traffic and might require a large amount of processing power to implement in a larger system. For these reasons, synchronous replication primarily is used in networks where there are only a handful of master computers.

The second type of multi-master replication is asynchronous replication. Instead of updating systems whenever a change is made, changes to a database are stored as events on each system, and those changes are applied either when an event is triggered or during scheduled update periods. This means that less network bandwidth and processing power is used, but it increases the chances that two users might at some point attempt to change the same information in conflicting ways because of the delay in updating, or latency. Most distributed database management systems use asynchronous replication because of the low amount of resources that are consumed in comparison to synchronous multi-master replication.

Key terms in this article

Related articles

  • What is the Difference Between CD Replication and CD Duplication?

    The difference between compact disk (CD) replication and CD duplication is that replication is a professional process that creates a CD by molding the…

  • What is Multi-Tenancy?

    Multi-tenancy, as it relates to computing, is a software architectural principle most common to business computing. A service provider stores software…

  • What is Multi-Homing?

    Multi-homing is a situation that describes a single computer host that makes use of several IP addresses associated with various connected networks…

  • What is Multi-Carrier Modulation?

    Multi-carrier modulation or MCM is an approach to data transmission that involves segregating the data into several more or less equal components. The…

  • What are Multi-Polarized Antennas?

    Multi-polarized antennas are used to receive wireless internet signals. These signals are in a constant traffic jam in the airwaves, and multi-polarized…