CN103634385A - System, method and server for data synchronizing - Google Patents

System, method and server for data synchronizing Download PDF

Info

Publication number
CN103634385A
CN103634385A CN201310597939.6A CN201310597939A CN103634385A CN 103634385 A CN103634385 A CN 103634385A CN 201310597939 A CN201310597939 A CN 201310597939A CN 103634385 A CN103634385 A CN 103634385A
Authority
CN
China
Prior art keywords
data
server
server side
modified
modification
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.)
Pending
Application number
CN201310597939.6A
Other languages
Chinese (zh)
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.)
LeTV Cloud Computing Co Ltd
Original Assignee
LeTV Information Technology Beijing 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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310597939.6A priority Critical patent/CN103634385A/en
Publication of CN103634385A publication Critical patent/CN103634385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a system, a method and a server for data synchronizing, and solves the problem that timely data synchronizing is hard to realize in the prior art. The system comprises a main server, an analysis server and slave servers; the main server is used for judging whether the original data at the main server side is modified or not; when the condition that the original data at the main server side is modified is determined, modified data, namely the data to be synchronized, are sent to the analysis server in real time; the analysis server is used for receiving the data to be synchronized sent from the main server in real time when the original data at the main server side is modified; modified data content is determined according to the received data to be synchronized and the original data at the main server side; a data modifying command carrying the modified data content is sent to each slave server; the slave servers are used for receiving the data modifying command carrying the modified data content and sent from the analysis server; the original data at slave server sides are modified according to the modified data content.

Description

