Hi Kapil,

ZooKeeper server guarantees a total order of messages, and it also
guarantees a total order of proposals. It has internal mechanism to do the
total ordering, which uses a transaction id (zxid) for the requests. As I
know, each transaction is independent to each other. Could you give more
details about your usecases and the way you are going to use ZooKeeper. It
would help to understand more.

>>>>>> So why locks are needed in first place? It will be great if some one
can help here.

I didn't fully get your point about locking. Are you talking about
distributed locking recipe ?

Regards,
Rakesh


On Thu, Jun 5, 2014 at 11:13 PM, Kapil <[email protected]>
wrote:

> Hi,
> I need to design distributed application using zookeeper. This is the first
> time I am using Zookeeper so I am little confused with its usage. I have
> read that Zab protocol ensures serializability when it comes to multiple
> updates but I am unable to understand, if that is the case than it will
> automatically allow lock free implementation. So why locks are needed in
> first place? It will be great if some one can help here.
>
> Thanks
>
>
>
>
> --
> View this message in context:
> http://zookeeper-user.578899.n2.nabble.com/Distributed-Applocation-using-Zookeeper-tp7579952.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
>

Reply via email to