现实世界使用Zookeeper [英] Real World Use of Zookeeper
问题描述
我最近一直在查看 Zookeeper ,想知道目前是否有人使用它
I've been looking at Zookeeper recently and wondered whether anybody was using it currently and what they were specifically using it for storing.
最常见的用例是配置信息,但是存储什么类型的数据和多少数据?
The most common use case is for configuration information, but what kind of data and how much data are you storing?
推荐答案
DOSGi的Apache CXF实现使用zookeeper作为其服务注册库。单个容器具有分布式软件(dsw)捆绑包,其监听所有服务事件,并且当服务状态改变时具有指示分发的属性。 dsw与发现捆绑,在参考实现情况下,使用zookeeper将服务存储为临时节点。其他实例将在其本地系统上查找节点结构和寄存器代理的更改。最终的结果是你可以编写到纯OSGi,并以透明分配结束。
The Apache CXF implementation of DOSGi uses zookeeper for its service registration repository. Individual containers have a distributed software (dsw) bundle that listens for all service events and when a service status changes that has a property indicating distribution. The dsw talks to the discovery bundle which, in the reference implementation case, uses zookeeper to store service as ephemeral nodes. Other instances will look for changes to the node structure and register proxies on their local systems. The end result is you can code to plain OSGi and end up with transparent distribution.
这篇关于现实世界使用Zookeeper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!