dubbo2 与 dubbox 区别记录 #117
zifeiyu0531
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
区别1
dubbo2包前缀为
org.apache
dubbox包前缀为
com.alibaba
区别2
dubbox的
AbstractProtocol
类中未实现public <T> Invoker<T> refer(Class<T> type, URL url)
方法,需要将拦截refer方法的逻辑下沉到AbstractProtocol
的实现类中去区别3
拦截
setRegistryFactory(RegistryFactory registryFactory)
方法时,dubbo2调用该方法的是InterfaceCompatibleRegistryProtocol
对象,但dubbox中未实现该类,调用该方法的是RegistryProtocol
,后者为前者的父类。当通过反射获取this.registryFactory
属性时,dubbo2需要从父类中取,dubbox可以直接在当前类中取区别4
订阅功能
doSubscribe(URL url, NotifyListener listener)
方法中,bubbo2的listener是ServiceDiscoveryRegistryDirectory
对象,dubbox中未实现该类,listener是RegistryProtocol
对象Beta Was this translation helpful? Give feedback.
All reactions