You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/09/09 02:16:02 UTC

[GitHub] [dubbo-go] whitekeyboard opened a new issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

whitekeyboard opened a new issue #745:
URL: https://github.com/apache/dubbo-go/issues/745


   ```
   https://github.com/apache/dubbo-samples/tree/master/golang/registry/servicediscovery/nacos
   https://github.com/apache/dubbo-samples/tree/master/golang/registry/nacos
   ```
   这两个例子,第一个事例,注册中心为service-discovery,service_discovery配置为nacos,第二个事例注册中心直接配置为nacos,
   请问注册中心为service-discovery和,注册中心配置为nacos、zookeeper有啥区别??


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] watermelo commented on issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
watermelo commented on issue #745:
URL: https://github.com/apache/dubbo-go/issues/745#issuecomment-691629925


   @whitekeyboard  https://github.com/apache/dubbo-samples/blob/master/golang/registry/servicediscovery/nacos/go-client/app/client.go#L50  的 `init` 方法,会将 `newServiceDiscoveryRegistry` 方法注册到 registry extension 扩展。
   你运行一下例子就能看到区别了。调用顺序如下
   ```
   1. config.Load()
   2. loadProviderConfig()
   3. config.(*ServiceConfig).Export
   4. registry/protocol.(*registryProtocol).Export
   5. registry/protocol.getRegistry
   6. extension.GetRegistr
   7. registry/servicediscovery.newServiceDiscoveryRegistry   // init 注册到 extension 的方法
   ```
   如果后续没有其他问题,将关闭这个 issue


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] watermelo commented on issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
watermelo commented on issue #745:
URL: https://github.com/apache/dubbo-go/issues/745#issuecomment-689958426


   区别在这里 https://github.com/apache/dubbo-samples/blob/master/golang/registry/servicediscovery/nacos/go-client/app/client.go#L50,service-discovery 是应用级注册的例子。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] whitekeyboard commented on issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
whitekeyboard commented on issue #745:
URL: https://github.com/apache/dubbo-go/issues/745#issuecomment-690018303


   @watermelo 我看了一下啊,还是没太明白你的意思???我看示例的调用没太大区别,区别主要就是配置中心的配置不同?所以感觉还是懵懵懂懂的


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] watermelo closed issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
watermelo closed issue #745:
URL: https://github.com/apache/dubbo-go/issues/745


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] watermelo edited a comment on issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
watermelo edited a comment on issue #745:
URL: https://github.com/apache/dubbo-go/issues/745#issuecomment-689958426


   区别在这里 https://github.com/apache/dubbo-samples/blob/master/golang/registry/servicediscovery/nacos/go-client/app/client.go#L50 , service-discovery 是应用级注册的例子。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] watermelo edited a comment on issue #745: registry为service-discovery与nacos、zookeeper有啥区别和关联

Posted by GitBox <gi...@apache.org>.
watermelo edited a comment on issue #745:
URL: https://github.com/apache/dubbo-go/issues/745#issuecomment-691629925


   @whitekeyboard  https://github.com/apache/dubbo-samples/blob/master/golang/registry/servicediscovery/nacos/go-client/app/client.go#L50  的 `init` 方法,会将 `newServiceDiscoveryRegistry` 方法注册到 registry extension 扩展。
   你运行一下例子就能看到区别了。调用顺序如下
   ```
   1. config.Load()
   2. loadProviderConfig()
   3. config.(*ServiceConfig).Export
   4. registry/protocol.(*registryProtocol).Export
   5. registry/protocol.getRegistry
   6. extension.GetRegistr
   7. registry/servicediscovery.newServiceDiscoveryRegistry   // init 注册到 extension 的方法
   ```
   关于应用维度注册可以参考文章 https://gocn.vip/topics/10959 和 https://gocn.vip/topics/10513
   如果后续没有其他问题,将关闭这个 issue


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org