Then you can try an optimistic way of randomly picking one IP address and
create znode and handles "KeeperException.NodeExistsException" gracefully.
This makes concurrency mechanism in client side simple. I'm trying to show
one approach, as I told earlier it again depends on your client side algo
complexity, you can take a call :)

Regards,
Rakesh


On Sun, Jun 8, 2014 at 12:13 AM, Kapil <kapildeshpande.1...@gmail.com>
wrote:

> Yes exactly, I am storing each IP address as nodes.
>
>
>
> --
> View this message in context:
> http://zookeeper-user.578899.n2.nabble.com/Distributed-Applocation-using-Zookeeper-tp7579952p7579968.html
> Sent from the zookeeper-user mailing list archive at Nabble.com.
>

Reply via email to