|
|
|
|
|
by azurelake
1112 days ago
|
|
There's nothing to debug because a failure during a saga is a totally reasonable and expected thing to happen. Take the example in the article. 1. You book a flight. You successfully reserve a seat. 2. You book a car. You successfully reserve a sedan. 3. You try to book a hotel room. The room that you wanted was booked while you were booking your flight, and there aren't any more available. You obviously don't want the car or flight anymore, and you want to cancel them without a human having to manually fix it. |
|
The answer is, you model those as well and work out what to do. But it's more messy than you might think if you just model the first-order failure paths.