Distributed Systems Essentials
A distributed system is independent computers that communicate over a network yet appear to users as one coherent system.
Core Principles
- Hardware split: multiprocessors share memory; multicomputers pass messages over a network.
- Software split: network OS keeps machines visible; distributed OS hides them behind one system image.
- Architecture: client-server centralizes services; peer-to-peer lets every node act as client and server.
- Core goals: resource sharing, openness, scalability, fault tolerance, transparency.
- Transparency hides distribution: access, location, migration, replication, failure, concurrency.
Action Steps
- Identify which transparencies the application needs before choosing an architecture (prevents over-engineering).
- Design for partial failure: assume any node can crash while others keep running.
Key Terms
- Middleware: Software layer between OS and applications that provides communication and common services across heterogeneous nodes.
- Scalability: Ability to grow in nodes, users, or data without redesign; limited by centralized bottlenecks.
- Partial failure: Some nodes or links fail while others work, so the system must tolerate inconsistent states.
Pitfalls to Avoid
- Assuming network calls are reliable and instant causes timeouts and lost updates.
- Ignoring clock skew breaks event ordering and makes logs unreliable.
- Hiding all distribution masks latency, so chatty remote calls quietly slow the system.
Related cheat sheets
More like this