user3162648
user3162648

Reputation: 13

Is there any necessary to use pool in async redis client

I use async redis api(hiredis) in my project with one connection, because of non-blocking io, so I think one connection is enough for me, but I want to figure out whether the sequence of commands will be executed first-in-first-out

Upvotes: 1

Views: 1165

Answers (1)

gkamal
gkamal

Reputation: 21010

The documentation seems to suggest it is first in first out. https://github.com/redis/hiredis

In an asynchronous context, commands are automatically pipelined due to the nature of an event loop

Yes you don't need a pool. One connection should be sufficient.

Upvotes: 1

Related Questions