Replies: 1 comment
-
I think it's explained in the docs:
It's OK to treat messages as persisted message, though it may increase latency as follower may take more time to learn new logs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems both methods return the messages but with different guards,
is_persisted_msg
or not.The guard represents whether the new state is leader. In one of my scenario, the vote response can stage in message first and then this node becomes leader or not so the same message is sent in either of these two guards.
Then, I'm wondering if I should just treat these two kind of message channel the same -
Is it possible to just exportis_persisted_msg
then let the caller decide whether to take messages?cc @BusyJay
Beta Was this translation helpful? Give feedback.
All reactions