CN103095564B - Data interactive method and system on data service platform - Google Patents

Data interactive method and system on data service platform Download PDF

Info

Publication number
CN103095564B
CN103095564B CN201110340552.3A CN201110340552A CN103095564B CN 103095564 B CN103095564 B CN 103095564B CN 201110340552 A CN201110340552 A CN 201110340552A CN 103095564 B CN103095564 B CN 103095564B
Authority
CN
China
Prior art keywords
messaging bus
application service
service module
bus
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110340552.3A
Other languages
Chinese (zh)
Other versions
CN103095564A (en
Inventor
孟艳青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201110340552.3A priority Critical patent/CN103095564B/en
Publication of CN103095564A publication Critical patent/CN103095564A/en
Application granted granted Critical
Publication of CN103095564B publication Critical patent/CN103095564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses data interactive method and system on a kind of data service platform, it is possible to increase the autgmentability of platform, reduce the complexity that platform realizes, improve the efficiency that data process, it is ensured that the accuracy of data transmission and promptness in data service platform.On the data service platform that the embodiment of the present invention provides, data interactive method includes: messaging bus receives the first protocol data bag that the first application service module is sent by first interface;Messaging bus judges to know the second application service module according to described first protocol data bag, first protocol data bag is sent to the second application service module by the second interface, by the second application service module, the first protocol data bag is processed, and pass through the second protocol packet that second interface the second application service module generates according to result;Messaging bus judges to know the first application service module according to second protocol packet, is sent second protocol packet to the first application service module by first interface.

Description

Data interactive method and system on data service platform
Technical field
The present invention relates to data communication technology field, especially relate to data interactive method and system on a kind of data service platform.
Background technology
Entirety at large-scale data service platform realizes in process, having between many application service modules with certain specific function to need to carry out real-time interacting message, currently existing scheme generally adopts the following two kinds mode to realize the interacting message between different application service module:
First kind of way is point-to-point interacting message mode.In this manner, each application service module is required for setting up with oneself other service module related and safeguarding point-to-point message channel such that it is able to carry out interacting message with these application service modules.
The second way is broadcast message interactive mode.In this manner, each application service module gives out information to other application service modules in a broadcast manner, accordingly, each application service module is also required to receive the message of other application service modules broadcast, and different application service modules utilizes the message of broadcast to realize interacting message each other.
There is many weak points in existing above-mentioned processing mode, for instance:
For above-mentioned first kind of way, add whenever there being new application service module, when certain application service module existing needs and this new application service module communicates, needing other existing application service modules on this existing application service module and platform are all modified, the autgmentability causing platform is poor;Further, when the quantity of application service module reaches certain scale, between module, the maintenance work of message channel is by being a task that is extremely complex and that easily make mistakes, causes that the realization of platform is excessively complicated;Finally, along with the complexity of application service module increases, the frequency of interacting message also increases therewith, and message closeness is excessive, can cause delay that message transmits or can not correctly transmit message.
For the above-mentioned second way, each application service module can receive much unnecessary message, and will these message be identified one by one, thus reducing Message Processing efficiency;Further, in platform network, the message number of transmission can be very big, adds the burden of platform, thus reducing accuracy and the promptness of message transmission.
Summary of the invention
Embodiments provide data interactive method and system on a kind of data service platform, it is possible to increase the autgmentability of platform, reduce the complexity that platform realizes, improve the efficiency that data process, it is ensured that the accuracy of data transmission and promptness in data service platform.
For reaching above-mentioned purpose, the technical scheme of the embodiment of the present invention is achieved in that
Embodiments providing data interactive method on a kind of data service platform, the method includes:
When the first application service module determines that needs carry out data interaction with the second application service module, messaging bus receives the first protocol data bag that the first application service module is sent by first interface;
Messaging bus judges to know the second application service module according to described first protocol data bag, first protocol data bag is sent to the second application service module by the second interface, by the second application service module, described first protocol data bag is processed, and pass through the second protocol packet that second interface the second application service module generates according to result;
Messaging bus judges to know the first application service module according to described second protocol packet, is sent described second protocol packet to the first application service module by first interface.
The embodiment of the present invention additionally provides data interaction system on a kind of data service platform, and this system includes at least one messaging bus,
Described messaging bus, when the first application service module determines that needs carry out data interaction with the second application service module, receives the first protocol data bag that the first application service module is sent by first interface;Judge to know the second application service module according to described first protocol data bag, first protocol data bag is sent to the second application service module by the second interface, by the second application service module, described first protocol data bag is processed, and pass through the second protocol packet that second interface the second application service module generates according to result;And, by first interface, described second protocol packet is sent to the first application service module.
From above-mentioned, the technical scheme of the embodiment of the present invention provides a kind of distributed data interworking architecture based on messaging bus on data service platform, using the messaging bus maincenter as data interaction, each different application service module is all connected on messaging bus and carries out data interaction respectively with messaging bus, and is realized the transmission of data by messaging bus.
The novel data interaction framework that this programme provides, message channel between Maintenance free application service module, and, fashionable there being new application service module to add, only the application service module that this is new need to be connected to messaging bus, without existing application service module is modified, substantially increase the autgmentability of platform, reduce the complexity that platform realizes.Further, this programme ensure that the application service module in data service platform only need to process the message relevant to self-demand, avoid application service module and receive message unnecessary in a large number, significantly improve the efficiency that data process, reduce the burden of platform.
It is mutual that this programme can effectively realize complicated real time data between different application service module, it is ensured that in data service platform data transmission accuracy and promptness.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Data interactive method schematic flow sheet on a kind of data service platform that Fig. 1 provides for the embodiment of the present invention one;
The structural representation of the distributed data business platform based on messaging bus that Fig. 2 provides for the embodiment of the present invention two;
Data interactive method schematic flow sheet on the data service platform that Fig. 3 provides for the embodiment of the present invention two;
The bus deployment mode structural representation of the bus that Fig. 4 provides for the embodiment of the present invention two;
Data interactive method schematic flow sheet under the bus deployment mode of the bus that Fig. 5 provides for the embodiment of the present invention two;
The linear serial deployment mode structural representation that Fig. 6 provides for the embodiment of the present invention two;
Data interactive method schematic flow sheet under the linear serial deployment mode that Fig. 7 provides for the embodiment of the present invention two;
Data interaction system structural representation on a kind of data service platform that Fig. 8 provides for the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with the accompanying drawing of the present invention, technical scheme is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention.
Along with data service platform application system is more and more huger, the integration between system also gets more and more, and the information between different Heterogeneous service module process is a problem that have to solve alternately.The distributed data business platform design framework based on messaging bus that the present invention program provides, this framework is relatively easy, efficient and is also easy to implement, it is possible to effectively solve complicated real-time messages interaction problems between the difference in functionality application service module that large data business platform is developed in building process.
The technology design of the present invention essentially consists in a set of messaging bus (or message bus system) being connected between difference in functionality service module of design, each different service module functions all connect (or mounting) to this messaging bus (or message bus system), and carry out data interaction with this messaging bus (or message bus system), completed the transmission of data by this messaging bus (or message bus system), thus can efficient solution never with interacting message mode complicated between application service module.
The embodiment of the present invention one provides data interactive method on a kind of data service platform, and referring to Fig. 1, described method includes:
11: the first application service modules determine that needs and the second application service module carry out data interaction;
12: messaging bus receives the first protocol data bag that the first application service module is sent by first interface;
13: messaging bus judges to know the second application service module according to described first protocol data bag, namely judging to know needs to send to the second application service module the first protocol data bag, then the first protocol data bag is sent to the second application service module by the second interface
Described first protocol data bag is processed by 14: the second application service modules, according to the second protocol packet that result generates;
15: the second protocol packet that messaging bus is sent by second interface the second application service module;
16: messaging bus judges to know the first application service module according to described second protocol packet, namely judging to know needs to send to the first application service module second protocol packet, then sent described second protocol packet to the first application service module by first interface.
Above-mentioned messaging bus is set up from multiple different application service modules and is connected, and realizes connecting between different application service modules by messaging bus, and messaging bus is as the maincenter of a data interaction, it is possible to be considered as a kind of virtual messaging bus.
Above-mentioned first application service module is connected with messaging bus by first interface, above-mentioned second application service module is connected with messaging bus by the second interface, concrete structure according to the first application service module and the second application service module, above-mentioned first interface and the second interface can be identical, it is also possible to different.
In identical message bus, the packet of transmission meets identical communication protocol, for instance, above-mentioned first protocol data bag is all generate according to identical communication protocol encapsulation with second protocol packet.
For the ease of knowing the technical scheme of the description embodiment of the present invention, in inventive embodiment, have employed the printed words such as " first ", " second " function is made a distinction with the essentially identical identical entry of effect or similar item, it will be appreciated by those skilled in the art that quantity and execution order are not defined by the printed words such as " first ", " second ".
On a kind of the data service platform below embodiment of the present invention two provided, data interactive method illustrates.
In order to know explanation this programme, referring to Fig. 2, it is shown that the structural representation of a simple distributed data business platform based on messaging bus.Same messaging bus (Message-BUS, M-BUS) application service module A, application service module B, application service module C and application service module D it are connected on, it is mutual that these modules carry out protocol data bag by M-BUS, M-BUS is upper can support a general protocol rule unrelated with concrete business operation, and on M-BUS, the protocol data bag of transmission all meets this protocol rule.Such as, this protocol rule can be instant messaging protocol rule.
Application service module in this programme and M-BUS client/server (Client/Server all each other, C/S) pattern, namely application service module can be the client under C/S model, M-BUS can be the server end under C/S model, simultaneously, application service module can also be the server end under C/S model, and M-BUS can also be the client under C/S model.Each application service module, by interacting with M-BUS, completes the function logic each itself possessed.
Need the scene carrying out data interaction (or interacting message) with application service module B to illustrate for application service module A below, referring to Fig. 3, specifically include following steps:
Step 1: application service module A is according to business logic processing demand, it may be judged whether will carry out data interaction (or interacting message) with application service module B, when needed, performs step 2, otherwise, and process ends.At this, only the scene that need carry out data interaction related with this programme is illustrated.
Step 2: application service module A is according to predetermined protocol rule, it would be desirable to mutual data packing generates the first protocol data bag, and passes to M-BUS;
Step 3:M-BUS receives application service module A the first protocol data bag passed over, and analyzes packet header, it is judged that this first protocol data bag is which the function services module being delivered to be articulated on messaging bus;Namely this first protocol data bag includes header part and data division, and messaging bus is by resolving the header part of the first protocol data bag, it is judged that know the second application service module being connected on this messaging bus.
According to judged result, step 4:M-BUS knows that this first protocol data bag is to pass to application service module B, then be directly forwarded to application service module B;
Step 5: application service module B receives the message that messaging bus passes over, and processes, and result is generated second protocol packet according to predetermined protocol rule packing;
Step 6: second protocol packet is passed to M-BUS by application service module B;
Step 7: messaging bus M-BUS receives the application service module B second protocol packet passed over, analyzes packet header, it is judged that this message is which the function services module being delivered to be articulated on messaging bus, at this, it is judged that know it is application service module A.Namely second protocol packet includes header part and data division, and messaging bus is by resolving the header part of second protocol packet, it is judged that know the first application service module being connected on this messaging bus.
Step 8: if a determination be made that application service module A, be then directly forwarded to application service module A;
Step 9: application service module A, according to the second protocol packet received, carries out follow-up logical process.
The above-mentioned scene being all connected on same messaging bus with each application service module is illustrated.
Carrying out in the process of message real-time, interactive at different application service modules (such as application service module A and B, application service module B and C or application service module A and C etc.) through M-BUS, M-BUS can be considered the maincenter of a message exchange.In actual application process, if only disposing a set of M-BUS, along with the increase of application service module, on M-BUS, the message of transmission also can increase, and so can affect the performance of messaging bus.For solving this problem, the multiple messaging bus of deployment are adopted to realize this programme.This programme preferably employs the following two kinds deployment mode:
The deployment mode of the bus of bus
Under this pattern, referring to Fig. 4, at each messaging bus, such as M-BUS (1), M-BUS (2), M-BUS (3) to M-BUS (n), on be connected to some application service modules, each messaging bus is connected on a common messaging bus M-BUS by EBI.
Such as, first application service module (such as A1) is connected on the first messaging bus M-BUS (1), second application service module (such as B2) is connected on the second messaging bus M-BUS (2), described first messaging bus and the second messaging bus are connected on the 3rd messaging bus respectively through EBI, and the 3rd messaging bus is corresponding to common messaging bus M-BUS.When the first application service module needs to carry out data interaction with the second application service module, referring to Fig. 5, idiographic flow is as follows:
Wherein, between the first application service module and M-BUS (1), between the second application service module and M-BUS (2) and M-BUS (1), the opposite ends under client/server C/S model each other between M-BUS (2) and common M-BUS.
Step 1: the first application service module is according to business logic processing demand, it may be judged whether interacting message will be carried out with the second application service module.
Step 2: if it is required, then the first application service module is according to predetermined protocol rule, packing generates the first protocol data bag, and passes to M-BUS (1);
Step 3:M-BUS (1) receives the first protocol data bag that the first application service module passes over, analyze packet header, judge that the second application service module that these data to be delivered is articulated on M-BUS (2), then forward this packet to common M-BUS (the 3rd messaging bus);Namely the first protocol data bag includes header part and data division, first messaging bus is by resolving the header part of described first protocol data bag, judge to know the second application service module being connected on the second messaging bus, and, the first messaging bus and the second messaging bus are all connected (i.e. deployment mode) with the 3rd messaging bus.
Step 4: after common M-BUS receives packet, analyzing this packet is to be transmitted to messaging bus M-BUS (2), then be directly forwarded to messaging bus M-BUS (2);
Step 5: messaging bus M-BUS (2) receives the messaging bus M-BUS protocol data bag passed over, and analyzes packet header, it is judged that this message is the B function services module being delivered to be articulated to self;
At this, not to how judging in interaction to know that purpose application service module and the concrete mode of messaging bus connected thereof are defined, such as, the second application service module has been known already by resolving packet header in above-mentioned steps 3, this second application service module is connected on M-BUS (2), and the deployment mode of the bus that pattern is bus disposed, then can also no longer carry out the parsing in packet header in steps of 5, information notice M-BUS (2) directly will known.
Step 6:M-BUS (2) directly forwards the first protocol data bag to the second application service module;
Step 7: the second application service module receives messaging bus M-BUS (2) message passed over, and processes.And result is generated second protocol packet according to predetermined protocol rule packing, it is then passed to messaging bus M-BUS (2);
Step 8: messaging bus M-BUS (2) receives the second protocol packet that the second application service module passes over, analyze packet header, judge that the service module A that this message to be delivered is articulated on messaging bus M-BUS (1), then forward this message bag to common M-BUS;
Step 9: after messaging bus M-BUS receives message bag, analyzing this message is to be transmitted to messaging bus M-BUS (1), then directly forward;
Step 10: messaging bus M-BUS (1) receives the messaging bus M-BUS protocol data bag passed over, and analyzes packet header, it is judged that this message is to be delivered to be articulated to the first application service module of self;
Step 11: then directly forward message bag to the first application service module;
Step 12: the first application service module, according to the protocol data bag received, carries out follow-up logical process.
From the above mentioned it can be seen that when carrying out data interaction, in the process that data send to destination, the first protocol data bag is sent to the 3rd messaging bus by the first messaging bus by EBI;First protocol data bag is forwarded to the second messaging bus by EBI by the 3rd messaging bus;First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.
In data from the process that destination returns, second protocol packet is sent to the 3rd messaging bus by the second messaging bus by EBI;Second protocol packet is forwarded to the first messaging bus by EBI by the 3rd messaging bus;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface.
The deployment mode of linear serial
Under this pattern, referring to Fig. 6, at each messaging bus, such as M-BUS (1), M-BUS (2), M-BUS (3) to M-BUS (n), on be connected to some application service modules, connected in serial mode by EBI between each messaging bus.By disposing multiple messaging bus, form a bigger virtual message bus (VirtualMessage-BUS, VM-BUS) being one another in series.
Such as, first application service module is connected on the first messaging bus M-BUS (1), described second application service module is connected on the second messaging bus M-BUS (2), described first messaging bus and the second messaging bus are connected in serial mode by EBI, or, between described first messaging bus and the second messaging bus, it is connected to other messaging bus multiple in serial mode by EBI.
Illustrate for the scene carrying out data interaction between application service module A and application service module B below, wherein, application service module A is connected on M-BUS (M), application service module B is connected on M-BUS (X), M-BUS (M) and M-BUS (X) is connected to multiple messaging bus, is collectively expressed as M-BUS (M ± 1).
Between application service module A and M-BUS (M), between application service module B and M-BUS (X), the opposite ends under messaging bus M-BUS (X) C/S model each other between M-BUS (M), M-BUS (X) and M-BUS (M ± 1).
Referring to Fig. 7, concrete interaction illustrates as follows:
Step 1: application service module A is according to business logic processing demand, it may be judged whether interacting message will be carried out with application service module B.
Step 2: if it is required, then according to predetermined protocol rule, packing generates the first protocol data bag, and passes to connected messaging bus M-BUS (M);
Step 3: messaging bus M-BUS (M) receives application service module A the first protocol data bag passed over, and analyzes packet header, it is judged that the service module B that this message to be delivered is articulated on messaging bus M-BUS (X).
Namely the first protocol data bag includes header part and data division, M-BUS (M) is by resolving the header part of described first protocol data bag, judge to know the second application service module being connected on the second messaging bus, and, the first messaging bus and the second messaging bus are connected with the pattern of serial.
When M-BUS (M) and M-BUS (X) contacts either directly through EBI, described first protocol data bag is sent directly to M-BUS (X) by EBI by M-BUS (M);First protocol data bag is sent to application service module B by M-BUS (X) by the second interface, and passes through the second interface application service module B second protocol packet generated according to result;
In this scene, also there is between M-BUS (M) and M-BUS (X) other messaging bus multiple, then include following process:
M-BUS (M) is it needs to be determined that data send path;M-BUS (M) sends path according to described data, by EBI, the first protocol data bag is sent to next messaging bus, gradually to forward described first protocol data bag on the messaging bus being arranged in described data transmission path, until sending to M-BUS (X);Described first protocol data bag is sent to application service module B by M-BUS (X) by the second interface, and passes through the second interface application service module B second protocol packet generated according to result.
Step 4:M-BUS (M) directly forwards on the packet next stage messaging bus to messaging bus M-BUS (M), the label of this next stage messaging bus can be M-BUS (M+1), can also be M-BUS (M-1), the concrete link position needed according to M-BUS (M) and M-BUS (X) is determined, at this, next stage messaging bus unified representation is become M-BUS (M ± 1).
Step 5: messaging bus M-BUS (M ± 1) receives the packet that higher level messaging bus M-BUS (M) passes over, and analyzes packet header, it may be judged whether arrive target message bus M-BUS (X);Without reaching, then continue to send in data this message bag is transmitted to the messaging bus M-BUS (M ± 2) of next stage in path, repeat this operation, forward message bag to next stage messaging bus M-BUS (M ± N).
Step 6: as M ± N=X, arrives purpose messaging bus M-BUS (X), sends the first protocol data bag to M-BUS (X);
Step 7: when messaging bus M-BUS (X) receives the protocol data bag that higher level messaging bus M-BUS (M+N-1 or M-N+1) passes over, analyze packet header, find that this message bag is to pass to the application service module B being articulated in above oneself, be then directly forwarded to application service module B;
Step 8: application service module B receives messaging bus M-BUS (X) message passed over, process, and result is generated second protocol packet according to predetermined protocol rule packing, it is then passed to messaging bus M-BUS (X);
Step 9: messaging bus M-BUS (X) receives the application service module B second protocol packet passed over, analyze packet header, judge that this message is the application service module A being delivered to be articulated on messaging bus M-BUS (M), then send path according to former data and return transmission second protocol packet to messaging bus M-BUS (M);
At this, not to how judging that in interaction the concrete mode knowing determined data transmission path is defined.
Step 10: when messaging bus M-BUS (M) receives application service module B through messaging bus M-BUS (X), ..., the second protocol packet that messaging bus M-BUS (M ± 1) passes over, analyze packet header, it is judged that these data are to be delivered to be articulated to oneself application service module A own;It is appreciated that, if M-BUS (M) knows second protocol packet corresponding to the first protocol data bag, without analyzing the packet header of second protocol packet, can know that these data are to be delivered to be articulated to oneself application service module A own according to the relevant information of the first protocol data bag preserved.
Step 11: if a determination be made that application service module A, be then directly forwarded to application service module A;
Step 12: application service module A, according to the second protocol packet received, carries out follow-up logical process.
From the above mentioned it can be seen that when carrying out data interaction, in the process that data send to destination, described first protocol data bag is sent to the second messaging bus by the first messaging bus by EBI;First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result;Or, the first messaging bus determines that data send path;First messaging bus sends path according to described data, by EBI, the first protocol data bag is sent to next messaging bus, gradually to forward described first protocol data bag on the messaging bus being arranged in described data transmission path, until sending to the second messaging bus;Described first protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.
In data from the process that destination returns, described second protocol packet is sent to the first messaging bus by the second messaging bus by EBI;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface;Or, second messaging bus is according to being judged that the data known send path, second protocol packet is sent to next messaging bus, gradually to forward described second protocol packet on the messaging bus being arranged in described data transmission path, until sending to the first messaging bus;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface.
Further, it is also possible to adopt above-mentioned both of which to dispose multiple messaging bus simultaneously, form the deployment mode of a kind of mixing.Such as, when adopting serial deployment mode, the independent junction point of each on connected in series can be made up of multiple messaging bus of the mode bus configuration adopting bus;Or, when adopting the bus deployment mode of bus, being connected to each junction point in common bus can be made up of the multiple messaging bus adopting serial mode configuration.
The embodiment of the present invention three additionally provides data interaction system on a kind of data service platform, and referring to Fig. 8, described system includes at least one messaging bus 80,
Described messaging bus 80, when the first application service module 81 determines that needs carry out data interaction with the second application service module 82, receives the first protocol data bag that the first application service module 81 is sent by first interface;Judge to know the second application service module 82 according to described first protocol data bag, first protocol data bag is sent to the second application service module 82 by the second interface, by the second application service module 82, described first protocol data bag is processed, and pass through the second protocol packet that second interface the second application service module generates according to result;And, by first interface, described second protocol packet is sent to the first application service module 81.
When system includes multiple messaging bus, it is possible to adopt the deployment mode of the bus of bus or linear serial mode to dispose these messaging bus.In the present embodiment, the specific works mode of messaging bus may refer to the embodiment of the present invention one and two.
Such as, if above-mentioned first application service module and the second application service module can be connected on same messaging bus, messaging bus is by resolving the header part of the first protocol data bag, it is judged that know the second application service module being connected on this messaging bus;And, messaging bus is by resolving the header part of described second protocol packet, it is judged that know the first application service module being connected on this messaging bus.
If the first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, first messaging bus and the second messaging bus are connected in serial mode by EBI, or, at least one messaging bus it is connected in serial mode by EBI between first messaging bus and the second messaging bus, at this moment, described first protocol data bag is sent to the second messaging bus by the first messaging bus by EBI;First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result;Or,
First messaging bus determines that data send path;First messaging bus sends path according to described data, by EBI, the first protocol data bag is sent to next messaging bus, gradually to forward described first protocol data bag on the messaging bus being arranged in described data transmission path, until sending to the second messaging bus;Described first protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.
If the first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, described first messaging bus and the second messaging bus are connected on the 3rd messaging bus respectively through EBI, at this moment, the first protocol data bag is sent to the 3rd messaging bus by the first messaging bus by EBI;First protocol data bag is forwarded to the second messaging bus by EBI by the 3rd messaging bus;First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.And, second protocol packet is sent to the 3rd messaging bus by the second messaging bus by EBI;Second protocol packet is forwarded to the first messaging bus by EBI by the 3rd messaging bus;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface.
Between above-mentioned first application service module, the second application service module and corresponding messaging bus, and the opposite ends under C/S model each other between each messaging bus.
From above-mentioned, the technical scheme of the embodiment of the present invention provides a kind of distributed data interworking architecture based on messaging bus on data service platform, using the messaging bus maincenter as data interaction, each different application service module is all connected on messaging bus and carries out data interaction respectively with messaging bus, and is realized the transmission of data by messaging bus.
The novel data interaction framework that this programme provides, message channel between Maintenance free application service module, and, fashionable there being new application service module to add, only the application service module that this is new need to be connected to messaging bus, without existing application service module is modified, substantially increase the autgmentability of platform, reduce the complexity that platform realizes.Further, this programme ensure that the application service module in data service platform only need to process the message relevant to self-demand, avoid application service module and receive message unnecessary in a large number, significantly improve the efficiency that data process, reduce the burden of platform.
It is mutual that this programme can effectively realize complicated real time data between different application service module, it is ensured that in data service platform data transmission accuracy and promptness.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within the scope of protection of the invention.

Claims (9)

1. data interactive method on a data service platform, it is characterised in that described method includes:
Dispose multiple messaging bus;
When the first application service module determines that needs carry out data interaction with the second application service module, messaging bus receives the first protocol data bag that the first application service module is sent by first interface;
Messaging bus judges to know the second application service module according to described first protocol data bag, is sent to the second application service module by the second interface by the first protocol data bag, the second application service module described first protocol data bag is processed;And pass through the second protocol packet that second interface the second application service module generates according to result;
Messaging bus judges to know the first application service module according to described second protocol packet, and is sent described second protocol packet to the first application service module by first interface;Wherein,
Described first application service module and the second application service module are connected on same messaging bus;Or, described first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, described first messaging bus and the second messaging bus are connected in serial mode by EBI, or, between described first messaging bus and the second messaging bus, it is connected at least one messaging bus in serial mode by EBI;Between described first application service module, the second application service module and corresponding messaging bus, and the opposite ends under Client/Server C/S model each other between each messaging bus.
2. method according to claim 1, it is characterised in that when described first application service module and the second application service module are connected on same messaging bus,
Described messaging bus judges to know that the second application service module specifically includes according to described first protocol data bag:
Described first protocol data bag includes header part and data division, and messaging bus is by resolving the header part of described first protocol data bag, it is judged that know the second application service module being connected on this messaging bus;
Described messaging bus judges to know that the first application service module specifically includes according to described second protocol packet:
Described second protocol packet includes header part and data division, and messaging bus is by resolving the header part of described second protocol packet, it is judged that know the first application service module being connected on this messaging bus.
3. method according to claim 1, it is characterised in that
When described first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, when described first messaging bus and the second messaging bus are connected in serial mode by EBI, or, when being connected at least one messaging bus in serial mode by EBI between described first messaging bus and the second messaging bus
Described messaging bus judges to know that the second application service module specifically includes according to described first protocol data bag:
Described first protocol data bag includes header part and data division, first messaging bus is by resolving the header part of described first protocol data bag, judge to know the second application service module being connected on the second messaging bus, and, the first messaging bus and the second messaging bus are connected with the pattern of serial;
Described messaging bus judges to know that the first application service module specifically includes according to described second protocol packet:
Described second protocol packet includes header part and data division, second messaging bus is by resolving the header part of described second protocol packet, judge to know the first application service module being connected on the first messaging bus, and, the first messaging bus and the second messaging bus are connected with the pattern of serial.
4. method according to claim 3, it is characterised in that
Described by the first protocol data bag by second interface send to the second application service module, the second application service module described first protocol data bag is processed;And the second protocol packet generated according to result by second interface the second application service module is specifically included:
Described first protocol data bag is sent to the second messaging bus by the first messaging bus by EBI;First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result;
Or,
First messaging bus determines that data send path;First messaging bus sends path according to described data, by EBI, the first protocol data bag is sent to next messaging bus, gradually to forward described first protocol data bag on the messaging bus being arranged in described data transmission path, until sending to the second messaging bus;Described first protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.
5. method according to claim 4, it is characterised in that the transmission of described second protocol packet is specifically included to the first application service module by described messaging bus by first interface:
Described second protocol packet is sent to the first messaging bus by the second messaging bus by EBI;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface;Or,
Second messaging bus is according to being judged that the data known send path, second protocol packet is sent to next messaging bus, gradually to forward described second protocol packet on the messaging bus being arranged in described data transmission path, until sending to the first messaging bus;Described second protocol packet is sent to the first application service module by the first messaging bus by first interface.
6. method according to claim 1, it is characterised in that
When described first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, when described first messaging bus and the second messaging bus are connected on the 3rd messaging bus respectively through EBI,
Described messaging bus judges to know that the second application service module specifically includes according to described first protocol data bag:
Described first protocol data bag includes header part and data division, first messaging bus is by resolving the header part of described first protocol data bag, judge to know the second application service module being connected on the second messaging bus, and, the first messaging bus and the second messaging bus are all connected with the 3rd messaging bus;
Described messaging bus judges to know that the first application service module specifically includes according to described second protocol packet:
Described second protocol packet includes header part and data division, second messaging bus is by resolving the header part of described second protocol packet, judge to know the first application service module being connected on the first messaging bus, and, the first messaging bus and the second messaging bus are all connected with the 3rd messaging bus.
7. method according to claim 6, it is characterised in that described by the first protocol data bag by second interface send to the second application service module, the second application service module described first protocol data bag is processed;And the second protocol packet generated according to result by second interface the second application service module is specifically included:
First protocol data bag is sent to the 3rd messaging bus by the first messaging bus by EBI;
First protocol data bag is forwarded to the second messaging bus by EBI by the 3rd messaging bus;
First protocol data bag is sent to the second application service module by the second messaging bus by the second interface, and passes through the second protocol packet that second interface the second application service module generates according to result.
8. method according to claim 7, it is characterised in that the transmission of described second protocol packet is specifically included to the first application service module by described messaging bus by first interface:
Second protocol packet is sent to the 3rd messaging bus by the second messaging bus by EBI;
Second protocol packet is forwarded to the first messaging bus by EBI by the 3rd messaging bus;
Described second protocol packet is sent to the first application service module by the first messaging bus by first interface.
9. data interaction system on a data service platform, it is characterised in that described system includes multiple messaging bus,
Described messaging bus, when the first application service module determines that needs carry out data interaction with the second application service module, receives the first protocol data bag that the first application service module is sent by first interface;Judge to know the second application service module according to described first protocol data bag, first protocol data bag is sent to the second application service module by the second interface, by the second application service module, described first protocol data bag is processed, and pass through the second protocol packet that second interface the second application service module generates according to result;And, by first interface, described second protocol packet is sent to the first application service module;Wherein,
Described first application service module and the second application service module are connected on same messaging bus;Or, described first application service module is connected on the first messaging bus, described second application service module is connected on the second messaging bus, described first messaging bus and the second messaging bus are connected in serial mode by EBI, or, between described first messaging bus and the second messaging bus, it is connected at least one messaging bus in serial mode by EBI;Between described first application service module, the second application service module and corresponding messaging bus, and the opposite ends under Client/Server C/S model each other between each messaging bus.
CN201110340552.3A 2011-11-01 2011-11-01 Data interactive method and system on data service platform Active CN103095564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110340552.3A CN103095564B (en) 2011-11-01 2011-11-01 Data interactive method and system on data service platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110340552.3A CN103095564B (en) 2011-11-01 2011-11-01 Data interactive method and system on data service platform

Publications (2)

Publication Number Publication Date
CN103095564A CN103095564A (en) 2013-05-08
CN103095564B true CN103095564B (en) 2016-07-06

Family

ID=48207718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110340552.3A Active CN103095564B (en) 2011-11-01 2011-11-01 Data interactive method and system on data service platform

Country Status (1)

Country Link
CN (1) CN103095564B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197833A (en) * 2006-09-28 2008-06-11 洛克威尔自动控制技术股份有限公司 Distributed message engines and systems
CN101976062A (en) * 2010-08-12 2011-02-16 华南理工大学 Open type control method based on lightweight service-oriented architectures (LSOA) framework

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529849B2 (en) * 2006-07-27 2009-05-05 International Business Machines Corporation Reduction of message flow between bus-connected consumers and producers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197833A (en) * 2006-09-28 2008-06-11 洛克威尔自动控制技术股份有限公司 Distributed message engines and systems
CN101976062A (en) * 2010-08-12 2011-02-16 华南理工大学 Open type control method based on lightweight service-oriented architectures (LSOA) framework

Also Published As

Publication number Publication date
CN103095564A (en) 2013-05-08

Similar Documents

Publication Publication Date Title
CN102882719B (en) Method and system for implementation of redundant backup of controllers in Openflow switch system
CN103347013A (en) OpenFlow network system and method for enhancing programmable capability
CN101009649A (en) Queue management in a network processor
CN102035751A (en) Data transmission method and equipment
CN107741884B (en) Method and device for realizing message pushing by hierarchical state machine
CN101924702A (en) Service data transmission method and device
CN104317661A (en) Intersystem communication method and device of dual embedded systems
CN108566390B (en) Satellite message monitoring and distributing service system
CN101146050B (en) Frame relaying packet transmission method and device
CN106301871A (en) A kind of forwarding detection (BFD) method based on lacp and system
CN111327527B (en) Flow forwarding method and system, SDN controller and computer readable storage medium
CN110417761A (en) Communication means and device based on dual-computer redundancy
CN114301995A (en) Conversion switching and intercommunication fusion system and method of real-time industrial Ethernet protocol
CN103281244B (en) A kind of service bearer method and device of multi-protocol label switching network
CN103326916A (en) System and method for automatic partition of intelligent substation and optimization of VLAN
CN103095564B (en) Data interactive method and system on data service platform
CN105049358A (en) Virtual forwarding platform of SDN (Software Defined Network) and communication method thereof
CN110430110B (en) On-site bus gateway and protocol conversion method thereof
US20120038487A1 (en) Method for remotely reading electric meters
CN104320322A (en) Message control method and equipment
CN101547110A (en) Method, system and device for registering multicast source
CN101030927B (en) Interface telecommunication between OSS subsystems based on middleware
CN104580000A (en) Flow table technology-based RapidIO switching method
CN102404176B (en) A kind of method of transmitting service flows in looped network and device
CN101127728A (en) A load sharing router and device and method for load sharing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building A block 5 layer

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder