You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have some confusion after check the code for a few hours, how does the program handle the order module throws the exception and global rollback? since there is no listener for the order module.
happy flow:
order module creates the record first, if there is no exception product and account modules do the same things after the order invokes them.
after the module of the account or the product commits successfully there will have a message sent to RabbitMQ, the account or product will retrieve the transaction ID and commit the transaction if the DistributedTransactionStatus is CONFIRMED
but how about the order module throws an exception? before the exception is thrown order module has called another module to do the transaction, so there is only rollback for local not global?
thanks
The text was updated successfully, but these errors were encountered:
Hi,
I have some confusion after check the code for a few hours, how does the program handle the order module throws the exception and global rollback? since there is no listener for the order module.
happy flow:
order module creates the record first, if there is no exception product and account modules do the same things after the order invokes them.
after the module of the account or the product commits successfully there will have a message sent to RabbitMQ, the account or product will retrieve the transaction ID and commit the transaction if the DistributedTransactionStatus is CONFIRMED
but how about the order module throws an exception? before the exception is thrown order module has called another module to do the transaction, so there is only rollback for local not global?
thanks
The text was updated successfully, but these errors were encountered: