Reputation: 3313
My application is using Spring Boot 2.2.5-RELEASE.
Application is reading and writing to the Redis single instance by using Spring Data Redis. Application is using lettuce driver (default Spring Data Redis) with default spring pooling configurations.
//default-config values
spring.redis.lettuce.pool.max-active=8
spring.redis.lettuce.pool.max-idle=8
spring.redis.lettuce.pool.max-wait=-1ms
spring.redis.lettuce.pool.min-idle=0
How do I optimize the pool values to improve the performance of Redis. Or any suggestions.
Upvotes: 1
Views: 3450
Reputation: 3284
Not an exact answer you might be looking for. But wanted to add this for someone who is landing on this page.
Spring Data Redis seems to be very slow by default. I switched to Redisson which provides better abstraction and performance compared to Spring Data.
Upvotes: 2