Phase 6 Interactive Simulators(22)

Browse all 22 labs →
🌍 Distributed Fallacies Lab — full guide →

The 8 Fallacies Failure-Domain Lab

An order service fans out 3 parallel RPCs across regions. Bend latency, loss, and clock drift to see which fallacies your design silently assumes.

Cross-region RTT70ms
Packet loss rate2%
RPC payload size512KB
Max clock drift120ms
Fan-out time (reality)
111.0 ms
vs naive estimate 0 ms (assumes fallacy #2!)
All 3 RPCs succeed
94.1%
Your "reliable network" assumption is off by 5.9%
Ambiguous timeouts / fan-out
0.06
ran but ACK lost → retry needs idempotency
LWW ordering (writers 40ms apart)
INVERTS
2×drift > 40ms commit gap
Fallacy scoreboard
  1. ✗ 1. The network is reliable
  2. ✗ 2. Latency is zero
  3. · 3. Bandwidth is infinite
  4. · 4. The network is secure
  5. · 5. Topology doesn't change
  6. · 6. There is one administrator
  7. · 7. Transport cost is zero
  8. · 8. The network is homogeneous
A single node is crash-stop: it runs or it dies. This fan-out fails partially — Node B may have charged the card while the coordinator only saw a timeout. Timeouts, retries, backoff, and bounded-clock protocols (TrueTime, vector clocks) exist precisely because these eight assumptions are false.
PHASE 6 CURRICULUM

Distributed Systems Theory

Progress0 of 22 (0%)

Distributed systems are defined by partial failures and asynchronous networks. Phase 6 covers the core theoretical principles and battle-tested patterns of distributed engineering:

Key Architectural Domains & Syllabus
the 8 Fallacies of Distributed Computing
the CAP and PACELC Theorems
consistency models (Linearizability, Sequential, Causal, Eventual)
Read-Your-Writes session consistency
Quorum math (N, W, R)
Lamport Timestamps & Vector Clocks
the Consensus Problem (FLP Impossibility)
Paxos & Multi-Paxos
Raft consensus algorithm
Leader Election patterns (Bully, ZooKeeper ephemeral nodes)
Distributed Locking with Fencing Tokens
Two-Phase Commit (2PC) limitations
the Saga Pattern (Orchestration vs Choreography)
Idempotency Keys
Message Delivery Semantics (At-Most-Once, At-Least-Once, Exactly-Once)
Split-Brain & Fencing (STONITH, Generation Epochs)
Byzantine Fault Tolerance (BFT)
Gossip Protocols (SWIM)
Coordination Services (etcd, ZooKeeper, Consul)
Phi Accrual Failure Detection
Resiliency patterns (Bulkheads, Circuit Breakers, Backoff with Jitter)
22 In-Depth Topics ~176 Minutes Reading Time Interactive Quizzes & Assessments

All Topics in Phase 6

0 of 22 completed

Explore the 8 Fallacies of Distributed Computing: Unreliable networks, non-zero latency, partial failures, independent clocks, and state coordination.

8 min read•1 Quiz Questions
#76The CAP TheoremIntermediateFREE

Analyze Eric Brewer's CAP theorem: Consistency vs Availability during a Network Partition. Understand why "CA" systems do not exist in reality.

9 min read•1 Quiz Questions
#77The PACELC TheoremIntermediateFREE

Extend CAP to normal operating conditions: If Partitioned (P) choose Availability (A) or Consistency (C); Else (E) choose Latency (L) or Consistency (C).

8 min read•1 Quiz Questions

Explore the consistency spectrum: Linearizability, Sequential Consistency, Causal Consistency, Read-Your-Writes, and Eventual Consistency.

9 min read•1 Quiz Questions

Prevent user confusion in eventually consistent systems: Sticky routing, version timestamps, and client-side session tokens.

7 min read•1 Quiz Questions

Master Dynamo-style tunable quorum consistency: $W + R > N$, strict vs sloppy quorums, and hinted handoff.

8 min read•1 Quiz Questions

Order events without synchronized physical clocks: Logical clocks, partial ordering, causality tracking, and concurrent write conflict detection.

9 min read•1 Quiz Questions
#82The Consensus ProblemAdvanced PRO

Understand the fundamental challenge of distributed agreement: Safety vs Liveness, FLP Impossibility Theorem, and crash-recovery models.

8 min read•1 Quiz Questions

Understand Leslie Lamport's Paxos: Proposers, Acceptors, Learners, Phase 1 (Prepare/Promise), Phase 2 (Accept/Accepted), and Multi-Paxos.

9 min read•1 Quiz Questions

Master the Raft consensus algorithm: Leader election, heartbeat heartbeats, log replication, commit index, and election safety.

9 min read•1 Quiz Questions
#85Leader Election PatternsIntermediate PRO

Explore leader election mechanisms: Bully Algorithm, Ring Algorithm, ZooKeeper ephemeral nodes, and lease-based elections.

8 min read•1 Quiz Questions

Prevent concurrent resource mutation across servers: Redis single-instance locks, Redlock algorithm, ZooKeeper recipes, and fencing tokens.

9 min read•1 Quiz Questions

Explore atomic distributed transactions: Prepare phase, Commit phase, coordinator failure vulnerabilities, and blocking pitfalls.

8 min read•1 Quiz Questions

Manage distributed business transactions across microservices using compensating transactions, choreography, and centralized orchestrators.

9 min read•1 Quiz Questions

Guarantee safe retries over unreliable networks: Idempotency keys, unique database constraints, conditional writes, and deduplication caches.

8 min read•1 Quiz Questions

Analyze message delivery semantics: Producer acknowledgments, consumer offset commits, duplicate detection, and Kafka transactional streams.

8 min read•1 Quiz Questions

Prevent catastrophic dual-master partition states: Majority quorums, STONITH (Shoot The Other Node In The Head), and generation epochs.

8 min read•1 Quiz Questions

Understand adversarial distributed failure: Crash faults vs Byzantine (malicious/arbitrary) faults, PBFT, and blockchain consensus foundations.

8 min read•1 Quiz Questions

Decentralized peer-to-peer cluster state dissemination: Anti-entropy, Rumor mongering, SWIM protocol, and $O(\log N)$ convergence.

8 min read•1 Quiz Questions

Compare distributed coordination backbones: Hierarchical key-value trees, watch triggers, leases, and consensus engine comparisons.

9 min read•1 Quiz Questions

Detect crashed nodes accurately: Fixed timeout pitfalls, heartbeat intervals, and Hayashibara's probabilistic Phi Accrual failure detector.

8 min read•1 Quiz Questions

Design resilient systems: Exponential backoff with jitter, circuit breakers, fallback degradation, deadlocks, and bulkhead isolation.

9 min read•1 Quiz Questions