The CAP theorem, or Brewer’s theorem, states that in a distributed system, it is impossible to simultaneously achieve Consistency, Availability, and Partition tolerance, proposed by computer scientist Eric Brewer, describes the trade-offs in distributed systems. You can prioritize two of these aspects, but the third will be compromised. …