You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "flycash (GitHub)" <gi...@apache.org> on 2020/05/02 12:43:21 UTC

[GitHub] [dubbo-go] flycash opened issue #501: Enhance: Optimize remotes configuration and constructor

<!-- Please only use this template for submitting enhancement requests -->

**What would you like to be added**:

Remotes Configuration.

**Why is this needed**:

Now, there are many implementations based on different middleware, including zookeeper, nacos...
However, we do not have a common way to configure those middleware.
For example, If I want to use the Nacos as registry and configure center, I must configure the Nacos in two different places:

![Nacos as configure center](https://user-images.githubusercontent.com/9923838/80864375-c37d6b80-8cb4-11ea-9512-d2b65ea33c18.png)

![Nacos as registry](https://user-images.githubusercontent.com/9923838/80864385-d55f0e80-8cb4-11ea-8688-5ca43352e833.png)

It's not convenient for users. If the user wants to change the address, he must change all places. 

So I propose that we should define the RemoteConfig, it looks like:
```yml
remotes:
  nacos1:
     address: "1.1.1.1:8080"

registries:
  nacos1:
    protocol: "nacos",
    remoteRef: "nacos1",

config_center:
  protocol: "nacos"
  remoteRef: "nacos1",
```





[ Full content available at: https://github.com/apache/dubbo-go/issues/501 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo-go] AlexStocks commented on issue #501: Enhance: Optimize remotes configuration and constructor

Posted by "AlexStocks (GitHub)" <gi...@apache.org>.
sounds good.

[ Full content available at: https://github.com/apache/dubbo-go/issues/501 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org