dubbo3-透过源码认识你[笔记]

dubbo 3版本后两大变化:对云原生基础设施与部署架构的支持,zookeeper存储节点结构变化:(事实上后者从2.75版本就开始了)

Zookeeper.png

[zk: localhost:2181(CONNECTED) 3] ls /
[dubbo, services, zookeeper]
[zk: localhost:2181(CONNECTED) 4] ls /dubbo 
[com.dubbo3.service.DubboService, com.study.service.DubboService, config, mapping, metadata, org.apache.dubbo.metadata.MetadataService, org.apache.dubbo.mock.api.MockService]
[zk: localhost:2181(CONNECTED) 5] ls /dubbo/com.dubbo3.service.DubboService 
[configurators, consumers, providers, routers]
[zk: localhost:2181(CONNECTED) 6] ls /dubbo/com.dubbo3.service.DubboService/providers 
[dubbo%3A%2F%2F192.168.10.3%3A20999%2Fcom.dubbo3.service.DubboService%3Faccesslog%3Dtrue%26anyhost%3Dtrue%26application%3Dprovider%26deprecated%3Dfalse%26dubbo%3D2.0.2%26dynamic%3Dtrue%26generic%3Dfalse%26interface%3Dcom.dubbo3.service.DubboService%26metadata-type%3Dremote%26methods%3DsayHello%26pid%3D5745%26release%3D3.0.1%26revision%3D1.0.0%26side%3Dprovider%26timestamp%3D1660570641796%26version%3D1.0.0]
[zk: localhost:2181(CONNECTED) 7] ls /
[dubbo, services, zookeeper]
[zk: localhost:2181(CONNECTED) 8] ls /services 
[dubbo-admin, provider]
[zk: localhost:2181(CONNECTED) 9] ls /services/provider 
[192.168.10.3:20999]
[zk: localhost:2181(CONNECTED) 10] ls /services/provider/192.168.10.3:20999
[]
[zk: localhost:2181(CONNECTED) 11] get /services/provider/192.168.10.3:20999
{"name":"provider","id":"192.168.10.3:20999","address":"192.168.10.3","port":20999,"sslPort":null,"payload":{"@class":"org.apache.dubbo.registry.zookeeper.ZookeeperInstance","id":null,"name":"provider","metadata":{"accesslog":"true","anyhost":"true","application":"provider","deprecated":"false","dubbo":"2.0.2","dubbo.endpoints":"[{\"port\":20999,\"protocol\":\"dubbo\"}]","dubbo.metadata-service.url-params":"{\"version\":\"1.0.0\",\"dubbo\":\"2.0.2\",\"release\":\"3.0.1\",\"port\":\"20999\",\"protocol\":\"dubbo\"}","dubbo.metadata.revision":"fb5a5fb554c76bdcd9241d5ce3e71477","dubbo.metadata.storage-type":"local","dynamic":"true","generic":"false","interface":"com.dubbo3.service.DubboService","metadata-type":"remote","methods":"sayHello","pid":"5745","release":"3.0.1","revision":"1.0.0","side":"provider","timestamp":"1660570641796","version":"1.0.0"}},"registrationTimeUTC":1660570643750,"serviceType":"DYNAMIC","uriSpec":null}

已有 0 条评论

    感谢参与互动!