From: Ted D. <tdu...@ve...> - 2008-04-25 16:17:50
|
I would like to emphasize this point. This is an extraordinarily strong guarantee, but it requires correct coding. You have to put the watch on the read to get the atomicity guarantee. You can't do the read, process the data and then add the watch. With a tiny bit of care, you can write zookeeper client code with provable semantics vis a vis your data store which is a very pleasant experience. On 4/24/08 11:32 PM, "Benjamin Reed" <br...@ya...> wrote: > While these watches don't allow you to get a notification for every change, it > does provide a strong guarantee: any change after the read will trigger a > watch, there is no race between the read and the set of the watch. |