Resilience & Scale: Distributed Systems vs. Shared Memory Tasks
The Actor Model, exemplified by Erlang and Elixir, excels in building highly fault-tolerant, distributed systems by promoting a 'let it crash' philosophy with supervision trees for resilience and scalability across multiple machines. CSP, with implementations like Go's goroutines and channels, is often preferred for concurrent problems within a single memory space where precise, synchronous coordination is paramount.
The top 3
- CAP vs. ACID: Scalability's Core Trade-offs: Distributed systems prioritize availability and partition tolerance (CAP Theorem), often relaxing immediate consistency, while shared memory databases ensure Atomicity, Consistency, Isolation, and Durability (ACID) within a single, scalable unit.
- Fault Tolerance: "Let It Crash" vs. Transactional Guarantees: Distributed systems built on principles like Erlang's BEAM embrace "let it crash" recovery with isolated processes, contrasting with shared-memory systems' reliance on ACID transactions and robust rollback for data integrity.
- Failure Modes: Network Partitions vs. Resource Contention: Distributed systems must architect for network splits and independent node failures, often employing consensus algorithms, while shared-memory tasks grapple with deadlocks, race conditions, and contention for shared internal resources.
Sources
Open the full topic