99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

Dubbo-go 3.0 應用級服務發(fā)現(xiàn)

2022-04-14 17:16 更新

Dubbo-go 3.0 應用級服務發(fā)現(xiàn)

參考文章《Dubbo 邁出云原生重要一步 應用級服務發(fā)現(xiàn)解析》

參考倉庫:dubbo-go-samples/registry/serivcediscovery

配置方案

  • Consumer 端
dubbo:
  registries:
    demoZK:
      protocol: nacos
      address: 127.0.0.1:8848
      registry-type: service # 指定該注冊中心為應用級服務發(fā)現(xiàn),不填默認為接口級
  metadata-report: # 定義元數(shù)據(jù)中心
    protocol: nacos # 元數(shù)據(jù)中心可選nacos/zk
    address: 127.0.0.1:8848
  consumer:
    references:
      GreeterClientImpl:
        protocol: tri
        interface: com.apache.dubbo.sample.basic.IGreeter 
  • Provider 端
dubbo:
  registries:
    demoZK:
      protocol: nacos
      address: 127.0.0.1:8848
      registry-type: service # 指定該注冊中心為應用級服務發(fā)現(xiàn),不填默認為接口級
  metadata-report: # 定義元數(shù)據(jù)中心
    protocol: nacos # 元數(shù)據(jù)中心可選nacos/zk
    address: 127.0.0.1:8848 
  protocols:
    triple:
      name: tri
      port: 20000
  provider:
    services:
      GreeterProvider:
        interface: com.apache.dubbo.sample.basic.IGreeter 

相比于常規(guī)配置,定義好registry-type: service, 并且定義好元數(shù)據(jù)中心后,將會使用應用級服務注冊/服務發(fā)現(xiàn)。


以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號