Middle
What types of sagas do you know?
sobes.tech AI
Answer from AI
A saga is a pattern for managing distributed transactions that breaks a large transaction into a series of local transactions with the possibility of compensation.
Main types of sagas:
- Choreography: each local transaction publishes events that trigger subsequent transactions. There is no central coordinator.
- Orchestration: a central coordinator (orchestrator) manages the sequence of local transactions.
The choice depends on the system architecture and process management requirements.