Krull–Akizuki theorem

Can a computer system be perfectly consistent, available, and partition-tolerant all at once?

Image: photo taken by: de:User:Stahlkocher, CC BY-SA 3.0, via Wikimedia Commons

Krull–Akizuki theorem

Can a computer system be perfectly consistent, available, and partition-tolerant all at once?

Imagine you're streaming a movie online. You want it to always play smoothly (consistency), even if your internet goes down (partition tolerance), and never miss a scene (availability).

The CAP theorem explains that in a distributed system, you can't have all three: consistent, available, and partition-tolerant at the same time. It's like trying to balance a seesaw with three weights on it; you can only have two weights balanced at once.

Example

If you prioritize consistency and partition tolerance, you might have to deal with buffering (lack of availability) when there's a network issue.

Remember this

You can only optimize two out of the three: consistency, availability, or partition tolerance.

Related concepts

Educational content, not financial advice.

Swipe through 100 ML concepts daily

Open Pocket Polymath