Home > Back-end >  The principle and solution about distributed transactions
The principle and solution about distributed transactions

Time:09-20

Almost all the principle of both CAP and BASE are data consistency between the copy, but like 2 PC, TCC is not a system to solve the different parts of the transaction to be the problem? This and the CAP, the relationship between the BASE does anyone know? Thank you very much,

CodePudding user response:

CAP principle is also called the CAP theorem, refers to in a distributed system, the Consistency (Consistency), Availability (the Availability), Partition fault tolerance (how), refers to the CAP principles, these three elements are most can only achieve two points at the same time, can't be three to two or morethings,

BASE refers to the basic Available (Basically the Available), Soft State (Soft State), the Eventual Consistency (Eventual Consistency),

Is an extension of the theory of CAP, BASE theory core idea is that even if can't do Strong Consistency, Strong Consistency, Consistency of CAP is Strong Consistency), but in the end application can be used in a suitable way to achieve Consistency (Eventual Consitency),

CodePudding user response:

reference Enchanter, 1/f, response:
CAP principle is also called the CAP theorem, refers to in a distributed system, the Consistency (Consistency), Availability (the Availability), Partition fault tolerance (how), refers to the CAP principles, these three elements are most can only achieve two points at the same time, can't be three to two or morethings,

BASE refers to the basic Available (Basically the Available), Soft State (Soft State), the Eventual Consistency (Eventual Consistency),

Is an extension of the theory of CAP, BASE theory core idea is that even if can't do Strong Consistency, Strong Consistency, Consistency of CAP is Strong Consistency), but in the end application can be used in a suitable way to achieve Consistency (Eventual Consitency),

Upstairs said is very right

CodePudding user response:

Upstairs summary is in place, detailed reference
https://www.cnblogs.com/duanxz/p/5229352.html

CodePudding user response:

The best way to solve the distributed transaction is don't have a distributed transaction, just such a high development cost, compensation need to write code

CodePudding user response:

This can take a look at https://www.jianshu.com/p/eb571e4065ec
  • Related