Service Group
Grouping service in dubbo
When you have multi-impls of a interface,you can distinguish them with the group.
Service
<dubbo:service group="feedback" interface="com.xxx.IndexService" />
<dubbo:service group="member" interface="com.xxx.IndexService" />
Reference
<dubbo:reference id="feedbackIndexService" group="feedback" interface="com.xxx.IndexService" />
<dubbo:reference id="memberIndexService" group="member" interface="com.xxx.IndewxService" />
Any group:
<dubbo:reference id="barService" interface="com.foo.BarService" group="*" />
Warning
group="*"
is supported after version 2.2.0
, always select only one available group of implementations to invoke.Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 22, 2021: Merge branch 'master' of https://github.com/apache/dubbo-website (f48eac9)