notes
2, distributed applications knowledge theoretical knowledge CAP
Description: explain the theory of distributed core knowledge CAP
CAP theorem:
refers in a distributed system, Consistency (consistency), Availability (availability), Partition tolerance (partitions fault tolerance), three can be simultaneously obtained.
Consistency (C): Back up all data in a distributed system, if the same value at the same time. (Data from all nodes at the same time exactly the same, the more nodes, the more time-consuming data synchronization)
Availability (A): the load is too large, the entire cluster still be able to read and write in response to client requests. (Services have been available, but the response time is normal)
partition fault tolerance (P): partition tolerance, high availability is, a collapse of the node, does not affect other nodes (nodes 100, linked to a few, without affecting service the more the better machine)
CAP theory means that in a distributed storage system, can only achieve the above two points. And because the current network hardware there will be delays and packet loss problems, so we must partition tolerance need to achieve. So we can only make trade-offs between consistency and availability
Start
Consistency
availability