Also, if you have to create several state flags in ZK (perhaps you have to choose several IP addresses, for instance) you can use the multi update capability.
It is almost never necessary to use an actual lock recipe with ZK. Almost always what you really want is some kind of first come, first served. For this, the optimistic update works very well. Even if you need to do a read-modify-write, the ability to version updates allows very clean implementation with ZK. On Sat, Jun 7, 2014 at 11:59 AM, Kapil <kapildeshpande.1...@gmail.com> wrote: > :) Thanks Rakesh. Its very good advice. I will analyse again to decide > which > approach is more appropriate for requirement. > > Thanks for your time. > > > > -- > View this message in context: > http://zookeeper-user.578899.n2.nabble.com/Distributed-Applocation-using-Zookeeper-tp7579952p7579970.html > Sent from the zookeeper-user mailing list archive at Nabble.com. >