funky-eyes commented on issue #7840:
URL: 
https://github.com/apache/incubator-seata/issues/7840#issuecomment-3645197723

   
所以如果SagaAnnotationResourceManager中执行hook,实际上多数据源就可以通过hook来实现不是吗?beforehook里切换数据源,afterhook中清除上下文之类的操作。所以我觉得可以先提个pr使hook生效,然后再通过这些hook。然后你可以根据你的设计画几个流程图吗?这样看着会更清晰直观一些。
   
   So if SagaAnnotationResourceManager executes hooks, couldn’t 
multi-datasource support be implemented via those hooks? For example, switch 
the data source in the beforeHook and clear the context in the afterHook. I 
suggest we first open a PR to enable the hooks, and then implement the 
multi-datasource logic using them. Could you also draw a few flow diagrams 
based on your design? That would make the approach much clearer and more 
intuitive.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to