Understanding the relationship between shareNativeConnection and lettuce pool properties. #2574
Closed
Nicolas-Miranda
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm starting using the Redis Reactive client along with Lettuce for a cache implementation in a Spring Boot application and while reading the documentation and navigating through the Lettuce code some questions appeared as I got confused with the properties mentioned in the title.
As I understand so far, Lettuce uses a shared connection by default and as part of the Spring application properties for Redis, there are the following pool configurations with the values that I'm currently using:
Does the above configuration have any effect if Lettuce uses a single shared connection by default or pool should only be enabled when the shareNativeConnection flag is set to false?
From the documentation regarding Async pool support https://github.com/lettuce-io/lettuce-core/wiki/Connection-Pooling#asynchronous-connection-pooling, it is mentioned that to use the async connection pooling no dependencies are needed. But when I the pool in lettuce:pool:enable, the LettucePoolingClientConfigurationBuilder used in Spring autoconfiguration still requires the Apache commons-pool2 dependency in:
org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration.LettucePoolingClientConfigurationBuilder#poolConfig
Is the Async pool support not yet supported by the Spring Autoconfiguration when including the above properties?
Thanks so much in advance for the help!
Beta Was this translation helpful? Give feedback.
All reactions