github.com&#x2F;jamespedwards42&#x2F;distributable-services&#x2F;tree&#x2F;master&#x2F;redis<p>The main goal of the project is to provide Java services that can be deployed to multiple hosts and guarantee that one of them will be running at all times. A Redis Lock turned out to be the perfect solution for managing who is the leader amongst a set of service instances. Even the failover limitation, discussed here[2], isn&#x27;t really an issue for this use case as you can simply enforce two check-ins whenever leadership changes hands.<p>An easy to use Redis Lock implementation is made available as well.<p>Caution: Use at your own risk :) I&#x27;m just throwing this out here because I enjoy using it and hopefully it might save someone else some time as well.
Durable Google Guava Services Backed by Redis Lock