Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 474 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 474 Bytes

Zoolection

Zoolection is a minimal implementation of leader-election in Go with the help of Apache Zookeeper.

Instructions

  • Running the zookeeper cluster:
    • With docker compose: docker compose up -d
    • With docker or podman: bash zookeeper.sh
  • Run a few instances of the application using go run . across different terminals. One of them should get elected as the leader.
  • Close the instance that is the leader and see another instance get elected.