I was reading Alex Xu's System Design Interview and while going through the CAP theorem, I came across the fact that in real-world applications, distributed systems always need to be built for partition tolerance. So realistically, we can only have CP or AP systems. Wondering if there has been a scenario in anyone's experience (interviewing others/being interviewed) where a CA system was produced?
Happy to be corrected if I've interpreted it differently. 🙂
I have found most explanations of CAP to be phrased really poorly imo. It’s not a triangle from which you can pick only two corners. It’s more like “when a partition happens, you can have only C or only A, never C and A”. And it also doesn’t apply to all distributed systems. It only applies to systems where the client both reads and writes to nodes in a distributed system. The classic example is a primary-replica setup for a database cluster.
Then there are distributed systems like NTP (network time protocol) in which local consistency is a feature but global consistency is a bug (e.g. atomic clocks in orbit vs. on earth)