Skip to content

How does RedisCluster pick from connections from connection pool? #2457

Answered by michael-grunder
gskema asked this question in Q&A
Discussion options

You must be logged in to vote

The only way to be sure would be to do low level profiling that could capture granular samples of which part of the operation takes what amount of time.

If I'm just speculating my assumption is that it just comes down to network idiosyncrasies and that the connections become slightly faster after they've just been used.

That said, I'm basically ignorant to the details around ElastiCache as I have only ever used it in a debug environment to help people with issues now and again.

Pulling the persistent connection from the pool is likely a nanosecond/microsecond level operation. It's a tiny hash table mapped to a (in your case) single element linked list.

Another thing you could try is testi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gskema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants