54 questions
0 votes
0 answers
124 views
Does DynamoDB Lock Client have to trust the client about lock expiry?
DynamoDB supports distributed locking thanks to its atomic conditional writes, but I'm not clear exactly how that works. The docs for the DDB lock client say The lock client never stores absolute ...
1 vote
0 answers
55 views
Redis key disappeared from Redis cluster cause distributed locking failure
I've implemented custom locking service with Kotlin and Spring Boot Webflux to prevent transaction of same user is processed at the same time. the second transaction should loop until the first one is ...
1 vote
1 answer
695 views
Is my understanding of a Distributed Lock correct?
I'm having some trouble understanding the need of a distributed lock. I did think of an example where it may be required but I'm not completely sure. I would appreciate some comments if I'm thinking ...
0 votes
0 answers
634 views
Shedlock skipped runs
I am using shedlock to implement a use-case of distributed locking. My app is running on 20 machines, and I want scheduler to be executed once in every 5 minutes in any 1 machine by using implicit ...
2 votes
2 answers
1k views
Spring Integration Distributed Locks: conceptual consistency of TTL as compared to Redisson's lease time
This is a follow up question of: https://github.com/spring-projects/spring-integration/issues/8687 As discussed in the above link, Spring Integration Distributed Lock's concept of TTL is meant for ...
0 votes
1 answer
602 views
time to live of DefaultLockRepository has no effect for 2 threads in the same java process when using JdbcLockRegistry
The following code can reproduce the issue https://github.com/cuipengfei/Spikes/blob/master/jpa/spring-jdbc-distributed-lock-issue/ run the test cases in the above code to reproduce before running the ...
1 vote
1 answer
365 views
After redisson locks introduced, latency has increased substantially
I've introduced redisson lock recently, after that its taking 5-7s for. without lock it takes <1s. (testing locally in both cases). Im I doing anything wrong here. This is local figure, but in ...
2 votes
0 answers
477 views
How to avoid race conditions in a distributed lock system using replicated redis clusters (or other replicated storage systems)?
We have identical services running on two Azure regional environments along with a redis system that is replicated/synchronised across the two regions. This is enterprise active-active replication. ...
0 votes
1 answer
517 views
Distributed lock using redisson- quorum configuration and selecting a new master node in case of old master failure
Distributed lock using redisson- Configure quorum configuration and acquiring lock from majority of nodes Configuration guide where can we find or some examples
1 vote
0 answers
152 views
Performant Distributed Locking
I am evaluating the best approach to distributed locking. The oob reentrant locking support in Ignite is tied to the thread that acquires locks. Our requirements need locking and unlocking not tied to ...
0 votes
1 answer
483 views
Consul: increment a counter in a KV atomically with multiple nodes
I'm using Consul for service discovery and the KV store, with more than 10 nodes. Let's say that each of these nodes has to increment a counter on the same KV, but has to do it atomically. The way I ...
2 votes
0 answers
2k views
Redis Redlock based distributed lock retry question
Background: currently I am investigating the mechanism of distributed lock in order to implement it in our email service to deduplicate in the time the QPS is high. The main article I am reading is ...
7 votes
1 answer
4k views
Distributed Lock - Using fencing token for preventing concurrent writes to a network file
I am reading the Designing Data Intensive Application book. In chapter 8, it discusses the use of Fencing Token for preventing concurrent writes to a network file. The mechanism states that the a Lock ...
0 votes
0 answers
545 views
ERR WAIT cannot be used with slave instances Redisson
<redisson.version>3.16.3</redisson.version> readMode: SLAVE Not sure why am I seeing this error. caused by: org.redisson.client.RedisException: ERR WAIT cannot be used with slave instances....
2 votes
0 answers
106 views
Lock service using SQL DataBase
I have a requirement to synchronize concurrent access to a shared resource modified by different processes which run on different hosts. I am thinking to synchronize this by creating a lock table in a ...