Thank Ivan so much, it did help. Best, Jaln
On Fri, Jun 27, 2014 at 9:26 AM, Ivan Kelly <iv...@apache.org> wrote: > Hi Jaln, > > Sorry for the delay in answering. > > > I have a question about the indexing in bookkeeper, > > when I use hedwig pub/sub, each topic can have many subscribers, and > > each subscriber can subscribe to different topics, > > is this indexing handled by zookkeeper, or bookkeeper? > The indexing is "handled" by hedwig, but the metadata is indeed stored > in zookeeper. > > > > > In bookkeeper, when is a new ledger is created? is it created when there > is > > a new topic? > Each topic in hedwig is a sequence of ledgers. Ledgers can be viewed > as log segments, so the history of messages on a topic is a sequence > of these log segments. There will only ever be one ledger per topic at > any one time. When a ledger becomes big (like 10,000 messages or > something, the boundary is arbitrary), the current ledger is closed > and a new one is created. > > Hope this helps, > Ivan > > > -- Genius only means hard-working all one's life