I was using lettuce client as a Redis cluster client because it supports Cluster Redis well.
A practical problem I have met is when creating a client or during topological refresh, lettuce will send out "info" command, which usually takes longer than normal get command. Setting a general timeout, for example, 10ms, will cause the client failed to start.
I was wondering if I could set the command timeout based on different command types.
Update:
I have read the source code and found out that I could write my own TimeoutSource
to set the timeout on command level.
I am posting this question because I have communicated with Mark, the author of Lettuce. We thought it would be helpful to share this issue on the broader community as people could someday meet the same issue.