Home > Back-end >  Rocketmq distributed transactions
Rocketmq distributed transactions

Time:03-12

News in A distributed transaction, A is the upstream service, B is the downstream service, if to perform A successful local transactions, mq also sent A confirmation message to B, but B service at the time of execution logic called the exception, could you tell me how to ensure A service data rollback?

CodePudding user response:

Transaction message cannot be rolled back, you have to ensure that your code is not the exception, operational check front.
He can only ensure the message is sent out will be delivered to, if your code is out of the bug, that need human intervention, also is to fix the bug, resend the message, to achieve consistent

CodePudding user response:

2 PC, 3 PC TCC these actual are theoretical solution; To study on

As the upstairs said, are generally not reissue news, realizes the data finally is consistent,

Seldom go to do a distributed transaction, the actual overall implementation cost is larger, there are a small price solution
  • Related