How to use TCP's asynchronous I/O method to communicate with Redis DB pod #918
Unanswered
zhaozekunssss
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
Hi @zhaozekunssss, did you disable auto-pipelining (DisableAutoPipelining=true)? Otherwise, rueidis should use pipeline mode automatically. Or if you like to use pooling mode by default, but sometimes allow pipelining, you can use cmd := client.B().Get().Key("key").Build().ToPipe()
client.Do(ctx, cmd) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I know there are two ways for Rueidis to connect to Redis now: connection pooling and pipeline mode.
I have a question to ask: Our current requirement is not to use pipeline mode. When using connection pooling mode, if a large number of requests are generated in a short period of time, a large number of TCP connection wires will be created, and send a separate request for each connection wire, which will consume a lot of resources.
Can we communicate directly with the Redis cluster through TCP's asynchronous I/O method? So we only need to create a TCP long connection with each db pod. If possible, how do I need to set it up? If not possible, is there any reason?
Beta Was this translation helpful? Give feedback.
All reactions