zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Question about watcher guarantees
Date Wed, 14 Mar 2012 19:36:32 GMT
On Wed, Mar 14, 2012 at 12:50 PM, Patrick Hunt <phunt@apache.org> wrote:

> > This means there's not really any way to avoid the "flood" of client
> get-state requests (getData/getChildren/exists) that will happen when a
> change triggers a watcher. In your example a getData call will happen in
> every client at step (2) whenever a change happens. There's no way to avoid
> it. I'm Ok with that, it's just that the documentation (at some place I
> cant seem to find now) says to try to avoid this.
>
> See the recipes page for some examples of how to avoid herd effects.
> Sometimes it's possible, but not always:
> http://zookeeper.apache.org/doc/trunk/recipes.html


I would add that sometimes it is important, but not always.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message