Home > Back-end >  In the distributed system of master-slave replication model consistency problem questions
In the distributed system of master-slave replication model consistency problem questions

Time:09-22

The master-slave replication model in the distributed system, such as redis master-slave replication and mysql master-slave replication, copying the master to the slaver will through the network, even in a room, or even a single machine, in fact there are still transmission delay (although the delay may be very small), so there is a master updated data, not synchronized to the slaver, application server read the old data from the slaver, the data is not consistent, is excuse me this kind of situation in reality will be ignored, when the system is associated with money, such as a bank or other application design transfer transactions, will use of distributed technology???????

CodePudding user response:

Will use 2 PC strong consistency, efficiency is not high mainly aimed at the need data consistent
  • Related