CN108848031A - Information transferring method and device - Google Patents
Information transferring method and device Download PDFInfo
- Publication number
- CN108848031A CN108848031A CN201810611200.9A CN201810611200A CN108848031A CN 108848031 A CN108848031 A CN 108848031A CN 201810611200 A CN201810611200 A CN 201810611200A CN 108848031 A CN108848031 A CN 108848031A
- Authority
- CN
- China
- Prior art keywords
- message
- routing
- transmitted
- link
- rule
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/30—Routing of multiclass traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to field of data transmission, specifically provide a kind of information transferring method and device, method include:Establish the routing link between message components and each message-oriented middleware,Specify the routing iinformation of each routing link,Routing rule is configured into message components,The information and sending to be transmitted of message sending end input is received to the message components,By message to be transmitted in routing rule rule name and regular expression matched respectively to obtain the sending method of message to be transmitted and Target Link,Search the corresponding routing link of the Target Link,And message to be transmitted is routed in corresponding queue management device according to sending method according to the corresponding mailing address of the routing link and port numbers,Receive the message sink request that message sink end is sent,And with there are when message to be transmitted in the associated queue management device in message sink end,Message to be transmitted is sent to message sink end,Pass through the above method,With the high efficiency and reliability of effective guarantee message transmitting procedure.
Description
Technical field
The present invention relates to field of data transmission, in particular to a kind of information transferring method and device.
Background technique
Traditional is uniformly accessed into platform architecture, and user, which transmit a request to, is uniformly accessed into gateway, is uniformly accessed into gateway offer
Unified access address and communications protocol, request are requested by Message Agent, and by user according to channel mark in service message
It is sent to respective destination.In above-mentioned treatment process, since traditional Message Agent cannot analyze in the 7th layer protocol
Service fields.Therefore, it is necessary to self-developing Message Agent, parsing service fields, to forward the message to respectively different channels
Carry out Message Processing.
Inventor it has been investigated that, in the prior art, solve the above problems and the network communication of self-developing complexity needed to patrol
Volume, and the network abnormal situation in network communication is controlled, and then the case where there may be information drop-outs, and then transmit information
Reliability cannot effectively guarantee with high efficiency.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of information transferring method and device, with effective guarantee information biography
Defeated high efficiency and reliability.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
A kind of information transferring method, is applied to server, and the server is stored in a message components and multiple message
Between part, the method includes:
The routing link between the message components and each message-oriented middleware is established, each routing link is specified
Routing iinformation, wherein the routing iinformation includes mailing address, queued name and the port numbers of routing link, the queue
Title is corresponding with queue management device, the queue management device be stored in the message-oriented middleware and with the message-oriented middleware one by one
Corresponding, the queue management device is associated with message sink end;
Routing rule is configured into the message components, wherein the routing rule includes rule name and regular expression
Formula;
The information and sending to be transmitted of message sending end input is received to the message components, will the message to be transmitted and
Rule name and regular expression in the routing rule matched respectively with obtain the sending method of message to be transmitted and
Target Link;
The corresponding routing link of the Target Link is searched, and according to the corresponding mailing address of the routing link and port numbers
The message to be transmitted is routed in queue management device corresponding with the routing link according to described sender formula;
The message sink request that message sink end is sent is received, is searched based on message sink request and is connect with the message
It whether there is message to be transmitted in the associated queue management device of receiving end, and will be in the queue management device when there are message to be transmitted
Message to be transmitted be sent to the message sink end.
Optionally, in above- mentioned information transmission method, the routing iinformation further includes and the rule name in the routing iinformation
Claim default mark corresponding with regular expression, the message to be transmitted includes identification information, by the message to be transmitted and institute
Rule name and regular expression in routing rule is stated to be matched respectively to obtain the sending method of message to be transmitted and mesh
Mark link the step of include:
It obtains the identification information in the message to be transmitted and searches the default mark with the identification information match;
By in the message to be transmitted routing rule corresponding with the default mark rule name and regular expression divide
It is not matched to obtain the sending method of message to be transmitted and Target Link.
Optionally, in above- mentioned information transmission method, the message sink request for receiving message sink end and sending, base are being executed
It is searched in message sink request and whether there is message to be transmitted in the associated queue management device in message sink end, and
After the step of message in the queue management device is sent to the message sink end when there are message to be transmitted, the side
Method further includes:
The response feedback information that the message sink end is sent is received, and is sent to the corresponding message pipe in the message sink end
Manage device;
Response feedback information in the message manager is routed into the message components using corresponding routing link, with
Response feedback information in the message components is fed back into the message sending end.
Optionally, in above- mentioned information transmission method, the message components and each message-oriented middleware are established in execution
Between routing link, after the step of specifying the routing iinformation of each routing link, the method also includes:
The routing iinformation is saved into route information table;
The step of searching the Target Link corresponding routing link include:
It is searched from the routing link of each routing iinformation in the route information table corresponding with the Target Link
Routing link.
Optionally, in above- mentioned information transmission method, the message to be transmitted includes:Whether message supports transactional, disappears
Whether breath supports whether succession, message need to be re-added to queue, and whether message needs expired time, message to be arranged whether
Need dead letter queue, message whether need user domain management and message whether have data flow demand any one or more
, described sender formula include forwarding or duplication forwarding, the message-oriented middleware include kafka, rabbitmq and/or
Rocketmq。
The present invention also provides a kind of information carrying means, are applied to server, and the server is stored with a message components
With multiple message-oriented middlewares, described device includes:
Link establishment module, the routing link for establishing between the message components and each message-oriented middleware, refers to
The routing iinformation of fixed each routing link, wherein the routing iinformation include the mailing address of routing link, queued name with
And port numbers, the queued name are corresponding with queue management device, the queue management device be stored in the message-oriented middleware and with
The message-oriented middleware corresponds, and the queue management device is associated with message sink end;
Rule configuration module, for configuring routing rule into the message components, wherein the routing rule includes rule
Then title and regular expression;
Message reception module, for receiving the information and sending to be transmitted of message sending end input to the message components,
By the message to be transmitted in the routing rule rule name and regular expression match respectively it is to be passed to obtain
The sending method and Target Link of defeated message;
Searching module, for searching the corresponding routing link of the Target Link, and it is corresponding logical according to the routing link
Believe that the message to be transmitted is routed to queue pipe corresponding with the routing link according to described sender formula by address and port numbers
It manages in device;
Message transmission module is asked for receiving the message sink request of message sink end transmission based on the message sink
Ask lookup in the associated queue management device in message sink end with the presence or absence of message to be transmitted, and there are message to be transmitted
When the message to be transmitted in the queue management device is sent to the message sink end.
Optionally, in above- mentioned information transmitting device, the routing iinformation further includes and the rule name in the routing iinformation
Claim default mark corresponding with regular expression, the message to be transmitted includes identification information, and the message reception module includes:
Acquisition submodule is identified, for obtaining the identification information in the message to be transmitted and searching and the identification information
The default mark matched;
Matched sub-block, for by the rule name in the message to be transmitted routing rule corresponding with the default mark
It is matched respectively with regular expression to obtain the sending method of message to be transmitted and Target Link.
Optionally, in above- mentioned information transmitting device, described device further includes:
Response message receiving module, the response feedback information sent for receiving the message sink end, and it is sent to this
The corresponding message manager in message sink end;
Response message sending module, for the response feedback information in the message manager to be used corresponding routing link
The message components are routed to, the response feedback information in the message components is fed back into the message sending end.
Optionally, in above- mentioned information transmitting device, described device further includes:
Preserving module, for saving the routing iinformation into route information table;
The searching module is also used to search from the routing link of each routing iinformation in the route information table
Routing link corresponding with the Target Link.
Optionally, in above- mentioned information transmitting device, the message to be transmitted includes:Whether message supports transactional, disappears
Whether breath supports whether succession, message need to be re-added to queue, and whether message needs expired time, message to be arranged whether
Need dead letter queue, message whether need user domain management and message whether have data flow demand any one or more
, described sender formula include forwarding or duplication forwarding, the message-oriented middleware include kafka, rabbitmq and/or
Rocketmq。
A kind of information transferring method and device provided by the invention, by establishing between message components and each message-oriented middleware
Routing link, specify the routing iinformation of each routing link, and routing rule is configured into message components, with receive message hair
Sending end input message to be transmitted when, by message to be transmitted in routing rule rule name and regular expression carry out respectively
Matching searches the corresponding routing link of the Target Link, and root to obtain the sending method and Target Link of message to be transmitted
It is sent according to the routing link, and then the high efficiency and reliability of effective guarantee message transmitting procedure.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Fig. 1 is a kind of application block diagram of server provided in an embodiment of the present invention.
Fig. 2 is the flow diagram of information transferring method provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of step S130 in Fig. 2.
Fig. 4 is another flow diagram of information transferring method provided in an embodiment of the present invention.
Fig. 5 is the connection block diagram of information carrying means provided in an embodiment of the present invention.
Fig. 6 is the connection block diagram of message reception module provided in an embodiment of the present invention.
Fig. 7 is another connection block diagram of information carrying means provided in an embodiment of the present invention.
Icon:10- server;20- message sending end;30- message sink end;100- information carrying means;110- link
Establish module;120- rule configuration module;130- message reception module;132- identifies acquisition submodule;134- matched sub-block;
140- searching module;150- message transmission module;160- response message receiving module;170- response message sending module;180-
Preserving module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only
It is a part of the embodiments of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings
The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed
The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Referring to Fig. 1, the embodiment of the invention provides a kind of application block diagrams of server 10, wherein the server 10
It is associated with message sending end 20 and message sink end 30, so that the message sending end 20 can will be to by the server 10
Transmission message is sent to the message sink end 30, and the quantity at the message sending end 20 and the message sink end 30 can be with
It is one, is also possible to multiple.
A message components and multiple message-oriented middlewares are stored in the server 10, it should be noted that in this reality
It applies in example, the message passing mechanism that the message-oriented middleware can use high efficient and reliable carries out platform-independent data exchange, and
The integrated of distributed system is carried out based on data communication, by providing message transmission and message queueing model, and can divided
Communication under cloth environment between extension process, the message components also may be implemented same or similar with the message-oriented middleware
Function.In the present embodiment, the message-oriented middleware can include but is not limited to kafka, rabbitmq and/or Rocketmq,
The message components can include but is not limited to kafka, rabbitmq or Rocketmq.
Incorporated by reference to Fig. 2, a kind of information transferring method can be applied to above-mentioned server 10 provided by the invention, the information
Transmission method is applied to realize five steps of step S110-S150 when above-mentioned server 10.
Step S110:The routing link between the message components and each message-oriented middleware is established, is specified each described
The routing iinformation of routing link.
Wherein, the routing iinformation includes mailing address, queued name and the port numbers of routing link, the queue name
Title is corresponding with queue management device, and the queue management device is stored in the message-oriented middleware and a pair of with the message-oriented middleware one
It answers, the queue management device is associated with message sink end 30.
It is appreciated that can also include but is not limited to the functional descriptions and/or message of message in the routing iinformation
Processing mode etc..Specifically, in the present embodiment, the message to be transmitted includes:Whether message supports transactional, and whether message
Support whether succession, message need to be re-added to queue, whether message needs to be arranged whether expired time, message need extremely
Believe queue, message whether need user domain management and message whether have data flow demand it is any one or more.
The route messages can be saved into the routing table of the server 10, can also be saved to associated database
In, it is not specifically limited herein.
Optionally, in the present embodiment, the road between the message components and each message-oriented middleware is established in execution
By link, after the step of specifying the routing iinformation of each routing link, the method also includes:The routing iinformation is protected
It deposits into route information table.
Step S120:Configure routing rule into the message components, wherein the routing rule include rule name and
Regular expression.
Specifically, the regular expression can be one or more pre- for may include in the heading of message to be transmitted
If the corresponding relationship of keyword or default mark and queued name, wherein when for multiple preset relation words or default mark, it should
There is logical relation between multiple predetermined keywords or default mark.
Step S130:The information and sending to be transmitted that reception message sending end 20 inputs, will be described to the message components
Message to be transmitted in the routing rule rule name and regular expression matched respectively to obtain message to be transmitted
Sending method and Target Link.
Wherein, described sender formula can be forwarding or duplication forwarding, may include keyword in the message to be transmitted
Or mark, by the message to be transmitted in the routing rule rule name and regular expression match respectively with
When obtaining the sending method and Target Link of message to be transmitted, the keyword or mark that will include in the message to be transmitted can be
Know in regular expression in the routing rule predetermined keyword or default identify matched respectively, and according to rule name
Title obtains the sending method and Target Link of message to be transmitted, wherein the keyword or mark can be for message sink ends 30
Number, type or attribute etc., are not specifically limited herein.
When the routing iinformation is stored in the route information table, the corresponding routing link of the Target Link is searched
Step includes:It is searched from the routing link of each routing iinformation in the route information table corresponding with the Target Link
Routing link, and then can be with high efficiency of the effective guarantee when searching the corresponding routing link of Target Link.
Incorporated by reference to Fig. 3, optionally, in the present embodiment, the routing iinformation further includes and the rule in the routing iinformation
Title and the corresponding default mark of regular expression, the message to be transmitted includes identification information, by the message to be transmitted with
Rule name and regular expression in the routing rule matched respectively with obtain the sending method of message to be transmitted and
The step of Target Link includes following sub-step:
Step S132:It obtains the identification information in the message to be transmitted and searches the pre- bidding with the identification information match
Know.
Step S134:By the rule name and rule in the message to be transmitted routing rule corresponding with the default mark
Expression formula is matched respectively to obtain the sending method of message to be transmitted and Target Link.
Step S140:The corresponding routing link of the Target Link is searched, and corresponding communicatedly according to the routing link
The message to be transmitted is routed to queue management device corresponding with the routing link according to described sender formula by location and port numbers
In.
Wherein, different message sink ends 30 can be corresponding with different port numbers, corresponding logical according to the routing link
Letter address and port numbers carry out sending the reliability that can be transmitted message to be transmitted with effective guarantee.
Step S150:The message sink request that message sink end 30 is sent is received, is searched based on message sink request
It is incited somebody to action with the associated queue management device in the message sink end 30 with the presence or absence of message to be transmitted, and when there are message to be transmitted
Message to be transmitted in the queue management device is sent to the message sink end 30.
It, can be with the height of effective guarantee message transmitting procedure with when message to be transmitted to be forwarded by the above method
Effect property and reliability.It avoids and carries out needing the network communication logic of self-developing complexity in transmission process using the prior art,
And control the network abnormal situation in network communication, it is understood that there may be the case where the loss of message.
Incorporated by reference to Fig. 4, can be fed back to the message sending end 20 to realize when message sink end 30 receives message
Message, optionally, in the present embodiment, the information transferring method further includes step S160 and step S170.
Step S160:The response feedback information that the message sink end 30 is sent is received, and is sent to the message sink end
30 corresponding message managers.
Step S170:Response feedback information in the message manager is routed into described disappear using corresponding routing link
Component is ceased, the response feedback information in the message components is fed back into the message sending end 20.
Incorporated by reference to Fig. 5, on the basis of the above, the present invention also provides a kind of information carrying means 100, including:Link establishment
Module 110, rule configuration module 120, message reception module 130, searching module 140 and message transmission module 150.
The link establishment module 110 is used for the routing chain established between the message components and each message-oriented middleware
The routing iinformation of each routing link is specified on road.Wherein, the routing iinformation includes the mailing address of routing link, queue
Title and port numbers, the queued name are corresponding with queue management device, and the queue management device is stored among the message
It part and is corresponded with the message-oriented middleware, the queue management device is associated with message sink end 30.In the present embodiment, institute
Stating link establishment module 110 can be used for executing step S110 shown in Fig. 2, about specifically retouching for the link establishment module 110
It states and is referred to the description to step S110 above.
The rule configuration module 120 is for configuring routing rule into the message components, wherein the routing rule
Including rule name and regular expression.In the present embodiment, the rule configuration module 120 can be used for executing shown in Fig. 2
Step S120, the specific descriptions about the rule configuration module 120 are referred to the description to step S120 above.
The information and sending to be transmitted that the message reception module 130 is used to receive the input of message sending end 20 disappears to described
Cease component, by the message to be transmitted in the routing rule rule name and regular expression match respectively with must
To the sending method and Target Link of message to be transmitted.In the present embodiment, the rule configuration module 120 can be used for executing figure
Step S130 shown in 2, the specific descriptions about the rule configuration module 120 are referred to above retouch step S130
It states.
Incorporated by reference to Fig. 6, optionally, in the present embodiment, the routing iinformation further includes and the rule in the routing iinformation
Title and the corresponding default mark of regular expression, the message to be transmitted includes identification information, the message reception module 130
Including:Identify acquisition submodule 132 and matched sub-block 134.
The mark acquisition submodule 132 is used to obtain the identification information in the message to be transmitted and searches and the mark
The default mark of information matches.In the present embodiment, the mark acquisition submodule 132 can be used for executing step shown in Fig. 3
S132, the specific descriptions about the mark acquisition submodule 132 are referred to the description to step S132 above.
The matched sub-block 134 is used to the message to be transmitted presetting the rule in the corresponding routing rule of mark with this
Then title and regular expression are matched respectively to obtain the sending method of message to be transmitted and Target Link.In the present embodiment
In, the matched sub-block 134 can be used for executing step S134 shown in Fig. 3, about specifically retouching for the matched sub-block 134
It states and is referred to the description to step S134 above.
The searching module 140 is used to search the corresponding routing link of the Target Link, and according to the routing link pair
The mailing address and port numbers answered route to the message to be transmitted according to described sender formula corresponding with the routing link
In queue management device.In the present embodiment, the searching module 140 can be used for executing step S140 shown in Fig. 2, about described
The specific descriptions of searching module 140 are referred to the description to step S150 above.
The message transmission module 150 is used to receive the message sink request of the transmission of message sink end 30, is disappeared based on described
Breath receives request and searches and whether there is message to be transmitted in the associated queue management device in the message sink end 30, and exists
Message to be transmitted in the queue management device is sent to the message sink end 30 when message to be transmitted.In the present embodiment,
The message transmission module 150 can be used for executing step S150 shown in Fig. 2, about the specific of the message transmission module 150
Description is referred to the description to step S150 above.
Optionally, in the present embodiment, the message to be transmitted includes:Whether message supports whether transactional, message prop up
Succession is held, whether message needs to be re-added to queue, and whether message needs to be arranged whether expired time, message need the dead letter
Queue, message whether need user domain management and message whether have data flow demand it is any one or more, it is described
Sending method includes forwarding or duplication forwarding, and the message-oriented middleware includes kafka, rabbitmq and/or Rocketmq.
Incorporated by reference to Fig. 7, optionally, in the present embodiment, the information carrying means 100 further includes:Response message receives
Module 160 and response message sending module 170.
The response message receiving module 160 is used to receive the response feedback information that the message sink end 30 is sent, and
It is sent to the corresponding message manager in message sink end 30.In the present embodiment, the response message receiving module 160 can be used
In executing step S160 shown in Fig. 4, the specific descriptions about the response message receiving module 160 are referred to above to step
The description of rapid S160.
The response message sending module 170 is used to the response feedback information in the message manager using corresponding road
The message components are routed to by link, the response feedback information in the message components is fed back into the message sending end
20.In the present embodiment, the response message sending module 170 can be used for executing step S170 shown in Fig. 4, answer about described
The specific descriptions for answering information sending module 170 are referred to the description to step S170 above.
Optionally, in the present embodiment, the information carrying means 100 further includes preserving module 180.
The preserving module 180 is for saving the routing iinformation into route information table.About the preserving module
180 specific descriptions please refer to above to the specific descriptions of the information transferring method.
The searching module 140 is also used to from the routing link of each routing iinformation in the route information table
Search routing link corresponding with the Target Link.
To sum up, a kind of information transferring method and device provided by the invention, by establishing among message components and each message
Routing link between part, specifies the routing iinformation of each routing link, and routing rule is configured into message components, to receive
When the message to be transmitted that message sending end 20 inputs, by the rule name and regular expression in message to be transmitted and routing rule
It is matched respectively to obtain the sending method of message to be transmitted and Target Link, searches the corresponding routing chain of the Target Link
Road, and sent according to the routing link, and then the high efficiency and reliability of effective guarantee message transmitting procedure.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of information transferring method, it is applied to server, which is characterized in that the server is stored with message components and more
A message-oriented middleware, the method includes:
The routing link between the message components and each message-oriented middleware is established, the routing of each routing link is specified
Information, wherein the routing iinformation includes mailing address, queued name and the port numbers of routing link, the queued name
It is corresponding with queue management device, the queue management device is stored in the message-oriented middleware and a pair of with the message-oriented middleware one
It answers, the queue management device is associated with message sink end;
Routing rule is configured into the message components, wherein the routing rule includes rule name and regular expression;
The information and sending to be transmitted of message sending end input is received to the message components, by the message to be transmitted with it is described
Rule name and regular expression in routing rule are matched respectively to obtain the sending method of message to be transmitted and target
Link;
Search the corresponding routing link of the Target Link, and according to the corresponding mailing address of the routing link and port numbers according to
Described sender formula routes to the message to be transmitted in queue management device corresponding with the routing link;
The message sink request that message sink end is sent is received, is searched and the message sink end based on message sink request
Whether there is message to be transmitted in associated queue management device, and when there are message to be transmitted by the queue management device to
Transmission message is sent to the message sink end.
2. information transferring method according to claim 1, which is characterized in that the routing iinformation further includes believing with the routing
The corresponding default mark of rule name and regular expression in breath, the message to be transmitted includes identification information, will it is described to
Transmission message in the routing rule rule name and regular expression matched respectively to obtain message to be transmitted
The step of sending method and Target Link includes:
It obtains the identification information in the message to be transmitted and searches the default mark with the identification information match;
By in the message to be transmitted routing rule corresponding with the default mark rule name and regular expression respectively into
Row matching is to obtain the sending method and Target Link of message to be transmitted.
3. information transferring method according to claim 1, which is characterized in that receive disappearing for message sink end transmission executing
Breath receives request, is searched based on message sink request and be whether there is in the associated queue management device in message sink end
Message to be transmitted, and the message in the queue management device is sent to when there are message to be transmitted the step at the message sink end
After rapid, the method also includes:
The response feedback information that the message sink end is sent is received, and is sent to the corresponding message management in message sink end
Device;
Response feedback information in the message manager is routed into the message components using corresponding routing link, it should
Response feedback information in message components feeds back to the message sending end.
4. information transferring method according to claim 1, which is characterized in that establish the message components and each institute in execution
After the step of stating the routing link between message-oriented middleware, specifying the routing iinformation of each routing link, the method is also
Including:
The routing iinformation is saved into route information table;
The step of searching the Target Link corresponding routing link include:
Road corresponding with the Target Link is searched from the routing link of each routing iinformation in the route information table
By link.
5. information transferring method according to claim 1, which is characterized in that the message to be transmitted includes:Whether message
Support whether transactional, message support whether succession, message need to be re-added to queue, it is expired whether message needs to be arranged
Whether time, message need dead letter queue, and whether message needs whether user domain management and message have the flow demand of data
It is any one or more, described sender formula include forwarding or duplication forwarding, the message-oriented middleware include kafka,
Rabbitmq and/or Rocketmq.
6. a kind of information carrying means, it is applied to server, which is characterized in that the server is stored with message components and more
A message-oriented middleware, described device include:
Link establishment module, the routing link for establishing between the message components and each message-oriented middleware are specified each
The routing iinformation of the routing link, wherein the routing iinformation includes mailing address, queued name and the end of routing link
Slogan, the queued name are corresponding with queue management device, the queue management device be stored in the message-oriented middleware and with it is described
Message-oriented middleware corresponds, and the queue management device is associated with message sink end;
Rule configuration module, for configuring routing rule into the message components, wherein the routing rule includes rule name
Title and regular expression;
Message reception module, for receive message sending end input information and sending to be transmitted to the message components, by institute
State message to be transmitted in the routing rule rule name and regular expression matched respectively to obtain to be transmitted disappear
The sending method and Target Link of breath;
Searching module, for searching the corresponding routing link of the Target Link, and it is corresponding communicatedly according to the routing link
The message to be transmitted is routed to queue management device corresponding with the routing link according to described sender formula by location and port numbers
In;
Message transmission module is looked into for receiving the message sink request of message sink end transmission based on message sink request
It looks for and whether there is message to be transmitted in the associated queue management device in message sink end, and will when there are message to be transmitted
Message to be transmitted in the queue management device is sent to the message sink end.
7. information carrying means according to claim 6, which is characterized in that the routing iinformation further includes believing with the routing
The corresponding default mark of rule name and regular expression in breath, the message to be transmitted includes identification information, the message
Receiving module includes:
Acquisition submodule is identified, for obtaining the identification information in the message to be transmitted and searching and the identification information match
Default mark;
Matched sub-block, for by the message to be transmitted routing rule corresponding with the default mark rule name and rule
Then expression formula is matched respectively to obtain the sending method of message to be transmitted and Target Link.
8. information carrying means according to claim 6, which is characterized in that described device further includes:
Response message receiving module, the response feedback information sent for receiving the message sink end, and it is sent to the message
The corresponding message manager in receiving end;
Response message sending module, for routing the response feedback information in the message manager using corresponding routing link
To the message components, the response feedback information in the message components is fed back into the message sending end.
9. information carrying means according to claim 6, which is characterized in that described device further includes:
Preserving module, for saving the routing iinformation into route information table;
The searching module is also used to lookup and institute from the routing link of each routing iinformation in the route information table
State the corresponding routing link of Target Link.
10. information carrying means according to claim 6, which is characterized in that the message to be transmitted includes:Whether message
Support whether transactional, message support whether succession, message need to be re-added to queue, it is expired whether message needs to be arranged
Whether time, message need dead letter queue, and whether message needs whether user domain management and message have the flow demand of data
It is any one or more, described sender formula include forwarding or duplication forwarding, the message-oriented middleware include kafka,
Rabbitmq and/or Rocketmq.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810611200.9A CN108848031A (en) | 2018-06-14 | 2018-06-14 | Information transferring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810611200.9A CN108848031A (en) | 2018-06-14 | 2018-06-14 | Information transferring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108848031A true CN108848031A (en) | 2018-11-20 |
Family
ID=64201746
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810611200.9A Pending CN108848031A (en) | 2018-06-14 | 2018-06-14 | Information transferring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108848031A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291254A (en) * | 2020-11-05 | 2021-01-29 | 中国人民银行清算总中心 | Message processing method and device for reliable transaction |
CN114785805A (en) * | 2022-04-18 | 2022-07-22 | 北京高途云集教育科技有限公司 | Data transmission method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7010607B1 (en) * | 1999-09-15 | 2006-03-07 | Hewlett-Packard Development Company, L.P. | Method for training a communication link between ports to correct for errors |
CN101431476A (en) * | 2008-12-12 | 2009-05-13 | 中国工商银行股份有限公司 | Data transmission method based on message queue, server and system |
CN103209214A (en) * | 2013-04-03 | 2013-07-17 | 蓝盾信息安全技术股份有限公司 | Not only structured query language (NoSQL)-based method for realizing message-oriented middleware |
CN103856393A (en) * | 2013-07-09 | 2014-06-11 | 携程计算机技术(上海)有限公司 | Distributed message-oriented middleware system based on database and operating method thereof |
CN103927218A (en) * | 2014-04-30 | 2014-07-16 | 广州唯品会网络技术有限公司 | Event dispatching method and system |
CN105610926A (en) * | 2015-12-22 | 2016-05-25 | 广州唯品会信息科技有限公司 | Message transmitting method and system and message middleware system |
US20160261727A1 (en) * | 2015-03-06 | 2016-09-08 | Connie W. Yang | Systems and methods of streaming data |
-
2018
- 2018-06-14 CN CN201810611200.9A patent/CN108848031A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7010607B1 (en) * | 1999-09-15 | 2006-03-07 | Hewlett-Packard Development Company, L.P. | Method for training a communication link between ports to correct for errors |
CN101431476A (en) * | 2008-12-12 | 2009-05-13 | 中国工商银行股份有限公司 | Data transmission method based on message queue, server and system |
CN103209214A (en) * | 2013-04-03 | 2013-07-17 | 蓝盾信息安全技术股份有限公司 | Not only structured query language (NoSQL)-based method for realizing message-oriented middleware |
CN103856393A (en) * | 2013-07-09 | 2014-06-11 | 携程计算机技术(上海)有限公司 | Distributed message-oriented middleware system based on database and operating method thereof |
CN103927218A (en) * | 2014-04-30 | 2014-07-16 | 广州唯品会网络技术有限公司 | Event dispatching method and system |
US20160261727A1 (en) * | 2015-03-06 | 2016-09-08 | Connie W. Yang | Systems and methods of streaming data |
CN105610926A (en) * | 2015-12-22 | 2016-05-25 | 广州唯品会信息科技有限公司 | Message transmitting method and system and message middleware system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112291254A (en) * | 2020-11-05 | 2021-01-29 | 中国人民银行清算总中心 | Message processing method and device for reliable transaction |
CN112291254B (en) * | 2020-11-05 | 2023-05-05 | 中国人民银行清算总中心 | Message processing method and device for reliable transaction |
CN114785805A (en) * | 2022-04-18 | 2022-07-22 | 北京高途云集教育科技有限公司 | Data transmission method and device, electronic equipment and storage medium |
CN114785805B (en) * | 2022-04-18 | 2024-04-12 | 北京高途云集教育科技有限公司 | Data transmission method, device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8738700B2 (en) | Method and system for providing network services | |
US6658485B1 (en) | Dynamic priority-based scheduling in a message queuing system | |
US7359393B1 (en) | Method and apparatus for border gateway protocol convergence using update groups | |
US6226684B1 (en) | Method and apparatus for reestablishing network connections in a multi-router network | |
US7917578B1 (en) | Managing state information in a computing environment | |
US7949704B2 (en) | Administration of a broker-based publish/subscribe messaging system | |
CN107454094A (en) | A kind of data interactive method and system | |
US20080310416A1 (en) | Vlan server | |
US7626982B2 (en) | System and method for communication over an adaptive service bus | |
US7433349B2 (en) | Automatic compiling of address filter information | |
US20030229674A1 (en) | Internet scaling in a PUB/SUB ENS | |
US10027703B2 (en) | Managing rogue devices through a network backhaul | |
CN109729040A (en) | Method, equipment and the computer-readable medium of the selection of agreement | |
CN108848031A (en) | Information transferring method and device | |
US10341176B2 (en) | System and method for network provisioning | |
US20100325640A1 (en) | Queueing messages related by affinity set | |
CN107483628A (en) | Unidirectional proxy method and system based on DPDK | |
KR100597405B1 (en) | System and method for relaying data by use of socket applicaton program | |
US11356298B2 (en) | Access management apparatus and access management method | |
CN111385146A (en) | API gateway routing entity configuration method and system based on Kong | |
CN112995056A (en) | Traffic scheduling method, electronic device and storage medium | |
CN115695512A (en) | Data subscription method, system, equipment and storage medium based on micro-service architecture | |
US7593404B1 (en) | Dynamic hardware classification engine updating for a network interface | |
US7171457B1 (en) | Processing numeric addresses in a network router | |
JP2006033106A (en) | Service providing platform system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181120 |