@WillemJiang  Ok, I have two services for saga-client and saga-server. I call 
saga-server through saga-client, they have to operate their own database, in 
this case, we need to ensure the final consistency of the data. My approach is 
to add the @sagaStart method annotation when the global starting point of the 
saga-client transaction. Then add the @Compensable annotation on the child 
transaction function in saga-client. In saga-server, again, I need to add the 
@sagaStart annotation to the place where the service is transferred, otherwise 
a NullPointerException will occur.
My demo code: https://gitee.com/yanwu0527/transaction-saga-demo.
Thank you.

[ Full content available at: 
https://github.com/apache/incubator-servicecomb-saga/issues/298 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to