Hacker News new | ask | show | jobs
Durable Google Guava Services Backed by Redis Lock
1 points by jamespedwards 3852 days ago
github.com/jamespedwards42/distributable-services/tree/master/redis

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't really an issue for this use case as you can simply enforce two check-ins whenever leadership changes hands.

An easy to use Redis Lock implementation is made available as well.

Caution: Use at your own risk :) I'm just throwing this out here because I enjoy using it and hopefully it might save someone else some time as well.