CN107197018A - A kind of method and apparatus of inter-system data synchronization - Google Patents
A kind of method and apparatus of inter-system data synchronization Download PDFInfo
- Publication number
- CN107197018A CN107197018A CN201710370439.7A CN201710370439A CN107197018A CN 107197018 A CN107197018 A CN 107197018A CN 201710370439 A CN201710370439 A CN 201710370439A CN 107197018 A CN107197018 A CN 107197018A
- Authority
- CN
- China
- Prior art keywords
- control instruction
- local
- instruction
- modification
- clouds
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Abstract
The embodiments of the invention provide a kind of method and apparatus of inter-system data synchronization, it is related to technical field of data processing, this method includes:Control instruction corresponding to local system is stored, and forms high in the clouds control instruction, wherein, control instruction includes the instruction that cloud system is directed to the service request generation received;The local control instruction that local system is periodically returned is compared with high in the clouds control instruction, wherein, local control instruction is that cloud system issues according to service request and is stored in the control instruction in local system;When the local control instruction and high in the clouds control instruction of passback are inconsistent, the high in the clouds control instruction is sent to local system, the local control instruction of passback is corrected with triggering local system.The embodiment of the present invention can ensure the uniformity of high in the clouds director data, can effectively prevent local illegal distort.
Description
Technical field
The present invention relates to technical field of data processing, the method and a germline of more particularly to a kind of inter-system data synchronization
The device of data syn-chronization between system.
Background technology
With the fast development of computer networking technology, especially as the increase of data with equipment in itself, data syn-chronization
Demand is increasingly strong.
Inter-system data synchronization generally has two kinds of processing modes:One is to realize data syn-chronization by program coding;Two be straight
Connect and act on database, to realize the synchronization of data in database aspect.Wherein, realize that data syn-chronization is usual in database aspect
Can be because such as synchronous both sides' table structure be inconsistent, synchronous both sides' direct network access is limited or/and is synchronously based on complicated business
Problem in terms of condition, causes the usage scenario of database synchronization scheme to be limited.
At present, to avoid the problem of database synchronization technology usage scenario is limited, it can realize that data are same by program coding
Step.Data syn-chronization is realized by program coding, its main realization approach is that have just to update, and without then increasing newly, implementation is more clever
It is living.But, when data receiver's data are illegally distorted, occur in that data and data sender that data receiver receives
, that is, there is problem of data safety in the inconsistent situation of transmitted data.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present invention overcomes above mentioned problem or at least in part to provide one kind
The device of the method for the inter-system data synchronization solved the above problems and corresponding inter-system data synchronization.
In order to solve the above problems, the embodiment of the invention discloses a kind of method of inter-system data synchronization, applied to cloud
End system, including:
Control instruction corresponding to local system is stored, and forms high in the clouds control instruction, wherein, the control instruction bag
Include the instruction that the cloud system is directed to the service request generation received;
The local control instruction that local system is periodically returned is compared with the high in the clouds control instruction, wherein, it is described
Local control instruction is that the cloud system issues according to the service request and is stored in the control instruction in local system;
When the local control instruction and the high in the clouds control instruction of passback are inconsistent, the high in the clouds control instruction is sent to
The local system, is corrected with triggering the local system to the local control instruction of passback.
Alternatively, methods described also includes:After service request is received, verify whether the service request is legal;When
When the service request is legal, generates the Operational Visit and ask corresponding control instruction;By message server, by generation
Control instruction is handed down to corresponding local system, to form corresponding local control instruction in the local system.
Alternatively, methods described also includes:After instruction modification request is received, the instruction is verified according to business demand
Whether modification request is legal;When instruction modification request is legal, changes the instruction modification and ask corresponding high in the clouds control
Instruction, generates corresponding modification result;By message server, the modification result is returned into the local system, so that
The local system performs the modification operation of local control instruction according to the modification result.
The embodiment of the invention also discloses a kind of method of inter-system data synchronization, applied to local system, including:
The control instruction that cloud system is issued is stored, local control instruction is formed;
The local control instruction is periodically returned into the cloud system, passback is judged to trigger the cloud system
Whether local control instruction is consistent with corresponding high in the clouds control instruction, wherein, the high in the clouds control instruction is to be stored in the cloud
Control instruction in end system;
When the local control instruction of passback is inconsistent with the high in the clouds control instruction, sent according to the cloud system
High in the clouds control instruction is corrected to the local control instruction of the passback.
Alternatively, methods described also includes:Service request is sent to the cloud system, to trigger the cloud system
Corresponding control instruction is sent according to business demand, wherein the service request includes:Business datum download request or business number
According to operation requests;When reading the control instruction from message server, the corresponding associative operation of the control instruction is performed,
Wherein, the associative operation includes following at least one:Down operation, deletion action, modification operation, read operation.
Alternatively, methods described also includes:Instruction modification request is sent to the cloud system, wherein, the instruction
Modification request is used to apply for the local control instruction of modification;By message server, the modification knot that the cloud system is returned is received
Really, wherein the modification result is that the cloud system asks generation for the instruction modification;According to the modification result
Perform the modification operation of local control instruction.
The embodiment of the invention also discloses a kind of device of inter-system data synchronization, applied to cloud system, including:
High in the clouds instructs memory module, for being stored to the corresponding control instruction of local system, forms high in the clouds control and refers to
Order, wherein, the control instruction includes the instruction that the cloud system is directed to the service request generation received;
Comparison module is instructed, local control instruction and the high in the clouds control instruction for local system periodically to be returned are entered
Row compares, wherein, the local control instruction is that the cloud system is issued and is stored in local system for local system
Control instruction;
Instruction correction module, it is inconsistent for the local control instruction and the high in the clouds control instruction when passback, will be described
High in the clouds control instruction is sent to the local system, and school is carried out to the local control instruction of passback to trigger the local system
Just.
Alternatively, institute's device also includes:
Service request authentication module, for whether after instruction modification request is received, verifying the instruction modification request
It is legal;
Control instruction generation module, it is corresponding for when the service request is legal, generating the Operational Visit request
Control instruction;
Control instruction issues module, for by message server, the control instruction of generation being handed down to corresponding local
System, to form corresponding local control instruction in the local system;
Instruction modification request module, for after instruction modification request is received, the instruction to be verified according to business demand
Whether modification request is legal;
High in the clouds instruction modification module, for when instruction modification request is legal, changing the instruction modification request pair
The high in the clouds control instruction answered, generates corresponding modification result;
Change result and return to module, for by the message server, the modification result being returned to described local
System, so that the local system performs the modification operation of local control instruction according to the modification result.
The embodiment of the invention also discloses a kind of device of inter-system data synchronization, applied to local system, including:
Local instruction memory module, for being stored to the control instruction that cloud system is issued, forms local control and refers to
Order;
Local instruction passback module, for the local control instruction periodically to be returned into the cloud system, to trigger
The cloud system judges whether the local control instruction of passback is consistent with corresponding high in the clouds control instruction, wherein, the high in the clouds
Control instruction is the control instruction being stored in the cloud system;
Local instruction correction module, for when the local control instruction of passback is inconsistent with the high in the clouds control instruction,
The high in the clouds control instruction sent according to the cloud system is corrected to the local control instruction of the passback.
Alternatively, described device also includes:
Service request sending module, for service request to be sent into the cloud system, to trigger the cloud system
Corresponding control instruction is sent according to business demand, wherein the service request includes:Business datum download request or business number
According to operation requests;
Associative operation performing module, for when reading the control instruction from message server, performing the control
Corresponding associative operation is instructed, wherein, the associative operation includes following at least one:Down operation, deletion action, modification behaviour
Work, read operation.
Instruction modification request module, for instruction modification request to be sent into the cloud system, wherein, the instruction is repaiied
Changing request is used to apply for the local control instruction of modification;
Result receiving module is changed, for by message server, receiving the modification result that the cloud system is returned, its
Described in modification result be the cloud system for the instruction modification ask generation;
Instruction modification performing module, the modification operation for performing local control instruction according to the modification result.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention periodically returns local control instruction by local system, with the local control instruction of passback with
When the high in the clouds control instruction stored in cloud system is inconsistent, the local control instruction of passback is carried out using high in the clouds control instruction
Correction, so as to ensure that the uniformity of high in the clouds director data, can effectively prevent local illegal distort.
In addition, the embodiment of the present invention generates control instruction by system beyond the clouds for service request, and can be by generation
Control instruction is handed down to corresponding local system, and the control instruction in cloud system is synchronized in local system so as to realize,
Original flow for realizing data syn-chronization by program coding respectively according to different business scenarios is evaded, has been applicable to not of the same trade or business
The synchronization of data, possesses broad applicability between cloud system, local system in business field.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of inter-system data synchronization method cloud system side embodiment of the present invention;
Fig. 2 is a kind of step flow chart of inter-system data synchronization method local system side embodiment of the present invention;
Fig. 3 is the schematic diagram of synchrodata between cloud system and local system in an example of the present invention;
Fig. 4 is the synchronous flow of modification control instruction in a kind of inter-system data synchronization method provided in an embodiment of the present invention
Figure;
Fig. 5 is a kind of structured flowchart of inter-system data synchronization device embodiment of the present invention;
Fig. 6 is the structured flowchart of another inter-system data synchronization device embodiment of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is further detailed explanation.
At present, the solution of data syn-chronization is realized by program coding, it is special to be carried out generally be directed to particular problem
Coded treatment, and the coding is only applicable to solution Single-issue, not expansible and multiplexing is difficult to transplant and reuse.It can be seen that, it is existing
Have and the scheme of data syn-chronization is realized by program coding, it is necessary to realize data syn-chronization respectively according to different business scene, do not possess
Broad applicability.
In addition, when data receiver's data are illegally distorted, available data simultaneous techniques lacks feedback and correcting scheme,
It can not prevent the illegal of data receiver from distorting, there is problem of data safety.
Therefore, one of the core concepts of the embodiments of the present invention is, for needing beyond the clouds between system and local system
The synchronous scene of director data, it is proposed that a kind of method and apparatus of the inter-system data synchronization with zero offset capability,
To prevent the illegal of data receiver from distorting.
Specifically, the embodiment of the present invention can be carried out using system (abbreviation high in the clouds) beyond the clouds to local system running status
Under the scene of monitoring, to greatly reduce O&M cost and improve O&M efficiency.Wherein, local system is relatively independent, can access
Outer net, but can not actively be accessed by outer net, and Local Service can be provided, but kernel service is by cloud system control.
For example, in the application of shadow system, each local service is deployed in the respective LAN in shadow shop, and cloud system can not be direct
Have access to each local system;Local system can be provided under the service of localization, including film management, video playback, teller
It is single etc., but which film can play and be controlled to manage by cloud system.
System data synchronizing method in the embodiment of the present invention, can be used between cloud system and local system synchronously refer to
Data are made, the director data can specifically include control instruction.Wherein, cloud system can be used for being responsible for one or more
Ground system issues control instruction.In actual treatment, when there are multiple local systems, multiple local systems can form local system
Unite group (referred to as local), and no interactions between multiple local systems, locally can synchronization call high in the clouds, and can be answered in real time
Answer.Local system can be used for being responsible for receiving the control instruction transmitted by high in the clouds, perform associative operation.Therefore, cloud system can
So that as the data sender in data synchronization process, local system can be used as corresponding data receiver.
The step of reference picture 1, a kind of inter-system data synchronization method cloud system side embodiment for showing the present invention, flows
Cheng Tu, specifically may include steps of:
Step 102, the corresponding control instruction of local system is stored, forms high in the clouds control instruction, wherein, the control
System instruction includes the instruction that the cloud system is directed to the service request generation received.
The present invention in embodiments of the present invention, can need local to which according to determination in business demand beyond the clouds system
System issues control instruction, and the control instruction can be stored in cloud system, forms high in the clouds control instruction.Optionally,
Business demand can be sent to cloud system by local system so that the cloud system can receive the business demand.
In an optional example, cloud system can instruct local system list according to receiving, it is determined that each local system
Unite corresponding control instruction;And each local system can be directed to, by its corresponding control instruction persistence beyond the clouds, such as may be used
Stored beyond the clouds with the snapshot for the control instruction for being issued to each local system, form high in the clouds control instruction.Wherein, instruction is received
Local system list, which is determined for high in the clouds control instruction, to be needed to be issued to which local system, and the local row of reception instruction
Table can be confirmed by business side.The business side can include cloud system user, the operation personnel in such as operation film distribution.
It should be noted that persistence can refer to transient data to save as permanent data, database such as is arrived into internal storage data storage
In, lose data so as to avoid server from delaying machine.
Step 104, local control instruction local system periodically returned is compared with the high in the clouds control instruction, its
In, the local control instruction, which issues according to business demand for the cloud system and is stored in the control in local system, to be referred to
Order.
In the embodiment of the present invention, cloud system can be according to business demand, for each local system, by corresponding control
Instruction is handed down to corresponding local system, to form corresponding local control instruction in local system.
In an optional embodiment, cloud system can be directed to each local system, be issued by message server
Control instruction.Local system can read control instruction from message server, and can be by the control instruction persistence
Local, will read control instruction be stored in it is local in, form corresponding local control instruction, and can be according to the control
System instruction performs corresponding operating, such as from cloud system downloading service data.
It should be noted that business datum, for different business field, can have different characteristics, i.e. business
Data can refer to the object with business scope feature.For example, for news media field, business datum can be news
Data;For video field, business object can be video data;For audio area, business object can be
Voice data;For ecommerce (Electronic Commerce, EC) field, business datum can be ad data
(such as commodity picture, goods links), etc..In different fields, although business datum carrying domain feature and
Difference, but its essence is all data, for example, text data, view data, voice data, video data etc..
Local system can periodically return the local control instruction being locally stored to cloud system, such as can be in daily morning
The local control instruction being locally stored is returned into cloud system, the embodiment of the present invention to turn around time and turn around time interval not
Make concrete restriction.
Cloud system can refer to the local control of passback after the local control instruction that local system is returned is received
Order is compared with corresponding high in the clouds control instruction.When the local control instruction for finding high in the clouds control instruction and local system passback
When inconsistent, step 106 is performed.
Step 106, when the local control instruction and the high in the clouds control instruction of passback are inconsistent, high in the clouds control is referred to
Order is sent to the local system, and the local control instruction of passback is corrected with triggering the local system.
Specifically, cloud system is inconsistent in the local control instruction and high in the clouds control instruction for finding local system passback
When, the high in the clouds control instruction of high in the clouds storage can be issued again for local system, issued again with triggering local system foundation
High in the clouds control instruction the local control instruction of the passback is corrected, i.e., by high in the clouds, control instruction is defined, and will be locally stored
Local control instruction to refresh into the high in the clouds control instruction stored with high in the clouds consistent.
It can be seen that, the embodiment of the present invention returns control instruction by local system, in the local control instruction of passback and high in the clouds
When high in the clouds control instruction in system is inconsistent, school can be carried out to the local control instruction of passback using high in the clouds control instruction
Just, so as to ensure that the uniformity of high in the clouds director data, effectively prevention is local illegally distorts.
The step of reference picture 2, a kind of inter-system data synchronization method local system side embodiment for showing the present invention, flows
Cheng Tu, specifically may include steps of:
Step 202, the control instruction that cloud system is issued is stored, forms local control instruction;
Step 204, the local control instruction is periodically returned into the cloud system, sentenced with triggering the cloud system
Whether the local control instruction of disconnected passback is consistent with corresponding high in the clouds control instruction, wherein, the high in the clouds control instruction is storage
Control instruction in the cloud system;
Step 206, when the local control instruction of passback is inconsistent with the high in the clouds control instruction, according to the high in the clouds system
The high in the clouds control instruction that system is sent is corrected to the local control instruction of the passback.
For example, the high in the clouds control instruction that local system can be issued using high in the clouds replaces the local control instruction of passback so that
The local control instruction preserved in local system keeps one with the high in the clouds control instruction in high in the clouds for the local system storage
Cause.
The present invention can realize the inter-system data synchronization side of the embodiment of the present invention in actual treatment based on coded system
Method, can such as define it is a kind of have need the model of place of synchrodata between extensive representational system, and can pass through and compile
Code realizes inter-system data synchronization in the model of place, so as to avoid database synchronization technology usage scenario is limited from asking
Topic.In addition, the embodiment of the present invention generates control instruction by system beyond the clouds for service request, and the control of generation can be referred to
Order is handed down to corresponding local system, and the control instruction in cloud system is synchronized in local system so as to realize, can be applied
Needing beyond the clouds between system and local system under the scene of synchrodata, evading original according to different business scenario point
The flow of data syn-chronization is not realized by program coding, you can cloud system, local system suitable for different business field
Between data synchronization, possess broad applicability.
On the basis of above-described embodiment, it is discussed further below in conjunction with specific example between system proposed by the invention
Method of data synchronization.
In an alternate embodiment of the present invention where, the method for the inter-system data synchronization can also include:Pass through message
Server, corresponding local system is handed down to by the control instruction of generation, corresponding local to be formed in the local system
Control instruction.Wherein, local system can read the control instruction transmitted by cloud system from the message server, and can
So that the control instruction read to be stored in locally, the local control instruction is formed.
In embodiments of the present invention, when due to being decoupled between network reason and system, cloud system can not be accessed directly locally
System, can give local system asynchronous push message by message server, and the message can include the finger that cloud system is issued
Make data and/or business datum.Wherein, local system can read the control that the cloud system is sent from the message server
System instruction, and can be locally stored by the control instruction read, form corresponding local control instruction.Specifically, message takes
Device be engaged in except that can provide forwarding capability, caching can also be provided, control instruction function is retried, it is ensured that even if local system is unstable
Fixed, control instruction finally reliably reaches local system.Message server can be arrived during each local system initialization to be registered,
So that the message transmitted by cloud system is being read after succeeding in registration from the message server.Optionally, local system can lead to
Long connection or polling mode read control instruction from message server.It should be noted that message server can be with integrated
Into high in the clouds, the embodiment of the present invention is not specifically limited to this.
Reference picture 3, shows the signal of synchrodata between the cloud system in an example of the present invention and local system
Figure.
In an optional embodiment, can define it is a kind of have need synchrodata between extensive representational system
Model of place, and inter-system data synchronization in the model of place can be realized by coding, and it is based on data receiver
The data that the local system of side is fed back are corrected, and prevent the illegal of data receiver from distorting.
Specifically, the model of place can specifically include cloud system, message server and local system group, such as Fig. 3 institutes
Show.Local system group can include multiple local systems, and need message server to register during each local system initialization.
Local system can be responsible for receiving the control instruction that issues of high in the clouds, perform associative operation, and can by control instruction persistence local,
And the high concurrent Operational Visit of other non-controlling instruction modifications can be supported.For example, in shadow system, such as place an order behaviour
Make, broadcasting film service operations etc. will not cause the operation that control instruction changes, locally without be interacted with high in the clouds, can be directly for being somebody's turn to do
The corresponding service of operation, and high concurrent can be supported to access.Local system can also initiate partial control instruction modification Shen to high in the clouds
Please, after and confirming beyond the clouds, modification operation is persisted to locally.Therefore, finger synchronous between local system and cloud system
Data are made to include:Instruction modification data, such as instruction modification application, instruction modification result.
Cloud system issues control instruction flow, can specifically include:Determine that the reception instruction drafted business side is local
System list, reception instruction local system list can be used for the corresponding local system of record control instruction;For each
Ground system, by control instruction persistence beyond the clouds, that is, forms high in the clouds control instruction;And for each local system, by disappearing
Breath server issues control instruction, so that local system can read control instruction from message server.Local system
Control instruction and persistence can be read from message server local, and performs associative operation.For example, in shadow system application
In, all films can be stored beyond the clouds in shadow system, and by cloud system can operate push by operation personnel,
Create film distribution instruction.The instruction go for it is all succeed in registration and the shadow within the mandate phase, wherein authorize in
Shadow can refer to the shadow confirmed by business side.Cloud system can be stored in the shadow pair in authorizing using tabular form
The identification information answered, also i.e., it is possible to generate corresponding service order local list based on the shadow in mandate, so that
The corresponding local system of shadow in mandate can start downloading task after film distribution instruction is received.
Reference picture 4, shows in a kind of inter-system data synchronization method provided in an embodiment of the present invention and changes control instruction
Synchronous flow chart, specifically may include steps of:
Step 402, instruction modification request is sent to cloud system by local system, to trigger the cloud system according to industry
Whether instruction modification request is legal described in business requirements verification.
Wherein, instruction modification request can be used for request cloud system modification control instruction, can specifically include local hair
The modification control instruction application risen.It is local to there may be the illegal situation for distorting control instruction.
Step 404, cloud system verifies that the instruction modification please after instruction modification request is received according to business demand
Seeking Truth is no legal.
The embodiment of the present invention can verify whether the instruction modification request closes beyond the clouds in system according to business demand
Method, effectively to prevent from locally illegally distorting control instruction.
Step 406, cloud system changes the instruction modification and asks corresponding cloud when instruction modification request is legal
Control instruction is held, corresponding modification result is generated.
Step 408, the modification result is returned to the local system by cloud system by the message server,
So that the local system performs the modification operation of local control instruction according to the modification result.
Step 410, local system receives the modification result that the cloud system is returned by message server.Wherein, should
It is that the cloud system asks generation for the instruction modification to change result.
Step 412, local system performs the modification operation of local control instruction according to the modification result.
Specifically, as shown in figure 3, local system can send modification control instruction application to high in the clouds system, i.e., to high in the clouds system
System sends instruction modification request.Cloud system can determine that local whether have permission initiates modification control according to business demand
Instruction application, i.e., verify whether the instruction modification request is legal according to business demand;If local have permission initiates the modification control
System instruction application, then can confirm that the modification control instruction application is legal, and the corresponding instruction of the modification control instruction application is repaiied
Change and be persisted to high in the clouds, and local system is returned when can be by corresponding modification fructufy, so that local system can be with
The modification result that high in the clouds is returned is persisted to locally, that is, corresponding local control instruction in changing locally.
For example, in the application of shadow system, it is not enough, it is necessary to delete because of disk when being deployed in the local local system of shadow
Film Free up Memory.If local system is directly deleted, cloud system is not notified, high in the clouds control instruction and local control is will result in
Inconsistent (such as cloud system shows that shadow also has film, but has locally actually deleted) of system instruction.Therefore, locally
Film is deleted, it is necessary to which first initiate modification control instruction application to high in the clouds, whether the detection of triggering high in the clouds locally has permission initiation, and this is repaiied
Change control instruction application.If the authority, then the high in the clouds control instruction in high in the clouds is changed, and high in the clouds modification result is returned locally
System so that local system can change the local local control instruction of results modification according to the high in the clouds, so that it is guaranteed that high in the clouds is controlled
Instruction and the uniformity of local control instruction.
In one alternate embodiment, the method for the inter-system data synchronization in the embodiment of the present invention, can also include:Cloud
End system verifies whether the service request is legal after service request is received;When the service request is legal, institute is generated
State Operational Visit and ask corresponding control instruction;By message server, the control instruction of the generation is handed down to corresponding
Local system, to form corresponding local control instruction in the local system.
Specifically, the embodiment of the present invention can checking local system is sent in system beyond the clouds service request whether close
Method, when the service request is legal, generates the Operational Visit and asks corresponding control instruction.The service request specifically can be with
Including:Business datum download request or service data manipulating request;Wherein, business datum download request can be used for request from cloud
Downloading service data in end system;Service data manipulating request can be used for request and the business datum in local system grasped
Make, can such as ask to delete from cloud system be downloaded and stored at it is local in business datum.
As the specific example of the present invention, local system can need to delete the business numbers such as film for local
According to cloud system transmission service data manipulating request, to verify whether service data manipulating request closes by cloud system
Whether method, such as checking local system have the right to delete the corresponding business datum of service data manipulating request.If had permission, cloud
End system can be for the corresponding deletion control instruction of service data manipulating request generation, and can refer to deletion control
Order returns to local system so that local system can delete control instruction by performing, and realize the deletion to business datum, from
And control ability of the cloud system to local system can be ensured.
Therefore, in an alternate embodiment of the present invention where, the method for inter-system data synchronization can also include:Local system
Service request is sent to the cloud system by system, is referred to triggering the cloud system according to the corresponding control of business demand transmission
Order, wherein the service request includes:Business datum download request or service data manipulating request;When the reading from message server
The control instruction is got, local system performs the corresponding associative operation of the control instruction, wherein, the associative operation includes
Following at least one:Down operation, deletion action, modification operation, read operation.
In the embodiment of the present invention, optionally, local system can be also used for performing the corresponding related behaviour of the control instruction
Make, can specifically include:When detecting the corresponding control instruction of the business datum download request, from the cloud system
The business datum of download;Or, when detecting the service data manipulating corresponding control instruction of request, to the business datum of download
Corresponding operation is performed, the operation includes following at least one:Deletion action, modification operation, read operation.Wherein, delete
Operation can be used for deleting the local business datum downloaded, and such as delete the film downloaded;Modification operation can be used for local
The business datum of storage is modified, and is such as changed the storage location of business datum, is changed the content of business datum;Read operation
Local business datum is stored in for reading, as replicated the business datum being locally stored, playing the voice data being locally stored
And/or the text data that is locally stored of video data, displaying etc..
As another specific example of the present invention, locally there is the local management system of individual shadow, wherein there is a film
Management can record all films that high in the clouds is preserved.After shadow boss clicks on and downloaded, high in the clouds can receive corresponding message
(i.e. business datum download request), while local shadow can be verified whether within the mandate phase, and/or, whether can verify has
The authority of the piece is downloaded, result is then back into local system.The result may decide that locally whether download film.Local system
The result that uniting can be returned according to cloud system stores local service.For example, when result is can be with film download instruction, locally
System can download the film, and be stored in local disk, to provide the film corresponding local service;When result is request
Failed message, local system cannot download the film.
By the embodiment of the present invention, can define it is a kind of have need the scene of synchrodata between extensive representational system
Model, and can propose that one kind realizes data syn-chronization by coding for the model of place, and be with zero offset capability
Method of data synchronization between system.Therefore, the embodiment of the present invention can be directly applied to it is a variety of meet under the scene that model of place is defined,
It can such as apply between synchronous high in the clouds is needed in a variety of different business fields and be local under the scene of director data, possess suitable extensively
The property used..
In addition, the embodiment of the present invention is by synchronization, the control instruction distributed storage of high in the clouds storage can will be controlled at this
In ground systematic group, and local high concurrent can be supported to access, can be by local regular while high in the clouds pressure is alleviated
Return control instruction, it is ensured that the uniformity of high in the clouds local data, effectively prevention is local illegally distorts.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Necessary to example.
Reference picture 5, shows a kind of structured flowchart of the device embodiment of inter-system data synchronization of the present invention.The system
Between the device of data syn-chronization can apply to cloud system, can specifically include following module:
High in the clouds instructs memory module 502, for being stored to the corresponding control instruction of local system, forms high in the clouds control
Instruction, wherein, the control instruction includes the instruction that the cloud system is directed to the service request generation received;
Comparison module 504 is instructed, local control instruction and the high in the clouds control for local system periodically to be returned refer to
Order is compared, wherein, the local control instruction is that the cloud system issues for local system and is stored in local system
Control instruction in system;
Instruction correction module 506, it is inconsistent for the local control instruction and the high in the clouds control instruction when passback, by institute
State high in the clouds control instruction and be sent to the local system, school is carried out to the local control instruction of passback to trigger the local system
Just.
In embodiments of the present invention, optionally, the device of inter-system data synchronization can also include following module:
Service request authentication module, for whether after instruction modification request is received, verifying the instruction modification request
It is legal.
Control instruction generation module, it is corresponding for when the service request is legal, generating the Operational Visit request
Control instruction.
Control instruction issues module, for by message server, the control instruction of generation being handed down to corresponding local
System, to form corresponding local control instruction in the local system.It can be used for leading to for example, the control instruction issues module
Cross message server and the control instruction is handed down to corresponding local system, to form corresponding in the local system
Ground control instruction.
Wherein, the local system is used to read the control instruction from the message server, and by the control read
Instruction processed is stored in locally, forms the local control instruction.Specifically, local system can be read from the message server
The control instruction for taking the cloud system to send, and the control instruction read is persisted to locally, so as to be formed pair
The local control instruction answered.
In an alternate embodiment of the present invention where, the device of inter-system data synchronization can also include following module:
Instruction modification request module, for after instruction modification request is received, the instruction to be verified according to business demand
Whether modification request is legal;
High in the clouds instruction modification module, for when instruction modification request is legal, changing the instruction modification request pair
The high in the clouds control instruction answered, generates corresponding modification result;
Change result and return to module, for by the message server, the modification result being returned to described local
System, so that the local system performs the modification operation of local control instruction according to the modification result.
Reference picture 6, shows the structured flowchart of the device embodiment of another inter-system data synchronization of the present invention.This is
The device of data syn-chronization can apply to local system between system, can specifically include following module:
Local instruction memory module 602, for being stored to the control instruction that cloud system is issued, forms local control
Instruction;
Local instruction passback module 604, for the local control instruction periodically to be returned into the cloud system, to touch
Send out cloud system described and judge whether the local control instruction of passback is consistent with corresponding high in the clouds control instruction, wherein, the cloud
It is the control instruction being stored in the cloud system to hold control instruction;
Local instruction correction module 606, it is inconsistent for the local control instruction and the high in the clouds control instruction when passback
When, the high in the clouds control instruction sent according to the cloud system is corrected to the local control instruction of the passback.
In an alternate embodiment of the present invention where, the device of inter-system data synchronization can also include following module:
Service request sending module, for service request to be sent into the cloud system, to trigger the cloud system
Corresponding control instruction is sent according to business demand, wherein the service request includes:Business datum download request or business number
According to operation requests;
Associative operation performing module, for when reading the control instruction from message server, performing the control
Corresponding associative operation is instructed, wherein, the associative operation includes following at least one:Down operation, deletion action, modification behaviour
Work, read operation.
Instruction modification request module, for instruction modification request to be sent into the cloud system, wherein, the instruction is repaiied
Changing request is used to apply for the local control instruction of modification;
Result receiving module is changed, for by message server, receiving the modification result that the cloud system is returned, its
Described in modification result be the cloud system for the instruction modification ask generation;
Instruction modification performing module, the modification operation for performing local control instruction according to the modification result.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use it is one or more wherein include computer can
With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Method above to a kind of inter-system data synchronization provided by the present invention and a kind of dress of inter-system data synchronization
Put, be described in detail, specific case used herein is set forth to the principle and embodiment of the present invention, the above
The explanation of embodiment is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for the general skill of this area
Art personnel, according to the thought of the present invention, will change in specific embodiments and applications, in summary, this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of method of inter-system data synchronization, it is characterised in that applied to cloud system, including:
Control instruction corresponding to local system is stored, and forms high in the clouds control instruction, wherein, the control instruction includes institute
State the instruction that cloud system is directed to the service request generation received;
The local control instruction that local system is periodically returned is compared with the high in the clouds control instruction, wherein, it is described local
Control instruction is that the cloud system issues according to the service request and is stored in the control instruction in local system;
When the local control instruction and the high in the clouds control instruction of passback are inconsistent, the high in the clouds control instruction is sent to described
Local system, is corrected with triggering the local system to the local control instruction of passback.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
After service request is received, verify whether the service request is legal;
When the service request is legal, generates the Operational Visit and ask corresponding control instruction;
By message server, the control instruction of generation is handed down to corresponding local system, with the shape in the local system
Into corresponding local control instruction.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
After instruction modification request is received, verify whether the instruction modification request is legal according to business demand;
When instruction modification request is legal, changes the instruction modification and ask corresponding high in the clouds control instruction, generation correspondence
Modification result;
By message server, the modification result is returned into the local system, so that the local system is according to described
Change the modification operation that result performs local control instruction.
4. a kind of method of inter-system data synchronization, it is characterised in that applied to local system, including:
The control instruction that cloud system is issued is stored, local control instruction is formed;
The local control instruction is periodically returned into the cloud system, the local of passback is judged to trigger the cloud system
Whether control instruction is consistent with corresponding high in the clouds control instruction, wherein, the high in the clouds control instruction is to be stored in the high in the clouds system
Control instruction in system;
When the local control instruction of passback is inconsistent with the high in the clouds control instruction, the high in the clouds sent according to the cloud system
Control instruction is corrected to the local control instruction of the passback.
5. method according to claim 4, it is characterised in that methods described also includes:
Service request is sent to the cloud system, corresponding control is sent according to business demand to trigger the cloud system
Instruction, wherein the service request includes:Business datum download request or service data manipulating request;
When reading the control instruction from message server, the corresponding associative operation of the control instruction is performed, wherein, institute
Stating associative operation includes following at least one:Down operation, deletion action, modification operation, read operation.
6. the method according to claim 4 or 5, it is characterised in that methods described also includes:
Instruction modification request is sent to the cloud system, wherein, the instruction modification asks to be used to apply for the local control of modification
System instruction;
By message server, the modification result that the cloud system is returned is received, wherein the modification result is the high in the clouds
System asks generation for the instruction modification;
The modification operation of local control instruction is performed according to the modification result.
7. a kind of device of inter-system data synchronization, it is characterised in that applied to cloud system, including:
High in the clouds instructs memory module, for being stored to the corresponding control instruction of local system, forms high in the clouds control instruction, its
In, the control instruction includes the instruction that the cloud system is directed to the service request generation received;
Comparison module is instructed, local control instruction and the high in the clouds control instruction for local system periodically to be returned are compared
Compared with, wherein, the local control instruction is that the cloud system issues for local system and is stored in the control in local system
System instruction;
Instruction correction module, it is inconsistent for the local control instruction and the high in the clouds control instruction when passback, by the high in the clouds
Control instruction is sent to the local system, and the local control instruction of passback is corrected with triggering the local system.
8. device according to claim 7, it is characterised in that institute's device also includes:
Service request authentication module, for after instruction modification request is received, verifying whether the instruction modification request is legal;
Control instruction generation module, corresponding control is asked for when the service request is legal, generating the Operational Visit
Instruction;
Control instruction issues module, for by message server, the control instruction of generation to be handed down into corresponding local system,
To form corresponding local control instruction in the local system;
Instruction modification request module, for after instruction modification request is received, the instruction modification to be verified according to business demand
Whether request is legal;
High in the clouds instruction modification module, for when instruction modification request is legal, changing the instruction modification request corresponding
High in the clouds control instruction, generates corresponding modification result;
Change result and return to module, for by the message server, the modification result to be returned into the local system,
So that the local system performs the modification operation of local control instruction according to the modification result.
9. a kind of device of inter-system data synchronization, it is characterised in that applied to local system, including:
Local instruction memory module, for being stored to the control instruction that cloud system is issued, forms local control instruction;
Local instruction passback module, it is described to trigger for the local control instruction periodically to be returned into the cloud system
Cloud system judges whether the local control instruction of passback is consistent with corresponding high in the clouds control instruction, wherein, the high in the clouds control
Instruct the control instruction to be stored in the cloud system;
Local instruction correction module, for when the local control instruction of passback is inconsistent with the high in the clouds control instruction, foundation
The high in the clouds control instruction that the cloud system is sent is corrected to the local control instruction of the passback.
10. device according to claim 9, it is characterised in that described device also includes:
Service request sending module, for service request to be sent into the cloud system, to trigger the cloud system foundation
Business demand sends corresponding control instruction, wherein the service request includes:Business datum download request or business datum behaviour
Ask;
Associative operation performing module, for when reading the control instruction from message server, performing the control instruction
Corresponding associative operation, wherein, the associative operation includes following at least one:Down operation, deletion action, modification operation,
Read operation;
Instruction modification request module, for instruction modification request to be sent into the cloud system, wherein, the instruction modification please
Ask for applying for the local control instruction of modification;
Result receiving module is changed, for by message server, receiving the modification result that the cloud system is returned, wherein institute
It is that the cloud system asks generation for the instruction modification to state modification result;
Instruction modification performing module, the modification operation for performing local control instruction according to the modification result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370439.7A CN107197018B (en) | 2017-05-23 | 2017-05-23 | Method and device for data synchronization between systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370439.7A CN107197018B (en) | 2017-05-23 | 2017-05-23 | Method and device for data synchronization between systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107197018A true CN107197018A (en) | 2017-09-22 |
CN107197018B CN107197018B (en) | 2020-01-21 |
Family
ID=59875722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710370439.7A Active CN107197018B (en) | 2017-05-23 | 2017-05-23 | Method and device for data synchronization between systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107197018B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112598509A (en) * | 2020-12-29 | 2021-04-02 | 一汽解放汽车有限公司 | Vehicle consumption loan management system and method |
CN112769881A (en) * | 2019-11-01 | 2021-05-07 | 中移智行网络科技有限公司 | Control system and method of Internet of things equipment and trusted security cloud platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040085354A1 (en) * | 2002-10-31 | 2004-05-06 | Deepak Massand | Collaborative document development and review system |
CN1642264A (en) * | 2004-01-13 | 2005-07-20 | 北京中视联数字系统有限公司 | General user management system for digital television set and interface communication method of authorization management system |
CN101009516A (en) * | 2006-01-26 | 2007-08-01 | 华为技术有限公司 | A method and system for data synchronization |
CN102902812A (en) * | 2012-10-22 | 2013-01-30 | 飞天诚信科技股份有限公司 | Method for realizing remote synchronization of database |
-
2017
- 2017-05-23 CN CN201710370439.7A patent/CN107197018B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040085354A1 (en) * | 2002-10-31 | 2004-05-06 | Deepak Massand | Collaborative document development and review system |
CN1642264A (en) * | 2004-01-13 | 2005-07-20 | 北京中视联数字系统有限公司 | General user management system for digital television set and interface communication method of authorization management system |
CN101009516A (en) * | 2006-01-26 | 2007-08-01 | 华为技术有限公司 | A method and system for data synchronization |
CN102902812A (en) * | 2012-10-22 | 2013-01-30 | 飞天诚信科技股份有限公司 | Method for realizing remote synchronization of database |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112769881A (en) * | 2019-11-01 | 2021-05-07 | 中移智行网络科技有限公司 | Control system and method of Internet of things equipment and trusted security cloud platform |
CN112598509A (en) * | 2020-12-29 | 2021-04-02 | 一汽解放汽车有限公司 | Vehicle consumption loan management system and method |
Also Published As
Publication number | Publication date |
---|---|
CN107197018B (en) | 2020-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111901121B (en) | Cross-blockchain authentication method and device and electronic equipment | |
CN108898390B (en) | Intelligent contract calling method and device based on block chain and electronic equipment | |
JP6929497B2 (en) | Cross-blockchain interaction methods, devices, systems, and electronic devices | |
CN108681965B (en) | Block chain network transaction processing method and device for offline node | |
CN111724150B (en) | Service request processing method and device | |
CN111461723B (en) | Data processing system, method and device based on block chain | |
CN107483509A (en) | A kind of auth method, server and readable storage medium storing program for executing | |
CN108550038A (en) | A kind of data dissemination system and method applied to block chain | |
CN108805571B (en) | Data protection method, platform, block chain node, system and storage medium | |
CN110086780B (en) | Method and device for processing tampered transaction based on Ether house and storage medium | |
CN111614707A (en) | Transaction system and transaction method based on block chain | |
CN105915494A (en) | Anti-stealing-link method and system | |
CN112884477B (en) | Block chain transaction initiating method and system | |
CN101883079B (en) | For the method and apparatus of accelerating to request multimedia contents in the Internet | |
CN108307333A (en) | Intermediary number sending method, device and storage medium for mobile communication equipment | |
CN108600234A (en) | A kind of auth method, device and mobile terminal | |
WO2019061627A1 (en) | Data verification method, and server | |
US20200382498A1 (en) | Method and device for portal authentication | |
CN107104923A (en) | A kind of account binding and the method and device of business processing | |
CN107197018A (en) | A kind of method and apparatus of inter-system data synchronization | |
CN113132363B (en) | Front-end and back-end security verification method and equipment | |
CN104539636A (en) | Video evidence service system | |
CN109739932A (en) | Date storage method, device, computer equipment and computer readable storage medium | |
CN111526165A (en) | Consensus method and system in alliance chain | |
WO2017096886A1 (en) | Content pushing method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |