@Design_Gurus
Can someone please clarify it in detail ? I am unable to still understand how just generating the sequence number can help with ordering. In the example as said that user1 will see M1 followed by M2 whereas user2 will see M2 followed by M1. Now if each user also generates a sequence number or timestamp for each of it’s message to each of the client (separately). Then in our case user1 will send message M1 with sequence <1 (user1 seq), 0(user2 seq) > and user2 will send message M2 with sequence <0 (user1 seq), 1(user2 seq) >. So when both the message arrives at user1 and user2 they will have:
M1 <1, 0>
M2 <0, 1>
Now let’s say user1 sends more messages M3 <2, 1> and M4 <3, 1> then each of client will have following msgs. So in this case what will be the display order for both the users ?
M1 <1, 0>
M2 <0, 1>
M3 <2, 1>
M4 <3, 1>
If we use seq number of user1 then order will be M2, M1, M3, M4 whereas with seq number of user2 order will be M1, M2, M3 and M4 ? Please advice.