Distributed Java Locks With Redis
CRANK
To ensure that no two threads can access the same resource and that the resource is operated in a predictable sequence, programmers use a method known as locks.