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
3
votes
1 answer
What is the difference between:Redis Replicated setup, Redis Cluster setup Redis Sentinel setup and Redis with Master with Slave only?[REDISSON]
I've read https://github.com/redisson/redisson
And I found out that there are several
Redis Replicated setup (including support of AWS ElastiCache and Azure Redis Cache)
Redis Cluster setup (including support of AWS ElastiCache Cluster and Azure…

gstackoverflow
- 36,709
- 117
- 359
- 710
3
votes
1 answer
How to specify Time to Live for POJO created with Redisson Live Objects?
I am annotating some POJOs with @REntitty, @RId to make them available as Distributed Objects across JVMs with Redisson library/Redis.
How do i specify Time to Live for these POJOs when i create them using LiveObjectService ?

chappalprasad
- 775
- 4
- 15
- 26
3
votes
0 answers
How to sync local cache (RLocalCachedMap instance) between multiple JVM's in redisson?
I am trying to implement RLocalCachedMap in Redisson and that is easy. What I am concerned about is how the local cache will be synced between multiple JVM instances. Is it done automatically somehow or there is some Redisson code to sync cache to…

akshit jain
- 31
- 1
- 4
3
votes
0 answers
Distributed locks with Redis (Redisson) : How does locking work across server instances?
Problem statement:
Garden variety of distributed locking.
Implement a distributed locking for a service, which has multiple instances running.
The lock is to be taken on 'redis' running on 1 master and 2 slaves.
Implementation:
Service Instance 1
…

Deep
- 673
- 1
- 10
- 23
3
votes
1 answer
Issue while connecting to redis master node running in sentinel mode in docker conatiners
I am running redis in docker containers and I am using redis sentinel mode.
I have setup the following configuration -
3 redis sentinels nodes
1 redis master node
2 redis slave nodes
I am running all these in my local machine. So in total 6 docker…

Kuldeep Singh
- 1,214
- 4
- 18
- 45
3
votes
0 answers
Redisson executing previous jobs on the schedule of newly submitted jobs
At first I scheduled 5 jobs (old_job) they executed successfully. After that I scheduled another 5 jobs(new_job) but this time the previous 5 jobs got executed on the schedule I gave for new job. Can anyone explain me this behaviour of redisson and…

Arpit Agrawal
- 321
- 1
- 2
- 14
3
votes
1 answer
Whats the correct usage of org.redisson.api.RedissonClient.getMap(..)
Service1 running in Node1
Service1 adds user data in Redis Bucket "UserBucket"
Service2 running in Node2
Service2 needs to fetch the latest user data from Redis Bucket "Users"
I maintain a singleton instance of org.redisson.api.RedissonClient inside…

kaniska Mandal
- 189
- 1
- 12
3
votes
1 answer
DNS error in logs using elasticache
I have been getting this strange error since a week now, here is the stack trace
ERROR (redisson-netty-1-4) [DNSMonitor(operationComplete:98)] Unable to resolve redis.***********.cache.amazonaws.com java.lang.IndexOutOfBoundsException: Index: 0,…

Bhargav
- 697
- 3
- 11
- 29
3
votes
2 answers
java.lang.NoSuchMethodError: in redisson and netty integration
I have built my own library of custom methods using redisson 3.4.4. This internally uses netty-all-4.1.13.Final.jar.
When I build my library and try to use with a project I get following exception,
java.lang.NoSuchMethodError:…

Rahul Borkar
- 2,742
- 3
- 24
- 38
3
votes
1 answer
Best way to store big complex java class objects in Redis?
What is the best way to store a nested and complex java object in Redis. The way we are doing is as follows.
We are using Redisson java client library for Redis interactions. Please see the code below :
try{
Config conf = new Config();
…

Kunal Chawla
- 119
- 1
- 8
2
votes
2 answers
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 cross-process only, not for threads in the same…

Cui Pengfei 崔鹏飞
- 8,017
- 6
- 46
- 87
2
votes
2 answers
Programmatic RedissonClient in Spring boot project
I am trying to implement Hibernate second level caching in a Spring boot project using Redisson.
I have followed this blog as a…

saurav
- 5,388
- 10
- 56
- 101
2
votes
0 answers
Executing batch query with redis redisson client Hangs forever
I have an inventory list of Millions of records that I want to insert/merge in batches in Redis using Redisson Batch command.
below is the code
public void upsertInventoryInBatches(final List itemInventory) throws ExecutionException,…

Shivang MIttal
- 990
- 1
- 14
- 36
2
votes
0 answers
ClassNotFoundException exception with redisson
I'm trying to use a RSet to store my ranks, but I have a ClassNotFoundException while the class exists (I even decompiled and the class is here). In my opinion Redisson cannot store a custom object class?
Here is my code:
public class RedisProvider…

Rhodless
- 21
- 1
2
votes
0 answers
Should I use clusterServersConfig or replicatedServersConfig when using AWS Elasticache on Redisson?
I am using a clustered Redis with replicas. With Redisson I am getting this randomly
org.redisson.client.RedisException: MOVED redirection loop detected. Node redis://10.92.231.18:6379 has further redirect to redis://10.92.231.18:6379
Should I be…

Archimedes Trajano
- 35,625
- 19
- 175
- 265