1

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

1 Answers1

1

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.

gkamal
  • 20,777
  • 4
  • 60
  • 57