Command Palette

Search for a command to run...

Roadmap
Phase 13Advanced16 of 19 in the curriculum

Advanced Distributed Systems

CAP, PACELC, consistency models, quorums, consensus, event sourcing, CQRS.

The phase where 'distributed' stops being a buzzword: what consistency you can honestly claim, how many nodes must agree, how a leader emerges, and how event sourcing + CQRS restructure whole systems.

Every topic here is an interview probe for 'flavour of seniority' — know the trade-offs, not just the acronyms.

0/13 · 0%
13 topics ~82 min 6 code blocks & diagrams
Start with the first topic
1
13.1

CAP Theorem

During a network partition you choose between consistency and availability — and the answer is per-component, per-moment.

7 min 1 diagram practice

2
13.2

PACELC

CAP's rarely-quoted second half: even without a partition, you choose between latency and consistency (Else Latency vs Consistency).

6 min practice

3
13.3

Strong Consistency

Linearizable behavior: a read after a write always sees the write — the default you assume with one database.

6 min practice

4
13.4

Eventual Consistency

Replicas converge eventually — the default of any replicated system that doesn't synchronize every read.

6 min practice

5
13.5

Linearizability

The precise form of strong consistency — operations take effect at a single point in real time.

6 min practice

6
13.6

Quorum

W + R > N: read the majority so at least one overlapping node has the latest write.

7 min 1 diagram practice

7
13.7

Leader Election

Exactly one node acts as leader at any time, others follow — via leases, fencing, and a consensus-safe tiebreaker.

7 min 1 diagram practice

8
13.8

Distributed Consensus (Raft, Paxos)

The problem behind 'everyone agrees on the same order': Raft and Paxos, and why you almost always use etcd/ZK/Raft behind a library.

6 min practice

9
13.9

Distributed Locks (deep)

The lease + fencing story done properly — and when a lock is the wrong tool (idempotency often beats locks).

6 min practice

10
13.10

13.11 — Distributed Transactions & 2PC

Two-phase commit's prepare/commit protocol — and why production prefers saga/outbox for everything except narrow windows.

6 min practice

11
13.12

Event Sourcing

Store the history of changes as an append-only event log — the state is derived, never stored as a mutable row.

7 min 1 diagram 1 code practice

12
13.13

CQRS

Separate the read model from the write model — different schema, different store, different scaling.

6 min 1 diagram practice

13
13.14

Data Consistency Patterns

The pattern library you choose from per flow: outbox, saga, event sourcing, CQRS, TTL caches, read-your-writes, idempotency.

6 min practice