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?
推荐答案
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屋!