A kind of data synchronous system, method and server
Technical field
The present invention relates to communication technical field, relate in particular to a kind of data synchronous system, method and server.
Background technology
Development along with technology, in a lot of practical application scenes, exist the synchronous demand of data, data synchronization scenario of the prior art, as shown in Figure 1, when each needs and when master server side data is synchronous, master server can be according to the synchronizing cycle setting in advance from server side data, periodically master server side data is treated to synchrodata is sent to each from server, each receives and after synchrodata, covers each from server side data from server.
Above-mentioned data synchronization scenario is applied to advertisement traffic data when synchronous, advertising business system server is master server, each advertising platform server is each from server, and the advertisement traffic data of the advertisement traffic data of each advertising platform server side needs and advertising business system server side is synchronous.
Yet, because master server side data may can be modified at any time, when therefore long in synchronizing cycle, adopt the method for data synchronization of prior art to be difficult to realize the synchronous in time of data.
Summary of the invention
The embodiment of the present invention provides a kind of data synchronous system, method and server, in order to solve the timely synchronous problem that is difficult to realize data.
The embodiment of the present invention provides a kind of data synchronous system, comprises master server, resolution server and from server, wherein:
Master server, for judging whether master server side legacy data is modified; When definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata;
Resolution server, for receiving master server when master server side legacy data is modified, what send in real time treats synchrodata; According to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising; To each from server, send the data modification instruction of the data content that carries described modification;
From server, for receiving the data modification instruction of the data content that carries modification of resolution server transmission; According to the data content of described modification to modifying from server side legacy data.
The embodiment of the present invention provides a kind of method of data synchronization, comprising:
Resolution server receives master server when master server side legacy data is modified, and what send in real time treats synchrodata;
According to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising;
To each from server, send the data modification instruction of the data content that carries described modification, so that each revises each from server side legacy data from server according to the data content of described modification.
The embodiment of the present invention provides a kind of method of data synchronization, comprising:
Master server judges whether master server side legacy data is modified;
When definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata.
The embodiment of the present invention provides a kind of method of data synchronization, comprising:
From server, receive the data modification instruction of the data content that carries modification of resolution server transmission;
According to the data content of described modification to modifying from server side legacy data.
The embodiment of the present invention also provides a kind of resolution server, comprising:
The first receiving element, for receiving master server when master server side legacy data is modified, what send in real time treats synchrodata;
Determining unit, for treating synchrodata and resolve server side legacy data according to what receiving, determines the data content of revising;
The first transmitting element, for sending the data modification instruction of the data content that carries described modification, so that each revises each from server side legacy data from server according to the data content of described modification to each from server.
The embodiment of the present invention also provides a kind of master server, comprising:
Judging unit, for judging whether master server side legacy data is modified;
The second transmitting element, for when definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata.
It is a kind of from server that the embodiment of the present invention also provides, and comprising:
The second receiving element, for receiving the data modification instruction of the data content that carries modification of resolution server transmission;
Revise unit, for according to the data content of described modification to modifying from server side legacy data.
Beneficial effect of the present invention comprises:
In the scheme that the embodiment of the present invention provides, data synchronous system comprises master server, resolution server and from server, master server is when master server side legacy data is modified, to resolution server, send and treat synchrodata in real time, resolution server is treated synchrodata and is resolved server side legacy data according to what receive, determine the data content of revising, and the data modification instruction that the data content of this modification is carried in transmission to each from server, each revises each from server side legacy data from server according to the data content of this modification, thereby realized synchronous in time from server side data of master server side data and each.
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 with the embodiment of the present invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of method of data synchronization in this prior art;
One of flow chart of the method for data synchronization that Fig. 2 provides for the embodiment of the present invention;
Two of the flow chart of the method for data synchronization that Fig. 3 provides for the embodiment of the present invention;
Three of the flow chart of the method for data synchronization that Fig. 4 provides for the embodiment of the present invention;
The detail flowchart of the method for data synchronization that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the resolution server that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the master server that Fig. 7 provides for the embodiment of the present invention;
The structural representation from server that Fig. 8 provides for the embodiment of the present invention;
The structural representation of the data synchronous system that Fig. 9 provides for the embodiment of the present invention.
Embodiment
In order to provide data synchronous implementation in time, the embodiment of the present invention provides a kind of data synchronous system, method and server, 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 description and interpretation the present invention, is not intended to limit the present invention.And in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The embodiment of the present invention provides a kind of method of data synchronization, as shown in Figure 2, comprising:
Step 201, resolution server receive master server when master server side legacy data is modified, and what send in real time treats synchrodata;
What step 202, basis received treats synchrodata and resolves server side legacy data, determines the data content of revising;
Step 203, to each from server, send the data modification instruction of the data content carry this modification, so that each revises each from server side legacy data from server according to the data content of this modification.
Further, determine also comprise that storage treats synchrodata after the data content of modification in step 202, on carrying out, once during the synchronous flow process of data, the synchrodata for the treatment of of this storage is legacy data.
When resolution server is positioned at master server side, the resolution server of master server side and a plurality ofly carry out information interaction from server and can take a large amount of network service resources.So preferably, analysis service implement body is positioned at from server side, now, master server only and from a resolution server of server side carries out information interaction, and the network service resource taking is less.
Accordingly, the embodiment of the present invention also provides a kind of method of data synchronization, as shown in Figure 3, comprising:
Step 301, master server judge whether master server side legacy data is modified;
Step 302, when definite master server side legacy data is modified, data after send revising to resolution server in real time; After this modification, data are and treat synchrodata.
Preferably, data after send revising to resolution server in real time, be specially in real time to the resolution server from server side send revise data.
Accordingly, the embodiment of the present invention also provides a kind of method of data synchronization, as shown in Figure 4, comprising:
Step 401, from server, receive the data modification instruction of the data content that carries modification that resolution server sends;
Step 402, according to the data content of this modification to modifying from server side legacy data.
Preferably, receive the data modification instruction of the data content that carries modification of resolution server transmission, be specially the data modification instruction that receives the data content that carries modification sending from the resolution server of server side.
Below in conjunction with accompanying drawing, the method for data synchronization that the embodiment of the present invention is provided is described in detail.
In embodiments of the present invention, resolution server is positioned at from server side.
The detail flowchart that Figure 5 shows that the method for data synchronization that the embodiment of the present invention provides, specifically comprises:
Step 501, master server judge whether master server side legacy data is modified.
When definite master server side legacy data is modified, enter step 502; When definite master server side legacy data is not modified, this step 501 is carried out in circulation, carries out cycle criterion.
Master server side data can be stored in master server this locality, also can be stored in another independently on storage server.
Step 502, master server send data after synchrodata is revised to the resolution server from server side in real time.
Step 503, from the resolution server of server side, receive the synchrodata for the treatment of that master server sends.
Step 504, from the resolution server of server side, according to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising, and storing received to treat synchrodata.
On carrying out, once during the synchronous flow process of data, the synchrodata for the treatment of of this storage is resolution server side legacy data.
Resolution server side data can be stored in resolution server this locality, also can be stored in another independently on storage server.
Step 505, from the resolution server of server side, to each from server, send the data modification instruction of the data content that carries modification.
In the specific implementation, from the resolution server of server side, can to each from server, send successively the data modification instruction of the data content that carries modification, also can send the data modification instruction of the data content that carries modification, the present invention is not construed as limiting this to each from server simultaneously.
The data modification instruction of the data content that carries modification that step 506, each resolution server from server reception from server side send.
Step 507, each modifies from server side legacy data according to the data content of revising from server to each.
From server side data, can be stored in from server locally, also can be stored in another independently on storage server.
Preferably, each can also return and confirm that whether response is successfully modified with designation data to resolution server from server each from server side legacy data is modified, when returning to resolution server while confirming that response designation data is revised unsuccessfully, resolution server can be again sends the data modification instruction of the data content that carries modification to correspondence from server again.
Visible, to adopt the embodiment of the present invention to provide scheme, than prior art, can realize the synchronous in time of data, and the network service resource taking is less.
Based on same inventive concept, the method for data synchronization providing according to the above embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a kind of resolution server, as shown in Figure 6, specifically comprises:
The first receiving element 601, for receiving master server when master server side legacy data is modified, what send in real time treats synchrodata;
Determining unit 602, for treating synchrodata and resolve server side legacy data according to what receiving, determines the data content of revising;
The first transmitting element 603, for sending the data modification instruction of the data content that carries this modification, so that each revises each from server side legacy data from server according to the data content of this modification to each from server.
Preferably, this analysis service implement body is positioned at from server side.
The function of above-mentioned each unit can, corresponding to the respective handling step in flow process shown in Fig. 2 or Fig. 5, not repeat them here.
Based on same inventive concept, the method for data synchronization providing according to the above embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a kind of master server, as shown in Figure 7, specifically comprises:
Judging unit 701, for judging whether master server side legacy data is modified;
The second transmitting element 702, for when definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After this modification, data are and treat synchrodata.
Preferably, the second transmitting element 702, specifically for data revising to the resolution server transmission from server side in real time.
The function of above-mentioned each unit can, corresponding to the respective handling step in flow process shown in Fig. 3 or Fig. 5, not repeat them here.
Based on same inventive concept, the method for data synchronization providing according to the above embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a kind of master server, as shown in Figure 8, specifically comprises:
The second receiving element 801, for receiving the data modification instruction of the data content that carries modification of resolution server transmission;
Revise unit 802, for according to the data content of this modification to modifying from server side legacy data.
Preferably, the second receiving element 801, specifically for receiving the data modification instruction of the data content that carries modification sending from the resolution server of server side.
The function of above-mentioned each unit can, corresponding to the respective handling step in flow process shown in Fig. 4 or Fig. 5, not repeat them here.
Based on same inventive concept, the method for data synchronization providing according to the above embodiment of the present invention, correspondingly, the embodiment of the present invention also provides a kind of data synchronous system, as shown in Figure 9, specifically comprise master server 901, resolution server 902 and from server 903, wherein:
Master server 901, for judging whether master server side legacy data is modified; When definite master server side legacy data is modified, data after revising to resolution server 902 transmissions in real time; After this modification, data are and treat synchrodata;
Resolution server 902, for receiving master server 901 when master server side legacy data is modified, what send in real time treats synchrodata; According to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising; To each from server 903, send the data modification instruction of the data content that carries this modification;
From server 903, for receiving the data modification instruction of the data content that carries modification of resolution server 902 transmissions; According to the data content of this modification to modifying from server side legacy data.
Preferably, this resolution server 902 is specifically positioned at from server side.
The function of above-mentioned each server can be arbitrary corresponding to Fig. 2-Fig. 5 shown in respective handling step in flow process, do not repeat them here.
In sum, the scheme that adopts the embodiment of the present invention to provide, can realize the synchronous in time of data.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the embodiment of the present invention the embodiment of the present invention.Like this, if within these of the embodiment of the present invention are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (10)

