Design Patterns · Senior · Question 47 of 75
Why is the Saga pattern (orchestration) in distributed processes relevant to the frontend?
- ✓Correct answer: A multi-step process with compensating actions when a step fails
- 2A long animation with several sequential stages
- 3A component's change history in DevTools
Explanation
Placing an order: reserve the item → pay → ship; if payment fails, the reservation must be cancelled. The frontend should reflect intermediate statuses and the outcome of compensations rather than treating the operation as atomic.