Data synchronization method between app and server

Case | Architecture Practice and Protocol Details of Meizu Cloud Synchronization
http://www.infoq.com/cn/articles/meizu-cloud-synchronization-architecture-and-protocol


, fast synchronization), slow synchronization 201 (Slow sync), client refresh synchronization 203 (Refresh from client), server refresh synchronization 205 (Refresh from server).

In terms of synchronization point management, a client synchronization point (ClientAnchor) is designed to verify the synchronization type used for verification and to manage the selection of client incremental data; there is also a server synchronization point (ServerAnchor) to manage and select services. side incremental data.

A complete synchronization has 4 stages, namely Request, Submitdata, Getdata, and Result. The simple diagram is as follows.

Among them, sessionId is the session ID of the server, isFinal is the batch data end ID, clientData is the client business data, serverData is the server business data, and resultList is the processing data result data (identification success or failure).

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326714105&siteId=291194637