Zookeeper 的真实使用 [英] Real World Use of Zookeeper

查看:39
本文介绍了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?

推荐答案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