Orchestration
SAGA pattern may realized in two ways.
Orchestration
A pattern in which a central component coordinates the flow of a transaction. The central component is referred to as the SAGA Execution Coordinator (SEC)
- SEC may be part of the domain model. The illustration depicts the Orders microservice taking the responsibility of the SEC
State Management will introduce COMPLEXITY in the domain object !!!
- OR it can be an externalized coordinator that is generic in nature. These may be off the shelf technologies such as:
- BPM tools
- AWS Step Functions
- JAVA Sping framework
Benefits of Orchestration
- Simplicity
- Easier to implement, test and manage
- Rollbacks are easier to manage
- Centralized way to check out the state