AlbumenJ commented on issue #13666: URL: https://github.com/apache/dubbo/issues/13666#issuecomment-1925550617
> > @bringwu In your demo, Dubbo process the result before set attachment. > >  Add sleep before return to make sure that `serverResponseContext.setAttachment("tokenInfo", token)` has been processed. > >  Then it work. > > Adding sleep can make an asynchronous program behave synchronously, but it can lead to performance issues. I think Dubbo should optimize this problem to allow programs to execute purely asynchronously. If you want to use local invoke by default, it would be better to use spring bean directly instead of using Dubbo bean. That performance would be better. -- 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]
