CN102724319B - Data synchronization method and system, and associated storage server - Google Patents

Data synchronization method and system, and associated storage server Download PDF

Info

Publication number
CN102724319B
CN102724319B CN201210211322.1A CN201210211322A CN102724319B CN 102724319 B CN102724319 B CN 102724319B CN 201210211322 A CN201210211322 A CN 201210211322A CN 102724319 B CN102724319 B CN 102724319B
Authority
CN
China
Prior art keywords
new data
storage server
data
night
depth
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
CN201210211322.1A
Other languages
Chinese (zh)
Other versions
CN102724319A (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.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China Co 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 Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201210211322.1A priority Critical patent/CN102724319B/en
Publication of CN102724319A publication Critical patent/CN102724319A/en
Application granted granted Critical
Publication of CN102724319B publication Critical patent/CN102724319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data synchronization method and system, and an associated storage server. The data synchronization method comprises the following steps that: a first-type storage server receives first updating data transmitted by a second-type storage server; when the second updating data which are determined by the first-type storage server and correspond to the first updating data exist, the first updating data and the second updating data are processed so as to obtain third updating data, wherein the data to be updated, which respectively correspond to the first updating data and the second updating data and are currently stored, are identical; data to be updated, which are locally stored, are updated by using the third updating data; and the third updating data are transmitted to the second-type storage server and used for updating the data to be updated, which are stored in the second-type storage server. With the adoption of the scheme provided by the embodiment of the invention, when identical data of different storage servers are simultaneously updated, the data synchronization among the different storage servers can be realized.

Description

A kind of method of data synchronization, associated storage servers and system
Technical field
The present invention relates to the data synchronization technology field in technical field of data processing, particularly relate to a kind of method of data synchronization, associated storage servers and system.
Background technology
At present, based on the needs of practical business, frequent needs store identical data on different storage servers, and when operating the data on a wherein storage server, when data are changed, need by the data syn-chronization of change on another storage server, to keep the data consistent that these two different storage servers store.
Wherein, the data syn-chronization operation carried out can have multiple, such as, when deleting data on a storage server, deletes (DELETE) operation, these data of corresponding deletion on another storage server by data syn-chronization; When during data inserting, inserting (INSERT) operation by data syn-chronization, these data of corresponding insertion on another storage server on a storage server; When on a storage server more new data time, by data synchronization updating (UPDATE) operation, another storage server upgrades corresponding data accordingly.
But, along with the variation of service application, when processing for some service application, as sociability knowledge question business, the different storage server of frequent appearance two carries out more news to the identical data stored separately simultaneously, now, according to existing method of data synchronization, two storage servers can by the data syn-chronization of each self refresh to the other side, if the data of these two each self refreshes of storage server are different, then after carrying out data syn-chronization, two storage servers all store the data that the other side upgrades, thus cause the data of storage inconsistent, i.e. data synchronous on these two storage servers unrealized.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization, associated storage servers and system, in order to solve the nonsynchronous problem of data caused because different storage server upgrades identical data simultaneously existed in prior art.
The embodiment of the present invention provides a kind of method of data synchronization, comprising:
The first more new data that first kind storage server receives that Second Type storage server sends;
When have that described first kind storage server determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
The depth of the night in of using described the, new data upgrades the local data described to be updated stored;
By described the depth of the night new data be sent to described Second Type storage server, for upgrading the data described to be updated stored in described Second Type storage server.
The embodiment of the present invention also provides a kind of method of data synchronization, comprising:
Second Type storage server is to first kind storage server transmission first more new data;
Receive that described first kind storage server returns the depth of the night new data, wherein, when have that described first kind storage server determines with described first more new data corresponding second more new data time, the depth of the night in of described new data be described first kind storage server to described first more new data and described second more new data process the data obtained, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
The depth of the night in of using described the, new data upgrades the local data described to be updated stored.
The embodiment of the present invention also provides a kind of storage server, and described storage server is first kind storage server, comprising:
First receiving element, for receiving the first more new data that Second Type storage server sends;
Processing unit, for when exist this storage server determine with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
First updating block, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored;
First transmitting element, for by described the depth of the night new data be sent to described Second Type storage server, for upgrading the data described to be updated stored in described Second Type storage server.
The embodiment of the present invention also provides a kind of storage server, and described storage server is Second Type storage server, comprising:
Second transmitting element, for sending the first more new data to first kind storage server;
Second receiving element, for receive that described first kind storage server returns the depth of the night new data, wherein, when have that described first kind storage server determines with described first more new data corresponding second more new data time, the depth of the night in of described new data be described first kind storage server to described first more new data and described second more new data process the data obtained, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
Second updating block, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored.
The embodiment of the present invention also provides a kind of data synchronous system, comprising: first kind storage server and Second Type storage server, wherein:
Described first kind storage server, for receiving the first more new data that described Second Type storage server sends; And when have that described first kind storage server determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding; And new data upgrades the local data described to be updated stored the depth of the night in of using described the; And by described the depth of the night new data be sent to described Second Type storage server;
Described Second Type storage server, for sending the described first more new data to described first kind storage server; And new data depth of the night the in of receive that described first kind storage server returns described; And new data upgrades the local data described to be updated stored the depth of the night in of using described the.
Beneficial effect of the present invention comprises:
In the method that the embodiment of the present invention provides, divide needing the type of the storage server carrying out data syn-chronization, wherein, when first kind storage server and Second Type storage server determine respectively corresponding second more new data and first more new data time, Second Type storage server can be determined first more new data be sent to first kind storage server, then by first kind storage server corresponding first more new data and second more new data process, the new data depth of the night in of obtaining, this the depth of the night new data be the data of finally carrying out Data Update and using, then the depth of the night in that first kind storage server using the, new data upgrades the data to be updated of the local correspondence stored, and by the depth of the night new data be sent to Second Type storage server, for upgrading the data to be updated of the correspondence stored in Second Type storage server, thus make first kind storage server and Second Type storage server all use this depth of the night new data upgrade these corresponding data to be updated, and then realize data syn-chronization.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, is used from explanation the present invention, is not construed as limiting the invention with the embodiment of the present invention one.In the accompanying drawings:
One of flow chart of the method for data synchronization that Fig. 1 provides for the embodiment of the present invention;
The flow chart two of the method for data synchronization that Fig. 2 provides for the embodiment of the present invention;
The flow chart of method of data synchronization of Fig. 3 for providing in the embodiment of the present invention 1;
The flow chart of method of data synchronization of Fig. 4 for providing in the embodiment of the present invention 2;
The structural representation of storage server of Fig. 5 for providing in the embodiment of the present invention 3;
The structural representation of storage server of Fig. 6 for providing in the embodiment of the present invention 4;
The structural representation of data synchronous system of Fig. 7 for providing in the embodiment of the present invention 5.
Embodiment
In order to provide the data syn-chronization implementation when different storage server upgrades identical data simultaneously, embodiments provide a kind of method of data synchronization, associated storage servers and system, below in conjunction with Figure of description, the preferred embodiments of the present invention are described, be to be understood that, preferred embodiment described herein, only for instruction and explanation of the present invention, is not intended to limit the present invention.And when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
The embodiment of the present invention provides a kind of method of data synchronization, is applied to first kind storage server, as shown in Figure 1, comprising:
The first more new data that step 101, first kind storage server receive that Second Type storage server sends.
Step 102, when have that first kind storage server determines with first more new data corresponding second more new data time, to first more new data and second more new data process, the new data depth of the night in of obtaining, wherein, first more new data is identical with the data to be updated of the second more current storage that new data is respectively corresponding.
Step 103, new data upgrades local these data to be updated stored use the depth of the night.
Step 104, by the depth of the night new data be sent to Second Type storage server, for upgrading these data to be updated stored in Second Type storage server.
Above-mentioned steps 103 and step 104 do not have strict sequencing.
Wherein, first kind storage server is to the processing mode of the first more new data and second more new data, can arrange flexibly according to the needs of the actual characteristic of data and practical business, such as, can be by first more new data and second upgrade Data Integration to together with, the new data depth of the night in of obtaining the; Also can from first more new data and second more select the data that evening time upgraded occurs new data, as the depth of the night new data; Other various data processing method of the prior art can also be adopted, be no longer described in detail at this.
Accordingly, the embodiment of the present invention also provides a kind of method of data synchronization, is applied to Second Type storage server, as shown in Figure 2, comprising:
Step 201, Second Type storage server are to first kind storage server transmission first more new data.
Step 202, receive that first kind storage server returns the depth of the night new data, wherein, when have that first kind storage server determines with first more new data corresponding second more new data time, the depth of the night in of new data be first kind storage server to first more new data and second more new data process the data obtained, wherein, first more new data is identical with the data to be updated of the second more current storage that new data is respectively corresponding.
Step 203, new data upgrades the local corresponding data stored use the depth of the night.
Below in conjunction with accompanying drawing, with specific embodiment, method provided by the invention is described in detail.
Embodiment 1:
In the embodiment of the present invention 1, for the data syn-chronization between two storage servers, the method of data synchronization that the present invention proposes is described in detail, wherein, a storage server is as first kind storage server, another storage server, as Second Type storage server, as shown in Figure 3, specifically comprises following treatment step:
Step 301, first kind storage server and Second Type storage server, determine more new data respectively separately, wherein, for the ease of distinguishing, the more new data determined by first kind storage server is called the second more new data, and the more new data determined by Second Type storage server is called the first more new data.
In this step, Second Type storage server is determining first more after new data, by first more new data send to first kind storage server, specifically can send by carrying in the data synchronization updating request sending to first kind storage server.
Step 302, first kind storage server judge whether to exist the corresponding first more new data and second more new data, if existed, enter step 303, if there is no, enter step 304.Wherein, first more new data more new data is corresponding with second, represent first more new data with second more new data to distinguish the data to be updated of corresponding current storage identical.
Concrete, can be judge whether exist in fixed time section, this fixed time section can be in this Data Update cycle, also can in the receive that Second Type storage server sends first setting duration more after new data, also can for determining in the second setting duration more after new data.
Such as, receive that Second Type storage server sends in the ban first more new data time, judge receiving in the first setting duration more after new data, whether exist and this first the second more new data that more new data is corresponding; Determine in the ban second more new data time, judge determining in the second setting duration more after new data, whether receive and this second the first more new data that more new data is corresponding.
Step 303, first kind storage server to corresponding first more new data and second more new data process, the new data depth of the night in of obtaining.
About concrete processing mode can be arranged as required flexibly, be no longer described in detail at this.
Obtain in this step this depth of the night new data, be the follow-up data used when finally carrying out Data Update.
In step 304, this step, when first kind storage server receives the first more new data that Second Type storage server sends, and do not have that first kind storage server determines with this first more new data corresponding second more new data time, by this first more new data is defined as the depth of the night new data;
When the second more new data determined by first kind storage server, and do not receive that Second Type storage server sends with second more new data corresponding first more new data time, by this second more new data is defined as the depth of the night new data.
Determine in this step this depth of the night new data, be the follow-up data used when finally carrying out Data Update.
Step 305, first kind storage server use this depth of the night new data upgrade the data to be updated of the local correspondence stored.
Step 306, first kind storage server by this depth of the night new data be sent to Second Type storage server, specifically can send by carrying in sending to the data synchronization updating of Second Type storage server to indicate.
Step 307, Second Type storage server receive this depth of the night new data after, use this depth of the night new data upgrade the data to be updated of the local correspondence stored.
In the embodiment of the present invention 1, between above-mentioned steps 305 and step 306, and and step 307 between, there is no strict sequencing.
Adopt the above-mentioned method of data synchronization that the embodiment of the present invention 1 provides, for the situation of carrying out data syn-chronization between two storage servers, the type of storage server is divided, wherein, when first kind storage server and Second Type storage server determine respectively corresponding second more new data and first more new data time, Second Type storage server can be determined first more new data be sent to first kind storage server, then by first kind storage server to corresponding first more new data and second more new data process, the new data depth of the night in of obtaining, this the depth of the night new data be the data of finally carrying out Data Update and using, then the depth of the night in that first kind storage server using the, new data upgrades the data to be updated of the local correspondence stored, and by the depth of the night new data be sent to Second Type storage server, for upgrading the data to be updated of the correspondence stored in Second Type storage server, thus make first kind storage server and Second Type storage server all use this depth of the night new data upgrade these corresponding data to be updated, and then realize data syn-chronization.
Embodiment 2:
In the embodiment of the present invention 2, for the data syn-chronization between at least three storage servers, the method of data synchronization that the present invention proposes is described in detail, wherein, a storage server is as first kind storage server, all the other storage servers, all as Second Type storage server, as shown in Figure 4, specifically comprise following treatment step:
Step 401, first kind storage server and multiple Second Type storage server, determine more new data respectively separately, wherein, for the ease of distinguishing, the more new data determined by first kind storage server is called the second more new data, the more new data that each Second Type storage server is determined all is called the first more new data.
In this step, each Second Type storage server is determining first more after new data, by first more new data send to first kind storage server, specifically can send by carrying in the data synchronization updating request sending to first kind storage server.
Step 402, first kind storage server judge whether to exist the corresponding first more new data and second more new data, if existed, enter step 403, if there is no, enter step 404.Wherein, first more new data more new data is corresponding with second, represent first more new data with second more new data to distinguish the data to be updated of corresponding current storage identical.
Concrete, can be judge whether exist in fixed time section, this fixed time section can be in this Data Update cycle, also can in the setting duration after receive that first Second Type storage server send first more new data, also can for determining in the second setting duration more after new data.
Such as, receive that Second Type storage server sends in the ban first more new data time, judge receiving in the first setting duration more after new data, whether exist and this first the second more new data that more new data is corresponding; Determine in the ban second more new data time, judge determining in the second setting duration more after new data, whether receive and this second the first more new data that more new data is corresponding.
Step 403, first kind storage server to corresponding first more new data and second more new data process, the new data depth of the night in of obtaining.
In this step, if with second more new data corresponding first more new data be multiple, namely the receive that multiple Second Type storage server sends respectively corresponding multiple first more new data, then to multiple first more new data and second more new data process, the new data depth of the night in of obtaining.
About concrete processing mode can be arranged as required flexibly, be no longer described in detail at this.
Obtain in this step this depth of the night new data, be the follow-up data used when finally carrying out Data Update.
In step 404, this step, when the second more new data determined by first kind storage server, and do not receive that Second Type storage server sends with second more new data corresponding first more new data time, by this second more new data is defined as the depth of the night new data.
When the first more new data that first kind storage server only receives that Second Type storage server sends, and do not have that first kind storage server determines with this first more new data corresponding second more new data time, by this first more new data is defined as the depth of the night new data;
When the corresponding multiple first more new data that first kind storage server receives that multiple Second Type storage server sends respectively, and do not have that first kind storage server determines with first more new data corresponding second more new data time, to the plurality of first more new data process, the new data depth of the night in of obtaining.
Determine in this step this depth of the night new data, be the follow-up data used when finally carrying out Data Update.
Step 405, first kind storage server use this depth of the night new data upgrade the data to be updated of the local correspondence stored.
Step 406, first kind storage server by this depth of the night new data be sent to each Second Type storage server, namely being sent to all Second Type storage servers needing to carry out data syn-chronization with first kind storage server, specifically can sending by carrying in sending to the data synchronization updating of Second Type storage server to indicate.
Step 407, Second Type storage server receive this depth of the night new data after, use this depth of the night new data upgrade the data to be updated of the local correspondence stored.
In the embodiment of the present invention 2, between above-mentioned steps 405 and step 406, and and step 407 between, there is no strict sequencing.
Adopt the above-mentioned method of data synchronization that the embodiment of the present invention 2 provides, for the situation of carrying out data syn-chronization between at least three storage servers, the type of storage server is divided, wherein, when first kind storage server and Second Type storage server determine respectively corresponding second more new data and first more new data time, Second Type storage server can be determined first more new data be sent to first kind storage server, then by first kind storage server to corresponding first more new data and second more new data process, the new data depth of the night in of obtaining, when corresponding multiple first kind storage server that first kind storage server receives that multiple Second Type storage server sends respectively, by corresponding multiple first more new data process, the new data depth of the night in of obtaining.
This depth of the night new data be the data of finally carrying out Data Update and using, then the depth of the night in that first kind storage server using the, new data upgrades the data to be updated of the local correspondence stored, and by the depth of the night new data be sent to all Second Type storage servers, for upgrading the data to be updated of the correspondence stored in each Second Type storage server, thus make the multiple Second Type storage server of first kind storage server and this all use this depth of the night new data upgrade these corresponding data to be updated, and then realize data syn-chronization.
In the said method that the embodiment of the present invention 1 and embodiment 2 provide, the handling process of the data synchronization updating operation in data syn-chronization has been described in detail, for the data syn-chronization deletion action in data syn-chronization and data syn-chronization update, existing method of data synchronization can be adopted to carry out, namely can realize data syn-chronization, the handling process that concrete data syn-chronization is deleted and data syn-chronization inserts no longer is described in detail at this.
In the said method that the embodiment of the present invention 1 and embodiment 2 provide, between first kind storage server and Second Type storage server carry out more new data transmission time, transfer of data can be carried out by application queue, and to needing the more new data of transmission to pack, to compress and after encryption, transmitted by application queue again, thus ensure that the fail safe of transfer of data.
Embodiment 3:
Based on same inventive concept, according to the method for data synchronization that the above embodiment of the present invention provides, correspondingly, the embodiment of the present invention 3 additionally provides a kind of storage server, this storage server is first kind storage server, and its structural representation as shown in Figure 5, specifically comprises:
First receiving element 501, for receiving the first more new data that Second Type storage server sends;
Processing unit 502, for when exist this storage server determine with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
First updating block 503, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored;
First transmitting element 504, for by described the depth of the night new data be sent to described Second Type storage server, for upgrading the data described to be updated stored in described Second Type storage server.
Further, the first receiving element 501, specifically for the corresponding multiple first more new data receiving that multiple Second Type storage server sends respectively;
Processing unit 502, specifically for described multiple first more new data and described second more new data process, the new data depth of the night in of obtaining.
Further, processing unit 502, also for ought not have that this storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, the new data depth of the night in that more new data being defined as the by described first;
When do not have that this storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, to described multiple first more new data process, the new data depth of the night in of obtaining.
Further, processing unit 502, also for determining the second more new data when this storage server, and do not receive that described Second Type storage server sends with described second more new data corresponding first more new data time, the new data depth of the night in that more new data being defined as the by described second.
Embodiment 4:
Based on same inventive concept, according to the method for data synchronization that the above embodiment of the present invention provides, correspondingly, the embodiment of the present invention 4 additionally provides a kind of storage server, this storage server is Second Type storage server, and its structural representation as shown in Figure 6, specifically comprises:
Second transmitting element 601, for sending the first more new data to first kind storage server;
Second receiving element 602, for receive that described first kind storage server returns the depth of the night new data, wherein, when have that described first kind storage server determines with described first more new data corresponding second more new data time, the depth of the night in of described new data be described first kind storage server to described first more new data and described second more new data process the data obtained, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
Second updating block 603, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored.
Further, when have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, described second receiving element 602 receive described the depth of the night new data be described first kind storage server to described multiple first more new data and described second more new data process the data obtained;
When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, described second receiving element 602 receive described the depth of the night new data be the described first more new data;
When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, described second receiving element 602 receive described the depth of the night new data be described first kind storage server to described multiple first more new data process the data obtained.
Embodiment 5:
Based on same inventive concept, according to the method for data synchronization that the above embodiment of the present invention provides, correspondingly, the embodiment of the present invention 5 additionally provides a kind of data synchronous system, its structural representation as shown in Figure 7, specifically comprise: first kind storage server 701 and Second Type storage server 702, wherein:
First kind storage server 701, for receiving the first more new data that Second Type storage server 702 sends; And when have that first kind storage server 701 determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining, wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding; And new data upgrades the local data described to be updated stored the depth of the night in of using described the; And by described the depth of the night new data be sent to Second Type storage server 702;
Second Type storage server 702, for sending the described first more new data to first kind storage server 701; And new data depth of the night the in of receive that first kind storage server 701 returns described; And new data upgrades the local data described to be updated stored the depth of the night in of using described the.
Further, Second Type storage server 702 is multiple;
First kind storage server 701, specifically for when have that first kind storage server 701 determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server 702 sends respectively corresponding multiple first more new data time, to described multiple first more new data and described second more new data process, the new data depth of the night in of obtaining; And
Also for ought not have that first kind storage server 701 determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server 702 sends described first more new data time, the new data depth of the night in that more new data being defined as the by described first;
When do not have that first kind storage server 701 determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server 702 sends respectively corresponding multiple first more new data time, to described multiple first more new data process, the new data depth of the night in of obtaining;
When the second more new data determined by first kind storage server 701, and do not receive that Second Type storage server 702 sends with described second more new data corresponding first more new data time, the new data depth of the night in that more new data being defined as the by described second.
The function of above-mentioned each module may correspond to the respective handling step in flow process shown in Fig. 1 to Fig. 4, does not repeat them here.
In sum, the scheme that the embodiment of the present invention provides, comprising: the first more new data that first kind storage server receives that Second Type storage server sends; And when have that first kind storage server determines with first more new data corresponding second more new data time, to first more new data and second more new data process, the new data depth of the night in of obtaining, wherein, first more new data is identical with the data to be updated of the second more current storage that new data is respectively corresponding; And new data upgrades local these data to be updated stored the depth of the night in of using the; And by the depth of the night new data be sent to Second Type storage server, for upgrading these data to be updated stored in Second Type storage server.The scheme adopting the embodiment of the present invention to provide, when different storage server upgrades identical data simultaneously, can realize the data syn-chronization between this different storage server.
The data synchronous system that the embodiment of the application provides realizes by computer program.Those skilled in the art should be understood that; above-mentioned Module Division mode is only the one in numerous Module Division mode; if be divided into other modules or do not divide module, as long as data synchronous system has above-mentioned functions, all should within the protection range of the application.
The application describes with reference to according to the flow chart of the method for the embodiment of the present application, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a method of data synchronization, is characterized in that, comprising:
The first more new data that first kind storage server receives that Second Type storage server sends;
When have that described first kind storage server determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, the new data depth of the night in that more new data being defined as the by described first; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, to described multiple first more new data process, the new data depth of the night in of obtaining; Wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
The depth of the night in of using described the, new data upgrades the local data described to be updated stored;
By described the depth of the night new data be sent to described Second Type storage server, for upgrading the data described to be updated stored in described Second Type storage server.
2. the method for claim 1, is characterized in that, the first more new data that first kind storage server receives that Second Type storage server sends, and is specially:
The corresponding multiple first more new data that first kind storage server receives that multiple Second Type storage server sends respectively;
To described first more new data and described second more new data process, the new data depth of the night in of obtaining, is specially:
To described multiple first more new data and described second more new data process, the new data depth of the night in of obtaining.
3. method as claimed in claim 1 or 2, is characterized in that, before in the depth of the night using described the, new data upgrades the local data described to be updated stored, also comprises:
When the second more new data determined by described first kind storage server, and do not receive that described Second Type storage server sends with described second more new data corresponding first more new data time, the new data depth of the night in that more new data being defined as the by described second.
4. a method of data synchronization, is characterized in that, comprising:
Second Type storage server is to first kind storage server transmission first more new data;
Receive that described first kind storage server returns the depth of the night new data, wherein, when have that described first kind storage server determines with described first more new data corresponding second more new data time, the depth of the night in of described new data be described first kind storage server to described first more new data and described second more new data process the data obtained; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, the depth of the night in of described the, new data is the described first more new data; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, the depth of the night in of described new data be described first kind storage server to described multiple first more new data process the data obtained; Wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
The depth of the night in of using described the, new data upgrades the local data described to be updated stored.
5. method as claimed in claim 4, it is characterized in that, when have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, the depth of the night in of described new data be described first kind storage server to described multiple first more new data and described second more new data process the data obtained.
6. a storage server, described storage server is first kind storage server, it is characterized in that, comprising:
First receiving element, for receiving the first more new data that Second Type storage server sends;
Processing unit, for when have that this storage server determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining the; When do not have that this storage server determines with described first the second more new data that more new data is corresponding, and only receive that a Second Type storage server sends described first more new data time, the new data depth of the night in that more new data being defined as the by described first; When do not have that this storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, to described multiple first more new data process, the new data depth of the night in of obtaining; Wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
First updating block, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored;
First transmitting element, for by described the depth of the night new data be sent to described Second Type storage server, for upgrading the data described to be updated stored in described Second Type storage server.
7. storage server as claimed in claim 6, is characterized in that, described first receiving element, specifically for the corresponding multiple first more new data receiving that multiple Second Type storage server sends respectively;
Described processing unit, specifically for described multiple first more new data and described second more new data process, the new data depth of the night in of obtaining.
8. storage server as claimed in claims 6 or 7, it is characterized in that, described processing unit, also for determining the second more new data when this storage server, and do not receive that described Second Type storage server sends with described second more new data corresponding first more new data time, the new data depth of the night in that more new data being defined as the by described second.
9. a storage server, described storage server is Second Type storage server, it is characterized in that, comprising:
Second transmitting element, for sending the first more new data to first kind storage server;
Second receiving element, for receive that described first kind storage server returns the depth of the night new data, wherein, when have that described first kind storage server determines with described first more new data corresponding second more new data time, the depth of the night in of described new data be described first kind storage server to described first more new data and described second more new data process the data obtained; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, described second receiving element receive described the depth of the night new data be the described first more new data; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, described second receiving element receive described the depth of the night new data be described first kind storage server to described multiple first more new data process the data obtained; Wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding;
Second updating block, the depth of the night in of for using described the, new data upgrades the local data described to be updated stored.
10. storage server as claimed in claim 9, it is characterized in that, when have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, described second receiving element receive described the depth of the night new data be described first kind storage server to described multiple first more new data and described second more new data process the data obtained.
11. 1 kinds of data synchronous systems, is characterized in that, comprising: first kind storage server and Second Type storage server, wherein:
Described first kind storage server, for receiving the first more new data that described Second Type storage server sends; And when have that described first kind storage server determines with described first more new data corresponding second more new data time, to described first more new data and described second more new data process, the new data depth of the night in of obtaining; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and only receive that Second Type storage server sends described first more new data time, the new data depth of the night in that more new data being defined as the by described first; When do not have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, to described multiple first more new data process, the new data depth of the night in of obtaining; Wherein, described first more new data is identical with the data to be updated of the described second more current storage that new data is respectively corresponding; And new data upgrades the local data described to be updated stored the depth of the night in of using described the; And by described the depth of the night new data be sent to described Second Type storage server;
Described Second Type storage server, for sending the described first more new data to described first kind storage server; And new data depth of the night the in of receive that described first kind storage server returns described; And new data upgrades the local data described to be updated stored the depth of the night in of using described the.
12. systems as claimed in claim 11, it is characterized in that, described first kind storage server, specifically for when have that described first kind storage server determines with described first the second more new data that more new data is corresponding, and receive that multiple Second Type storage server sends respectively corresponding multiple first more new data time, to described multiple first more new data and described second more new data process, the new data depth of the night in of obtaining; And
When the second more new data determined by described first kind storage server, and do not receive that described Second Type storage server sends with described second more new data corresponding first more new data time, the new data depth of the night in that more new data being defined as the by described second.
CN201210211322.1A 2012-06-20 2012-06-20 Data synchronization method and system, and associated storage server Active CN102724319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210211322.1A CN102724319B (en) 2012-06-20 2012-06-20 Data synchronization method and system, and associated storage server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210211322.1A CN102724319B (en) 2012-06-20 2012-06-20 Data synchronization method and system, and associated storage server

Publications (2)

Publication Number Publication Date
CN102724319A CN102724319A (en) 2012-10-10
CN102724319B true CN102724319B (en) 2015-03-18

Family

ID=46949979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210211322.1A Active CN102724319B (en) 2012-06-20 2012-06-20 Data synchronization method and system, and associated storage server

Country Status (1)

Country Link
CN (1) CN102724319B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708911A (en) * 2015-11-18 2017-05-24 阿里巴巴集团控股有限公司 Method and device for synchronizing data files in cloud environment
CN105915573A (en) * 2015-12-12 2016-08-31 乐视移动智能信息技术(北京)有限公司 Mobile terminal file synchronization method, device and system
CN107168642B (en) * 2017-03-30 2020-05-01 北京奇艺世纪科技有限公司 Data storage method and system
CN110113412A (en) * 2019-04-30 2019-08-09 北京奇艺世纪科技有限公司 A kind of method of data synchronization and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007056954A1 (en) * 2005-11-16 2007-05-24 Huawei Technologies Co., Ltd. A method for processing data synchronization and client terminal, server and data synchronization system thereof
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers
CN101689164A (en) * 2007-06-22 2010-03-31 微软公司 The equity that server is assisted synchronously
CN102016834A (en) * 2008-04-28 2011-04-13 微软公司 Conflict resolution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007056954A1 (en) * 2005-11-16 2007-05-24 Huawei Technologies Co., Ltd. A method for processing data synchronization and client terminal, server and data synchronization system thereof
CN101689164A (en) * 2007-06-22 2010-03-31 微软公司 The equity that server is assisted synchronously
CN102016834A (en) * 2008-04-28 2011-04-13 微软公司 Conflict resolution
CN101426026A (en) * 2008-09-17 2009-05-06 北京六维世纪网络技术有限公司 Method and system for data synchronization between multiple servers

Also Published As

Publication number Publication date
CN102724319A (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN109413127B (en) Data synchronization method and device
CN110019125B (en) Database management method and device
EP3125501B1 (en) File synchronization method, server, and terminal
CN102724319B (en) Data synchronization method and system, and associated storage server
CN107231400B (en) Data synchronization method and device
CN106709066B (en) Data synchronization method and device
CN103685385A (en) Method, system and device for file synchronization
CN104796445A (en) Resource synchronization method and device by server nodes
CN109032796B (en) Data processing method and device
CN105553684A (en) Communication system and applied router upgrading method thereof
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
CN104486373A (en) Lock resource migration method, nodes and distributed system
CN104135674A (en) Method of obtaining OSD (On-Screen Display) theme file, method of providing OSD theme file, digital television, cloud server and updating system of OSD theme file
CN104517067A (en) Method, device and system for data access
CN110209680A (en) Data-updating method, device and electronic device based on Hive external table
US20190028420A1 (en) Message sending method and terminal device
CN105554135A (en) Method and device for synchronizing meta information among digital nodes
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN104113594A (en) Method and system for file uploading based on JS uploading assembly
CN101526959A (en) Data storing method and device
US10680877B2 (en) Information transmission, sending, and acquisition method and device
US11354141B2 (en) User interface optimization for delayed data
CN105354058A (en) File updating method and apparatus
CN104468671A (en) Configuration information processing method, device and relevant device
CN105511808A (en) Data operation method, system and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230418

Address after: Room 501-502, 5/F, Sina Headquarters Scientific Research Building, Block N-1 and N-2, Zhongguancun Software Park, Dongbei Wangxi Road, Haidian District, Beijing, 100193

Patentee after: Sina Technology (China) Co.,Ltd.

Address before: 100080, International Building, No. 58 West Fourth Ring Road, Haidian District, Beijing, 20 floor

Patentee before: Sina.com Technology (China) Co.,Ltd.

TR01 Transfer of patent right