Jedis, distributed lock, possible without polling / sleep?

25 views
Skip to first unread message

mmm

unread,
Sep 11, 2020, 7:02:13 AM9/11/20
to Jedis
I've found, 


and a few others similar to it. 

They all seem to rely on sleeping and trying again. 

Is there not a message event that one could listen to when someone changes the value (release lock), in order for a thread to wake up from sleep and try to aquire it themselves? 

The imeplementations of Jedis based locks I've seen so far is not ideal / perfect. 


Reply all
Reply to author
Forward
0 new messages