Master-master
Replication with two masters that serve reads and writes and coordinate with each other. If one goes down, the other keeps going.
Example
One master in Europe and one in America: each user writes to the nearest one and both sync with each other.
Test yourself: Master-master
Replication
Master-master: in the same second, Master A sets stock to 4 and Master B to 3. What happens?
Both masters accepted a different write to the same data. When they copy to each other they clash, and a rule like «last one wins» is needed to keep just 1.
0/1
â–¶ Play