[go: up one dir, main page]

CN103716370B - The method and apparatus that data syn-chronization is carried out between multiple client - Google Patents

The method and apparatus that data syn-chronization is carried out between multiple client Download PDF

Info

Publication number
CN103716370B
CN103716370B CN201310476939.0A CN201310476939A CN103716370B CN 103716370 B CN103716370 B CN 103716370B CN 201310476939 A CN201310476939 A CN 201310476939A CN 103716370 B CN103716370 B CN 103716370B
Authority
CN
China
Prior art keywords
client
change
data
collection
server
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.)
Expired - Fee Related
Application number
CN201310476939.0A
Other languages
Chinese (zh)
Other versions
CN103716370A (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.)
Northern Boundary Of Imagination (beijing) Software Co Ltd
Original Assignee
Northern Boundary Of Imagination (beijing) Software 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 Northern Boundary Of Imagination (beijing) Software Co Ltd filed Critical Northern Boundary Of Imagination (beijing) Software Co Ltd
Priority to CN201310476939.0A priority Critical patent/CN103716370B/en
Publication of CN103716370A publication Critical patent/CN103716370A/en
Application granted granted Critical
Publication of CN103716370B publication Critical patent/CN103716370B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method and apparatus that data syn-chronization is carried out between multiple client, is related to internet arena.Wherein, this method includes:Server receives the change collection of client generation, wherein, client includes the data being made up of multiple elements, client generation after the change of each data includes the change collection of this data change record, client includes the first client and the second client, and change collection includes the first change collection of the first client generation and the second change collection of the second client generation;When the more change of different elements during the first change collection and the second change collection include to data, server carries out data syn-chronization according to the first change collection and the second change client of set pair first and the second client.By embodiments of the present invention, accurate data syn-chronization between each client can be realized.

Description

