Distributed Systems · Why distributed is hard
The CAP theorem
While a network is split, a replicated system cannot both answer every request and always return the latest write. Splits are not optional, so the real choice is what to give up while one lasts.
- Time24 min
- LevelSenior
- Experiments1 live
- Check6 questions







Ravi opens Asha's profile; his request reaches node B.
Node B tries to confirm with node A that it has the latest version.
Timeout no reply in 500 ms: slow network, or a split?
Consistency first return an error and let Ravi retry later.
Detect a timeout says the other side is unreachable.
Limit allow safe operations; cap or refuse risky ones.
Record log what each side did, for later.
Recover merge both sides' state when the network heals.
Compensate fix what went wrong: refund, apologise, charge a fee.