If the data at the receiving end has been modified by a change with a higher sequencenumber (or later timestamp), then the earlier change may be rejected.
如果接收方的数据已发生具有更高序列号(或更新的时间戳)的更改,则较早的更改可能会被拒绝。
2
For that effect, JSON defines the following main data structures: number, string, Boolean (true and false), array (an ordered sequence of values), object (collection of key value pairs), and null.
A simple practical solution to this problem is to add a sequencenumber to our buffer class, and process the data in the buffer if the buffer sequencenumber is in order.