Reputation: 13
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
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