Hi,

I have 3 zookeeper clients that will receive a request within seconds apart.  
Only 1 client is allowed to handle this request.

I was thinking that each client will try to create the same ephemeral node non 
sequential node. The client that can is by definition the leader and is the one 
that will handle the request.

But then I saw that there's a recipe for creating a lock. 

Would the above strategy work or should I use the recipe? Can someone tell me 
what could go wrong with what I described?

Thanks 

Reply via email to