0

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

arsenal
  • 23,366
  • 85
  • 225
  • 331
Kapil
  • 193
  • 2
  • 14
  • Can you clarify what exactly you're trying to implement and what issue(s) you see with Zookeeper? See also answers to [this question](http://stackoverflow.com/q/21907366) and my [other answer](http://stackoverflow.com/a/23963259/3618671) to a different question and see if that clarifies the usage of Zookeeper. – Misha Brukman Jun 08 '14 at 03:38
  • Thanks Misha.I think I got my answer. – Kapil Jun 11 '14 at 08:13

1 Answers1

0

Zab protocol is a critical PART of zookeeper.It ensures atomic broadcast of messages to the replicas . Zab protocol ensures serializability but the concept of serializability only ensures atomic data deliver to a single application . Apache used this protocol to implement atomic broadcast in zookeeper.

Zookeeper is used for distributed services co-ordination .In a system where n processes are coordinating , to maintain a particular sequence of execution we need distributed locks.

Sandeep Das
  • 1,010
  • 9
  • 22