Distributed Systems

Distributed Systems

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

101Articles
101Topics covered
Articles in this category

All 28 articles, sorted alphabetically

Advertisement
ARTICLE · 01

Understanding the CAP Theorem

The CAP Theorem explains why distributed systems cannot guarantee consistency, availability, and partition tolerance simultaneously. Understand the trade-offs between CA, CP, and AP systems with real-world examples.

Read article
ARTICLE · 02

In Search of a Leader: Understanding Raft Consensus - AICassindra

In the world of distributed systems, getting a cluster of nodes to agree on something—like the order of log entries—is notoriously difficult.

Read article
ARTICLE · 03

API Gateway Patterns

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

Read article
ARTICLE · 04

Bulkhead Pattern

Isolate resources per feature. Prevent noisy neighbor.

Read article
ARTICLE · 05

Circuit Breaker Pattern

Fail fast when dependency down. Prevent cascade failures.

Read article
ARTICLE · 06

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 · 07

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 · 08

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 · 09

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 · 10

Raft consensus architecture

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

Read article
ARTICLE · 11

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 · 12

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 · 13

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 · 14

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 · 15

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 · 16

Hybrid Logical Clocks (HLC)

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

Read article
ARTICLE · 17

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 · 18

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 · 19

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 · 20

Operational Transform

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

Read article
ARTICLE · 21

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 · 22

Paxos

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

Read article
ARTICLE · 23

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 · 24

Quorum

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

Read article
ARTICLE · 25

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 · 26

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 · 27

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 · 28

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