EngineeringSenior DeveloperTechnical Sessions

Session 17: Saga, Outbox & Distributed Transactions

Premium

Mục tiêu: Implement Saga pattern, Transactional Outbox, và giải quyết consistency trong distributed systems.


1. Vấn Đề: Distributed Transactions

Monolith:
  BEGIN TRANSACTION
    INSERT INTO Orders ...
    UPDATE Inventory ...
    INSERT INTO Payments ...
  COMMIT
  → ACID guaranteed ✅

Microservices:
  Order Service: INSERT INTO Orders ...     ✅
  Inventory Service: UPDATE Stock ...       ✅
  Payment Service: Charge credit card ...   ❌ FAILED!
  → Order created, stock reserved, nhưng payment failed!
Premium

Continue with premium access

Session 17: Saga, Outbox & Distributed Transactions is part of the premium library. Sign in with a premium account to unlock the full lesson and the rest of this track.

01 Full premium lesson access
02 Deeper implementation notes
03 Ongoing content updates