Distributed systems often have the need for electing a leader among a cluster of nodes. Apache Zookeper provides an elegant solution to this difficult problem.
We have a usecase with a similar problem and I tried Apache Zookeper's Leader election. I have used Apache Curator which is a framework which eases the interaction with Zookeeper.
I did a quick prototype and pushed it to Github. https://github.com/amithn/zookeeper-leader-election
Let me know if you have any questions.
We have a usecase with a similar problem and I tried Apache Zookeper's Leader election. I have used Apache Curator which is a framework which eases the interaction with Zookeeper.
I did a quick prototype and pushed it to Github. https://github.com/amithn/zookeeper-leader-election
Let me know if you have any questions.