problem description
for example, when a user posts an article, the background of the request needs to do two write operations, calling two dubbo services respectively.
- first call the article module to insert the article (article service)
- also has a need to record the user"s behavior. To insert a behavior, call the user module to insert the user"s behavior (user service).
whether the module calls corresponding to the 1Pol 2 operation are put into the controller layer, or whether the user module is called directly within the article module.
which is the more appropriate order of these two calls?
if the call order is determined, is there any way to ensure the ultimate consistency between the article library and the user library data?