compensate transactions in saga for failures
i have a "compensatable transaction" tx that is part of a choreography saga and was wondering how to deal with compensation when a bug is introduced in the system. It is clear that if there is a business requirement not fullfiled by tx an *FailedEvent must be emitted in order to start the compensation action chain, but should an event be published as a result of a failure (null pointer, out of memory, and so) ? In my opinion this should be treated as a bug, compensation is not fired and shuould be fixed with a manuall process. This forces me to add some generic error event in a global exception handler. Not sure about it.. Thanks
Comments
Post a Comment