Last Minute Notes
Github
Docs
Learn
Search
⌘
K
@sayanstwt
Lessons
Learn
/
System Design
/
Distributed Systems
2PC & Sagas
8 min
Advanced
6 steps
Commit across services, or compensate when you cannot.
Databases
3
Local txn
cannot span
Options
2PC / saga
Orchestrator
Order
Payment
Stock
create order
charge card
reserve stock
what if step 3 fails?
request
reply
failure
In this lesson
Step 1 of 6
1
The problem
2
2PC
3
Blocking
4
Saga
5
Compensate
6
Recap