From the course: Site Reliability Engineering Essential Training
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
CAP theorem and its implementation
From the course: Site Reliability Engineering Essential Training
CAP theorem and its implementation
CAP Theorem and its implementation. Now let's take a look at how this famous theorem applies to SRE. Problems with distributed systems. As you already know, failures will happen at any time. Network failures, maintaining data consistency is extremely difficult in the face of failing components all over. Latency and performance variability are big problems in distributed systems. So how do you handle this? So CAP Theorem addresses some of these. So here is what the theorem states. In a distributed system, it is impossible to simultaneously guarantee the following. First, consistency. That's the letter C in the CAP Theorem. Consistency refers to every read receives the most recent write. If it doesn't, it's going to result in an error. So that's consistency. Availability. Every request gets a response, even if it might not be the most recent data. So availability, all it concerns about is, it gets some response, right? The service is available. No partition tolerance. That's the letter…