1. a data synchronous system, is characterized in that, comprises master server, resolution server and from server, wherein:
Master server, for judging whether master server side legacy data is modified; When definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata;
Resolution server, for receiving master server when master server side legacy data is modified, what send in real time treats synchrodata; According to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising; To each from server, send the data modification instruction of the data content that carries described modification;
From server, for receiving the data modification instruction of the data content that carries modification of resolution server transmission; According to the data content of described modification to modifying from server side legacy data.
2. data synchronous system as claimed in claim 1, is characterized in that, described analysis service implement body is positioned at from server side.
3. a method of data synchronization, is characterized in that, comprising:
Resolution server receives master server when master server side legacy data is modified, and what send in real time treats synchrodata;
According to what receive, treat synchrodata and resolve server side legacy data, determine the data content of revising;
To each from server, send the data modification instruction of the data content that carries described modification, so that each revises each from server side legacy data from server according to the data content of described modification.
4. method as claimed in claim 3, is characterized in that, described analysis service implement body is positioned at from server side.
5. a method of data synchronization, is characterized in that, comprising:
Master server judges whether master server side legacy data is modified;
When definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata.
6. method as claimed in claim 5, is characterized in that, data after revising to resolution server transmission, are specially:
Data revising to the resolution server transmission from server side in real time.
7. a resolution server, is characterized in that, comprising:
The first receiving element, for receiving master server when master server side legacy data is modified, what send in real time treats synchrodata;
Determining unit, for treating synchrodata and resolve server side legacy data according to what receiving, determines the data content of revising;
The first transmitting element, for sending the data modification instruction of the data content that carries described modification, so that each revises each from server side legacy data from server according to the data content of described modification to each from server.
8. resolution server as claimed in claim 7, is characterized in that, described analysis service implement body is positioned at from server side.
9. a master server, is characterized in that, comprising:
Judging unit, for judging whether master server side legacy data is modified;
The second transmitting element, for when definite master server side legacy data is modified, data after revising to resolution server transmission in real time; After described modification, data are and treat synchrodata.
10. master server as claimed in claim 9, is characterized in that, described the second transmitting element, specifically for data revising to the resolution server transmission from server side in real time.
CN201310597939.6A 2013-11-22 2013-11-22 System, method and server for data synchronizing Pending CN103634385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310597939.6A CN103634385A (en) 2013-11-22 2013-11-22 System, method and server for data synchronizing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310597939.6A CN103634385A (en) 2013-11-22 2013-11-22 System, method and server for data synchronizing

