Spring Cloud Cluster offers a set of primitives for building "cluster" features into a distributed system. Example are leadership election, consistent storage of cluster state, global locks and one-time tokens.
sprgn/spring-cloud-cluster
Integration with Zookeeper and Spring Cloud: clustering concerns, like leadership election and consistent key value store
JavaApache-2.0