Questions about lettuce connection pooling

lettuce says something like this: "Lettuce is a scalable, thread-safe Redis client that supports Synchronize, asynchronous, and responsive modes." Multiple threads can share a connection instance without having to worry about multithreading concurrency. "
what I understand is that multithreading can reuse the same redis connection. I also saw through the netstat command that a connection between two redis 3306 ports will be created when the program starts, and a new redis connection will not be created when using the jmeter stress test. Is lettuce connection pooling still useful like this?
Thank you first.

Apr.02,2021

this is what the official website says:

:
    1.flush
    2.`BLPOP`
    3.
    4.

so connection pooling is useful, but it is limited for lettuce. And at present, it seems that only Synchronize and asynchronous connection pooling are provided, so if you want to use responsive api through connection pooling, you should have to implement it yourself.

There is a parameter shareNativeConnection, in the

LettuceConnectionFactory class that defaults to true, which means sharing this connection, so lettuce connection pooling is useless by default; if you need to use connection pooling, shareNativeConnection can be set to false.

Menu