> but the office doc describe like this
> 
> ```
> <!-- 用rest协议在8080端口暴露服务 -->
> <dubbo:protocol name="rest" port="8080"/>
> 
> <!-- 声明需要暴露的服务接口 -->
> <dubbo:service interface="xxx.UserService" ref="userService"/>
> 
> <!-- 和本地bean一样实现服务 -->
> <bean id="userService" class="xxx.UserServiceImpl" />
> ```
> Make it easy for us to make mistakes, i think if posibble,the dubbo:registry 
> should be removed.
> What do you think?
 Two thinkings here.
1) If the dubbo:registry is removed, the service will not be registered to 
anywhere. How can a consumer of the service get the addresses? by static DNS?  
or some other way? 

2)If the dubbo:registry is removed, a default registry will be used. What‘s the 
default?  I think it is hard to choose a default behavior for Dubbo because of 
its open and versatility. A product based Dubbo can extend to implement the 
default one according the specific scenario.  

[ Full content available at: 
https://github.com/apache/incubator-dubbo/issues/2707 ]
This message was relayed via gitbox.apache.org for 
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to