Questions tagged [redisson]

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

370 questions
48
votes
1 answer

Redisson vs Jedis for redis

Now I have to use a java client for redis. I have come across Jedis and Redisson. EDIT: Reframing as the question was kind of opinion based. Which is more efficient in terms of speed? Any benchmarks? Which of them is able to provide the…
Shubham Chaurasia
  • 2,472
  • 2
  • 15
  • 22
11
votes
0 answers

Picking between Redisson and Lettuce for Redis with clustered-setup

I am considering Lettuce and Redisson java clients for use in my application server (to connect to Redis). I haven't been able to find a proper comparison of the two from people who have tried them both or one of them in a single common place. The…
Shabirmean
  • 2,341
  • 4
  • 21
  • 34
9
votes
0 answers

What is recommended Redisson configuration to avoid timeouts when connected to AWS Elasticache?

We are using Redisson to connect to a replicated Redis on AWS elasticache with 1 master and 2 replica nodes. The app makes uses of a number of RLocalCachedMaps, Locks and a few thousand Topics to track user state. (Topics and subscriptions coming…
Draconas
  • 185
  • 1
  • 8
9
votes
2 answers

Should I read from a Redis Cluster slave?

We have a cluster configuration for Redis used as cache. Now due to the normal pattern of write to master and read from slave (with other databases), we are trying to do the same thing with Redis cluster. After some investigation we found that none…
mayank vats
  • 444
  • 2
  • 6
  • 17
7
votes
0 answers

Redisson throws many org.redisson.client.RedisTimeoutException

We are using Redisson version 3.6.1 on AWS environment with ElastiCache setup on Replicated mode with 2 nodes. Our main operations are against an LRU bounded RMapCache…
7
votes
2 answers

Redisson and Json for objects

I currently trying out Redisson as a Redis client and so far I've been able to replace a good chunk of code with no issues. The only problem I'm having now is trying to use the distributed collections, such as Queue or List. List entries =…
KingTravisG
  • 1,316
  • 4
  • 21
  • 43
7
votes
1 answer

Redisson Capturing Key Expire Event

I am using Redis as a cache service in my Big Data application. The main purpose of Redis is to validate key which we receive from every request. We use RMap for storing key and value pairs, example of which is as follows, key =…
Rahul Borkar
  • 2,742
  • 3
  • 24
  • 38
7
votes
2 answers

Is there a spring data redis mapping the Redisson framework

As the title says, was there a spring data redis mapping to the Redisson framework (http://redisson.org)
EvilJinious1
  • 2,773
  • 6
  • 43
  • 63
7
votes
4 answers

Redisson release lock from different threads

I'm trying to create an infrastructure where different machines acquire shared locks through Redisson. Once the lock is acquired, some async tasks gets done, finally, when I finish the job, I'm releasing the Redisson lock through the thread…
Aviv Carmi
  • 907
  • 8
  • 21
6
votes
2 answers

How to make Redisson Semaphore auto release

I am using RSemaphore to maintain a particular count. Please take a look below:- RSemaphore sem = redisson.getSemaphore("custid=10"); sem.trySetPermits(10); try { sem.acquire(); } catch (InterruptedException e) { e.printStackTrace(); …
Swagat
  • 709
  • 3
  • 9
  • 27
6
votes
1 answer

Java how import order matters when import class/enum inner an inner class

Here is my class: package pepelu; import pepelu.ImportTest.InnerClass.InnerEnum; import javax.annotation.Resource; public class ImportTest { @Resource public static class InnerClass { public enum InnerEnum { A …
Pepe Lu
  • 63
  • 3
6
votes
1 answer

Redisson client - thread safe

Is the redisson client thread-safe? In my application, I would like to maintain one client object and let all the threads use this to get/put to Redis. In the config, there are two parameters threads and nettyThreads. Do these parameters help create…
Anirudh Jayakumar
  • 1,171
  • 3
  • 15
  • 37
5
votes
0 answers

Redisson does not recover after redis master fail over

We are using Redisson 3.17.0 and redis version 6.0.8. We have redis cluster mode setup with 3 masters and each master has about 4-5 replicas. When redis master fail over happens, redisson starts throwing exceptions that it is unable to write command…
5
votes
0 answers

Can I use Jedis and Redisson together?

I have a redisdatabase in my spring bootapplication. I use Jedis as my Redis client for retrieval, update and delete. Now I'm willing to add distributed locks to my service, so I thought about using Redisson distributed locks. So my Redisson lock…
Ahmed El-Gamal
  • 180
  • 3
  • 18
5
votes
0 answers

Connection Pooling Statistics with Redisson

I am using Redisson as a Redis Client for my spring boot application. I want to have my connection pooling statistics/metrics and publish it to micrometer. Any suggestions would be welcomed.
Mufaddal Tahir
  • 509
  • 4
  • 9
1
2 3
24 25