Redisson - distributed Java objects and services (Set, Multimap, SortedSet, Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong, CountDownLatch, Publish / Subscribe, Bloom filter, Remote service, Spring cache, Executor service, Live Object service, Scheduler service) on top of Redis server
Questions tagged [redisson]
370 questions
0
votes
0 answers
org.redisson.client.RedisTimeoutException: Unable to send command
here is the code would cause the problem in title:
private void getImageFromCache (List skuCodes, Map ret) {
RMapCache imageCache = redissonClient.getMapCache(Constant.SKU_IMAGES_KEY);
for…

Grant Ho
- 1
- 1
0
votes
0 answers
Redisson writes and deletes the registry in the same process
I have a multi-module maven application built with SpringBoot and hibernate in which I am trying to connect to a local Redis instance.
I have 2 problems to solve:
The issue of the open connections when initializing the project and secondly the…

nek0003
- 1
0
votes
0 answers
Redisson-client Infinite locking when redis-server was unavailable for a moment
I need your help to understand the redis-distributed-lock behaviour in case of redis-server restart.
According to this redis doc:
"lockWatchdogTimeout prevents against infinity locked locks due to Redisson client crash or any other reason when lock…

Ankush G
- 989
- 9
- 14
0
votes
0 answers
Redis retuning null value even though the key is present sometimes
I am using AWS Elasticache Redis cluster with Clustered mode enabled.
My current cluster configuration is having 1 node group & 2 nodes within the group. As good as having 1 master and 2 slave nodes.
I am using redisTemplate to perform the cache…

asn1993
- 1
0
votes
0 answers
Is Redisson thread-safe itself?
Redisson client is said to be thread-safe.
My question is, if Redisson and its object instances are thread-safe, what is the use of Locks like RLock?
Does that enhance performance on multi-instance multi-concurrency environments? or Redisson is…

PhoneMyint
- 1
- 1
0
votes
0 answers
Redis envoy proxy
I tried to set up Redis as an Envoy proxy from this example https://github.com/envoyproxy/envoy/tree/main/examples/redis. The problem is it does not support some commands like HELLO and INFO in Spring boot I used lettuce for connecting to this Redis…

Iman Ahrari
- 63
- 7
0
votes
0 answers
redisson-spring-boot-starter - TTL issue when Cache is created using RedissonSpringCacheManager
In a simple spring boot starter web project, I am using redisson-spring-boot-starter. I have enabled caching by @EnableCaching on my Spring boot application class.
I have configured a cache with TTL of 60000 milliseconds i.e. of 1 minute, and using…

Vishal Upadhyay
- 1
- 2
0
votes
0 answers
What is the best way to architect multi-region Cluster Mode Enabled Elasticache setup using Redisson for a Java app?
I am trying to setup multi region Cluster mode enabled Elasticache cluster setup for a Java app that uses redisson library to connect.
I have explored below options which seems to be not viablefor our use-case
Redisson has MultiClusterMode option…

Madhan
- 1
- 2
0
votes
0 answers
Redisson RBatch not executing thenAcceptAsync method
"I'm using Redisson version 3.19.1 and have two ZSETs to store lists of read and unread messages. When a message is read, it needs to be moved from the unread list to the read list. To ensure atomicity, I'm using RBatch.
RBatch batch =…

fjy8018
- 65
- 7
0
votes
0 answers
Redisson RedisExecutor too many calls causing high CPU load
I'm usign Java Redisson client version 3.16.0 and java version 1.8
below is my cache config ttl
{
"cache1": {
"ttl": 12000000
},
"cache2": {
"ttl": 12000000
},
"cache3": {
"ttl": 12000000
}
}
I can see that there many calls…

Osama Jetawe
- 2,697
- 6
- 24
- 40
0
votes
0 answers
Java Redisson CPU utilization 90%
I'm setting up a Redis cache layer using AWS Elasticache Redis version 7.0.7 over spring framework
I'm usign Java Redisson client version 3.16.0 and java version 1.8
Below is my Redisson client configurations
final Config redissonConfig = new…

Osama Jetawe
- 2,697
- 6
- 24
- 40
0
votes
0 answers
What is the best way to implement distributed locks in Redis, for Kotlin service and Spring Boot application?
I am working on a scenario where i want to implement distributed redis lock in my service. The service is built in Kotlin and Spring Boot (i am new to both). The requirement is to acquire lock in one API and release in another API. There are some…

shubham saxena
- 81
- 10
0
votes
0 answers
Java Redisson unlock exception
I'm using this common code in my distributed locker service:
private T lockAndProcessTask(String lockKey, boolean waitForLockRelease, Supplier task, Supplier onLockAcquireFail) {
boolean isLockAcquired = false;
RLock lock = null;
…
0
votes
0 answers
Do we need to acquire distributed lock when we generate sequence id using redisson RAtomicLong?
Do we need to acquire distributed lock when we generate sequence id using redisson RAtomicLong?
We are using redis cluster setup and to avoid same id being generated twice in case of failover of a clsuter node should we acquire lock?

Ash
- 21
- 6
0
votes
0 answers
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 production too delay will be proportionally high with…

abhijeet104
- 486
- 4
- 9