Reputation: 151
I have configured 2nd level cache for my spring-boot application using
redisson-hibernate-53
. Here is the redisson.yml
file for that,
singleServerConfig:
address: "redis://127.0.0.1:6379"
It seems to be working and required keys are being generated. I have a couple of doubts about scaling:
Upvotes: 1
Views: 1545
Reputation: 151
I got a chance to try the scenario. This is how I tested,
OBJECT IDLETIME key
and analysed the idletime after hitting from both the instances.I found that the keys used by both the instances are the same and idle time is reset for the key by both the instances. So, I think it works fine when a single redis instance is shared across multiple instances.
About the performance impact, I guess the common disadvantages of single server instead of clustered servers apply (like performance and availability)
Upvotes: 1