When I was working with Redisson in Java, I got a performance issue which I need more advises. Here is the situation:
Need Redis cache to store value(Object) with primary key & secondary key, so I figured that I could use RMapCache in Redisson.
It's easy to achieve the result but seems there's a performance issue with this distributed map, which will add many round trips and will create performance bottleneck under high concurrency. And the explanation here: https://www.slideshare.net/RedisLabs/redisconf17-distributed-java-map-structures-and-services-with-redisson
Well, I was considering RLocalCachedMap, but seems it doesn't the correct approach either. Could someone please help me with this?
How to improve performance if I want to use Redis cache with primary key & secondary key to store value(Object)? Any suggestions would be helpful. Thanks in advance.