WillemJiang commented on issue #588: 超時場景下 Failed to process grpc coordinate 
command
URL: 
https://github.com/apache/servicecomb-pack/issues/588#issuecomment-552422024
 
 
   > > 我觉得Cancel方法返回参数应该影响。
   > 
   > 感謝各位的指導,但補償不是必須滿足幕等的條件嗎 ?
   > 那該怎麼設計補償呢 ?
   > 謝謝
   大概有两种方式实现:
   1. 
补偿可以通过软删除的方式,通过设置cancel值来进行。具体可以参加我们的[demo](https://github.com/apache/servicecomb-pack/tree/master/demo/saga-spring-demo)
   
   2. 这块可以通过全局事务ID和本地事务ID作为Key 在数据库中做相关的判断。 一般来说我们可以把事务执行的上下文存储到数据库中, 
在恢复的过程中通过读取这些上下文进行相关的恢复。如果已经恢复成功,则不需要修改原始数据。
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to