You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/05/30 11:41:10 UTC

[GitHub] [servicecomb-pack] pengyu0929 removed a comment on issue #475: 在只是用向后恢复的情况下,实现的服务和补偿方法是否必须要幂等

pengyu0929 removed a comment on issue #475: 在只是用向后恢复的情况下,实现的服务和补偿方法是否必须要幂等
URL: https://github.com/apache/servicecomb-pack/issues/475#issuecomment-497301593
 
 
   > 我刚才看官方文档,里面有这样一段话:
   > `注意: 实现的服务使用相当的参数,实现的服务和补偿必须满足幂等的条件,同时建议使用Spring @Transactional标注提供本地事务保证。`
   > 
   > 我的问题是:我现在只使用向后恢复,实现的服务和补偿方法是否可以不实现幂等。
   > 
   > 我的理解是,保证幂等只是在使用向前恢复时,为了保证每次执行的结果都是一致的,是为了数据的最终一致性。而向后恢复,在服务出现异常时是直接执行补偿方法进行回滚的,不需要保证幂等。
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services