Distributed Systems

Distributed Systems

Raft, consensus, CRDTs, vector clocks, BFT, quorum systems, 2PC.

101Articles
101Topics covered
Articles in this category

All 101 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Understanding the CAP Theorem

Read article
ARTICLE · 02

Gossip Protocol - AiCassindra

Gossip Protocol - AiCassindra

Read article
ARTICLE · 03

Understanding LSM Trees: The Write-Optimized Storage Engine

Understanding LSM Trees: The Write-Optimized Storage Engine

Read article
ARTICLE · 04

In Search of a Leader: Understanding Raft Consensus - AICassindra

Read article
ARTICLE · 05

API Gateway Patterns

Kong + Ambassador + AWS API Gateway. Auth + routing + rate limits.

Read article
ARTICLE · 06

Bulkhead Pattern

Isolate resources per feature. Prevent noisy neighbor.

Read article
ARTICLE · 07

Byzantine Fault Tolerance

BFT in blockchains, critical control systems, and where it isn't worth the overhead.

Read article
ARTICLE · 08

CAP Theorem + PACELC Extension

Consistency-Availability-Partition trade-off. Modern PACELC.

Read article
ARTICLE · 09

Chaos Engineering

Netflix Chaos Monkey. Test resilience by breaking things.

Read article
ARTICLE · 10

Circuit Breaker Pattern

Fail fast when dependency down. Prevent cascade failures.

Read article
ARTICLE · 11

Clocks in Distributed Systems

Wall clocks lie. Logical clocks and what they buy you.

Read article
ARTICLE · 12

CockroachDB

Range-partitioned + Raft + HLC. PostgreSQL-compatible.

Read article
ARTICLE · 13

Consensus Protocols Compared

Why we have multiple consensus protocols and how to pick one.

Read article
ARTICLE · 14

Consistent Hashing

Add/remove nodes with minimal re-shuffling. Foundation of NoSQL.

Read article
ARTICLE · 15

CQRS

Separate write + read models. Different databases + optimization.

Read article
ARTICLE · 16

CRDTs

Eventually consistent without coordination. Counters, sets, maps.

Read article
ARTICLE · 17

CRDTs

Data structures that merge concurrent updates deterministically without coordination.

Read article
ARTICLE · 18

CRDTs in Production

When commutative types beat consensus.

Read article
ARTICLE · 19

Anti-entropy -- healing divergence between replicas

Deep-dive on anti-entropy: the replica-divergence problem, background reconciliation, Merkle trees for efficient difference detection (O(1)/log(n)), r…

Read article
ARTICLE · 20

Bounded staleness architecture

