CN107231400B - Data synchronization method and device - Google Patents

Data synchronization method and device Download PDF

Info

Publication number
CN107231400B
CN107231400B CN201610179749.6A CN201610179749A CN107231400B CN 107231400 B CN107231400 B CN 107231400B CN 201610179749 A CN201610179749 A CN 201610179749A CN 107231400 B CN107231400 B CN 107231400B
Authority
CN
China
Prior art keywords
data
terminal device
timestamp
synchronization
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610179749.6A
Other languages
Chinese (zh)
Other versions
CN107231400A (en
Inventor
周遥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610179749.6A priority Critical patent/CN107231400B/en
Priority to TW106105351A priority patent/TWI746516B/en
Priority to PCT/CN2017/076753 priority patent/WO2017162079A1/en
Publication of CN107231400A publication Critical patent/CN107231400A/en
Application granted granted Critical
Publication of CN107231400B publication Critical patent/CN107231400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

The invention provides a data synchronization method, which comprises the following steps: when a first terminal device receives data, the first terminal device adds a timestamp of the received data to the data; the first terminal equipment sends the data added with the timestamp to the second terminal equipment, and saves the data added with the timestamp; and the first terminal equipment receives data fed back by the second terminal equipment according to the data added with the timestamp, so that the first terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data saved by the first terminal equipment. The invention realizes the data synchronization of the terminal equipment cluster without the help of third-party equipment and election data sending equipment, reduces the cost in the data synchronization, and ensures the reliability in the data synchronization by synchronizing the terminal equipment in the cluster according to the data obtained by the terminal equipment.

Description

Data synchronization method and device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a data synchronization method and apparatus.
Background
In the prior art, in order to achieve consistency of data in a server cluster, the following two solutions are proposed:
scheme one as shown in fig. 1: the method comprises the steps that a configuration center is added in a server cluster, when one server (a publisher) acquires data and needs to synchronize the data to other servers (subscribers), the server sends the data to the configuration center, and the configuration center sends the data to the other servers, so that the other servers can synchronize according to the data.
Scheme two as shown in fig. 2: the server cluster elects a publisher Master through an election algorithm, other servers are subscribers, after the server cluster is successfully selected, when the server cluster needs to synchronize a piece of data, the Master acquires the data, the Master sends the data needing to be synchronized to the subscribers, so that the subscribers carry out data synchronization, after the subscribers successfully synchronize, a message that the synchronization is successful is returned to the Master, and after the Master is down, the server cluster needs to re-elect the Master.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
in the first scheme, when the data is synchronized, the third-party equipment is relied on, the deployment is troublesome, the reliability is not high, and in the second scheme, if the number of the servers in the cluster is large, the number of messages which are successfully synchronized and returned by the subscriber is increased, so that the cost during the data synchronization is greatly increased, and the cost during the data synchronization is also increased when the Master is down and elects again.
Disclosure of Invention
The invention provides a data synchronization method and a data synchronization device, which are used for solving the problems of troublesome deployment and low reliability in the prior art due to the dependence on third-party equipment;
the invention provides a data synchronization method and device, and is also used for solving the problem of high data synchronization cost in the prior art.
The invention provides a data synchronization method, which is applied to a system comprising a first terminal device and a plurality of second terminal devices, wherein the time of the first terminal device and the time of the second terminal devices are synchronous, and the number of the second terminal devices is multiple, and the method comprises the following steps:
when a first terminal device receives data, the first terminal device adds a timestamp of the received data to the data;
the first terminal equipment sends the data added with the timestamp to the second terminal equipment, and saves the data added with the timestamp;
and the first terminal equipment receives data fed back by the second terminal equipment according to the data added with the timestamp, so that the first terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data saved by the first terminal equipment.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by the second terminal device according to the data with the same data identification.
The first terminal device performs data synchronization according to the data added with the timestamp and the feedback data stored by the first terminal device, specifically:
the first terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the first terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the first terminal equipment carries out data synchronization according to the data corresponding to the maximum timestamp.
The first terminal equipment sets a life cycle for storing the data added with the timestamp, and deletes the data with the same data identification when the first terminal equipment judges that the sum of the number of the data with the same data identification is not larger than the threshold value in the life cycle.
The data with the same data identification also carries a synchronization type;
the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is synchronization data, the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the first terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
A data synchronization apparatus, located in a first terminal device, applied in a system including the first terminal device and a plurality of second terminal devices, wherein times of the first terminal device and the second terminal devices are synchronized, the data synchronization apparatus comprising:
the adding module is used for adding a timestamp for receiving the data into the data when the first terminal equipment receives the data;
a sending module, configured to send the data to which the timestamp is added to the second terminal device, and store the data to which the timestamp is added;
and the receiving module is used for receiving data fed back by the second terminal equipment according to the data added with the timestamp, so that the synchronization module in the first terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data which are saved by the synchronization module.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by the second terminal device according to the data with the same data identification.
The synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
The adding module is also used for setting a life cycle for storing the data added with the timestamp;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
The data with the same data identification also carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
A data synchronization method is applied to a system comprising a first terminal device and a second terminal device, wherein the time of the first terminal device and the time of the second terminal device are synchronous, and the number of the second terminal devices is multiple, and the method comprises the following steps:
the second terminal equipment receives the data which is sent by the first terminal equipment and added with the time stamp and the data which is sent by other second terminal equipment and fed back according to the data added with the time stamp;
the second terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data;
wherein the timestamp is determined by the first terminal device according to the time of receiving the data.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by other second terminal equipment according to the data with the same data identification.
The second terminal device performs data synchronization according to the data added with the timestamp and the feedback data, specifically:
the second terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the second terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the second terminal equipment performs data synchronization according to the data corresponding to the maximum timestamp.
The data added with the time stamp carries the first terminal device to set a life cycle for the data, and when the second terminal device judges that the sum of the number of the data with the same data identification is not larger than the threshold value in the life cycle, the second terminal device deletes the data with the same data identification.
The data with the same data identification also carries a synchronization type;
the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is the synchronization data, the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the second terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
After the second terminal device receives the data which is sent by the first terminal device and added with the timestamp, the second terminal device sends the data with the largest timestamp in the data which has the same data identification with the data added with the timestamp to the first terminal device, so that the first terminal device carries out data synchronization according to the data with the largest timestamp.
A data synchronization apparatus, located in a second terminal device, for use in a system including a first terminal device and a plurality of the second terminal devices, wherein times of the first terminal device and the second terminal device are synchronized, the data synchronization apparatus comprising:
the receiving module is used for receiving the data which is sent by the first terminal equipment and added with the time stamp and the data which is sent by other second terminal equipment and fed back according to the data added with the time stamp;
the synchronization module is used for carrying out data synchronization according to the data added with the time stamp and the fed back data;
wherein the timestamp is determined by the first terminal device according to the time of receiving the data.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by other second terminal equipment according to the data with the same data identification.
The synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
The data added with the time stamp carries a life cycle set for the data by the first terminal equipment;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
The data with the same data identification also carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
The device further comprises:
and the sending module is used for sending the data with the largest time stamp in the data with the same data identification as the data with the time stamp to the first terminal equipment after the receiving module receives the data with the time stamp sent by the first terminal equipment, so that the first terminal equipment carries out data synchronization according to the data with the largest time stamp.
According to the invention, when a first terminal device receives data, a timestamp is added to the data and stored, then the data added with the timestamp is sent to a second terminal device, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, and performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of data synchronization by a third-party device in the prior art;
FIG. 2 is a schematic diagram of a prior art process for data synchronization by election publishers;
FIG. 3 is a flowchart of a data synchronization method according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a data synchronization method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a synchronization method during data distribution according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a data synchronization apparatus according to an embodiment of the present invention;
fig. 7 is a second schematic structural diagram of a data synchronization apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, because a scheme that a third-party device is used for realizing data synchronization has the defects of troublesome deployment and low reliability, and a scheme that a data publisher is elected has the defect of increasing data synchronization cost, the present application proposes a data synchronization method, specifically as shown in fig. 3, the method is applied to a system including a first terminal device and a second terminal device, wherein the times of the first terminal device and the second terminal device are synchronized, and the number of the second terminal devices is multiple, and the method includes the following steps:
step 301, when a first terminal device receives data, the first terminal device adds a timestamp of receiving the data to the data.
Specifically, the time of the first terminal device and the time of the second terminal device are synchronized to achieve time uniformity of the terminal devices in the cluster, and it is ensured that the first terminal device has the same time base when adding the timestamp to the data, and further it is ensured that the terminal devices in the cluster can correctly determine the same data with the largest timestamp. The first terminal device is a device for receiving data, the first terminal device should not be a fixed device in the cluster, and the first terminal device is determined according to the device for receiving data in the cluster, and the data is sent by a device outside the cluster. For example: there are 3 terminal devices in the cluster, which are device 1, device 2, and device 3, respectively, where when device 1 receives data sent by the client, device 1 is the first terminal device, and if device 2 receives data sent by the client, device 2 is the first terminal device. Similarly, the second terminal device is another terminal device in the cluster except the first terminal device, and the second terminal device is a device in the cluster that receives the data sent by the first terminal device, for example: there are 3 terminal devices in the cluster, which are device 1, device 2, and device 3, respectively, where device 2 and device 3 are second terminal devices when device 1 is a first terminal device, and device 1 and device 3 are second terminal devices when device 2 is a first terminal device.
And step 302, the first terminal device sends the data added with the timestamp to the second terminal device, and stores the data added with the timestamp.
Specifically, the first terminal device stores the data added with the timestamp in order to perform data synchronization subsequently.
Step 303, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, so that the first terminal device performs data synchronization according to the data added with the timestamp and the fed back data saved by the first terminal device.
Wherein the same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by the second terminal device according to the data with the same data identification.
Specifically, data identifiers are carried in data sent by devices outside the cluster and received by terminal devices in the cluster, and the data identifiers of the same data sent by the devices outside the cluster are the same, wherein the same data may be sent at different times, and the cluster is synchronized according to the received data, so that data having the same data identifier as the data identifier of the currently received data may exist in the devices in the cluster, and a timestamp for receiving the data by the devices in the cluster also exists in the data having the same data identifier.
The second terminal device may have a data identifier that is the same as the data, so when the second terminal device receives the data to which the timestamp is added, the second terminal device needs to determine, according to the data identifier of the data to which the timestamp is added, that the data to which the same data identifier is present in the second terminal device, and then, the second terminal device determines, according to the data having the same data identifier, the data with the largest timestamp, where the determined data is the latest data received by the cluster, and needs to be taken as a basis for data synchronization, and feeds back the data with the largest timestamp determined as feedback data to the first terminal device, and after the first terminal device receives the data with the largest timestamp fed back by the second terminal device in the cluster, the first terminal device may determine the latest data according to the feedback data and the data to which the timestamp is added and is stored by the first terminal device, so that the first terminal device performs data synchronization according to the latest data.
The first terminal device performs data synchronization according to the data added with the timestamp and the feedback data stored by the first terminal device, specifically:
the first terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the first terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the first terminal equipment carries out data synchronization according to the data corresponding to the maximum timestamp.
Specifically, the threshold is determined according to actual conditions, for example: the threshold is half of the number of terminal devices in the cluster, when the number of data with the same data identifier determined by the first terminal device indicates that a plurality of terminal devices in the cluster have received the data, and when the number exceeds the threshold, the cluster meets the requirement of data synchronization, and at this time, the first terminal device can perform data synchronization according to the latest data in the first terminal device.
The first terminal equipment sets a life cycle for storing the data added with the timestamp, and deletes the data with the same data identification when the first terminal equipment judges that the sum of the number of the data with the same data identification is not larger than the threshold value in the life cycle.
Specifically, data synchronization must be completed within a certain time during data synchronization, otherwise, the meaning of data synchronization is lost, therefore, a life cycle is further set for the data when the first terminal device adds a timestamp to the data, the length of the life cycle is determined according to an actual situation, when the first terminal device does not receive data with the same data identifier exceeding the threshold value within the life cycle, the data synchronization fails, and in order to ensure that resources of the first terminal device are not wasted, the data with the same data identifier is deleted by the first terminal device.
The data with the same data identification also carries a synchronization type;
the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is synchronization data, the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the first terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
Specifically, when data synchronization is performed, data of terminal devices in a cluster are unified, and when data received by the first terminal device is synchronized, data is sometimes added and sometimes deleted, if a synchronization type of data corresponding to a maximum timestamp determined by the first terminal device is synchronization data, it indicates that data is added, and the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp; if the synchronization type of the data corresponding to the maximum timestamp determined by the first terminal device is deletion data, the data is indicated to be cancelled, the first terminal device deletes the data value in the data corresponding to the maximum timestamp when synchronizing according to the data corresponding to the maximum timestamp, and synchronizes the data according to the data corresponding to the maximum timestamp with the deleted data value, wherein when deleting the data, the first terminal device can only delete the data, and information such as the timestamp, the synchronization type, the data identifier and the like corresponding to the data is reserved for subsequent query.
When at least one piece of data with the same data identification sent by the device outside the cluster is received in the first terminal device. And the first terminal equipment carries out data synchronization according to the sequence of the received data.
According to the invention, when a first terminal device receives data, a timestamp is added to the data and stored, then the data added with the timestamp is sent to a second terminal device, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, and performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal device.
The present invention further provides a data synchronization method, specifically as shown in fig. 4, where the method is applied to a system including a first terminal device and a plurality of second terminal devices, where the times of the first terminal device and the second terminal device are synchronized, and the method includes the following steps:
step 401, the second terminal device receives the data with the timestamp sent by the first terminal device and the data fed back by other second terminal devices according to the data with the timestamp sent by other second terminal devices.
Wherein the timestamp is determined by the first terminal device according to the time of receiving the data.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by other second terminal equipment according to the data with the same data identification.
For example: the terminal device cluster comprises: the device 1 is a first terminal device, the devices 2 and 3 are second terminal devices, when the device 1 receives data, the device 1 sends the data added with a timestamp to the device 2, and at this time, the device 2 is the second terminal device, the device 3 is another second terminal device, and since the data with the same data identifier may exist in the device 3, in order to ensure that the device 2 updates the latest data when performing data synchronization, the device 3 also sends the data with the largest timestamp, which determines the data with the same data identifier in the device, to the device 2, so that the device 2 can perform data synchronization according to the latest data. Similarly, when the device 2 receives data sent by the device, the device 2 also needs to determine that data with the same data identifier in the device 2 has the largest timestamp, and send the data to the device 3, so that the device 3 can also perform data synchronization according to the latest data.
And 402, the second terminal equipment performs data synchronization according to the data added with the time stamp and the feedback data.
Specifically, after the second terminal device receives the data added with the timestamp and the data fed back by other second terminal devices, at this time, the second terminal device includes the data with the same data identifier fed back by all other terminal devices in the cluster, and at this time, if other data with the same data identifier still exists in the second terminal device, the second terminal device determines the data with the largest timestamp from the data added with the timestamp, the data fed back by other second terminal devices, and the other data with the same data identifier, so that the second terminal device performs data synchronization according to the data with the largest timestamp. And similarly, other second terminal devices also perform data synchronization according to the above process.
The second terminal device performs data synchronization according to the data added with the timestamp and the feedback data, specifically:
the second terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the second terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the second terminal equipment performs data synchronization according to the data corresponding to the maximum timestamp.
Specifically, when the number of data having the same data identifier determined by the second terminal device indicates that a plurality of terminal devices in the cluster have received the data, and when the number exceeds a threshold, the cluster meets the requirement of data synchronization, and at this time, the second terminal device may perform data synchronization according to the latest data in the second terminal device.
The data added with the time stamp carries the first terminal device to set a life cycle for the data, and when the second terminal device judges that the sum of the number of the data with the same data identification is not larger than the threshold value in the life cycle, the second terminal device deletes the data with the same data identification.
Specifically, data synchronization must be completed within a certain time during data synchronization, otherwise, the meaning of data synchronization is lost, therefore, a life cycle is also set for the data when the first terminal device adds a timestamp to the data, the length of the life cycle is determined according to an actual situation, when the second terminal device does not receive data with the same data identifier exceeding the threshold value within the life cycle, the data synchronization fails, and in order to ensure that resources of the second terminal device are not wasted, the first terminal device deletes the data with the same data identifier.
The data with the same data identification also carries a synchronization type;
the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is the synchronization data, the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the second terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
Specifically, when data synchronization is performed, data of terminal devices in a cluster are unified, and when data synchronization is performed by the second terminal device, data may be added and data may be deleted, if the synchronization type of the data corresponding to the maximum timestamp determined by the second terminal device is synchronization data, it indicates that data is added, and the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp; and if the synchronization type of the data corresponding to the maximum timestamp determined by the second terminal device is the deleted data, the data is indicated to be cancelled, the second terminal device deletes the data value in the data corresponding to the maximum timestamp when synchronizing according to the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the deleted data value, wherein when deleting the data, the second terminal device can only delete the data, and retain information such as the timestamp, the synchronization type, the data identifier and the like corresponding to the data for subsequent query.
After the second terminal device receives the data which is sent by the first terminal device and added with the timestamp, the second terminal device sends the data with the largest timestamp in the data which has the same data identification with the data added with the timestamp to the first terminal device, so that the first terminal device carries out data synchronization according to the data with the largest timestamp.
According to the invention, when a first terminal device receives data, a timestamp is added to the data and stored, then the data added with the timestamp is sent to a second terminal device, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, and performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal device.
To further illustrate the technical idea of the present invention, the technical solution of the present application is now described with reference to specific application scenarios, specifically, the system includes 3 servers: server A, server B, server C, and the time of the 3 servers is synchronous, wherein the terminal generating the synchronization data is a client, and the structure of the synchronization data is defined as follows: d { (K, V, S, T }, K denotes a data identifier, V denotes a data value, S denotes a data state (the data state includes: SYNC denotes synchronization, update denotes synchronization completion, and ZOMBIE denotes three states of deleting a data value, T denotes a timestamp of receiving the data by the server, the timestamp is in milliseconds, and the storage of each server is divided into three parts, namely, a temporary storage area for storing synchronization data, the state of the synchronization data at this time is SYNC, and the life cycle is I, a data area in which data that has been validated exists, and the data state of the data at this time is UPDATED, which can be read and used by the client, a to-be-deleted area for storing a deletion notification, the state of the data at this time is ZOMBIE, the life cycle is I, and a predetermined threshold is 1.5.
The client issues data represented by K, and selects to send to the server A, if the data state S and the timestamp T in the data are null at the moment, the server A adds the timestamp in the T according to the time for receiving the data after receiving the data, sets S as SYNC, and sends the data to a server cluster including the server A, after the server B receives the data, other data with K as a data identifier are searched in a temporary storage area, if the timestamps in the other data are less than the data, the server B ignores the data, if the timestamps are greater than the data, the server B replaces the other data with the data, and sends the data to the server A and the server C, and the server C in the same way needs to complete the process. And at the moment, the server B determines that the number of data with a data identifier K in the temporary storage area is 2 and exceeds a threshold value, the server B selects the data with the maximum time stamp by taking K as the identifier in the temporary storage area, moves the data with the maximum time stamp into the data area, sets S as UPDATED, and if the data with the maximum time stamp exists in the data area, the data with the data identifier K in the data area is covered by the data with the maximum time stamp. If the server B determines that the data with the data identifier K is smaller than the threshold value in the life cycle of the data, the moving operation is not executed, all the data with the data identifier K in the server B are deleted, and similarly, the server C also needs to complete the process.
After the above process is completed, at least 3 pieces of data with K as a data identifier exist in the server A, after the server A determines the data with the maximum timestamp, the data with the maximum timestamp is moved to the data area, and S is set to be UPDATED, and if the data with K as the data identifier exists in the data area, the data with K as the data identifier in the data area is covered by the data with the maximum timestamp. And if the server A determines that the data with the data identifier K is smaller than the threshold value in the life cycle of the data, the moving operation is not executed, and all the data with the data identifier K in the server A are deleted.
Because the server B and the server C perform synchronization and feedback according to the data sent by the server a, when the number of data with the data identifier K is determined to be smaller than the threshold in one of the servers, the number of data with the data identifier K in the other servers is also smaller than the threshold, and therefore when one server deletes the data with the data identifier K, the other servers also delete the data with the data identifier K. And after deleting the data with K as the data identifier, the server A also feeds back a synchronization failure message to the client.
The client issues data represented by K, and selects to send to the server A, if the data state S in the data is ZOMBIE and the timestamp T is null, the server A adds the timestamp in the T according to the time of receiving the data after receiving the data, then the server A sends the data to the server cluster including the server A, and after receiving the data, the server B searches for other data with K as a data identifier in a temporary storage area, if the timestamp in the other data is smaller than the data, the server B ignores the data, if the timestamp in the other data is larger than the data, the server B replaces the other data with the data, and sends the data to the server A and the server C, and the above processes also need to be completed. The server B determines that the number of data with a data identifier K in a temporary storage area is 2 and exceeds a threshold value, the server B selects the data with the maximum time stamp K in the temporary storage area, moves the data with the maximum time stamp into an area to be deleted, deletes a data value corresponding to S in the data, and if the data with the maximum time stamp K in the area to be deleted exists, the data with the maximum time stamp K in the area to be deleted is used for covering the data with the data identifier K in the area to be deleted. If the server B determines that the data with the data identifier K is smaller than the threshold value in the life cycle of the data, the moving operation is not executed, all the data with the data identifier K in the server B are deleted, and similarly, the server C also needs to complete the process.
After the above process is completed, at least 3 pieces of data with K as a data identifier exist in the server a, after the server a determines the data with the maximum timestamp, the server a moves the data with the maximum timestamp to the to-be-deleted area, and if the data with K as the data identifier exists in the to-be-deleted area, the data with K as the data identifier in the data area is covered by the data with the maximum timestamp. And if the server A determines that the data with the data identifier K is smaller than the threshold value in the life cycle of the data, the moving operation is not executed, and all the data with the data identifier K in the server A are deleted.
And if the server A receives a plurality of pieces of data which are sent by the client and take K as the data identification, the server synchronizes the data according to the sequence of the received data.
Based on the same application concept as the method, the present invention provides a data synchronization apparatus, as shown in fig. 6, where the data synchronization apparatus is located in a first terminal device and is applied to a system including the first terminal device and a plurality of second terminal devices, where the times of the first terminal device and the second terminal devices are synchronized, and the data synchronization apparatus includes:
an adding module 61, configured to add, when the first terminal device receives data, a timestamp for receiving the data to the data;
a sending module 62, configured to send the data to which the timestamp is added to the second terminal device, and store the data to which the timestamp is added;
a receiving module 63, configured to receive data fed back by the second terminal device according to the data added with the timestamp, so that the synchronization module in the first terminal device performs data synchronization according to the data added with the timestamp and the fed back data that are stored by the synchronization module.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by the second terminal device according to the data with the same data identification.
The synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
The adding module is also used for setting a life cycle for storing the data added with the timestamp;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
The data with the same data identification also carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
According to the invention, when a first terminal device receives data, a timestamp is added to the data and stored, then the data added with the timestamp is sent to a second terminal device, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, and performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal device.
Based on the same application concept as the method, the present invention further provides a data synchronization apparatus, specifically as shown in fig. 7, where the data synchronization apparatus is located in a second terminal device and is applied to a system including a first terminal device and a plurality of second terminal devices, where the times of the first terminal device and the second terminal device are synchronized, and the data synchronization apparatus includes:
a receiving module 71, configured to receive the data with the timestamp sent by the first terminal device and data fed back by other second terminal devices according to the data with the timestamp;
a synchronization module 72, configured to perform data synchronization according to the data with the timestamp and the feedback data;
wherein the timestamp is determined by the first terminal device according to the time of receiving the data.
The same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is the data with the largest timestamp determined by other second terminal equipment according to the data with the same data identification.
The synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
The data added with the time stamp carries a life cycle set for the data by the first terminal equipment;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
The data with the same data identification also carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
The second terminal device further includes:
and the sending module is used for sending the data with the largest time stamp in the data with the same data identification as the data with the time stamp to the first terminal equipment after the receiving module receives the data with the time stamp sent by the first terminal equipment, so that the first terminal equipment carries out data synchronization according to the data with the largest time stamp.
According to the invention, when a first terminal device receives data, a timestamp is added to the data and stored, then the data added with the timestamp is sent to a second terminal device, the first terminal device receives data fed back by the second terminal device according to the data added with the timestamp, and performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal device.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on at least two network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (14)

1. A method for synchronizing data, the method being applied to a system comprising a first terminal device and a second terminal device, wherein the first terminal device and the second terminal device are synchronized in time, and the second terminal device is a plurality of terminal devices, the method comprising:
when a first terminal device receives data, the first terminal device adds a timestamp of the received data to the data;
the first terminal equipment sends the data added with the timestamp to the second terminal equipment, and saves the data added with the timestamp;
the first terminal equipment receives data fed back by the second terminal equipment according to the data added with the timestamp, so that the first terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data stored by the first terminal equipment;
wherein the same data in the first terminal equipment and the second terminal have the same data identification;
the fed back data is data with the maximum timestamp determined by the second terminal device according to the data with the same data identification;
the first terminal device performs data synchronization according to the data added with the timestamp and the feedback data stored by the first terminal device, specifically:
the first terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the first terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the first terminal equipment carries out data synchronization according to the data corresponding to the maximum timestamp.
2. The method according to claim 1, wherein the first terminal device sets a life cycle for saving the data added with the time stamp, and when the first terminal device determines that the sum of the numbers of data having the same data identification is not greater than the threshold value in the life cycle, the first terminal device deletes the data having the same data identification.
3. The method of claim 2, wherein the data having the same data identifier further carries a synchronization type;
the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is synchronization data, the first terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the first terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
4. A data synchronization apparatus, wherein the data synchronization apparatus is located in a first terminal device, and is applied in a system including the first terminal device and a plurality of second terminal devices, wherein the times of the first terminal device and the second terminal device are synchronized, and the data synchronization apparatus comprises:
the adding module is used for adding a timestamp for receiving the data into the data when the first terminal equipment receives the data;
a sending module, configured to send the data to which the timestamp is added to the second terminal device, and store the data to which the timestamp is added;
a receiving module, configured to receive data fed back by the second terminal device according to the data added with the timestamp, so that a synchronization module in the first terminal device performs data synchronization according to the data added with the timestamp and the fed back data that are stored by the synchronization module;
wherein the same data in the first terminal equipment and the second terminal have the same data identification;
the fed back data is data with the maximum timestamp determined by the second terminal device according to the data with the same data identification;
the synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
5. The apparatus of claim 4, wherein the adding module is further configured to set a lifecycle for saving the data with the timestamp added thereto;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
6. The apparatus of claim 5, wherein the data having the same data identifier further carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
7. A data synchronization method is applied to a system comprising a first terminal device and a second terminal device, wherein the times of the first terminal device and the second terminal device are synchronized, and the second terminal device is a plurality of terminal devices, and the method comprises the following steps:
the second terminal equipment receives the data which is sent by the first terminal equipment and added with the time stamp and the data which is sent by other second terminal equipment and fed back according to the data added with the time stamp;
the second terminal equipment performs data synchronization according to the data added with the timestamp and the fed back data;
wherein the timestamp is determined by the first terminal device according to the time of receiving the data;
the same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is data with the maximum timestamp determined by other second terminal equipment according to the data with the same data identification;
the second terminal device performs data synchronization according to the data added with the timestamp and the feedback data, specifically:
the second terminal equipment judges whether the sum of the number of the data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, the second terminal device determines the data corresponding to the maximum timestamp in the data with the same data identification;
and the second terminal equipment performs data synchronization according to the data corresponding to the maximum timestamp.
8. The method of claim 7, wherein the first terminal device sets a life cycle for the data in the data with the time stamp, and when the second terminal device determines that the sum of the numbers of the data with the same data identifier is not greater than the threshold in the life cycle, the second terminal device deletes the data with the same data identifier.
9. The method of claim 8, wherein the data having the same data identifier further carries a synchronization type;
the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp, specifically:
when the synchronization type in the data corresponding to the maximum timestamp is the synchronization data, the second terminal device performs data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, the second terminal deletes the data value in the data corresponding to the maximum timestamp, and performs data synchronization according to the data corresponding to the maximum timestamp with the data value deleted.
10. The method of claim 7, wherein after the second terminal device receives the data with the timestamp sent by the first terminal device, the second terminal device sends the data with the largest timestamp in the data with the same data identifier as the data with the timestamp to the first terminal device, so that the first terminal device performs data synchronization according to the data with the largest timestamp.
11. A data synchronization apparatus, wherein the data synchronization apparatus is located in a second terminal device, and is applied in a system including a first terminal device and a plurality of second terminal devices, wherein the times of the first terminal device and the second terminal device are synchronized, and the data synchronization apparatus comprises:
the receiving module is used for receiving the data which is sent by the first terminal equipment and added with the time stamp and the data which is sent by other second terminal equipment and fed back according to the data added with the time stamp;
the synchronization module is used for carrying out data synchronization according to the data added with the time stamp and the fed back data;
wherein the timestamp is determined by the first terminal device according to the time of receiving the data;
the same data in the first terminal equipment and the second terminal have the same data identification;
the feedback data is data with the maximum timestamp determined by other second terminal equipment according to the data with the same data identification;
the synchronization module is specifically configured to:
judging whether the sum of the number of data with the same data identification is larger than a threshold value;
when the data identification is larger than the threshold value, determining the data corresponding to the maximum timestamp in the data with the same data identification;
and carrying out data synchronization according to the data corresponding to the maximum timestamp.
12. The apparatus according to claim 11, wherein the data with the time stamp added carries a life cycle for the data by the first terminal device;
the device further comprises:
and the deleting module is used for deleting the data with the same data identification when the synchronizing module judges that the sum of the number of the data with the same data identification is not greater than the threshold value in the life cycle.
13. The apparatus of claim 12, wherein the data having the same data id further carries a synchronization type;
the synchronization module is further specifically configured to:
when the synchronization type in the data corresponding to the maximum timestamp is synchronous data, performing data synchronization according to the data corresponding to the maximum timestamp;
and when the synchronization type in the data corresponding to the maximum timestamp is synchronous deleted data, deleting the data value in the data corresponding to the maximum timestamp, and performing data synchronization according to the data corresponding to the maximum timestamp for deleting the data value.
14. The apparatus of claim 11, wherein the apparatus further comprises:
and the sending module is used for sending the data with the largest time stamp in the data with the same data identification as the data with the time stamp to the first terminal equipment after the receiving module receives the data with the time stamp sent by the first terminal equipment, so that the first terminal equipment carries out data synchronization according to the data with the largest time stamp.
CN201610179749.6A 2016-03-25 2016-03-25 Data synchronization method and device Active CN107231400B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610179749.6A CN107231400B (en) 2016-03-25 2016-03-25 Data synchronization method and device
TW106105351A TWI746516B (en) 2016-03-25 2017-02-17 Data synchronization method and device
PCT/CN2017/076753 WO2017162079A1 (en) 2016-03-25 2017-03-15 Data synchronization method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610179749.6A CN107231400B (en) 2016-03-25 2016-03-25 Data synchronization method and device

Publications (2)

Publication Number Publication Date
CN107231400A CN107231400A (en) 2017-10-03
CN107231400B true CN107231400B (en) 2020-07-03

Family

ID=59899336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610179749.6A Active CN107231400B (en) 2016-03-25 2016-03-25 Data synchronization method and device

Country Status (3)

Country Link
CN (1) CN107231400B (en)
TW (1) TWI746516B (en)
WO (1) WO2017162079A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2017445368A1 (en) * 2017-12-27 2020-08-13 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method and device for information feedback, and computer storage medium
CN109033391B (en) * 2018-07-31 2019-12-31 北京嘀嘀无限科技发展有限公司 Method and system for synchronizing data among multiple data centers and computer readable storage medium
CN109032747B (en) * 2018-08-10 2021-10-15 江苏奇异点网络有限公司 Data updating method and device
CN109462661B (en) * 2018-12-19 2021-08-10 深圳市卡牛科技有限公司 Data synchronization method and device, computer equipment and storage medium
CN110768740B (en) * 2019-10-29 2020-12-01 广州趣丸网络科技有限公司 Time synchronization method and device
CN112799856A (en) * 2019-11-14 2021-05-14 华为技术有限公司 Method and device for acquiring data
CN111711663A (en) * 2020-05-26 2020-09-25 北京金山云网络技术有限公司 Processing method and device for publishing and subscribing services and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808137A (en) * 2010-03-29 2010-08-18 成都市华为赛门铁克科技有限公司 Data transmission method, device and system
WO2012163395A1 (en) * 2011-05-30 2012-12-06 Napatech A/S An apparatus and a method of parallel receipt, forwarding and time stamping data packets using synchronized clocks
CN104301428A (en) * 2014-10-29 2015-01-21 广州视源电子科技股份有限公司 Data synchronization method and server

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI237766B (en) * 2003-12-17 2005-08-11 Inst Information Industry Method and system for performing interactive command in order, method and system for data synchronization between servers, and system for interaction between servers
US8935302B2 (en) * 2006-12-06 2015-01-13 Intelligent Intellectual Property Holdings 2 Llc Apparatus, system, and method for data block usage information synchronization for a non-volatile storage volume
CN102801543B (en) * 2011-05-24 2015-12-16 中国银联股份有限公司 A kind of method of dynamic data synchronization between dual-active system
US8655307B1 (en) * 2012-10-26 2014-02-18 Lookout, Inc. System and method for developing, updating, and using user device behavioral context models to modify user, device, and application state, settings and behavior for enhanced user security
CN104065752A (en) * 2014-07-11 2014-09-24 上海百步电子科技股份有限公司 Synchronization method of data between terminals
CN104580183B (en) * 2014-12-27 2019-02-15 北京奇虎科技有限公司 A kind of method of data synchronization and device across cluster
CN105162843B (en) * 2015-08-05 2018-11-02 卡斯柯信号有限公司 A kind of rapid data synchronous method based on Dynamic Programming

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808137A (en) * 2010-03-29 2010-08-18 成都市华为赛门铁克科技有限公司 Data transmission method, device and system
WO2012163395A1 (en) * 2011-05-30 2012-12-06 Napatech A/S An apparatus and a method of parallel receipt, forwarding and time stamping data packets using synchronized clocks
CN104301428A (en) * 2014-10-29 2015-01-21 广州视源电子科技股份有限公司 Data synchronization method and server

Also Published As

Publication number Publication date
TWI746516B (en) 2021-11-21
WO2017162079A1 (en) 2017-09-28
CN107231400A (en) 2017-10-03
TW201737107A (en) 2017-10-16

Similar Documents

Publication Publication Date Title
CN107231400B (en) Data synchronization method and device
CN107332876B (en) Method and device for synchronizing block chain state
CN107465767B (en) Data synchronization method and system
TWI751402B (en) Data synchronization method, distributed system, computer readable storage and retrieval media, computer equipment and distributed equipment
JP6488195B2 (en) Communication device for time synchronization
CN104348859B (en) File synchronisation method, device, server, terminal and system
CN104750738B (en) A kind of method for updating the data information, back end, management node and system
CN110545207B (en) Synchronous automatic intelligent DNS system and configuration method
CN104954101B (en) Multiple terminals method of data synchronization based on synchronous ACK
CN105450682A (en) Method, device, and system for data synchronous storage and synchronizing data to client
CN106817387B (en) Data synchronization method, device and system
CN104301990A (en) Data synchronizing method and device
CN112199447A (en) Database synchronization method, device and system and electronic equipment
CN106888110B (en) Configuration data synchronization method and device
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
CN113553373B (en) Data synchronization method and device, storage medium and electronic equipment
CN110099128B (en) Authentication data synchronization method and device
CN111147560A (en) Data synchronization method based on HTTP (hyper text transport protocol) protocol high speed, high stability and breakpoint continuous transmission
CN109274734B (en) Service process calling method and device based on Internet of things cloud platform
CN108509296B (en) Method and system for processing equipment fault
CN110912979B (en) Method for solving multi-server resource synchronization conflict
CN106973106B (en) Method, device and system for acquiring session information
CN112000850B (en) Method, device, system and equipment for processing data
CN110768811B (en) Method, device and system for updating YANG model file library
CN108108372B (en) Automatic correction processing method and device for data conflict

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1244977

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant