CN106878365B - data synchronization method and device - Google Patents

data synchronization method and device Download PDF

Info

Publication number
CN106878365B
CN106878365B CN201610405702.7A CN201610405702A CN106878365B CN 106878365 B CN106878365 B CN 106878365B CN 201610405702 A CN201610405702 A CN 201610405702A CN 106878365 B CN106878365 B CN 106878365B
Authority
CN
China
Prior art keywords
data
synchronized
version information
information corresponding
data version
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
CN201610405702.7A
Other languages
Chinese (zh)
Other versions
CN106878365A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co 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 CN201610405702.7A priority Critical patent/CN106878365B/en
Publication of CN106878365A publication Critical patent/CN106878365A/en
Application granted granted Critical
Publication of CN106878365B publication Critical patent/CN106878365B/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

Abstract

The application discloses data synchronization methods and devices, which include receiving data to be synchronized and determining data version information corresponding to the data to be synchronized, locking the data version information corresponding to the data to be synchronized when it is determined that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not expired, and performing data synchronization operation by using the locked data version information.

Description

data synchronization method and device
Technical Field
The application relates to the technical field of internet information processing, in particular to data synchronization method and device.
Background
With the development of internet technology, cross-regional services have emerged. By cross-regional service may be meant services that are carried out or executed in different regions, such as: payment services across regions, purchase services across regions, and the like.
For the cross-regional service, central servers are needed to aggregate the service data generated by the cross-regional service in each region, so as to ensure the service data uniformity of the cross-regional service in each region.
However, in practical applications, for cross-region services, the central server receives the update data sent by the servers in each region, but when data synchronization update is performed, due to different times for generating the update data by the servers in each region, the central server is prone to have a problem that the update sequence is disordered when data synchronization update is performed, so that errors occur in data synchronization of the central server.
Disclosure of Invention
In view of this, the embodiments of the present application provide data synchronization methods and apparatuses, which are used to solve the problem in the prior art that the data synchronization sequence is out of order when data synchronization is completed across regional services.
The embodiment of the present application provides data synchronization methods, including:
receiving data to be synchronized, and determining data version information corresponding to the data to be synchronized;
when determining that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not overdue, locking the data version information corresponding to the data to be synchronized;
and performing data synchronization operation by using the locked data version information.
The embodiment of the present application further provides kinds of data synchronization devices, including:
the receiving unit is used for receiving data to be synchronized and determining data version information corresponding to the data to be synchronized;
the locking unit is used for locking the data version information corresponding to the data to be synchronized when the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not overdue;
and a synchronization unit performing a data synchronization operation using the locked data version information.
The above-mentioned at least technical scheme that this application embodiment adopted can reach following beneficial effect:
the method comprises the steps of receiving data to be synchronized, determining data version information corresponding to the data to be synchronized, locking the data version information corresponding to the data to be synchronized when it is determined that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not expired, and performing data synchronization operation by using the locked data version information, wherein the data version information corresponding to the data to be synchronized is determined for the data to be synchronized, so that when data synchronization is performed, the data version information of the data to be synchronized is identified, the synchronization sequence of the data to be synchronized can be guaranteed, the problem of sequence disorder in the existing data synchronization process is avoided, particularly the problem of sequence disorder when data synchronization is performed on the same data in a distribution system is avoided, and the accuracy of the data synchronization is effectively improved.
Drawings
The accompanying drawings, which are incorporated herein and constitute part of this application and are included to provide a further understanding of the application, section of the application, illustrate embodiments of the application and together with the description serve to explain the application and not to limit the application.
Fig. 1 is a schematic flowchart of an data synchronization method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an data synchronization method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of data synchronization apparatuses according to an embodiment of the present application.
Detailed Description
In order to achieve the purpose of the present application, an embodiment of the present application provides data synchronization methods and apparatuses, which receive data to be synchronized, determine data version information corresponding to the data to be synchronized, lock the data version information corresponding to the data to be synchronized when it is determined that the data version information corresponding to the data to be synchronized does not exist, or the data version information corresponding to the data to be synchronized exists and is not expired, perform data synchronization operation using the locked data version information, determine corresponding data version information for the data to be synchronized with respect to the data to be synchronized sent by different apparatuses, so that when data synchronization is performed, by identifying the data version information of the data to be synchronized, a sequential synchronization order of the data to be synchronized can be ensured, a problem of a sequential disorder occurring in a current data synchronization process is avoided, particularly, a problem of a sequential disorder occurring when data synchronization is performed with respect to data in a distribution system is avoided, and accuracy of the data synchronization is effectively improved.
In this embodiment of the present application, version processors may be included for determining data version information of different pieces of service data, if service data is abstracted to records, then for the same service, data version information of pieces of latest service data for the service is stored in the version processor, and for different services, data version information of the latest service data of which the service type corresponds to the service type is stored in the version processor, and the storage manner may be a distributed storage manner, which is not specifically limited herein.
The present disclosure will now be described more fully hereinafter with reference to the detailed description of the preferred embodiments of the present disclosure and the accompanying drawings, in which some, but not all embodiments of are shown and described.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Example 1
Fig. 1 is a schematic flowchart of data synchronization methods provided in an embodiment of the present application.
Step 101: receiving data to be synchronized, and determining data version information corresponding to the data to be synchronized.
In step 101, receiving data to be synchronized may refer to receiving file data to be synchronized; or receiving message data to be synchronized; the method may also refer to receiving service data to be synchronized, and the type of the received service data to be synchronized is not limited herein.
After receiving the data to be synchronized, determining the service type of the received data to be synchronized, and further determining the data version information corresponding to the data to be synchronized.
Specifically, determining a service type of the data to be synchronized, and determining a service version identifier corresponding to the service type;
triggering a version processor corresponding to the service version identification according to the service version identification, and generating a data version identification for the data to be synchronized;
and taking the service version identification and the data version identification as data version information corresponding to the data to be synchronized.
The version processor is used for determining the service Type corresponding to Data when determining the Data version information of every Data, so that the service version identification (represented by version Biz Type) corresponding to the Data is determined based on the service Type, meanwhile, the version processor is used for assembling the Data version identification (represented by version Data ID) of the Data based on the service characteristics of the Data, and the Data version identification has -only property under the service version identification and can determine the Data only .
It should be noted that, in the same service types, only version information can exist for the same data, that is, the data version information corresponding to the service version identifier and the data version identifier can only identify data, so that, for multiple data version information of the same data to be synchronized, the problem of order disorder in the process of concurrently invoking synchronization in a distributed environment can be effectively avoided.
And 102, judging whether the data version information corresponding to the data to be synchronized exists, if so, executing to execute 103, otherwise, executing 105.
In step 102, according to the service version identifier and the data version identifier included in the data version to be synchronized, searching whether data version information caused by the service version identifier and the data version identifier exists in locally stored data version information;
if the data version information corresponding to the service version identification and the data version identification is found, judging that the data version information corresponding to the data to be synchronized exists;
if the data version information caused by the service version identifier and the data version identifier cannot be found, it is determined that the data version information corresponding to the data to be synchronized does not exist.
For example, according to the service version identifier contained in the data version to be synchronized, whether data version information caused by the service version identifier exists is searched;
if the data version information corresponding to the service version identifier is found, then step is performed to determine whether the found data version identifier of the data version information corresponding to the service version identifier corresponds to the data version identifier included in the data version to be synchronized, if not , it is determined that the data version information corresponding to the data to be synchronized does not exist, and if , it is determined that the data version information corresponding to the data to be synchronized exists.
Or, according to the data version identifier included in the data version to be synchronized, searching whether data version information caused by the data version identifier exists;
if the data version information corresponding to the data version identifier is found, then step is performed to determine whether the service version identifier of the found data version information corresponding to the data version identifier corresponds to the service version identifier included in the data version to be synchronized, if not , it is determined that the data version information corresponding to the data to be synchronized does not exist, and if , it is determined that the data version information corresponding to the data to be synchronized exists.
Step 103: judging whether the data version information corresponding to the data to be synchronized is overdue, and if so, executing step 104; if not, go to step 105.
In step 103, comparing the generation time corresponding to the data version information corresponding to the data to be synchronized with the generation date corresponding to the locally stored data version information;
if the generation time corresponding to the data version information corresponding to the data to be synchronized is later than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is not expired;
and if the generation time corresponding to the data version information corresponding to the data to be synchronized is earlier than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is expired.
In the embodiment of the present application, the manner of determining whether the data version information corresponding to the data to be synchronized is expired may be summarized as a logical comparison of the data version information, and then the corresponding comparison result may pass; may be pending; or may be outdated.
If the comparison result is passed, the data version information corresponding to the data to be synchronized is the current latest version information; if the comparison result is suspension, indicating that the data version information corresponding to the data to be synchronized is the current latest version information but the data version information currently executing data synchronization exists; and if the comparison result is overdue, indicating that the data version information corresponding to the data to be synchronized is not the latest version information.
In the embodiment of the present application, the version comparison rules corresponding to different types of data version information may also be different. For example: if the type of the data version information corresponding to the data to be synchronized is a digital type, comparing the data to be synchronized according to an ascending order, and if the number is larger, the version corresponding to the data to be synchronized is newer; if the type of the data version information corresponding to the data to be synchronized is a character type, comparing the data version information according to the descending order of the dictionary, and indicating that the version corresponding to the character is newer after the character is later; the type of the data version information corresponding to the data to be synchronized is a number type + a character type, and the larger the number is, the later the character is, the newer the corresponding version is.
Step 104: and when determining that the data version information corresponding to the data to be synchronized exists and is out of date, abandoning the data to be synchronized.
In step 104, when it is determined that the data version information corresponding to the data to be synchronized exists and is expired, it indicates that the data to be synchronized does not need to perform a synchronization operation, and the data to be synchronized is discarded.
Step 105: and when determining that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not overdue, locking the data version information corresponding to the data to be synchronized.
In step 105, when it is determined that the data version information corresponding to the data to be synchronized does not exist, or the data version information corresponding to the data to be synchronized exists and is not expired, it is indicated that the data version information corresponding to the data to be synchronized is the current latest version, and the database may be locked in a locking manner, that is, a Lock function is started.
It should be noted that, when it is determined that the data version information corresponding to the data to be synchronized does not exist, the data version information corresponding to the data to be synchronized may be directly stored, and the Lock function in the data version information is started.
Step 106: and performing data synchronization operation by using the locked data version information.
In step 106, a data synchronization operation is performed using the locked data version information, and when the data synchronization operation is completed, the Lock is released, that is, the Lock function is changed from the locked state to the unlocked state.
According to the scheme recorded in the embodiment of the application, the data to be synchronized is received, the data version information corresponding to the data to be synchronized is determined, when the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not expired, the data version information corresponding to the data to be synchronized is locked, data synchronization operation is performed by using the locked data version information, the corresponding data version information is determined for the data to be synchronized aiming at the data to be synchronized sent by different equipment, so that when data synchronization is performed, the sequential synchronization sequence of the data to be synchronized can be guaranteed by identifying the data version information of the data to be synchronized, the problem of sequence disorder in the existing data synchronization process is avoided, particularly the problem of sequence disorder when data synchronization is performed on data in a distribution system is avoided, and the accuracy of the data synchronization is effectively improved.
It should be noted that the execution subject of each step of the method provided in embodiment 1 may be the same device, or different devices may also be used as the execution subject of the method, for example, the execution subject of step 101 and step 102 may be device 1, and the execution subject of step 103 may be device 2, for example, the execution subject of step 101 may be device 1, and the execution subject of step 102 and step 103 may be device 2, and so on.
Example 2
Fig. 2 is a schematic flow chart of data synchronization methods provided in the embodiments of the present application.
Step 201: data to be synchronized is received.
Step 202: and determining data version information corresponding to the data to be synchronized.
Step 203: judging whether the data version information corresponding to the data to be synchronized exists, if so, executing step 206; otherwise, step 204 is performed.
Step 204: and saving data version information corresponding to the data to be synchronized.
Step 205: and locking the data version information corresponding to the data to be synchronized, and performing data synchronization operation by using the locked data version information.
Step 206: judging whether the data version information corresponding to the data to be synchronized is overdue, if so, executing 207; otherwise, 208 is performed.
Step 207: and when determining that the data version information corresponding to the data to be synchronized exists and is out of date, abandoning the data to be synchronized.
Step 208: and when the data version information corresponding to the data to be synchronized exists and is not overdue, locking the data version information corresponding to the data to be synchronized.
Step 209: and performing data synchronization operation by using the locked data version information.
Example 3
Fig. 3 is a schematic structural diagram of data synchronization devices provided in an embodiment of the present application, where the data synchronization device includes a receiving unit 31, a locking unit 32, and a synchronization unit 33, where:
the receiving unit 31 receives data to be synchronized and determines data version information corresponding to the data to be synchronized;
a locking unit 32, configured to lock the data version information corresponding to the data to be synchronized when it is determined that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not expired;
a synchronization unit 33 for performing a data synchronization operation using the locked data version information.
In another embodiments of the present application, the determining, by the receiving unit 31, data version information corresponding to the data to be synchronized includes:
determining the service type of the data to be synchronized, and determining a service version identifier corresponding to the service type;
triggering a version processor corresponding to the service version identification according to the service version identification, and generating a data version identification for the data to be synchronized;
and taking the service version identification and the data version identification as data version information corresponding to the data to be synchronized.
In another embodiments of the present application, the data synchronization apparatus further includes a judging unit 34, wherein:
the judging unit 34, after determining the data version information corresponding to the data to be synchronized, judges whether the data version information corresponding to the data to be synchronized exists;
if yes, step is performed to determine whether the data version information corresponding to the data to be synchronized has expired.
In another embodiments of the present application, the determining unit 34 determines whether data version information corresponding to the data to be synchronized exists, including:
according to the service version identification and the data version identification contained in the data version to be synchronized, whether data version information caused by the service version identification and the data version identification exists in locally stored data version information is searched;
if the data version information corresponding to the service version identification and the data version identification is found, judging that the data version information corresponding to the data to be synchronized exists;
if the data version information caused by the service version identifier and the data version identifier cannot be found, it is determined that the data version information corresponding to the data to be synchronized does not exist.
In another embodiments of the present application, the determining unit 34 determines whether the data version information corresponding to the data to be synchronized has expired, including:
comparing the generation time corresponding to the data version information corresponding to the data to be synchronized with the generation date corresponding to the locally stored data version information;
if the generation time corresponding to the data version information corresponding to the data to be synchronized is later than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is not expired;
and if the generation time corresponding to the data version information corresponding to the data to be synchronized is earlier than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is expired.
In another embodiments of the present application, the data synchronization device further comprises a discarding unit 35, wherein:
the discarding unit 35 discards the data to be synchronized when it is determined that the data version information corresponding to the data to be synchronized exists and is expired.
The data synchronization device determines corresponding data version information for the data to be synchronized, so that when data synchronization is performed, by identifying the data version information of the data to be synchronized, the sequential synchronization sequence of the data to be synchronized can be ensured, the problem of sequence disorder in the existing data synchronization process is avoided, especially the problem of sequence disorder when data synchronization is performed on data in a distribution system is avoided, and the accuracy of the data synchronization is effectively improved.
Furthermore, the present invention may take the form of a computer program product embodied on or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
It is to be understood that each flow and/or block in the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions which can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagram flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In typical configurations, a computing device includes or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises the series of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
Moreover, the present application may take the form of a computer program product embodied on or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1, A data synchronization method, comprising:
receiving data to be synchronized, and determining data version information corresponding to the data to be synchronized;
when determining that the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not overdue, locking the data version information corresponding to the data to be synchronized;
performing a data synchronization operation using the locked data version information;
determining data version information corresponding to the data to be synchronized, including:
determining the service type of the data to be synchronized, and determining a service version identifier corresponding to the service type;
triggering a version processor corresponding to the service version identification according to the service version identification, and generating a data version identification for the data to be synchronized, wherein the generated data version identification is obtained by assembling the version processor based on the service characteristics of the data to be synchronized;
and taking the service version identification and the data version identification as data version information corresponding to the data to be synchronized.
2. The data synchronization method of claim 1, wherein after determining data version information corresponding to the data to be synchronized, the method further comprises:
judging whether data version information corresponding to the data to be synchronized exists or not;
if yes, step is performed to determine whether the data version information corresponding to the data to be synchronized has expired.
3. The data synchronization method of claim 2, wherein determining whether data version information corresponding to the data to be synchronized exists comprises:
according to the service version identification and the data version identification contained in the data version to be synchronized, whether data version information caused by the service version identification and the data version identification exists in locally stored data version information is searched;
if the data version information corresponding to the service version identification and the data version identification is found, judging that the data version information corresponding to the data to be synchronized exists;
if the data version information caused by the service version identifier and the data version identifier cannot be found, it is determined that the data version information corresponding to the data to be synchronized does not exist.
4. The data synchronization method of claim 2, wherein determining whether the data version information corresponding to the data to be synchronized has expired comprises:
comparing the generation time corresponding to the data version information corresponding to the data to be synchronized with the generation date corresponding to the locally stored data version information;
if the generation time corresponding to the data version information corresponding to the data to be synchronized is later than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is not expired;
and if the generation time corresponding to the data version information corresponding to the data to be synchronized is earlier than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is expired.
5. The data synchronization method of any one of claims 1 to 4, , wherein the method further comprises:
and when determining that the data version information corresponding to the data to be synchronized exists and is out of date, abandoning the data to be synchronized.
The data synchronization device of , comprising:
the receiving unit is used for receiving data to be synchronized and determining data version information corresponding to the data to be synchronized;
the locking unit is used for locking the data version information corresponding to the data to be synchronized when the data version information corresponding to the data to be synchronized does not exist or the data version information corresponding to the data to be synchronized exists and is not overdue;
a synchronization unit performing a data synchronization operation using the locked data version information;
the receiving unit determines data version information corresponding to the data to be synchronized, and the determining includes:
determining the service type of the data to be synchronized, and determining a service version identifier corresponding to the service type;
triggering a version processor corresponding to the service version identification according to the service version identification, and generating a data version identification for the data to be synchronized, wherein the generated data version identification is obtained by assembling the version processor based on the service characteristics of the data to be synchronized;
and taking the service version identification and the data version identification as data version information corresponding to the data to be synchronized.
7. The data synchronization device of claim 6, wherein the data synchronization device further comprises: a judging unit, wherein:
the judging unit judges whether the data version information corresponding to the data to be synchronized exists or not after the data version information corresponding to the data to be synchronized is determined;
if yes, step is performed to determine whether the data version information corresponding to the data to be synchronized has expired.
8. The data synchronization device according to claim 7, wherein the determining unit determines whether data version information corresponding to the data to be synchronized exists, including:
according to the service version identification and the data version identification contained in the data version to be synchronized, whether data version information caused by the service version identification and the data version identification exists in locally stored data version information is searched;
if the data version information corresponding to the service version identification and the data version identification is found, judging that the data version information corresponding to the data to be synchronized exists;
if the data version information caused by the service version identifier and the data version identifier cannot be found, it is determined that the data version information corresponding to the data to be synchronized does not exist.
9. The data synchronization device according to claim 7, wherein the determining unit determines whether the data version information corresponding to the data to be synchronized has expired, and includes:
comparing the generation time corresponding to the data version information corresponding to the data to be synchronized with the generation date corresponding to the locally stored data version information;
if the generation time corresponding to the data version information corresponding to the data to be synchronized is later than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is not expired;
and if the generation time corresponding to the data version information corresponding to the data to be synchronized is earlier than the generation date corresponding to the locally stored data version information, determining that the data version information corresponding to the data to be synchronized is expired.
10. The data synchronization device of any of claims 6 to 9, further comprising a discarding unit, wherein:
and the discarding unit abandons the data to be synchronized when determining that the data version information corresponding to the data to be synchronized exists and is out of date.
CN201610405702.7A 2016-06-08 2016-06-08 data synchronization method and device Active CN106878365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610405702.7A CN106878365B (en) 2016-06-08 2016-06-08 data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610405702.7A CN106878365B (en) 2016-06-08 2016-06-08 data synchronization method and device

Publications (2)

Publication Number Publication Date
CN106878365A CN106878365A (en) 2017-06-20
CN106878365B true CN106878365B (en) 2020-01-31

Family

ID=59239633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610405702.7A Active CN106878365B (en) 2016-06-08 2016-06-08 data synchronization method and device

Country Status (1)

Country Link
CN (1) CN106878365B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107590207B (en) * 2017-08-24 2020-09-01 阿里巴巴集团控股有限公司 Data synchronization method and device and electronic equipment
CN110968646B (en) * 2019-12-20 2023-06-06 广东睿住智能科技有限公司 Embedded system database synchronization method, device and storage medium
CN112487007A (en) * 2020-12-01 2021-03-12 银清科技有限公司 Multi-inter-network flow synchronous management method, device and system
CN114138196A (en) * 2021-11-26 2022-03-04 南方电网大数据服务有限公司 Power system data storage method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN103605809A (en) * 2013-12-10 2014-02-26 厦门诚创网络有限公司 Data synchronization method
CN103686300A (en) * 2013-11-18 2014-03-26 中兴通讯股份有限公司 Service guide synchronization method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8489566B2 (en) * 2008-04-08 2013-07-16 International Business Machines Corporation Optimistic locking in online and offline environments
CN102143193B (en) * 2010-01-29 2014-01-22 国际商业机器公司 Data synchronization method and system
CN102193841B (en) * 2010-03-04 2013-07-31 阿里巴巴集团控股有限公司 Backup method and device of Subversion configuration database
CN102299904B (en) * 2010-06-23 2014-03-19 阿里巴巴集团控股有限公司 System and method for realizing service data backup
CN101908061A (en) * 2010-07-02 2010-12-08 互动在线(北京)科技有限公司 Method and device for synchronizing entries
US10176238B2 (en) * 2014-09-26 2019-01-08 Oracle International Corporation Integrating object-based data integration tool with a version control system in centralized and decentralized environments
CN105630819B (en) * 2014-11-03 2019-06-11 阿里巴巴集团控股有限公司 A kind of data cached method for refreshing and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073494A (en) * 2010-12-30 2011-05-25 用友软件股份有限公司 Method and device for managing cache data
CN103686300A (en) * 2013-11-18 2014-03-26 中兴通讯股份有限公司 Service guide synchronization method and system
CN103605809A (en) * 2013-12-10 2014-02-26 厦门诚创网络有限公司 Data synchronization method

Also Published As

Publication number Publication date
CN106878365A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878365B (en) data synchronization method and device
CN106897342B (en) Data verification method and equipment
CN107590207B (en) Data synchronization method and device and electronic equipment
CN109634682B (en) Configuration file updating method and device for application program
CN108134812B (en) Data processing method and device
CN110717536A (en) Method and device for generating training sample
CN110032568B (en) Data structure reading and updating method and device, and electronic equipment
CN111401766A (en) Model, service processing method, device and equipment
CN111124480A (en) Application package generation method and device, electronic equipment and storage medium
CN107609011B (en) Database record maintenance method and device
CN106201839B (en) Information loading method and device for business object
CN111784468A (en) Account association method and device and electronic equipment
CN116302064A (en) Integrated code analysis method, integrated code analysis device, electronic equipment and storage medium
CN111245897A (en) Data processing method, device, system, storage medium and processor
CN109800005A (en) A kind of hot update method of client and device
CN107168866B (en) Parameter analysis method and device for configuration file
CN110928941A (en) Data fragment extraction method and device
CN107562533B (en) Data loading processing method and device
CN111125087A (en) Data storage method and device
CN108023920B (en) Data packet transmission method, equipment and application interface
CN111427871B (en) Data processing method, device and equipment
CN115659045A (en) User operation identification method and device, storage medium and electronic equipment
CN107291439B (en) Target incremental data construction method and device
CN110020348B (en) Early warning method and device for circled events
CN111427863A (en) Data migration method, device and equipment based on domain model

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200922

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Patentee after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Ltd.