Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

注册中心可以使用 ZooKeeper 吗? #22

Closed
wangxiaotao00 opened this issue Apr 26, 2018 · 9 comments
Closed

注册中心可以使用 ZooKeeper 吗? #22

wangxiaotao00 opened this issue Apr 26, 2018 · 9 comments
Labels
question Further information is requested

Comments

@wangxiaotao00
Copy link

请问注册中心可以使用zookeeper,还是什么?

@khotyn khotyn changed the title 注册中心 注册中心可以使用 ZooKeeper 吗? Apr 26, 2018
@khotyn
Copy link
Member

khotyn commented Apr 26, 2018

可以的,可以看 @ujjboy 写的这篇文章:https://zhuanlan.zhihu.com/p/36144263

@khotyn khotyn added the question Further information is requested label Apr 26, 2018
@wangxiaotao00
Copy link
Author

用dobbo的console可以管理我们sofa-rpc的吗

@leizhiyuan
Copy link
Contributor

@wangxiaotao00 要管控,管控台是要知道这些注册信息,你完全可以扩展一个注册中心,然后将这个注册中心的远端对接到 dubbo 现有的服务台.

@wangxiaotao00
Copy link
Author

谢谢,我看sofa框架支持restful,restful也需要注册中心,同样可以用zookeeper做注册中心吗

@khotyn
Copy link
Member

khotyn commented Apr 27, 2018

@leizhiyuan @NeGnail Follow 下这个问题。

@NeGnail
Copy link
Contributor

NeGnail commented Apr 27, 2018

@wangxiaotao00 restful也支持用zookeeper做注册中心。

@NeGnail
Copy link
Contributor

NeGnail commented Apr 27, 2018

@wangxiaotao00 你可以先按照这个快速开始进行尝试 。
然后再根据zookeeper配置使用zookeeper作为注册中心, 再将其中在服务发布和服务引用的 binding 配置改为 rest 即可:

<sofa:binding.bolt/>改为
<sofa:binding.rest/>

有一点需要特别注意的是需要按照 RESTEasy 的规范打上注解。这里有个示例

@leizhiyuan
Copy link
Contributor

这个我们补充一下 rest 的使用文档.因为有path 的设置,稍后更新.

@leizhiyuan
Copy link
Contributor

rest 问题咨询,#23 之后在这里更新讨论.之后有问题建议一个问题一个 issue, 方便其他人检索和沟通.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants