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

  1. Consistency models — naming exactly the guarantee a feature needs
  2. CAP — a per-operation choice you make during a partition
  3. Quorum — overlap math, and where it quietly breaks
  4. Leader election — at most one leader, most of the time
  5. Raft — terms, majorities, and the operational details that bite
  6. Distributed locks — efficiency locks vs correctness locks
  7. Fencing tokens — why a lock alone is not enough
  8. Idempotency — making retries safe end to end
  9. Distributed transactions / Saga — compensate instead of locking
  10. CQRS — separate write and read models, and live with the lag
  11. Event sourcing — the log is the database

Previous: Indexes, Pools, Replication, Sharding, Transactions & Migrations · Next: Queues, Kafka & Resilience Patterns