Ares2048 commented on issue #11876:
URL: https://github.com/apache/dubbo/issues/11876#issuecomment-1903820768

   @A 
建议优化下命名,client和server命名远比不上consumer和provider语义更清晰,理论上来说consumer和provider其实都是client,而不是server,server更便宜,还有ServiceContext、ServerContext肉眼很容易写错。
   
   > A->B,在 A 侧使用 
RpcContext.getClientAttachment().setAttachment("app_name","A"),在 B 侧使用 
RpcContext.getServerAttachment().getAttachment("app_name") B->C,在 B 侧使用 
RpcContext.getClientAttachment().setAttachment("app_name","B"),在 C 侧使用 
RpcContext.getServerAttachment().getAttachment("app_name")
   
   
建议优化下命名,client和server的命名远比不上consumer和provider语义更清晰,理论上来说consumer和provider其实都是client,而不是server,server的语义更偏向于统一管理的服务端,还有ServiceContext、ServerContext这俩肉眼几乎没区别,太容易用错了。


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