Hi Pietro,
a) Ratis returns when the message has been replicated to the majority of
nodes and applied.
So, it returns when it has been committed.
b) Yes, Ratis implements sliding window and the ordering of the messages
as being committed is the same as the call to the send method.
Thanks,
Mukul
On 01/12/20 2:49 pm, Pietro Tollot wrote:
Hi all,
I have a doubt regarding the RaftClient usage, my question is when the send
method of the RaftClient object return? Does it return after the message has
been committed or before?
The second question related to this is, if I call multiple times the send
method on the same RaftClient object with different messages, can I assume that
the order in which the messages are committed in the log is the same of the
calls to the send methods?
Thanks