Sherlock Distributed Lock¶
Sherlock is a distributed locking library for JVM projects. It exposes both synchronous and reactive APIs (Reactor, RxJava, Kotlin Coroutines) and uses database connectors to store locks. It was created as a simple solution to manage distributed locks among microservices.
How it works?¶
Locks are acquired for a specific duration. When lock owning instance unexpectedly goes down, lock is automatically released after expiration.