yungyu16 commented on issue #16576:
URL: https://github.com/apache/dubbo/issues/16576#issuecomment-6651197063
我觉得 这个是 反模式吧,就是 把一个关键的路由决策因子 隐式 的 关联到 接口调用入参桑,容易腐化、变形、引发预期外的问题
是不是 更合适的 方式 是 有一个 便捷的、语义化 的 工具类/方法 把
`RpcContext.getClientAttachment().setAttachment("dubbo.tag", xxxx);`
这行 样板代码 给 消灭 掉。
比如类似:`TagRouter.setTag("xxxx");`
@javaofferss
--
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]