While using a async hiredis client, is it guaranteed that all the async api’s invoked from the client will be executed in a sequential order on the redis server?
I thought since connection to Redis server is over TCP, so everything should be delivered to server in order.
I see some articles where they have raised this reservation for using MULTI for async APIs.
Snippet from below link:
===================
It is impossible to use MULTI-EXEC over Redis Asynchronous API. You can only choose one.
MULTI-EXEC transactions SHOULD always execute sequentially. Redis Asynchronous API, on the other hand, allows the commands to be delivered out of order. Hence, it won't make sense to make a MULTI-EXEC transaction if the commands aren't in the proper sequence or worse, if MULTI and EXEC commands themselves became out of order.
https://stackoverflow.com/questions/16431802/redis-how-to-use-async-multi