Published Jul 17, 2022
[
 
]
In distributed systems, different types of failure can occur. How can a distributed system model itself to get the maximum benefits out of different resources available?
CAP theorem states that is is impossible for a distributed system to simultaneously provide all three of the following desirable properties:
According to the CAP theorem, any distributed system needs to pick two out of three properties. The three options are CA, CP, and AP. However, CA is not really a coherent option, as a system that is not partition-tolerant will be forced to give up either Consistency or Availability in the case of a network partition. Therefore, the theorem can really be stated as: In the presence of a network partition, a distributed system must choose either Consistency or Availability.