|
|
|
|
|
by richdougherty
1119 days ago
|
|
I think mrkeen is talking about a failure when handling a failure. E.g. when a cancellation step fails, what do you do? 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. |
|
1. A misunderstanding of the business rules. In the flight example, you thought that were flights were cancellable, but actually the airline only offers nonrefundable seats.
2. System type errors, e.g. network outages.
If you get a type 1 failure, that's an error that gets ingested in your error monitoring service, and is a bug that needs to be fixed. If you get a type 2 failure, idempotent cancellation (which is necessary for this work) will eventually get you to your desired state. Either way, you shouldn't need to model deeper into the state graph.