When an interface to achieve an incompatible upgrade, you can use the version number transition. Different versions of the services do not reference each other.
You can follow the steps below for version migration:
Old version of the service provider configuration:
<dubbo:service interface="com.foo.BarService" version="1.0.0" />
New version of the service provider configuration:
<dubbo:service interface="com.foo.BarService" version="2.0.0" />
Old version of the service consumer configuration:
<dubbo:reference id="barService" interface="com.foo.BarService" version="1.0.0" />
New version of the service consumer configuration:
<dubbo:reference id="barService" interface="com.foo.BarService" version="2.0.0" />
If you do not need to distinguish between versions, can be configured as follows:
<dubbo:reference id="barService" interface="com.foo.BarService" version="*" />
version="*"
is supported in 2.2.0
or above.