Friday, July 1, 2022

SAGA Pattern: Design, Implementation Path

 Choreography Or Orchestration

Steps (Microservices and Persistent Layer)

Events 

States

Bounded Contexts

Actors

Compensating Transactions

Eventual Completion (Happy Path/ Unhappy Path)



Pivot Transaction - Once commit, then next transactions must complete until end. If payment is done, must complete the Seat Allocation. 

Retry able Transaction - Transactions followed by Pivot transaction. If the Seat allocation done, next ones will be processed.

List of Idempotent transactions - Identify


  • compensating transactions must be idempotent, commutative, and they cannot abort (they must be retried indefinitely or resolved through manual intervention when necessary).


No comments: