Consistency, Consensus, Locks, Sagas & Event-driven Patterns
Question bank: consistency models, CAP, quorums, leader election, Raft, distributed locks, fencing tokens, idempotency, sagas, CQRS and event sourcing. New angles on concepts the deep-dive topics already teach.
About 120 minutes · 25 exam questions · 24 interview questions · 2 code labs
What you will learn
- Consistency models — naming exactly the guarantee a feature needs
- CAP — a per-operation choice you make during a partition
- Quorum — overlap math, and where it quietly breaks
- Leader election — at most one leader, most of the time
- Raft — terms, majorities, and the operational details that bite
- Distributed locks — efficiency locks vs correctness locks
- Fencing tokens — why a lock alone is not enough
- Idempotency — making retries safe end to end
- Distributed transactions / Saga — compensate instead of locking
- CQRS — separate write and read models, and live with the lag
- Event sourcing — the log is the database
Previous: Indexes, Pools, Replication, Sharding, Transactions & Migrations · Next: Queues, Kafka & Resilience Patterns