Hi Mukul, thanks for answering, a last question about this, if i want to have high performances sending messages in parallel, is this what sendAsync is tought for? So can i use the same RaftClient in which to do several sendAsync in parallel or it is better to use multiple RaftClients?
Thanks > On 1 Dec 2020, at 18:15, Mukul Kumar Singh <[email protected]> wrote: > > 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 >>
