Data 0/11

Lesson 10 of 11

Distributed transactions

Run two-phase commit, see where it blocks, and know when a saga or an outbox is the better tool.

1,240 words · 6 min read Ultra Premium Useful background: Transactions and isolation, Sharding

In this lesson

  1. Atomic commit
  2. Prepare and decide
  3. Participant states
  4. A coordinator crash
  5. Recover a commit
  6. PREPARE TRANSACTION
  7. When to use 2PC
  8. What stays true
  9. Operational costs
  10. Common mistakes
  11. Related topics and practice

Ultra Premium

Unlock this lesson

Ultra Premium opens the 11 premium lessons in Data, along with the rest of WhiteBox's premium lessons and problems.

Not ready yet? Read the free lesson: Backpressure