-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make compensation if something went wrong during current saga step execution #49
Comments
My current implementation:
Is that way is correct? |
Or another way:
|
Yes, I would recommend to handle a failed command as a new event... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi.
For example, on step 3 of my saga I sent a new command 'createTicket' but ticket microservice rejected it and thrown Error, I logged it and now want to undo all previous saga steps (by sending compensation commands like makeRefund, deleteMessage etc). How to implement such scenario?
by the way: your pack of libraries is awesome, it wonders me why it has so small amount of stars.
The text was updated successfully, but these errors were encountered: