I have redis stream
producer and i have question about the order of records that producer sends to redis.
Redis clients use TCP
to execute commands. https://redis.io/topics/protocol#networking-layer
The messages can be delivered out of order in multiple TCP connections
. The order of TCP message?
Lets say that my producer executes command to publish record-A
to redis, then it executes another command to publish record-B
. I expect that record-A
is delivered before record-B
. But they could be delivered out of order by nature of TCP.
Is there any mechanism to support delivery order? I am using spring-boot-starter-data-redis-reactive
(and lettuce
client internally) as redis client.