dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manzhizhen (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] manzhizhen opened pull request #3816: RpcContext新增remoteApplicationName字段
Date Sun, 07 Apr 2019 01:16:24 GMT
## What is the purpose of the change

In the process of using Dubbo, there are many scenarios where the Provider needs to know the
applicationName of the Consumer (not just the Consumer IP). For example, I want to output
the upstream caller to the log file and want to limit the flow according to the upstream application.
Or downgrade, want to use the upstream application for arson drills, etc., so we usually add
Filter to achieve (for example, DubboAppContextFilter in Sentinel, which is specifically done
on the Consumer side: https://github.com/alibaba/Sentinel/ Blob/6bb4ff21dadde00c9453a5f57d030d55f87b71a8/sentinel-adapter/sentinel-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/DubboAppContextFilter.java),
so I also hope that Dubbo can put this inside Simple things have been done

在我们使用Dubbo的过程中,有很多场景Provider端需要知道Consumer端的applicationName(而不仅仅只需要知道Consumer的IP),比如我想将上游调用方输出到出入口日志中、想根据上游应用来限流或降级、想根据上游应用来进行放火演练等,所以我们通常会自己加Filter来实现(例如Sentinel中的DubboAppContextFilter,就是专门在Consumer端做这个事情:https://github.com/alibaba/Sentinel/blob/6bb4ff21dadde00c9453a5f57d030d55f87b71a8/sentinel-adapter/sentinel-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/DubboAppContextFilter.java),

所以,我也特别希望Dubbo内部能把这块简单的事情给做了


[ Full content available at: https://github.com/apache/incubator-dubbo/pull/3816 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org
Mime
View raw message