Publications (1)

Publication Number Publication Date
CN103634385A true CN103634385A (en) 2014-03-12

Family

ID=50215001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310597939.6A Pending CN103634385A (en) 2013-11-22 2013-11-22 System, method and server for data synchronizing

Country Status (1)

Country Link
CN (1) CN103634385A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254417A (en) * 2016-07-12 2016-12-21 乐视控股(北京)有限公司 Data cache method, Apparatus and system
CN106254416A (en) * 2016-06-27 2016-12-21 乐视控股(北京)有限公司 Communication data synchronous method and system
CN106357782A (en) * 2016-09-29 2017-01-25 苏州科达科技股份有限公司 Multilevel architecture for data synchronization, data synchronization method and fault handling method
CN106921746A (en) * 2017-03-22 2017-07-04 重庆允升科技有限公司 A kind of data synchronous system and method for data synchronization
CN109547532A (en) * 2018-10-25 2019-03-29 交控科技股份有限公司 A kind of method of data synchronization in multiserver redundant system between each server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254416A (en) * 2016-06-27 2016-12-21 乐视控股(北京)有限公司 Communication data synchronous method and system
CN106254417A (en) * 2016-07-12 2016-12-21 乐视控股(北京)有限公司 Data cache method, Apparatus and system
CN106357782A (en) * 2016-09-29 2017-01-25 苏州科达科技股份有限公司 Multilevel architecture for data synchronization, data synchronization method and fault handling method
CN106357782B (en) * 2016-09-29 2019-06-28 苏州科达科技股份有限公司 Multistage architecture, method of data synchronization and the fault handling method synchronous for data
CN106921746A (en) * 2017-03-22 2017-07-04 重庆允升科技有限公司 A kind of data synchronous system and method for data synchronization
CN109547532A (en) * 2018-10-25 2019-03-29 交控科技股份有限公司 A kind of method of data synchronization in multiserver redundant system between each server

Similar Documents

Publication Publication Date Title
CN107172187B (en) A kind of SiteServer LBS and method
CN107402747B (en) A kind of application page dynamic creation method for supporting multiple terminals type
CN103634385A (en) System, method and server for data synchronizing
CN103237060B (en) A kind of data object acquisition, Apparatus and system
RU2004131856A (en) METHODS AND DEVICE FOR SYNCHRONIZING HOW DATA IS STORED IN VARIOUS DATA STORAGES
CN103561049A (en) Method for processing terminal scheduling request, system thereof and device thereof
CN106293311A (en) Page display method based on Mobile solution, client, server and platform
CN110990482A (en) Data synchronization method and device between asynchronous databases
CN104780017A (en) Data processing method and data processing device
CN103701867A (en) Method, system and central server for processing call requests
CN105808374A (en) Snapshot processing method and associated equipment
CN111953520B (en) Method, device, equipment and medium for realizing group control through group virtual equipment
CN104778267A (en) Searching and index updating method and device
CN103581273A (en) Service executing method, device and system for distributed system
CN103677983A (en) Scheduling method and device of application
CN103491153A (en) Method, equipment and peer-to-peer network system for data sharing
CN104125150A (en) Protocol message processing method, device and system
CN104750545A (en) Process scheduling method and device
CN105117401A (en) Method, device and system for parallel transmission of pictures
CN104780120A (en) Method and device for transmitting files in local area network
CN108021688B (en) A kind of data processing method and device
CN104684068B (en) The method and apparatus that a kind of data synchronize
CN102684865A (en) Method, system and device for data synchronization
CN103051528B (en) A kind of message rapid distribution method for bus and device
CN109728937A (en) A kind of method and device of the updating network state of voice mould group

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151223

Address after: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant after: LETV CLOUD COMPUTING CO., LTD.

Address before: Room six, building 19, building 68, No. 100089 South Road, Haidian District, Beijing

Applicant before: LeTV Information Technology (Beijing) Co., Ltd.

RJ01 Rejection of invention patent application after publication

Application publication date: 20140312

RJ01 Rejection of invention patent application after publication