Distributed Systems · Why distributed is hard
What is a distributed system?
A distributed system is many machines working as one, talking only by messages. Messages get lost or delayed, clocks disagree and machines pause, and nobody can tell a slow machine from a dead one.
- Time22 min
- LevelDeveloper
- Experiments1 live
- Check6 questions






App server sends "charge ₹500" with idempotency key k-81 to the payment service.
Network the request waits 800 ms in a congested switch queue.
Payment service charges the card, then freezes in a garbage-collection pause.
Timeout the app gives up after 1 s, not knowing the charge happened.
Its own state certain, as long as it is not paused.
Messages it has received certain they were sent, not that they are current.
Other machines right now only a guess built from old messages.
Messages it never got invisible: lost, late, or never sent.