Lesson 03.11
Sagas (orchestration vs choreography)
A saga splits a long business transaction into local steps, each with a compensating step that undoes it if a later step fails.
Undo in reverse
Ava books Mia's family holiday in four steps: plane seats, a hotel room, a hire car, then the payment. Each company books its own part straight away.
If the car hire can't find a car, the seats and room are no use. What should happen to them?
In this lesson you'll
- 1Watch a holiday where one step fails and nothing is undone.
- 2Guess the order Ava undoes things in.
- 3Undo everything, even when a cancel fails once.