Replies: 1 comment 3 replies
-
@WeihanLi the order the commands are replicated is always the same as the order they are executed, otherwise it will lead to inconsistencies between the master and the slave, just as |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team, we're using Redis Hash as a secondary storage and Stream for incremental changes sync, and we're using Redis in a master-slave mode, one master/multiple slaves and slaves are all readonly.
We would write updated data into Redis, and then add an entry in the stream. Is there any scene that the commands replicated are not in the order executed?
For example, we would execute
HSET X a "aa"
thenXADD StreamX
in master, would it be executed in the orderXADD StreamX
thenHSET X a "aa"
in slave in some cases?If yes, is there any solution for that? Would Redis Transaction help?
Beta Was this translation helpful? Give feedback.
All reactions