Distributed Systems Examples¶
12 examples covering consensus, replication, failure detection, and network protocols.
| Example | Description |
|---|---|
| raft_leader_election.py | Raft leader election and log replication |
| paxos_consensus.py | Single-decree Paxos consensus |
| flexible_paxos_quorums.py | Flexible Paxos with asymmetric quorum configurations |
| crdt_convergence.py | CRDT eventual consistency after network partition |
| chain_replication.py | Chain replication with CRAQ variant |
| primary_backup_replication.py | Primary-backup with sync/semi-sync/async modes |
| multi_leader_replication.py | Multi-leader replication with conflict detection |
| swim_membership.py | SWIM membership protocol with failure detection |
| distributed_lock_fencing.py | Distributed lock with fencing tokens and lease expiry |
| tcp_congestion.py | TCP congestion control: AIMD vs Cubic vs BBR |
| dns_cache_storm.py | DNS cache miss storm under TTL expiration |
| degraded_network.py | Degraded network with fault injection |