In distributed systems, there is something called CAP Theorem.
Before looking at what CAP Theorem is about, let's try to understand what distributed systems means on a high-level.
Distributed computing, according to wiki:
Distributed computing is a field of computer science that studies distributed systems, defined as computer systems whose inter-communicating components are located on different networked computers
This means that all nodes must know that the data it is reading is the most recent.
If network is down, the nodes cannot know for sure that the data is the most recent.
Thus, we stop processing until network is up again.
Example: booking a flight seat. It is preferred to ensure no seats are double booked!
This means that we must at least give some response. Even if it is outdated, it is OK.
Example: posting a new photo on Instagram.
Users cannot see the most recent photo uploaded, but can still see the older posts up ~5mins ago. It is OK.
(p.s.: this is also where eventually consistency comes in!)
In distributed systems, partition tolerance is guaranteed as network failures are inevitable. Since we have to design for partition tolerance, we are forced to choose between guaranteeing Consistency (C) or Availability (A) when a network partition occurs.