hiredis icon indicating copy to clipboard operation
hiredis copied to clipboard

Subscribe REDIS channel with raw command by using redisFormatCommand (pub/sub)

Open ryanmusic opened this issue 2 years ago • 0 comments

Hi! I would like to know if it's reliable to use pub/sub with Redis by using Redis raw command with redisFormatCommand. The reason is because I have to create my own tls client:

len = redisFormatCommand(&str, "SUBSCRIBE %s", channel)

tlsClient->send(str, len)

I asked this because recently I'm seeing some delay or missing subscribed messages when the channel subscription scale is increased. Not sure if this is the right way to subscribe channel, please advice and thanks!

ryanmusic avatar Jul 05 '22 09:07 ryanmusic