CN107332886A - Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing - Google Patents
Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN107332886A CN107332886A CN201710470034.0A CN201710470034A CN107332886A CN 107332886 A CN107332886 A CN 107332886A CN 201710470034 A CN201710470034 A CN 201710470034A CN 107332886 A CN107332886 A CN 107332886A
- Authority
- CN
- China
- Prior art keywords
- data
- synchronized
- data system
- sent
- configuration information
- 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
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/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiments of the invention provide method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing, applied to Message Queuing system, wherein, methods described includes:The data to be synchronized that the first data system is sent by the data transmission interface of the first data system are received, wherein, data to be synchronized are the data encapsulated according to preset rules;The configuration information of multiple second data systems in addition to the first data system prestored in Message Queuing system is read, wherein, configuration information includes the corresponding data transfer address of each second data system, port and host-host protocol;Respectively according to the corresponding configuration information of each second data system, data to be synchronized are sent to each second data system by the data receiver interface of each second data system.By method of data synchronization provided in an embodiment of the present invention, device, system, electronic equipment and readable storage medium storing program for executing, the difficulty of system development in data synchronization process can be reduced, autgmentability is improved.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to method of data synchronization, device, system, electronic equipment
And readable storage medium storing program for executing.
Background technology
Substantial amounts of information management system is established during Informatization Development, there is certain pass between these systems
Connection relation, partial data is required for being used in multiple systems, for example, the financial information of user, personal information.But it is due to
There are oneself management mode and memory module etc. between system, cause there is data message resource hardly possible between these information systems
The problems such as to exchange shared, when an operation system is updated to some of its database data, the system will be caused
With the inconsistency of data in other multiple systems.
In existing method of data synchronization, each system sets up the interface of the data transfer between other systems respectively,
It is assumed that there is data correlation between having 10 systems simultaneously, then each system is respectively necessary for setting up with other 9 systems and connect
Mouthful, and then data syn-chronization is carried out by interface.As can be seen that system development difficulty is higher in existing method of data synchronization, and
Autgmentability is poor.
The content of the invention
The purpose of the embodiment of the present invention is to provide method of data synchronization, device, system, electronic equipment and readable storage medium
Matter, to reduce the difficulty of system development in data synchronization process, improves autgmentability.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of method of data synchronization, applied to Message Queuing system, including:
The data to be synchronized that the first data system is sent by the data transmission interface of first data system are received, its
In, the data to be synchronized are the data encapsulated according to preset rules;
Read multiple second data in addition to first data system prestored in the Message Queuing system
The configuration information of system, wherein, configuration information includes the corresponding data transfer address of each second data system, port and biography
Defeated agreement;
Respectively according to the corresponding configuration information of each second data system, the data to be synchronized are counted by each second
Sent according to the data receiver interface of system to each second data system.
Optionally, sent in the first data system of the reception by the data transmission interface of first data system
Data to be synchronized, afterwards, methods described also includes:
Parse the data to be synchronized;
Data to be synchronized after parsing are verified;
It is described to send the data to be synchronized to each second by the data receiver interface of each second data system
Data system, including:
When data to be synchronized after the parsing are by verifying, the data to be synchronized after the parsing are passed through each
The data receiver interface of two data systems is sent to each second data system.
Optionally, the data to be synchronized after to parsing are verified, and afterwards, methods described also includes:
When data to be synchronized after the parsing are not validated, believe to the first data system feedback check mistake
Breath.
Optionally, it is described by the data to be synchronized by the data receiver interface of each second data system send to
Each second data system, afterwards, methods described also includes:
The check results that each second data system is sent by the data transmission interface of each second data system are received,
The check results include whether each second data system meets preset data form for the data to be synchronized, verification
As a result.
Second aspect, the embodiment of the present invention additionally provides a kind of data synchronous system, including:Message Queuing system and many
Individual data system, wherein, the multiple data system includes the first data system and multiple second data systems;
First data system:For sending data to be synchronized to Message Queuing system by data transmission interface, its
In, the data to be synchronized are the data encapsulated according to preset rules;
The Message Queuing system, what is prestored for reading in the Message Queuing system removes the first data system
The configuration information of multiple second data systems outside system, wherein, configuration information includes the corresponding number of each second data system
According to transmission address, port and host-host protocol;Respectively according to the corresponding configuration information of each second data system, treat same by described
Step data is sent to each second data system by the data receiver interface of each second data system;
Second data system, for by being treated described in Message Queuing system's transmission described in data receiver interface
Synchrodata.
The third aspect, the embodiment of the present invention additionally provides a kind of data synchronization unit, applied to Message Queuing system, bag
Include:
Receiving module, is sent for receiving the first data system by the data transmission interface of first data system
Data to be synchronized, wherein, the data to be synchronized are the data encapsulated according to preset rules;
Read module, prestored for reading in the Message Queuing system in addition to first data system
The configuration information of multiple second data systems, wherein, configuration information is with including the corresponding data transfer of each second data system
Location, port and host-host protocol;
Sending module, for respectively according to the corresponding configuration information of each second data system, by the data to be synchronized
Sent by the data receiver interface of each second data system to each second data system.
Optionally, described device also includes:
Parsing module, for parsing the data to be synchronized;
Correction verification module, for being verified to the data to be synchronized after parsing;
The sending module is specifically for when data to be synchronized after the parsing are by verifying, after the parsing
Data to be synchronized sent by the data receiver interface of each second data system to each second data system.
Optionally, described device also includes:
Feedback module, for the data to be synchronized after the parsing it is not validated when, to first data system
Feedback check error message.
Fourth aspect, the embodiment of the present invention additionally provides a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein, the processor, the communication interface, the memory completes mutual by the communication bus
Communication;
The memory, for depositing computer program;
The processor, for performing during the program deposited on the memory, is realized described in above-mentioned first aspect
Method and step.
5th aspect, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, described computer-readable to deposit
Storage media internal memory contains computer program, and the computer program realizes the side described in above-mentioned first aspect when being executed by processor
Method step.
Method of data synchronization provided in an embodiment of the present invention, device, system, electronic equipment and readable storage medium storing program for executing, can be with
The to be synchronized of the data transmission interface transmission that first data system passes through first data system is received by Message Queuing system
Data;Read in Message Queuing system that multiple second data systems in addition to the first data system for prestoring are corresponding to match somebody with somebody
Confidence ceases;Then, data to be synchronized are passed through into the second data system according to the corresponding configuration information of each second data system respectively
The data receiver interface of system sends the synchronized update that data among systems are completed to the second data system.
So that, each data system only needs to the interface set up between Message Queuing system, some data
When system is updated the data, this is updated the data into transmission to Message Queuing system, this is updated the data transmission by Message Queuing system
To the data system that other are associated with the data system, and then realize the synchronization of data, it is no longer necessary between each system
Set up interface and realize data syn-chronization, the difficulty of system development in reduction data synchronization process.In addition, working as has increased incidence number
During according to system, it is only necessary to the configuration information of the increased associated data system is configured in message queue, it is possible to realize the pass
Join the data syn-chronization between data system and other data systems, it is no longer necessary to the associated data system and other data systems point
Interface is not set up, the autgmentability of data syn-chronization is improved.Certainly, implementing any product or method of the present invention must be not necessarily required to
Reach all the above advantage simultaneously.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of method of data synchronization provided in an embodiment of the present invention;
Fig. 2 is the structural representation of data synchronous system provided in an embodiment of the present invention;
Fig. 3 is the structural representation of data synchronization unit provided in an embodiment of the present invention;
Fig. 4 is the structural representation of electronic equipment provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
In order to ensure uniformity of the same data in multiple data systems, when a data system has the data of renewal
When, other systems (the namely system comprising the data) associated with it need the synchronized update data, the embodiment of the present invention
The synchronized update of data is completed by Message Queuing system.
Fig. 1 is the flow chart of method of data synchronization provided in an embodiment of the present invention, and reference picture 1 is provided the embodiment of the present invention
Method of data synchronization be described in detail, including:
Step 101, the number to be synchronized that the first data system is sent by the data transmission interface of the first data system is received
According to, wherein, data to be synchronized are the data encapsulated according to preset rules.
Method of data synchronization provided in an embodiment of the present invention can apply to Message Queuing system.The Message Queuing system exists
It can be the form of WEB (webpage) server in actual application.Specifically, PHP (Hypertext can also be passed through
Preprocessor, hypertext pretreatment language) and CI (CodeIgniter) the framework establishment Message Queuing system.
The Message Queuing system pre-defines unified interface specification, and Message Queuing system receives data system to message team
Row system send data when or the Message Queuing system to data system send data when all according to the unified interface specification.
Unified interface specification can be HTTP (HyperText Transfer Protocol, HTTP), HTTPS
((Hypertext Transfer Protocol Secure, Secure Hypertext Transfer Protocol), SOCKET (" socket ", communication
The handle of chain) etc..
Specifically, Message Queuing system receives the first data system and sent by the data transmission interface of the first data system
Data to be synchronized, the first data system is any data system that is connected with the Message Queuing system.Wherein, data send and connect
Mouth is the pre-defined interface for having unified standard standard, and the data transmission interface is used for the first data system to message queue
Send data.It is further to note that each data system being connected with the Message Queuing system is opened according to unified
Hair standard development has the data transmission interface and data receiving interface of unified standard standard.
Step 102, multiple second data in addition to the first data system prestored in Message Queuing system are read
The configuration information of system, wherein, configuration information includes the corresponding data transfer address of each second data system, port and biography
Defeated agreement.
Message Queuing system configures, and preserve the configuration information of each data system in advance to each data system.
Specifically, the corresponding relation of each data system and corresponding configuration information can be preserved.Needing to use configuration information
When, by reading the corresponding relation of each data system and corresponding configuration information, obtain each data system corresponding
Configuration information.
Message Queuing system receive the first data system transmission data to be synchronized after, it is necessary to which data to be synchronized are sent out
Delivering to needs the other systems in addition to the first data system of synchronized update data.It can read first in Message Queuing system
The configuration information of multiple second data systems prestored, that is, determine Message Queuing system according to what host-host protocol, which
Port or what specific address send data to be synchronized to the second data system.Wherein, the second data system is except the
The other systems of synchronized update data the need for outside one data system.
Step 103, data to be synchronized are passed through each according to the corresponding configuration information of each second data system respectively
The data receiver interface of two data systems is sent to each second data system.
After the configuration information for reading each second data system, then Message Queuing system can be determined data to be synchronized
The configuration informations such as host-host protocol, the address followed during transmission to the second data system.By data to be synchronized according to confidence
The port or address indicated in host-host protocol, configuration information in breath is sent to the second data system.
Optionally, in a kind of implementation of the embodiment of the present invention, the first data system that Message Queuing system receives
The data format that the data format of data to be synchronized and the data receiver interface of the second data system sent can be handled is not
Timing, Message Queuing system is received after data to be synchronized, first changes the data to be synchronized according to corresponding configuration information
The data format that can be handled for the data receiver interface of the second data system, then the data to be synchronized are passed through into the second data system
The data receiver interface of system is sent to the second data system.
Specifically, it can be sent by the data receiver interface of each second data system to each second data system.
The data receiver interface is the pre-defined interface for having unified standard standard, namely transmits number by the data receiver interface
According to following unified standard standard.For example, the unified standard standard can be HTTP transport protocol etc..The data receiver interface can be with
For message queue data are sent to the second data system.
Method of data synchronization provided in an embodiment of the present invention, is received by Message Queuing system and is sent out by data transmission interface
The data to be synchronized sent, read multiple second data in addition to the first data system prestored in the Message Queuing system
The configuration information of system;Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into the second number
Sent according to the data receiver interface of system to the second data system.So that, will when some data system is updated the data
This updates the data transmission to Message Queuing system, and this is updated the data transmission to other and data system pass by Message Queuing system
The data system of connection, and then realize the synchronization of data.No longer need to set up interface between each data system and realize number
According to synchronization, the difficulty of system development in data synchronization process is reduced.In addition, when there is increased associated data system, it is only necessary to
The configuration information of the increased associated data system is configured in message queue, it is possible to realize the associated data system and other
Data syn-chronization between data system, it is no longer necessary to which the associated data system sets up interface respectively with other data systems, is improved
The autgmentability of data syn-chronization.
Optionally, in a kind of embodiment of the embodiment of the present invention, the first data system is passed through receiving the first data system
After the data to be synchronized that the data transmission interface of system is sent, it can also include:
Parse data to be synchronized;Data to be synchronized after parsing are verified.
In order to improve the accuracy and security of data transmission procedure, Message Queuing system receives the first data system hair
After the data to be synchronized sent, the data to be synchronized received are verified.It can specifically include treating synchrodata
Type checking and safety check etc..
Because data to be synchronized are the data encapsulated according to preset rules, verification is being carried out to the data to be synchronized
Before, the data to be synchronized are parsed, specifically resolving is corresponding with encapsulation process, it then follows identical preset rules,
I.e. simply it is appreciated that to treat the inverse process of the process encapsulation process of synchrodata parsing.
Verifying obtained result can include passing through verification and not validated.It can include meeting present count by verification
According to form etc.;It is corresponding, it is not validated to include not meeting preset data form etc..
Specifically, when data to be synchronized after parsing are by verifying, the data to be synchronized after parsing can be passed through every
The data receiver interface of individual second data system is sent to each second data system.Data to be synchronized after parsing pass through school
Test, then illustrate type and security of data to be synchronized etc. meet requirement, so can directly by data to be synchronized send to
Each second data system, completes the synchronized update of data.
When data to be synchronized after parsing are not validated, to the first data system feedback check error message.Parsing
Data to be synchronized afterwards are not validated, then illustrate that type and security of data to be synchronized etc. are unsatisfactory for requirement, now will
Error message feeds back to the first data system, so that the first data system can treat synchrodata and modify, or again
Send data to be synchronized so that the second data system can exactly, safely receive data to be synchronized, and then complete data
Synchronization.
Optionally, in a kind of embodiment of the embodiment of the present invention, data to be synchronized are being passed through into each second data system
The data receiver interface of system is sent to each second data system, afterwards, can also be included:
The check results that each second data system is sent by the data transmission interface of each second data system are received,
Check results include the result whether each second data system meets preset data form for data to be synchronized, verification.
In order to further improve the accuracy and security of data transmission procedure, in actual application process, it will treat
Synchrodata is sent to each second data system by the data receiver interface of each second data system, can also be connect
Receive the check results for data to be synchronized of the first data system transmission.Specifically, check results can be included by verification
With it is not validated.If Message Queuing system receives the result by verification of the second data system transmission, for disappearing
Cease for queue system, whole data synchronization process is completed;If Message Queuing system receives the transmission of the second data system
Not validated result, then Message Queuing system also need to by the not validated result feed back to first message to row be
System.
Fig. 2 is the structural representation of data synchronous system provided in an embodiment of the present invention, reference picture 2, to the data syn-chronization
System is described in detail.The data synchronous system includes:Message Queuing system and multiple data systems, wherein, many numbers
Include the first data system and multiple second data systems according to system.
First data system 201:For sending data to be synchronized to Message Queuing system by data transmission interface.
Each data system is equipped with two interfaces in the embodiment of the present invention, and one is by the data in the data system
Send to the data transmission interface of Message Queuing system;Another data receiver that data are sent to receive Message Queuing system connects
Mouthful.
When the first data system there are data to need renewal, the data for needing to update can be sealed according to preset rules
Dress, obtains data to be synchronized.Data are packaged partly in order to so that being passed between data system and Message Queuing system
Defeated data can have unified standard criterion;On the other hand, data can also reliably, exactly be sent using transfer resource
To destination.
Then, by the data transmission interface of first data system according to unified interface specification, by data to be synchronized
Send to Message Queuing system.Specifically, unified interface specification can be HTTP, HTTPS, SOCKET etc..
Message Queuing system 202:Prestored for reading in Message Queuing system in addition to the first data system
The configuration information of multiple second data systems, wherein, configuration information is with including the corresponding data transfer of each second data system
Location, port and host-host protocol;
Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into each second data system
The data receiver interface of system is sent to each second data system;
Specific Message Queuing system receives the data to be synchronized of the first data system transmission, and by the data to be synchronized
Send to the process of the second data system, said process has been carried out detailed description, just repeated no more again here.
Second data system 203, for the data to be synchronized sent by data receiver interface Message Queuing system.
Specifically, by the data receiver interface of the second data system, the number to be synchronized that Message Queuing system sends is received
According to, then the data to be synchronized are updated in second data system, complete data synchronized update.
In order to further improve the accuracy and security of data transmission procedure, the second data system reception to message queue
After the data to be synchronized that system is sent, synchrodata can be treated and parsed, then the data to be synchronized after parsing are carried out
Verification.Specifically, verification can include type checking and safety check.Similarly, the result that verification is obtained can include passing through
Verify and not validated.When the data to be synchronized after parsing are by verifying, then for the data to be synchronized in second number
It is updated according to system, completes the synchronized update of data, and the result that successful synchronization updates can be fed back to message queue
The result is fed back to the first data system by system, Message Queuing system again.Data to be synchronized after parsing are not validated
When, then error message is fed back into Message Queuing system.
In data synchronous system provided in an embodiment of the present invention, during the data of the first data system renewal in need, by this
Data are sent to Message Queuing system, and then the Message Queuing system sends the data to the second data system, that is, removes
The data system that data update the need for outside first data system, the number that the second data system reception Message Queuing system sends
According to, corresponding data are updated, complete data synchronized update.Updated by data provided in an embodiment of the present invention and be
System, can reduce the difficulty of system development in data synchronization process, improve set expandability.
Fig. 3 is the structural representation of data synchronization unit provided in an embodiment of the present invention, and reference picture 3 is to the embodiment of the present invention
The data synchronization unit of offer is described in detail, including:
Receiving module 301, is sent for receiving the first data system by the data transmission interface of the first data system
Data to be synchronized, wherein, data to be synchronized are the data encapsulated according to preset rules.
Read module 302, what is prestored for reading in Message Queuing system is multiple in addition to the first data system
The configuration information of second data system, wherein, configuration information includes the corresponding data transfer address of each second data system, end
Mouth and host-host protocol.
Sending module 303, for according to the corresponding configuration information of each second data system, data to be synchronized to be led to respectively
The data receiver interface for crossing each second data system is sent to each second data system.
Data synchronization unit provided in an embodiment of the present invention, is received by Message Queuing system and is sent out by data transmission interface
The data to be synchronized sent, read multiple second data in addition to the first data system prestored in the Message Queuing system
The configuration information of system;Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into the second number
Sent according to the data receiver interface of system to the second data system.So that, will when some data system is updated the data
This updates the data transmission to Message Queuing system, and this is updated the data transmission to other and data system pass by Message Queuing system
The data system of connection, and then realize the synchronization of data, it is no longer necessary to set up interface between each data system and realize number
According to synchronization, the difficulty of system development in data synchronization process is reduced.In addition, when there is increased associated data system, it is only necessary to
The configuration information of the increased associated data system is configured in message queue, it is possible to realize the associated data system and other
Data syn-chronization between data system, it is no longer necessary to which the associated data system sets up interface respectively with other data systems, is improved
The autgmentability of data syn-chronization.
Optionally, data synchronization unit provided in an embodiment of the present invention also includes:
Parsing module, for parsing data to be synchronized.
Correction verification module, for being verified to the data to be synchronized after parsing.
Optionally, sending module 303 is specifically for when data to be synchronized after parsing are by verifying, after parsing
Data to be synchronized are sent to each second data system by the data receiver interface of each second data system.
Optionally, data synchronization unit provided in an embodiment of the present invention also includes:
Feedback module, for data to be synchronized after parsing it is not validated when, to the first data system feedback check
Error message.
Optionally, data synchronization unit provided in an embodiment of the present invention also includes:
Correction verification module is received, is connect for receiving each second data system by the data transmission of each second data system
The check results that mouth is sent, check results include whether each second data system meets default for data to be synchronized, verification
The result of data format.
It should be noted that the data synchronization unit of the embodiment of the present invention is the device using above-mentioned method of data synchronization,
Then all embodiments of above-mentioned method of data synchronization are applied to the device, and can reach same or analogous beneficial effect.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 4, including processor 401, communication interface 402,
Memory 403 and communication bus 404, wherein, processor 401, communication interface 402, memory 403 is complete by communication bus 404
Into mutual communication;
Memory 403, for depositing computer program;
Processor 401, for performing during the program deposited on memory 403, realizes following steps:
The data to be synchronized that the first data system is sent by the data transmission interface of the first data system are received, wherein,
Data to be synchronized are the data encapsulated according to preset rules;
Multiple second data systems in addition to the first data system prestored in Message Queuing system are read to match somebody with somebody
Confidence ceases, wherein, configuration information includes the corresponding data transfer address of each second data system, port and host-host protocol;
Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into each second data system
The data receiver interface of system is sent to each second data system.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or EISA (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just
Only represented in expression, figure with a thick line, it is not intended that only one bus or a type of bus.
The communication that communication interface is used between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least one magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is application specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other PLDs, discrete
Door or transistor logic, discrete hardware components.
Electronic equipment provided in an embodiment of the present invention, receives what is sent by data transmission interface by Message Queuing system
Data to be synchronized, read multiple second data systems in addition to the first data system prestored in the Message Queuing system
Configuration information;Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into the second data system
The data receiver interface of system is sent to the second data system.So that, when some data system is updated the data, by this more
New data is sent to Message Queuing system, and this is updated the data to send to other and associated with the data system by Message Queuing system
Data system, and then realize the synchronization of data, it is no longer necessary to set up interface between each data system and realize that data are same
The difficulty of system development in step, reduction data synchronization process.In addition, when there is increased associated data system, it is only necessary to disappearing
The configuration information of the increased associated data system is configured in breath queue, it is possible to realize the associated data system and other data
Data syn-chronization between system, it is no longer necessary to which the associated data system sets up interface respectively with other data systems, improves number
According to synchronous autgmentability.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, the computer-readable recording medium memory storage
There is computer program, the computer program realizes following steps when being executed by processor:
The data to be synchronized that the first data system is sent by the data transmission interface of the first data system are received, wherein,
Data to be synchronized are the data encapsulated according to preset rules;
Multiple second data systems in addition to the first data system prestored in Message Queuing system are read to match somebody with somebody
Confidence ceases, wherein, configuration information includes the corresponding data transfer address of each second data system, port and host-host protocol;
Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into each second data system
The data receiver interface of system is sent to each second data system.
Readable storage medium storing program for executing provided in an embodiment of the present invention, is received by Message Queuing system and is sent out by data transmission interface
The data to be synchronized sent, read multiple second data in addition to the first data system prestored in the Message Queuing system
The configuration information of system;Respectively according to the corresponding configuration information of each second data system, data to be synchronized are passed through into the second number
Sent according to the data receiver interface of system to the second data system.So that, will when some data system is updated the data
This updates the data transmission to Message Queuing system, and this is updated the data transmission to other and data system pass by Message Queuing system
The data system of connection, and then realize the synchronization of data, it is no longer necessary to set up interface between each data system and realize number
According to synchronization, the difficulty of system development in data synchronization process is reduced.In addition, when there is increased associated data system, it is only necessary to
The configuration information of the increased associated data system is configured in message queue, it is possible to realize the associated data system and other
Data syn-chronization between data system, it is no longer necessary to which the associated data system sets up interface respectively with other data systems, is improved
The autgmentability of data syn-chronization.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment
Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system
Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of method of data synchronization, it is characterised in that applied to Message Queuing system, including:
The data to be synchronized that the first data system is sent by the data transmission interface of first data system are received, wherein,
The data to be synchronized are the data encapsulated according to preset rules;
Read multiple second data systems in addition to first data system prestored in the Message Queuing system
Configuration information, wherein, configuration information include the corresponding data transfer address of each second data system, port and transmission association
View;
Respectively according to the corresponding configuration information of each second data system, the data to be synchronized are passed through into each second data system
The data receiver interface of system is sent to each second data system.
2. according to the method described in claim 1, it is characterised in that counted in the first data system of the reception by described first
The data to be synchronized sent according to the data transmission interface of system, afterwards, methods described also includes:
Parse the data to be synchronized;
Data to be synchronized after parsing are verified;
It is described to send the data to be synchronized to each second data by the data receiver interface of each second data system
System, including:
When data to be synchronized after the parsing are by verifying, the data to be synchronized after the parsing are counted by each second
Sent according to the data receiver interface of system to each second data system.
3. method according to claim 2, it is characterised in that the data to be synchronized after to parsing are verified, afterwards,
Methods described also includes:
When data to be synchronized after the parsing are not validated, to the first data system feedback check error message.
4. method according to claim 1 or 2, it is characterised in that the data to be synchronized are passed through into each described
The data receiver interface of two data systems is sent to each second data system, and afterwards, methods described also includes:
The check results that each second data system is sent by the data transmission interface of each second data system are received, it is described
Check results include the knot whether each second data system meets preset data form for the data to be synchronized, verification
Really.
5. a kind of data synchronous system, it is characterised in that including:Message Queuing system and multiple data systems, wherein, it is described
Multiple data systems include the first data system and multiple second data systems;
First data system:For sending data to be synchronized to Message Queuing system by data transmission interface, wherein, institute
It is the data encapsulated according to preset rules to state data to be synchronized;
The Message Queuing system, prestored for reading in the Message Queuing system except first data system it
The configuration information of outer multiple second data systems, wherein, configuration information includes the corresponding data of each second data system and passed
Defeated address, port and host-host protocol;Respectively according to the corresponding configuration information of each second data system, by the number to be synchronized
Sent according to the data receiver interface by each second data system to each second data system;
Second data system, for passing through the described to be synchronized of Message Queuing system's transmission described in data receiver interface
Data.
6. a kind of data synchronization unit, it is characterised in that applied to Message Queuing system, including:
Receiving module, is treated together for receiving the first data system by what the data transmission interface of first data system was sent
Step data, wherein, the data to be synchronized are the data encapsulated according to preset rules;
Read module, what is prestored for reading in the Message Queuing system is multiple in addition to first data system
The configuration information of second data system, wherein, configuration information includes the corresponding data transfer address of each second data system, end
Mouth and host-host protocol;
Sending module, for according to the corresponding configuration information of each second data system, the data to be synchronized to be passed through respectively
The data receiver interface of each second data system is sent to each second data system.
7. device according to claim 6, it is characterised in that described device also includes:
Parsing module, for parsing the data to be synchronized;
Correction verification module, for being verified to the data to be synchronized after parsing;
The sending module is specifically for when data to be synchronized after the parsing are by verifying, by treating after the parsing
Synchrodata is sent to each second data system by the data receiver interface of each second data system.
8. device according to claim 7, it is characterised in that described device also includes:
Feedback module, for the data to be synchronized after the parsing it is not validated when, to first data system feed back
Check errors information.
9. a kind of electronic equipment, it is characterised in that including processor, communication interface, memory and communication bus, wherein, it is described
Processor, the communication interface, the memory completes mutual communication by the communication bus;
The memory, for depositing computer program;
The processor, for performing during the program deposited on the memory, realizes any described sides of claim 1-4
Method step.
10. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium internal memory contains computer
Program, the computer program realizes claim 1-4 any described method and steps when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710470034.0A CN107332886A (en) | 2017-06-20 | 2017-06-20 | Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710470034.0A CN107332886A (en) | 2017-06-20 | 2017-06-20 | Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107332886A true CN107332886A (en) | 2017-11-07 |
Family
ID=60195626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710470034.0A Pending CN107332886A (en) | 2017-06-20 | 2017-06-20 | Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107332886A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107995315A (en) * | 2017-12-26 | 2018-05-04 | 北京天融信网络安全技术有限公司 | Synchronous method, device, storage medium and the computer equipment of business board-to-board information |
CN108933828A (en) * | 2018-07-04 | 2018-12-04 | 中国银行股份有限公司 | A kind of data synchronizer and method |
CN109299193A (en) * | 2018-09-25 | 2019-02-01 | 深圳市佰仟金融服务有限公司 | Method of data synchronization and relevant device |
CN112948405A (en) * | 2021-02-26 | 2021-06-11 | 携程商旅信息服务(上海)有限公司 | Obt data update method, system, device and medium for organizing architecture system |
CN113434600A (en) * | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Data synchronization method and device |
CN114584575A (en) * | 2022-05-06 | 2022-06-03 | 中海油田服务股份有限公司 | Ship-shore communication method and system in ship management system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035848A (en) * | 2010-12-23 | 2011-04-27 | 福建南威软件工程发展有限公司 | Method for exchanging data among shared systems |
CN103607469A (en) * | 2013-11-28 | 2014-02-26 | 东莞中国科学院云计算产业技术创新与育成中心 | Cloud platform for achieving distributed isomerous data sharing and data sharing method thereof |
-
2017
- 2017-06-20 CN CN201710470034.0A patent/CN107332886A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035848A (en) * | 2010-12-23 | 2011-04-27 | 福建南威软件工程发展有限公司 | Method for exchanging data among shared systems |
CN103607469A (en) * | 2013-11-28 | 2014-02-26 | 东莞中国科学院云计算产业技术创新与育成中心 | Cloud platform for achieving distributed isomerous data sharing and data sharing method thereof |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107995315A (en) * | 2017-12-26 | 2018-05-04 | 北京天融信网络安全技术有限公司 | Synchronous method, device, storage medium and the computer equipment of business board-to-board information |
CN107995315B (en) * | 2017-12-26 | 2021-05-07 | 北京天融信网络安全技术有限公司 | Method and device for synchronizing information between service boards, storage medium and computer equipment |
CN108933828A (en) * | 2018-07-04 | 2018-12-04 | 中国银行股份有限公司 | A kind of data synchronizer and method |
CN109299193A (en) * | 2018-09-25 | 2019-02-01 | 深圳市佰仟金融服务有限公司 | Method of data synchronization and relevant device |
CN112948405A (en) * | 2021-02-26 | 2021-06-11 | 携程商旅信息服务(上海)有限公司 | Obt data update method, system, device and medium for organizing architecture system |
CN113434600A (en) * | 2021-06-30 | 2021-09-24 | 青岛海尔科技有限公司 | Data synchronization method and device |
CN113434600B (en) * | 2021-06-30 | 2023-06-09 | 青岛海尔科技有限公司 | Data synchronization method and device |
CN114584575A (en) * | 2022-05-06 | 2022-06-03 | 中海油田服务股份有限公司 | Ship-shore communication method and system in ship management system |
CN114584575B (en) * | 2022-05-06 | 2022-07-19 | 中海油田服务股份有限公司 | Ship-shore communication method and system in ship management system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107332886A (en) | Method of data synchronization, device, system, electronic equipment and readable storage medium storing program for executing | |
US10003629B2 (en) | Method and system for using JSON with a CLI for managing network devices | |
CN109510846A (en) | API Calls system, method, apparatus, electronic equipment and storage medium | |
CN105391695B (en) | A kind of terminal registration method and method of calibration | |
US9929988B2 (en) | Method for tracking and routing financial messages for mobile devices | |
CN107124402A (en) | A kind of method and apparatus of packet filtering | |
CN110570196A (en) | Transaction data processing method and device, terminal equipment and storage medium | |
CN104113548B (en) | A kind of message identifying processing method and processing device | |
CN109040122A (en) | The method, apparatus and related accessory of a kind of new user's registration and binding service equipment | |
CN105939284B (en) | The matching process and device of message control strategy | |
US10192262B2 (en) | System for periodically updating backings for resource requests | |
CN106296394A (en) | A kind of financial product over-the-counter trading method and system | |
CN103747076B (en) | Cloud platform access method and device | |
CN109587112A (en) | It is a kind of send data method, receive data method, equipment and system | |
CN104301410A (en) | Self-service tax handling terminal design method for realizing internal and external network interconnection in client monitoring mode | |
CN103685060B (en) | data packet sending method and device | |
CN108664628A (en) | A kind of deriving method and equipment of data | |
CN109889558A (en) | Data transmission method, middleware and the system of internet of things oriented application | |
CN107766127A (en) | Transaction message processing method, device, equipment and system | |
CN106878336A (en) | A kind of data interactive method and device | |
US20140164205A1 (en) | Market access system and method | |
Levshun et al. | A technique for design of secure data transfer environment: Application for I2C protocol | |
CN104363187B (en) | A kind of things-internet gateway resource response method and apparatus | |
US10013237B2 (en) | Automated approval | |
CN110392066A (en) | A kind of method and apparatus of access service |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171107 |
|
WD01 | Invention patent application deemed withdrawn after publication |