The method and apparatus that data syn-chronization is carried out between multiple client
Technical field
The present invention relates to internet arena, more particularly to a kind of method that data syn-chronization is carried out between multiple client.
Background technology
The simultaneous techniques of network account can be such that user is obtained when logging in same network account by different clients Get identical data.
, it is necessary in the different enterprising style of writing part transmission of client or delete when carrying out data syn-chronization between different clients Unnecessary file, finally it is consistent the data in multiple client, when the content in multiple client changes, holds Easily there is timing error, for example, there are two clients to the addition of same new application, then by the two clients Data syn-chronization is to after the 3rd client, it is possible that two identical applications in the 3rd client;Or multiple visitors Family end carries out different operating respectively, when synchronizing, can not obtain unified synchronized result according to different operations.
The problem of can not obtaining unified synchronized result for multiple client in the prior art, done currently without good solution Method.
The content of the invention
The embodiment of the present invention provides a kind of method and apparatus that data syn-chronization is carried out between multiple client, each to realize Accurate data syn-chronization between client.
The present invention is to achieve these goals, there is provided a kind of method that data syn-chronization is carried out between multiple client, bag Include:Server receives the change collection of client generation, wherein, client includes the data being made up of multiple elements, client Generation includes the change collection of this data change record after the change of each data, and client includes the first client and the second visitor Family end, change collection include the first change collection of the first client generation and the second change collection of the second client generation;When first Change collection and the second change collection are included to during the more change of different elements, server is according to the first change collection and the second change in data The client of set pair first and the second client carry out data syn-chronization.
In one embodiment, the above method also includes:Server determines the change of generation first collection and the second change collection Sequentially;When Bu Tong more the becoming of identity element in the first change collection and the second change are concentrated including to data, server is according to suitable The posterior change client of set pair first of sequence and the second client carry out data syn-chronization.
In one embodiment, version number is set for the data after change on the server.
In one embodiment, after the change of each data, version number be once incremented by.
In one embodiment, for server to carry out the client backup image file of data change, image file is visitor The copy of family end current data.
The present invention to achieve these goals, also provides a kind of device that data syn-chronization is carried out between multiple client, Receiving module, for receiving the change collection of client generation, wherein, client includes the data being made up of multiple elements, visitor The family end change collection of generation comprising this data change record after the change of each data, client include the first client and the Two clients, change collection include the first change collection of the first client generation and the second change collection of the second client generation;The One synchronization module, for when first change collection and second change collection include to data in different elements more change when, according to first Change collection and the second change client of set pair first and the second client carry out data syn-chronization.
In one embodiment, said apparatus also includes:Processing module, for determining that the change of generation first collection and second becomes The order more collected;Second synchronization module, include for being concentrated when the first change collection with the second change to identity element in data When difference more becomes, data syn-chronization is carried out according to the posterior change client of set pair first of order and the second client.
In one embodiment, said apparatus also includes:Setup module, for setting version number for the data after change.
In one embodiment, after the change of each data, version number be once incremented by.
In one embodiment, said apparatus also includes:Backup module, for being backed up to carry out the client of data change Image file, image file are the copy of client current data.
The present invention carries out data syn-chronization by the change set pair all clients of each client, realizes that accurate data are same Step.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, not Form limitation of the invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method 100 that data syn-chronization is carried out between multiple client shown in the embodiment of the present invention;
Fig. 2A is the method 200 that data syn-chronization is carried out between different clients shown in first preferred embodiment of the invention Flow chart;
Fig. 2 B are the first schematic diagrames shown in first preferred embodiment of the invention;
Fig. 2 C are the second schematic diagrames shown in first preferred embodiment of the invention;
Fig. 2 D are the 3rd schematic diagrames shown in first preferred embodiment of the invention;
Fig. 2 E are the 4th schematic diagrames shown in first preferred embodiment of the invention;
Fig. 2 F are the 5th schematic diagrames shown in first preferred embodiment of the invention;
Fig. 3 A are the sides that a kind of data in multiple client shown in second preferred embodiment of the invention synchronize The flow chart of method;
Fig. 3 B are the first schematic diagrames shown in second preferred embodiment of the invention;
Fig. 3 C are the second schematic diagrames shown in second preferred embodiment of the invention;
Fig. 3 D are the 3rd schematic diagrames shown in second preferred embodiment of the invention;
Fig. 3 E are that the another kind shown in second preferred embodiment of the invention synchronizes to the data in multiple client The flow chart of method;
Fig. 3 F are the 4th schematic diagrames shown in second preferred embodiment of the invention;
Fig. 3 G are the 5th schematic diagrames shown in second preferred embodiment of the invention;
Fig. 3 H are the 6th schematic diagrames shown in second preferred embodiment of the invention;
Fig. 4 is the structural frames of the device 400 that data syn-chronization is carried out between multiple client shown in the embodiment of the present invention Figure;
Fig. 5 is the device 500 that data syn-chronization is carried out between multiple client shown in first preferred embodiment of the invention Structured flowchart;And
Fig. 6 is the device 600 that data syn-chronization is carried out between multiple client shown in second preferred embodiment of the invention Structured flowchart.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, the present invention is implemented below in conjunction with the accompanying drawings Example is described in further detail.Here, the schematic description and description of the present invention is used to explain the present invention, but it is not intended as Limitation of the invention.
The present invention is described in further detail referring now to accompanying drawing.The present invention can realize in many different forms, no It should be understood that and be only limitted to embodiments set forth herein.These embodiments are only used as example offer, to be this area skill Art personnel provide the complete understanding to the present invention.
The embodiments of the invention provide a kind of method that data syn-chronization is carried out between multiple client, Fig. 1 is the present invention Implement the flow chart for the method 100 that data syn-chronization is carried out between multiple client exemplified.
The present embodiment is retouched first by taking the synchronization of two clients as an example to the synchronous method between multiple client State, if any two client can obtain unified synchronized result, all clients can obtain unified synchronization As a result.
The executive agent of this method can be a server, as shown in figure 1, this method comprises the following steps:
Step 110, server receives the change collection of client generation.
Client includes the data being made up of multiple elements, and each element can be an application, file or link etc., By modes such as addition element, the positions deleted element or adjust element, data change can be carried out, client is in every number The change collection of this data change record is included according to generation after change.
Client includes the first client and the second client, and change collection includes the first change collection of the first client generation With the second change collection of the second client generation." first " and " second " in the present embodiment is not the restriction to quantity, but As the differentiation between multiple client, the first client can be client 11, and the second client can be client 12, with Under be the one first change collection when data change, generated by client 11 example, client 11 is in original state Data be empty set, the data after change are(a、b、c、d), now, a, b, c, d are respectively the element in data, and the of generation One change collection is as follows:
Client 11 is can be seen that from the change collection and with the addition of element a, and previous is None before element a, i.e., first It can be configured according to demand without other data, element a attribute properties before plain a, in the present embodiment For other attributes other properties.In the present embodiment attribute, but this area general technology are provided with for element a, b, c, d Personnel are it should be appreciated that data have a variety of modes for being divided into element, therefore element may also be not provided with attribute.
Client 11 also added element b, element c and element d, and element b previous is element a, element c's Previous is element b, and element d previous is element c, i.e., client 11 more become after data into(a、b、c、d), pass through Change collection can draw the data after change, similarly, this change that data change can also be drawn by the data after change Collection.
Can also be the data setting version number after change in specific embodiment, on server, version number can pass through tune Realized with counter, the data on server are often once changed in synchronization, and version number carries out once being incremented by automatically, example Such as initial state version number is 0, and the data on server are after each change, and version number adds 1, and this time synchronizes with server Client be arranged to that there is identical version number with server after synchronization.
Preferably, server can carry out the client of data change one version of backup after the change of each data Image file, client can more easily generate change collection by being contrasted with the image file on server.Example Such as:The image file that the version of client 11 corresponds on server is that several data trnascriptions is deposited by preset format.
Step 120, when the first change collection and the second change collection include being directed to the more change of different elements in data, server Data syn-chronization is carried out according to the first change collection and the second change client of set pair first and the second client.
For example, the first change collection deletes(a、b、c、d)In element a, the second change collection deletes(a、b、c、d)In element D, due to for element it is different, then the first change collection and the second change collection include the change to different elements;If first becomes More collection will(a、b、c、d)In element a be changed to element e, the second change collection will(a、b、c、d)In element a be changed to element F, due to all being changed to element a, then the first change collection and the second change collection include the different change to identity element.
If two clients generate change collection, in the synchronization between carrying out client, first by first client The change collection at end is synchronized on server, server changed after data(X), then by the change collection of second client Be synchronized on server, server changed after data(X+Y), last server is by the data after change(X+Y)It is synchronous To each client.The specific method of synchronization, which refers to, to be hereinafter described.
Step 130, server determines the order of the change of generation first collection and the second change collection, when the first change collection and second When change collection includes more becoming the difference of identity element in data, according to the posterior change client of set pair first and second of order Client carries out data syn-chronization.
In certain special cases, two clients may carry out different more changes, such as client 11 to identity element Element a in data is changed, by data(a、b)It is changed to(c、b), and client 12 is also entered to the element a in data Row change, by data(a、b)It is changed to(d、b)When, now need first to determine the order of two client generation change collection, according to suitable The posterior change collection of sequence synchronizes.
It is determined that the order of change collection can exist according to the acquisition time or generation time of each change collection, such as client 11 Time t1 can be recorded during generation change collection, client 12 can record time t2 in generation change collection, judge t1's and t2 After sequencing, according to advance setting, posterior change collection synchronizes in order.Such as t1 is 2013/1/1/0: 1, t2 is 2013/1/1/0:31, i.e. t1 are 1 minute morning 0 point of on January 1st, 2013, and t2 is 31 minutes mornings 0 point of on January 1st, 2013, Because t2 order is after t1, then synchronized according to change collection corresponding to t2.
In one case, in the time between subsynchronous two, a client has excessive data change to data, Situation about being changed according to multiple data, a change collection is generated, the time for changing collection is that generation change collects after last time changes Time, such as client 11 include respectively in t11 and t12(t12>t11)Two times with the addition of a and b, then the client 11 First change collection be:
The time that generation change integrates is t12.
Equally, client 12 is included respectively in t21 and t22(t22>t21)Two times with the addition of c and d, then the client The second of 12 changes collection:
The time that generation change integrates is t21.
Specific data syn-chronization is schematically as follows:The version number of server, client 11 and client 12 is under original state 0, client 11 and client 12 produce change collection respectively, server first with client 11(Or the mirror image text with client 11 Part)Synchronize, after the subsynchronous end, the version number of server and client side 11 is upgraded to 1, and the version number of client 12 is still For 0;Then server is that client 12 synchronizes, after the subsynchronous end, the version number of server and client side 12 It is upgraded to 2, the version number of client 11 is still 1, finally by the content synchronization on server to client 11, due to a subsynchronous visitor Without new change collection is generated, i.e., the data on server do not change at family end 12, so the version number of server will not add 1, Now the version number of client 12 is also upgraded to 2, to be consistent with service end.
Version number may insure the accurate change of each version, such as since original state, server first is subsynchronous Change integrate as x, second it is hyposynchronous change integrate as y, if a certain client according to the change collection x of first time progress together Step, and y is only collected according to secondary change and synchronized, then the data in the client are inaccurate.By setting version Number can solve the problem, for example, server carry out first it is subsynchronous after version number be 1, carry out second it is subsynchronous after version Number 2 are upgraded to, the version number for having carried out first hyposynchronous each client is 1, is not still by the version number of the client of synchronization 0, then when subsynchronous under, according to the version number of the client, it may be determined that the client data lacks.In such case Under, the data in the client can be replaced with server current data, to ensure the consistent of each client data.
Fig. 2A is the method 200 that data syn-chronization is carried out between different clients shown in first preferred embodiment of the invention Flow chart.
Operating procedure when being synchronized for the first time with server present embodiment describes client.If client is Once synchronized with server, then the data obtained when directly will be synchronous from server are added to legacy data in client Behind.The present embodiment is with three clients:Exemplified by client 21, client 22 and client 23, and server 24, to clothes The method that data syn-chronization is carried out between business device 24 and different clients is described, and as shown in Figure 2 A, the method comprising the steps of 210 To step 250.
Step 210, client 21 is synchronous with server 24.
Under original state, there is no data on client 21, client 22, client 23 and server 24, such as Fig. 2 B institutes Show, include data after change in client 21(a、b、c), include data in client 22(d、e、f), number is included in client 23 According to(g、h、i), i.e., change collection is increase element a, element b, element c caused by client 21, change collection caused by client 22 For increase element d, element e, element f, change collection caused by client 23 is increase element g, element h, element i.To these Before the data of change synchronize, client 21, client 22, the version number of client 23 and server 24 are 0, by client Data on end 21(Or image file of the client 21 on server 24)After being synchronized on server 24, on server 24 Including data(a、b、c), now the version number of server 24 and client 21 be upgraded to 1, client 22 and the version number of client 23 Still it is 0.
Step 220, client 22 is synchronous with server 24.
As shown in Figure 2 C, data are included in client 21(a、b、c), include data in client 22(d、e、f), client Include data on 23(g、h、i).Before synchronization, data are included on server 24(a、b、c), and the version number of server 24 is 1.Will After data in client 22 synchronize with server 24, i.e., server 24 increase on legacy data element d, element e, Element f, and the data syn-chronization after increase is then included into data to client 22 in server 24 and client 22(a、b、c、d、 e、f), now, due to client 21 be only involved in it is first subsynchronous, and client 22 and server 24 take part in second it is same Step, so the version number of client 21 is still 1, the version number of server 24 and client 22 is upgraded to 2, the version number of client 23 Still it is 0.
Step 230, client 23 is synchronous with server 24.
As shown in Figure 2 D, data are included in client 21(a、b、c), include data in client 22(a、b、c、d、e、f), Include data in client 23(g、h、i).Before synchronization, data are included on server 24(a、b、c、d、e、f), now server 24 Version number be 2, by the data in client 23 it is synchronous with server 24 after, data are included on server 24 and client 23 (a、b、c、d、e、f、g、h、i), now the version number of client 21 is still 1, and the version number of client 22 is 2, the He of server 24 The version number of client 23 is upgraded to 3.
Step 240, server 24 is synchronous with client 22.
As shown in Figure 2 E, data are included in client 21(a、b、c), include data in client 22(a、b、c、d、e、f), Include data in client 23(a、b、c、d、e、f、g、h、i).Carry out it is next it is subsynchronous before, data are included on server 24 (a、b、c、d、e、f、g、h、i), by the data syn-chronization on server 24 to client 22, data also include in client 22 (a、b、c、d、e、f、g、h、i), now, the version number of server 24, client 22 and client 23 is 3, client 21 Version number is still 1.
Step 250, server 24 is synchronous with client 21.
As shown in Figure 2 F, data are included in client 21(a、b、c), on client 22, client 23 and server 24 Including data(a、b、c、d、e、f、g、h、i).After on the data syn-chronization on server 24 to client 21, in client 21 Also data are included(a、b、c、d、e、f、g、h、i), now, the number on client 21, client 22, client 23 and server 24 According to identical, and version number is 3.
So far, the data syn-chronization of this multiple client is just fully completed.
In upper one embodiment, the change of each client is directed to different data, in another embodiment, successively Entirely different synchronous effect can be caused by carrying out different changes to same data, and the present embodiment will be right by two kinds of different orders One data is changed, and is synchronized, and below by taking client 31, client 32 and server 33 as an example, is carried out specifically Bright, Fig. 3 A are the stream for the method that a kind of data in multiple client shown in second preferred embodiment of the invention synchronize Cheng Tu.
As shown in Figure 3A, the method comprising the steps of 310A to step 330A.
Step 310A, client 31 are synchronous with server 33.
Under original state, the data on client 31, client 32 and server 33 are(a、b), version number is 0, Before synchronization, element b is first changed to element c by client 31, i.e. the data of client 31 are changed to(a、c);Client 32 again will Element b is changed to element d, and addition element e, i.e. the content alteration of client 32 is(a、d、e), in client 31 and server After 33 synchronizations, as shown in Figure 3 B, the data on server 33 and client 31 are all(a、c), server 33 and client 31 Version number rises to 1, and the version number of client 32 is still 0.
Step 320A, client 32 are synchronous with server 33.
As shown in Figure 3 C, data are included in client 31(a、c), include data in client 32(a、d、e), by client 32 is synchronous with server 33, and client 31 and client 32 have carried out different changes to the same data on server 33, visitor Element b is changed to element c by family end 31, and element b is changed to element d by client 32, according to advance setting, different clients That is changed after the change to same data is defined, therefore now the change to element b is defined by the change of client 32, will be taken After business device 33 is synchronous with client 32, data are included on server 33 and client 32(a、d、e), now server 33 and client The version number at end 32 is upgraded to 2, and the version number of client 31 is still 1.
Step 330A, server 33 are synchronous with client 31.
As shown in Figure 3 D, before this is subsynchronous, data are included in client 31(a、c), include data on server 33(a、d、 e), after server 33 is synchronous with client 31, the data of client 31 are changed to(a、d、e), the version number of client 31 is upgraded to 2。
Fig. 3 E are that the another kind shown in second preferred embodiment of the invention synchronizes to the data in multiple client The flow chart of method.As shown in FIGURE 3 E, comprise the following steps:
Step 310E, client 31 are synchronous with server 33.
Under original state, the data on client 31, client 32 and server 33 are(a、b), version number is 0, Before synchronization, element b is first changed to element d, and addition element e by client 32;Element b is changed to element c by client 31 again, After client 31 is synchronous with server 33, as illustrated in Figure 3 F, the data included on server 33 and client 31 are all(a、 c), the version number of server 33 and client 31 rises to 1, and the data of client 32 are constant, and version number is still 0.
Step 320E, client 32 are synchronous with server 33.
As shown in Figure 3 G, data are included in client 31(a、c), include data in client 32(a、d、e), by client 32 is synchronous with server 33, and client 31 and client 32 have carried out different changes to the same data on server 33, visitor Element b is changed to element c by family end 31, and element b is changed to element d by client 32, because different clients are to same data Change after change be defined, therefore the change to element b is defined by the change of client 31, by server 33 and client After 32 synchronizations, data are included on server 33 and client 32(a、c、e), now server 33 and version number's liter of client 32 For 2, the version number of client 31 is still 1.
Step 330E, server 33 are synchronous with client 31.
As shown in figure 3h, before synchronization, data are included in client 31(a、c), include data on server 33(a、c、e), After server 33 is synchronous with client 31, client 31 also includes and server identical data(a、c、e), now client 31 Version number be upgraded to 2.
According to the embodiment shown in Fig. 3 A and Fig. 3 E, it can be seen that can be caused completely not by the different order for changing collection Same synchronous effect.
The embodiment of the present invention additionally provides a kind of device that data syn-chronization is carried out between multiple client.The device can be with It is set in the server, to realize the method that data syn-chronization is carried out between multiple client.
Fig. 4 is the structural frames of the device 400 that data syn-chronization is carried out between multiple client shown in the embodiment of the present invention Figure, as shown in figure 4, the device 400 includes the synchronization module 404 of receiving module 402 and first.
Receiving module 402 is used for the change collection for receiving client generation, wherein, client includes being made up of multiple elements Data, client change collection of the generation comprising this data change record, client after the change of each data include first Client and the second client, change collection include second that first that the first client generates changes collection and the generation of the second client Change collection;
First synchronization module 404 is used for when the first change collects the more change included with the second change collection to different elements in data When, data syn-chronization is carried out according to the first change collection and the second change client of set pair first and the second client.
Fig. 5 is the device 500 that data syn-chronization is carried out between multiple client shown in first preferred embodiment of the invention Structured flowchart, as shown in figure 5, the device 500 also includes 502 and second synchronous mould of processing module on the basis of device 400 Block 504.
Processing module 502 is used for the order for determining the change of generation first collection and the second change collection.
Second synchronization module 504 is used to concentrate with the second change when the first change collection and included to identity element in data not With when more becoming, data syn-chronization is carried out according to the posterior change client of set pair first of order and the second client.
Fig. 6 is the device 600 that data syn-chronization is carried out between multiple client shown in second preferred embodiment of the invention Structured flowchart, as shown in fig. 6, the device 600 also includes setup module 602 on the basis of device 400.
Setup module 602 is used to set version number for the data after change.
Those skilled in the art further appreciate that, with reference to each example of the embodiments described herein description Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate The interchangeability of hardware and software, the composition and step of each example are generally described according to function in the above description Suddenly.These functions are performed with hardware or software mode actually, application-specific and design constraint bar depending on technical scheme Part.Those skilled in the art can realize described function using distinct methods to each specific application, but this Kind is realized it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory(RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Embodiment above, the purpose of the present invention, technical scheme and beneficial effect are carried out further in detail Illustrate, should be understood that the embodiment that these are only the present invention, the protection model being not intended to limit the present invention Enclose, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., should be included in the present invention Protection domain within.

Claims (6)

  1. A kind of 1. method that data syn-chronization is carried out between multiple client, it is characterised in that including:
    Server receives the change collection of the client generation, and version number is set for the data after change on the server, After the change of each data, the version number carries out the client backup image file for being once incremented by and being changed for the data, Wherein, the client includes the data being made up of multiple elements, the client after data change with the server Image file contrast after upper last time data change generates the change collection of described this data change record of client, The client includes the first client and the second client, and the change collection includes the first change of the first client generation More collection and the second change collection of second client generation;
    When the change of different elements during the described first change collection and the described second change collection include to the data, the service Device is according to the version number of server data and the version number of client data, and the first change collection and the described second change First client described in set pair and second client carry out data syn-chronization;The client is arranged to after synchronization and institute Stating server has identical version number.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    The server determines the order of generation the first change collection and the described second change collection;
    When Bu Tong more the becoming of identity element in the described first change collection and the described second change are concentrated including to the data, institute State server the first client and second client according to the posterior change set pair of order and carry out data syn-chronization.
  3. 3. according to the method for claim 1, it is characterised in that the server backs up to carry out the client of data change Image file, the image file are the copy of the client current data.
  4. A kind of 4. device that data syn-chronization is carried out between multiple client, it is characterised in that including:
    Receiving module, for receiving the change collection of the client generation, version is set for the data after change on the server Number, after the change of each data, the version number be once incremented by and is the client backup image text of data change Part, wherein, the client includes the data being made up of multiple elements, the client after data change with the service Image file contrast on device after the change of last time data generates the change of described this data change record of client Collection, the client include the first client and the second client, the change collection include that first client generates the One change collection and the second change collection of second client generation;
    First synchronization module, for different elements in including to the data when the described first change collection and the described second change collection More change when, according to the version number of server data and the version number of client data, and the first change collection and described The first client and second client carry out data syn-chronization described in second change set pair, and the client is set after synchronization Be set to has identical version number with the server.
  5. 5. device according to claim 4, it is characterised in that also include:
    Processing module, for determining the order of generation the first change collection and the described second change collection;
    Second synchronization module, for concentrating same unitary in including to the data when the described first change collection and the described second change When the difference of element more becomes, it is same that data are carried out according to the first client and second client described in the posterior change set pair of order Step.
  6. 6. device according to claim 4, it is characterised in that also include:
    Backup module, for carry out the client backup image file of data change, the image file to be the client The copy of current data.
CN201310476939.0A 2013-10-13 2013-10-13 The method and apparatus that data syn-chronization is carried out between multiple client Expired - Fee Related CN103716370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310476939.0A CN103716370B (en) 2013-10-13 2013-10-13 The method and apparatus that data syn-chronization is carried out between multiple client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310476939.0A CN103716370B (en) 2013-10-13 2013-10-13 The method and apparatus that data syn-chronization is carried out between multiple client

Publications (2)

Publication Number Publication Date
CN103716370A CN103716370A (en) 2014-04-09
CN103716370B true CN103716370B (en) 2018-01-02

Family

ID=50408942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310476939.0A Expired - Fee Related CN103716370B (en) 2013-10-13 2013-10-13 The method and apparatus that data syn-chronization is carried out between multiple client

Country Status (1)

Country Link
CN (1) CN103716370B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967660B (en) * 2015-05-11 2018-01-05 华中科技大学 A kind of network performance method for improving towards more cloud frameworks
CN106713392B (en) * 2015-11-13 2020-10-27 阿里巴巴集团控股有限公司 Data synchronization method, device and system
CN106055353B (en) * 2016-05-23 2019-03-29 北京小米移动软件有限公司 Data-updating method and device
CN106296365A (en) * 2016-08-19 2017-01-04 北京三快在线科技有限公司 A purchase operation sharing method and device
CN106779936B (en) * 2016-12-08 2020-09-22 上海携程国际旅行社有限公司 Order verification system and order verification method
CN107172169A (en) * 2017-05-27 2017-09-15 广东欧珀移动通信有限公司 Data synchronization method, device, server and storage medium
CN109614442B (en) * 2018-11-02 2020-12-25 东软集团股份有限公司 Data table maintenance method and device for data synchronization, storage medium and electronic equipment
CN111901420B (en) * 2020-07-28 2023-06-16 深圳市康冠科技股份有限公司 Data synchronization method, device and system
CN112685346B (en) * 2020-12-29 2023-03-14 中电科航空电子有限公司 Multi-device data synchronization method based on ARINC429 bus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582908A (en) * 2009-06-30 2009-11-18 杭州华三通信技术有限公司 Parameter configuration method and equipment
CN101621398A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Client/server system and method for automatic multi-client synchronous configuration thereof
CN101741830A (en) * 2009-11-09 2010-06-16 深圳市同洲电子股份有限公司 Method, system, client and server for realizing multi-client data synchronization
CN102089760A (en) * 2008-03-04 2011-06-08 苹果公司 Synchronous server processing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW579463B (en) * 2001-06-30 2004-03-11 Ibm System and method for a caching mechanism for a central synchronization server
CN101064630B (en) * 2006-04-24 2011-09-21 华为技术有限公司 A data synchronization method and system
CN101127869B (en) * 2007-09-20 2010-06-16 中兴通讯股份有限公司 An update and transmission method for electronic service guidance content information
CN103259824B (en) * 2012-02-21 2016-03-09 深圳市腾讯计算机系统有限公司 The synchronous method of data route and device in distributed data-storage system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102089760A (en) * 2008-03-04 2011-06-08 苹果公司 Synchronous server processing
CN101621398A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 Client/server system and method for automatic multi-client synchronous configuration thereof
CN101582908A (en) * 2009-06-30 2009-11-18 杭州华三通信技术有限公司 Parameter configuration method and equipment
CN101741830A (en) * 2009-11-09 2010-06-16 深圳市同洲电子股份有限公司 Method, system, client and server for realizing multi-client data synchronization

Also Published As

Publication number Publication date
CN103716370A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103716370B (en) The method and apparatus that data syn-chronization is carried out between multiple client
CN106776894B (en) Log database system and synchronous method
CN110209726A (en) Distributed experiment & measurement system system, method of data synchronization and storage medium
CN106844477B (en) To synchronous method after block catenary system, block lookup method and block chain
CN101426026B (en) Method and system for data synchronization between multiple servers
EP2378718B1 (en) Method, node and system for controlling version in distributed system
CN103098024B (en) Member Tracking and Data Eviction in Mobile Middleware Scenarios
CN109831486A (en) The background data server system and data processing method of multi-client
US9298795B2 (en) Synchronization adapter for synchronizing data to applications that do not directly support synchronization
CN108595522A (en) A kind of increment synchronization method, apparatus and system
CN101213544B (en) query-based synchronization
CN111753015B (en) Data query method and device of payment clearing system
JP2004334858A (en) System and method of facilitating synchronization in client/server environment
KR20080083488A (en) Method and device for synchronizing feed information
US20140279876A1 (en) Storing and processing data organized as flexible records
CN107528872A (en) A kind of data reconstruction method, device and cloud storage system
CN107562882A (en) A kind of method of data synchronization and device based on log analysis
CN107451108B (en) Method and system for collaboratively editing document
CN105900093A (en) A method for updating a data table of a KeyValue database and a device for updating table data
CN114253348B (en) A method for preventing conflict in editing information under multi-person online collaboration
CN106453297A (en) Master and slave time delay detection method, device and system
CN107800733A (en) The generation method and equipment of session identification in distributed system
US20050165888A1 (en) Peer-to-peer data binding
CN110019092A (en) Method, controller and the system of data storage
CN108647256A (en) File synchronisation method, device, computer installation and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180102