Deep-dive on bounded-staleness consistency: version-based and time-based bounds, follower applied position and lag, read-path enforcement (serve, wait…

Read article
ARTICLE · 21

Causal consistency architecture

Deep-dive on causal consistency: the happened-before relation and session guarantees, dependency tracking with vector clocks, hold-until-ready applica…

Read article
ARTICLE · 22

Chain replication -- strong consistency with simple roles

Deep-dive on chain replication: the chain structure (head to tail), writes propagating down and committing at the tail, reads from the tail (committed…

Read article
ARTICLE · 23

Google Chubby

What Chubby is, how it uses Paxos for consensus, and how it inspired ZooKeeper.

Read article
ARTICLE · 24

Raft consensus architecture

Deep-dive on Raft consensus: roles, log replication, commit index, snapshots, joint-consensus membership, and the operational surface.

Read article
ARTICLE · 25

Raft Consensus

How Raft achieves distributed consensus through leader election, log replication, and safety guarantees.

Read article
ARTICLE · 26

Consistent Hashing

How consistent hashing distributes keys across nodes such that adding or removing a node moves only 1/N of keys.

Read article
ARTICLE · 27

CRDT replication architecture

Deep-dive on CRDT replication: state-based vs op-based vs delta CRDTs, join-semilattice merges, OR-Sets and PN-counters, version vectors and dots, seq…

Read article
ARTICLE · 28

CRDTs

How CRDTs enable strong eventual consistency by having replicas that always merge cleanly.

Read article
ARTICLE · 29

Distributed Hash Table Architecture in Depth

A 2500-word walkthrough of DHT architecture: key + node id space, Chord finger tables, Kademlia k-buckets, lookup, replication, churn, stabilization, …

Read article
ARTICLE · 30

etcd

What etcd is, how it uses Raft consensus, and its role in Kubernetes.

Read article
ARTICLE · 31

Fencing tokens -- making distributed locks safe against pauses

Deep-dive on fencing tokens: the paused-lock-holder problem (GC/network/VM pauses past the lease), the monotonic fencing token issued per grant, resou…

Read article
ARTICLE · 32

Gossip Protocols

How gossip protocols spread information across cluster members through random peer communication, and how they enable membership and failure detection…

Read article
ARTICLE · 33

Gossip protocol architecture

Deep-dive on gossip protocols: SWIM, peer selection, rumor spreading, suspicion, indirect ping, anti-entropy, convergence.

Read article
ARTICLE · 34

Gossip-Based Membership

How gossip protocols track cluster membership without central coordination.

Read article
ARTICLE · 35

Gray failure architecture

Deep-dive on gray failure: the degraded component whose shallow health check passes while real requests suffer, why differential observability is both…

Read article
ARTICLE · 36

Hinted handoff

Deep-dive on hinted handoff, the Dynamo-style mechanism that preserves write availability when a replica is temporarily down: a live custodian stores …

Read article
ARTICLE · 37

Hybrid Logical Clocks (HLC)

How HLC combines physical wall clock with logical Lamport component for better ordering.

Read article
ARTICLE · 38

Hybrid Logical Clocks architecture

Deep-dive on Hybrid Logical Clocks: physical + logical combined, update rule, monotonicity, causality, bounded skew.

Read article
ARTICLE · 39

Leader Election

The leader election problem, the algorithms (bully, ring, Paxos/Raft-based), and how systems like Kubernetes and ZooKeeper implement it.

Read article
ARTICLE · 40

Distributed Leader Election Architecture in Depth

A 2500-word walkthrough of leader election in modern distributed systems: heartbeat, election timeout, PreVote, RequestVote, majority, split vote, and…

Read article
ARTICLE · 41

Leases -- time-bounded exclusive rights

Deep-dive on distributed leases: the safe-exclusive-access need, the time-bounded grant, expiry (auto-release), renewal (by the live holder), contrast…

Read article
ARTICLE · 42

Merkle tree architecture

Deep-dive on Merkle trees for replica reconciliation: leaf hashes over key ranges, parent hashes up to a single root, root-then-descend comparison, dr…

Read article
ARTICLE · 43

Operational Transform

How Operational Transform enabled Google Docs-style collaborative editing before CRDTs.

Read article
ARTICLE · 44

Operational transformation architecture

Deep-dive on OT for collaborative editing: the operation model, the transformation function and TP1/TP2, the Jupiter central-server model, client pend…

Read article
ARTICLE · 45

Transactional outbox architecture

Deep-dive on the transactional outbox pattern: how writing the business change and the event to publish in one local database transaction eliminates t…

Read article
ARTICLE · 46

Paxos

How classical Paxos works: proposers, acceptors, learners, and the two-phase protocol that achieves consensus.

Read article
ARTICLE · 47

Phi-accrual failure detectors

Deep-dive on phi-accrual failure detection: why fixed timeouts fail, the sampling window and gap-distribution estimator, how phi maps silence to log-s…

Read article
ARTICLE · 48

Quorum

How quorum-based systems (N, R, W) balance consistency, availability, and performance.

Read article
ARTICLE · 49

Quorum systems

Deep-dive on quorum-based replication: the R+W>N overlap guarantee, tunable consistency levels, timestamp vs vector-clock versi…

Read article
ARTICLE · 50

Raft log replication

Deep-dive on Raft log replication: leader-based writes, log entries with term/index/command, AppendEntries replication, majority commit for fault tole…

Read article
ARTICLE · 51

Read repair and anti-entropy architecture

Deep-dive on the repair mechanisms behind leaderless eventual consistency: read repair on the coordinator's read path with th…

Read article
ARTICLE · 52

Saga pattern architecture

Deep-dive on saga pattern: choreography vs orchestration, local transactions, compensations, timeouts, idempotency, semantic isolation.

Read article
ARTICLE · 53

Saga Pattern

How the saga pattern implements long-running transactions via a sequence of local transactions with compensating actions on failure.

Read article
ARTICLE · 54

Split Brain

How split brain occurs, its consequences (dual writes, data corruption), and prevention (quorum, fencing).

Read article
ARTICLE · 55

Total order broadcast architecture

Deep-dive on total order (atomic) broadcast: the agreement, total-order, validity, and integrity guarantees, equivalence to consensus, leader-sequence…

Read article
ARTICLE · 56

Two-Phase Commit

How two-phase commit (2PC) achieves atomic distributed transactions, its failure modes, and why it's rarely the right choice at s…

Read article
ARTICLE · 57

Two-phase commit architecture

Deep-dive on 2PC: coordinator + participants, prepare + commit phases, blocking failure mode, alternatives (sagas, LWT).

Read article
ARTICLE · 58

Vector clock architecture

Deep-dive on vector clocks: node counters, increment/merge, version vectors, conflict detection, resolution, GC, alternatives.

Read article
ARTICLE · 59

Vector Clocks

How vector clocks record happened-before relationships in distributed systems, and how they enable causal consistency.

Read article
ARTICLE · 60

Replication watermarks architecture

Deep-dive on watermarks in a replicated log: the high-water mark as the committed, safe-to-read boundary computed from the minimum offset replicated t…

Read article
ARTICLE · 61

Apache ZooKeeper

How ZooKeeper provides distributed coordination via a hierarchical namespace and ZAB consensus.

Read article
ARTICLE · 62

ZooKeeper architecture

Deep-dive on Apache ZooKeeper: ensemble, ZAB protocol, znodes, ephemeral/sequential flags, watches, sessions, use cases.

Read article
ARTICLE · 63

Distributed Locking Patterns

How to safely coordinate exclusive access across nodes with Redis, ZK, or lease-based systems.

Read article
ARTICLE · 64

Distributed Tracing with OpenTelemetry

Trace requests across services. Standard instrumentation.

Read article
ARTICLE · 65

Distributed Transactions

Two-phase and three-phase commit. Blocking + failure modes.

Read article
ARTICLE · 66

Calvin

Yale 2012. Deterministic ordering enables cheap distributed transactions.

Read article
ARTICLE · 67

Distributed Transactions in Practice

2PC, Saga, TCC — real-world patterns and trade-offs.

Read article
ARTICLE · 68

The Dynamo Paper

2007 Amazon paper. Shaped modern NoSQL: Cassandra, Riak, DynamoDB.

Read article
ARTICLE · 69

Event Sourcing

State derived from event stream. Time travel + audit + CQRS.

Read article
ARTICLE · 70

Event Streaming Patterns

Common Kafka + Kinesis usage patterns.

Read article
ARTICLE · 71

Failure Detectors and Phi Accrual

Why fixed timeouts are wrong and what Cassandra Akka use instead.

Read article
ARTICLE · 72

Google Spanner + TrueTime

Globally-distributed SQL with external consistency via GPS + atomic clocks.

Read article
ARTICLE · 73

Gossip Protocol for Cluster Membership

How rumors spread through a cluster to keep membership and state eventually consistent.

Read article
ARTICLE · 74

Gossip Protocols

Anti-entropy, push/pull, rumor mongering. Cassandra + Consul + others.

Read article
ARTICLE · 75

What Jepsen Taught Us

A decade of finding consistency bugs in production databases.

Read article
ARTICLE · 76

Kubernetes Operator Pattern

Custom controllers for domain-specific resources. Automate ops.

Read article
ARTICLE · 77

Leader Election Algorithms

Three algorithms for picking a leader in a distributed cluster, with tradeoffs.

Read article
ARTICLE · 78

Linearizability vs Sequential Consistency

The two most important consistency models, side by side.

Read article
ARTICLE · 79

Transactional Outbox Pattern

Ensure DB write + event publish are atomic. Foundation of event-driven microservices.

Read article
ARTICLE · 80

Paxos

Lamport 1998. Basic Paxos + Multi-Paxos + variants.

Read article
ARTICLE · 81

Paxos Algorithm

How Paxos achieves agreement across N nodes even when some fail, phase by phase.

Read article
ARTICLE · 82

Quorum Systems Explained

Sloppy quorum NWR and what R+W>N actually means.

Read article
ARTICLE · 83

Quorum Writes and Reads

How to configure Dynamo-style storage for consistency without linearizability.

Read article
ARTICLE · 84

Raft Consensus Algorithm

Raft's leader-based design that makes distributed agreement approachable.

Read article
ARTICLE · 85

Raft Consensus

Leader election + log replication + safety. Etcd/CockroachDB/TiDB use it.

Read article
ARTICLE · 86

Raft Consensus Intuition

Leader election, log replication, and why it's easier than Paxos.

Read article
ARTICLE · 87

Retry + Exponential Backoff + Jitter

Retry transient failures. Backoff prevents thundering herd. Jitter randomizes.

Read article
ARTICLE · 88

Saga: Choreography vs Orchestration

Deep dive into the two saga variants. When to use which.

Read article
ARTICLE · 89

Saga Pattern

Sequence of local transactions + compensating actions.

Read article
ARTICLE · 90

Service Discovery

Find services dynamically. Registration + lookup.

Read article
ARTICLE · 91

Service Mesh

Sidecar proxies. mTLS + retries + telemetry. Trade-offs.

Read article
ARTICLE · 92

Sharding Strategies

Split data across nodes. Trade-offs per strategy.

Read article
ARTICLE · 93

Two-Phase Commit

The classic 2PC protocol, its guarantees, and why it's rarely used in modern systems.

Read article
ARTICLE · 94

Two-Phase Commit Revisited

Where 2PC fits and where it doesn't in 2026.

Read article
ARTICLE · 95

Vector Clocks

Determine happens-before. Alternative to physical timestamps.

Read article
ARTICLE · 96

Vector Clocks

How vector clocks detect concurrent updates and enable proper conflict resolution.

Read article
ARTICLE · 97

YugabyteDB

PostgreSQL-compatible + cross-shard transactions. DocDB storage.

Read article