Hi,
I want to try POC on Lettuce to connect to a redis cluster running in my cloud fronted by an internal load balancer.
I am not sure if I have to use connection pool or not. I have read some posts in this forum as well as on SO and github, but couldn't decide on the best approach since :
a) We have a mix of operation types - some use cases just set/get one single entity to/from the cache. Some other use cases set/get in bulk (multiple keys without using key hash). About 70%-80% of the times, each thread would set/get just one entity at a time. For the remaining 20%-30% of the times, there are threads that would start bulk write or bulk read. If one such thread takes a long time to read/write, then all other threads waiting to perform get/set would have to wait. Considering this, I feel connection pooling is important.
b) When we have a cluster with at least 3 nodes in it, wouldn't the performance be better if we use at least 3 concurrent connections (one to each redis server)?
For our context, is connection pooling recommended or not?
Thank in advance,
Shobhana