Please check the
Master-Master Row-Level Synchronization
Context
You are about to design a replication between a source and a target, as described in Master-Master Replication. Your requirements are:
The replication set is updateable at either end of the replication.
Updates need to be transmitted to the other party.
Conflicts need to be detected and resolved at defined points in time, following defined data integrity rules.
Potential conflicts in the changes are to be resolved at the row level.
Solution
Create a pair of related replication links between the source and target as described in the Master-Master Replication pattern. Additionally, create a synchronization controller to manage the synchronization and connect the links. This solution describes the function of one of these replication links. The other replication link behaves the same way, but in the opposite direction. To synchronize more than two copies of the replication set, create the appropriate replication link pair for each additional copy.
Hint: When designing the replication link, it is important to know what types of conflicts can occur and how to handle them so that the integrity of replicated data remains intact. The design of conflict detection and conflict resolution is described in the Master-Master Replication pattern.
More data movemevent patterns on: