CN115580571A - Message sending method, device, computing equipment and storage medium - Google Patents

Message sending method, device, computing equipment and storage medium Download PDF

Info

Publication number
CN115580571A
CN115580571A CN202211175869.0A CN202211175869A CN115580571A CN 115580571 A CN115580571 A CN 115580571A CN 202211175869 A CN202211175869 A CN 202211175869A CN 115580571 A CN115580571 A CN 115580571A
Authority
CN
China
Prior art keywords
message
route
routing
domain
expression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211175869.0A
Other languages
Chinese (zh)
Other versions
CN115580571B (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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202211175869.0A priority Critical patent/CN115580571B/en
Publication of CN115580571A publication Critical patent/CN115580571A/en
Application granted granted Critical
Publication of CN115580571B publication Critical patent/CN115580571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The embodiment of the application provides a message sending method, a message sending device, computing equipment and a storage medium, and relates to the field of task scheduling, wherein the method comprises the following steps: analyzing the domain value of each message domain of the message to be sent; determining a first target route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain; determining a first routing expression which accords with the first destination route from a routing rule setting record; determining each first domain value corresponding to each first parameter item in the first routing expression in each message domain; and if the first domain values conform to the first routing expression, sending the message to be sent through a sending path corresponding to the first routing expression. By the message sending method, the pain points of expanding and modifying the routing table can be effectively simplified, and the difficulty of adding routing rules each time is reduced.

Description

Message sending method, device, computing equipment and storage medium
Technical Field
The embodiment of the application relates to the field of task scheduling, in particular to a message sending method, a message sending device, computing equipment and a storage medium.
Background
In the rapid development of the internet, routing can be said to constitute the backbone of the internet. The message forwarding is realized through a routing rule in the route, and the message forwarding path information is obtained on the route based on the routing rule so as to forward the message. The message is forwarded based on the routing rule, so that the efficiency can be effectively improved.
Currently, routing rules exist in the form of table structures. When a message is received, the message is analyzed according to a preset routing rule, and a path which is in accordance with the analysis result is inquired from the exterior to forward the message. Analyzing the message according to the routing rule means that a message domain required to be used in the routing rule is defined in advance, and the corresponding routing rule is searched according to a message analysis result. However, the service requirement may change, such as adding a routing rule or modifying a routing rule, and when the routing rule changes, a message domain may be added to the routing rule or a word message domain may be reduced, at this time, a message domain (field) needs to be added to the table or a message domain needs to be reduced, and a code for performing routing query on the table needs to be modified. This implementation is difficult and requires a lot of manual modification.
In summary, there is a need for a method for sending a message, which can more conveniently increase routing rules and reduce workload of workers when service demands increase.
Disclosure of Invention
The embodiment of the application provides a message sending method, a message sending device, computing equipment and a storage medium, and solves the problem that operations for changing routing rules are more when service requirements change.
In a first aspect, an embodiment of the present application provides a packet sending method, where the method includes: analyzing the domain value of each message domain of the message to be sent;
determining a first target route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain;
determining a first routing expression which accords with the first destination route from a routing rule setting record;
determining each first threshold value corresponding to each first parameter item in the first routing expression in each message domain;
and if the first domain values conform to the first routing expression, sending the message to be sent through a sending path corresponding to the first routing expression.
In the above implementation manner, the message domain corresponding to the routing rule is not limited, that is, the message to be sent may be subjected to global analysis, that is, each domain of the message may be analyzed. And then, according to the domain value of the source route corresponding to the message, matching a first target route in the route information setting record, then finding a first route expression corresponding to the first target route in the route rule setting record according to the first target route, and determining a sending path of the message based on the first route expression to send the message. In the implementation scheme, the route information setting record focuses on the source route and the destination route, namely, the route information setting record is modified only when the route changes; the sending path is searched according to the routing expression corresponding to the target route, and if the routing rule is required to be changed, only the routing expression is required to be changed, so that the corresponding sending path can be quickly found based on different routing rules, the waste of resources is reduced, and the development workload or errors of some routing rules are avoided.
In a possible design, the same source route in the route information setting record corresponds to a plurality of destination routes; determining the destination route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain, wherein the method comprises the following steps: and determining a destination route with the highest priority from a route information setting record according to the domain value of the source route in each message domain, wherein the destination route is used as the first destination route of the message to be sent.
Each destination route in the route information setting record has a priority, the domain value of the source route of the message is obtained after the message is analyzed, one or more corresponding destination routes are available for the domain value of the source route in the route information setting record, and the destination route with the highest priority is obtained firstly as the first destination route corresponding to the domain value of the source route through matching from high to low of the priority. In this implementation, the packet can be forwarded preferentially through the destination route with high priority.
In a possible design, determining a destination route with the highest priority from a route information setting record according to a domain value of a source route in each message domain, as a first destination route of the message to be sent, further includes: if the first domain values do not accord with the first route expression, determining a destination route with a second highest priority from the route information setting record according to the domain value of the source route, and using the destination route as a second destination route of the message to be sent;
determining a second route expression which accords with the second destination route from the route rule setting record;
determining each second domain value corresponding to each second parameter item in the second routing expression in each message domain;
and if the second domain values conform to the second routing expression, sending the message to be sent through a sending path corresponding to the second routing expression.
And the message acquires a corresponding destination route according to the analyzed source route domain value. And then, a first expression is obtained according to the first target route obtained according to the highest priority order, the obtained first expression is not successfully matched with each first domain value, a second target route corresponding to the next highest priority level under the highest priority order is found again through the domain value of the source route, then, a second route expression is found according to the second target route, the second route expression is matched with each domain value of the message, and the message is sent through a path corresponding to the second route expression if the matching is successful. If not, the third destination route is obtained to send the message according to the method. The design enables the information required by the message to be rapidly acquired step by step in the coming of the message according to the routing rule.
In one possible design, routing expressions are added or modified in the routing rule set record.
When a message is sent, and a routing rule needs to be added or modified based on a service requirement, a routing rule expression can be added or modified in a routing rule setting record. The design does not need a large amount of workload and code modification when the routing rule is added, thereby reducing the workload of workers and saving unnecessary waste of human resources.
In a second aspect, an embodiment of the present application provides a message sending apparatus, including: the analysis unit is used for analyzing the domain value of each message domain of the message to be sent;
a determining unit, configured to determine, according to a domain value of a source route in each message domain, a first destination route of the message to be sent from a route information setting record;
the determining unit is further used for determining a first routing expression which accords with the first destination route from a routing rule setting record;
a determining unit, configured to determine each first domain value corresponding to each first parameter item in the first routing expression in each message domain;
and the sending unit is used for sending the message to be sent through a sending path corresponding to the first routing expression if each first domain value conforms to the first routing expression.
In a possible design, the determining unit is specifically configured to determine, according to a domain value of a source route in each message domain, a destination route with a highest priority from a route information setting record, as a first destination route of the message to be sent.
In a possible design, the determining unit is further configured to determine, according to the domain value of the source route, a second destination route with a next-highest priority from the route information setting record if the first domain values do not conform to the first route expression; the routing rule setting record is used for setting a second destination route according to the second routing expression; the second routing expression is used for determining corresponding second domain values of the second parameter items in the second routing expression in the message domains;
and the sending unit is configured to send the message to be sent through the sending path corresponding to the second routing expression if each second domain value conforms to the second routing expression.
In one possible design, further comprising: processing unit
The processing unit is further configured to add or modify each routing expression in the routing rule setting record.
The beneficial effects of the message sending apparatus provided in the second aspect may refer to the beneficial effects brought by the implementation manners of possible designs of the first aspect, and are not described herein again.
In a third aspect, an embodiment of the present application provides a computing device, including: a memory and a processor; the memory is used for storing program instructions; the processor is configured to invoke program instructions in the memory to cause the computing device to perform any of the methods as contemplated by the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program executable by a computing device, where the computer program is configured to perform any one of the possible design methods of the first aspect when the computer program runs on the computing device.
In a fifth aspect, the present application provides a computer program product, which includes a computer program, and the computer program is executed by a processor to perform the method of any one of the possible designs of the first aspect.
In addition, for technical effects brought by any one implementation manner of the third aspect to the fifth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a system architecture diagram for message transmission according to an embodiment of the present application;
fig. 2 is a flowchart of a method for sending a message according to an embodiment of the present disclosure;
fig. 3 is a flowchart of another method for sending a message according to an embodiment of the present application;
fig. 4 is a diagram of a device for sending a message according to an embodiment of the present application;
fig. 5 is a computing device provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a system architecture diagram for message transmission according to an embodiment of the present application, where the system architecture diagram includes at least a client 101, a router 102, and a destination system 103.
The client 101 may be understood as a source of a message in the embodiment of the present application, and the client 101 sends a message to the router 102.
Router 102 is a hardware device that connects two or more networks, acts as a gateway between the networks, and is a dedicated intelligent network device that reads the address in each packet and then decides how to transmit. In the embodiment of the present application, the message transmitted by the client 101 is transmitted to the corresponding destination system 103 according to the routing rule in the router.
The destination system 103 may be understood as a network device, and when a message is forwarded, the message may have its unique identifier inside, and it may be determined that the message is to be forwarded to a corresponding system according to the unique identifier, that is, the destination system 103 mentioned in this application.
The client 101 and the router 102, and the router 102 and the destination system 103 may be connected through a network, or may be connected through a wireless network, and the application is not limited herein.
In the embodiment of the present application, the router 102 forwards the message of the client 101 to the corresponding destination system 103 according to the router rule.
For example, a bank transaction message, performs the function of saving money for the customer. The message is matched through the routing rule in the router 102, and a destination system for saving money is found, so that the operation is realized.
For specific routing rules of message sending, reference is made to fig. 2, and fig. 2 is a schematic flow chart of a method for message sending according to an embodiment of the present application, including:
s201, analyzing the domain value of each message domain of a message to be sent;
a message is a data unit exchanged and transmitted in a network, i.e. a data block to be sent by a station at one time. And a message has a plurality of domains, and each domain corresponds to a respective domain value. The domain value is information analyzed for each domain under the packet. For example, there are three domains under a bank transaction message to be forwarded, and each domain corresponds to a different domain value. The field value of the first field is recorded and is transferred out of the account; the value of the second domain is transferred to the account; the domain value of the third domain is the roll-out amount, etc.
S202, determining a first target route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain;
a message route is a signal link or concatenated adjacent links used to transmit messages from a sending point to a destination. The source route of the message is the sending point marking the message, and the source of the message can be known based on the source route. The so-called routing information sets some identification of the messages in the record, on the basis of which the messages can be distinguished. The source route in each message field in the route information setting record has a corresponding destination route.
And analyzing the message, wherein the source routing domain value identifier of the message has a corresponding first destination route. The first destination route, GMTOG I SP, can be determined from the source routing field value, MFrNFTB, from the following routing information settings record (table 1).
Figure BDA0003864339110000071
TABLE 1
S203, determining a first routing expression which accords with the first destination route from a routing rule setting record;
the route expression is a rule set by using character strings, namely a meaningful formula which is connected by operation symbols according to a certain rule. The destination route can be understood as the destination to which the message is finally sent. The routing rule set record contains a large amount of information in the form of expressions in which the first routing expression is found by the first destination route.
If the first destination route in the following route rule setting record (table 2) is GMTOGISP, then { { MSGTYPE = '199' } | { MSGTYPE = '202COV' } corresponding to the first GMTOGISP is found in the route rule setting record.
Figure BDA0003864339110000072
Figure BDA0003864339110000081
TABLE 2
S204, determining each first domain value corresponding to each first parameter item in the first routing expression in each message domain;
after the first routing expression is obtained, after each parameter item in the corresponding routing expression is determined, the message domain which accords with each first parameter item is found from each corresponding first domain value in each message domain. Next, in the above example, it is determined that the message domain corresponding to each first parameter item in the first routing expression is MSGTYPE, and a first domain value of MSGTYPE in the message to be sent is obtained.
And S205, if the first domain values conform to the first routing expression, sending the message to be sent through a sending path corresponding to the first routing expression.
The message forwarding is realized through a routing rule in the route, and the message is forwarded by obtaining the path information of the message forwarding on the route based on the routing rule. Each time a message is sent, there will be a corresponding sending path. Each routing expression will have a corresponding transmission path. Next to the above example, each first domain value corresponding to each message domain conforms to each first parameter item in the first routing expression, that is, it is determined whether the first domain value of the MSGTYPE in the message to be sent conforms to the first routing expression { { MSGTYPE = '199' } | { MSGTYPE = '202COV' } or not, and if so, the message is sent according to the sending path corresponding to the first routing expression. For example, the message to be sent is sent to the destination queue corresponding to the first routing expression.
In the above implementation manner, the message domain corresponding to the routing rule is not limited, that is, the message to be sent may be subjected to global analysis, that is, each domain of the message may be analyzed. And then, according to the domain value of the source route corresponding to the message, matching a first target route in the route information setting record, then finding a first route expression corresponding to the first target route in the route rule setting record according to the first target route, and determining a sending path of the message based on the first route expression to send the message. In the implementation scheme, the route information setting record focuses on the source route and the destination route, namely, the route information setting record is modified only when the route changes; the sending path is searched according to the routing expression corresponding to the target route, and if the routing rule is required to be changed, only the routing expression is required to be changed, so that the corresponding sending path can be quickly found based on different routing rules, the waste of resources is reduced, and the development workload or errors of some routing rules are avoided.
In the above step, determining the destination route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain includes:
and determining a destination route with the highest priority from a route information setting record according to the domain value of the source route in each message domain, wherein the destination route is used as the first destination route of the message to be sent.
The same source route in the route information setting record corresponds to a plurality of destination routes. Since the same source route corresponds to a plurality of destination routes, a rule needs to be set when searching for a destination route based on the source route, and the rule is to obtain the destination route based on the priority level. Priority is a convention whereby a high priority is done first and a low priority is done later.
For example, a source route of a packet corresponds to a first destination route, a second destination route, a third destination route, and so on, respectively, from top to bottom according to the priority. Therefore, when the destination route of the message is acquired at this time, the first destination route is found first, because the priority of the first destination route is highest. As shown in table 1, the source route mfrnbtb corresponds to the destination route GMTOGISP with priority level 1 and the destination route GMTOGMX with priority level 3, respectively.
If the sending path of the message to be sent is not found based on the first destination route with the highest priority, the embodiment of the application further provides a method for searching other sending paths. As shown in fig. 3, fig. 3 is a flowchart of another message sending method provided in the embodiment of the present application.
S301, if the first domain values do not accord with the first route expression, determining a destination route with a second highest priority from the route information setting record according to the domain value of the source route, and taking the destination route as a second destination route of the message to be sent;
because there are multiple expressions in the routing rule setting record, the sending paths corresponding to each expression are different, so when each first domain value does not conform to the first routing expression, the routing expression needs to be obtained again, and because the routing expression and the destination route are in a one-to-one correspondence relationship, a new routing expression needs to be obtained according to a new destination route. As described above, the second destination route of the next highest priority is determined in the route information setting record based on the domain value of the source route.
For example, at this time, if the first destination route corresponding to the analyzed source route of the packet does not meet the condition, we will obtain the second destination route, that is, the second destination route GMTOGMX corresponding to the source route MFrNFTB.
S302, determining a second route expression which accords with the second destination route from the route rule setting record;
and finding a second routing expression corresponding to the second destination route in the routing rule setting record when the second routing expression is determined. For example, there are two routing expressions in the routing rule setting record at this time, which are routing expression B and routing expression C, respectively, and the routing expression corresponding to the second destination route is routing expression B, that is, routing expression B is the second routing expression.
S303, determining second domain values corresponding to the second parameter items in the second routing expression in the message domains;
after finding out the second routing expression and determining the corresponding expression parameter item, the corresponding second domain value in each message domain is brought into the corresponding expression parameter item calculation result, namely the parameter item of the second expression which is in line with the corresponding second domain value in each message domain is found out.
As shown in table 2, the data of the corresponding field type in one packet field value is 210, and the data found based on the foregoing manner is 202COV, which indicates that each first field value does not conform to the first routing expression at this time; and data 210 is looked up based on the second expression parameter term.
S304, if the second domain values conform to the second routing expression, the message to be sent is sent through the sending path corresponding to the second routing expression.
In step S303, it is found that the data 210 and the field values of the packet parsing are the same, that is, the case is satisfied, which indicates that the field values of the packet at this time are in accordance with the packet sending path of the second routing expression.
When the routing rule needs to be changed to meet the service requirement, the method can be implemented as follows. Further comprising:
and adding or modifying each routing expression in the routing rule setting record.
The expression in the routing rule setting record corresponds to a sending path of the message, the sending path of the message can be found based on the expression of the message, but the expression in the routing rule setting record is configured in advance according to the service requirement, but when the service requirement is changed or increased, the service requirement cannot be met in the routing rule setting record at the moment, and therefore the routing expression needs to be increased or modified based on the service requirement. Meanwhile, the routing expression is maintained by service personnel in the front-end interface, so that the operation can be directly carried out when the routing expression is modified or added.
For example, the expressions in the original routing rule setting record have only three routing expressions { { MSGTYPE = '199' } | { MSGTYPE = '202COV' }, { { MSGTYPE = '199' } | { MSGTYPE = '202' } | { MSGTYPE = '210' } and { { MSGTYPE = '199' } | { MSGTYPE = '202' } & { SENDER = 'BKCHCNBJXXX' }. However, based on the service requirement, if a routing rule needs to be added, a routing expression of { { MSGTYPE = '199' } | { MSGTYPE = '202' } and & { SENDER = 'ABGCCNBJXXX' } is directly added in the table.
Figure BDA0003864339110000111
TABLE 3
In an implementation manner, based on the same technical concept, as shown in fig. 4, an embodiment of the present application provides a device diagram for message transmission.
An analyzing unit 401, configured to analyze a domain value of each message domain of a message to be sent;
a determining unit 402, configured to determine, according to a domain value of a source route in each message domain, a first destination route of the message to be sent from a route information setting record;
the determining unit 402 is further configured to determine, from a routing rule setting record, a first routing expression that conforms to the first destination route;
the determining unit 402 is further configured to determine each first domain value corresponding to each first parameter item in the first routing expression in each packet domain;
a sending unit 403, configured to send the message to be sent through a sending path corresponding to the first routing expression if each of the first domain values conforms to the first routing expression.
In an implementation manner, the determining unit 402 is specifically configured to determine, according to a domain value of a source route in each message domain, a destination route with a highest priority from a route information setting record, as a first destination route of the message to be sent.
In an implementation manner, the determining unit 402 is further configured to determine, according to the domain value of the source route, a second destination route with a next-highest priority from the route information setting record if each of the first domain values does not conform to the first route expression;
the determining unit 402 is further configured to determine, from the routing rule setting record, a second routing expression that conforms to the second destination route;
the determining unit 402 is further configured to determine second domain values of the second parameter items in the second routing expression in the message domains;
the sending unit 403 is further configured to send the message to be sent through the sending path corresponding to the second routing expression if each of the second domain values conforms to the second routing expression.
In an implementation manner, the processing unit 404 is configured to add or modify each routing expression in the routing rule setting record.
Based on the same technical concept, an embodiment of the present invention further provides a computing device, as shown in fig. 5, including at least one processor 501 and a memory 502 connected to the at least one processor, where a specific connection medium between the processor 501 and the memory 502 is not limited in the embodiment of the present invention, and the processor 501 and the memory 502 are connected through a bus in fig. 5 as an example. The bus may be divided into an address bus, a data bus, a control bus, etc.
In the embodiment of the present invention, the memory 502 stores instructions executable by the at least one processor 501, and the at least one processor 501 may execute the steps included in the message-based transmission method by executing the instructions stored in the memory 502.
The processor 501 is a control center of the computing device, and may be connected to various parts of the computing device through various interfaces and lines, and implement data processing by executing or executing instructions stored in the memory 502 and calling data stored in the memory 502. Optionally, the processor 501 may include one or more processing units, and the processor 501 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes an issued instruction. It will be appreciated that the modem processor described above may not be integrated into the processor 501. In some embodiments, processor 501 and memory 502 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU), a digital signal processor, an Application Specific Integrated Circuit (ASIC), a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof, configured to implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the page-based generation method may be directly embodied as hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
Memory 502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 502 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 502 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 502 of embodiments of the present invention may also be circuitry or any other device capable of performing a storage function to store program instructions and/or data.
Based on the same technical concept, the embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program executable by a computing device, and when the program runs on the computing device, the computer program causes the computing device to execute the steps of the message-based transmission method.
Based on the same technical concept, an embodiment of the present invention further provides a computer program product, which is characterized by comprising a computer program, and when the program runs on the computing device, the computing device is enabled to execute the steps of the message-based transmission method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (11)

1. A method for sending a message, the method comprising:
analyzing the domain value of each message domain of the message to be sent;
determining a first target route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain;
determining a first routing expression which accords with the first destination route from a routing rule setting record;
determining each first domain value corresponding to each first parameter item in the first routing expression in each message domain;
and if the first domain values conform to the first routing expression, sending the message to be sent through a sending path corresponding to the first routing expression.
2. The method of claim 1, wherein the same source route in the route information setting record corresponds to multiple destination routes; determining the destination route of the message to be sent from a route information setting record according to the domain value of the source route in each message domain, wherein the method comprises the following steps:
and determining a destination route with the highest priority from a route information setting record according to the domain value of the source route in each message domain, wherein the destination route is used as the first destination route of the message to be sent.
3. The method of claim 2, further comprising:
if the first threshold values do not accord with the first routing expression, determining a second destination route with the second highest priority from the routing information setting record according to the threshold value of the source route;
determining a second route expression which accords with the second destination route from the route rule setting record;
determining each second domain value corresponding to each second parameter item in the second routing expression in each message domain;
and if the second domain values conform to the second routing expression, sending the message to be sent through a sending path corresponding to the second routing expression.
4. The method of any of claims 1-3, further comprising:
and adding or modifying each routing expression in the routing rule setting record.
5. A message transmission apparatus, comprising:
the analysis unit is used for analyzing the domain value of each message domain of the message to be sent;
a determining unit, configured to determine, according to a domain value of a source route in each message domain, a first destination route of the message to be sent from a route information setting record;
the determining unit is further configured to determine a first route expression meeting the first destination route from a route rule setting record;
the determining unit is further configured to determine each first domain value corresponding to each first parameter item in the first routing expression in each message domain;
and the sending unit is used for sending the message to be sent through a sending path corresponding to the first routing expression if each first domain value conforms to the first routing expression.
6. The apparatus of claim 5, wherein the same source route corresponds to a plurality of destination routes from the routing information setting record;
the determining unit is specifically configured to determine, according to a domain value of a source route in each message domain, a destination route with a highest priority from a route information setting record, as a first destination route of the message to be sent.
7. The apparatus of claim 5,
the determining unit is further configured to determine, according to the domain value of the source route, a second destination route with a second highest priority from the route information setting record if the first domain values do not conform to the first route expression;
the determining unit is further configured to determine, from the routing rule setting record, a second routing expression that conforms to the second destination route;
the determining unit is further configured to determine second domain values corresponding to the second parameter items in the second routing expression in the message domains;
the sending unit is further configured to send the message to be sent through the sending path corresponding to the second routing expression if each second domain value conforms to the second routing expression.
8. The apparatus of any one of claims 5-7, further comprising:
and the processing unit is used for adding or modifying each routing expression in the routing rule setting record.
9. A computing device comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method of any of claims 1 to 4.
10. A computer-readable storage medium, having stored thereon a computer program executable by a computing device, the program, when run on the computing device, causing the computing device to perform the method of any of claims 1 to 4.
11. A computer program product comprising a computer program which, when executed by a processor, carries out the method of any one of claims 1 to 4.
CN202211175869.0A 2022-09-26 2022-09-26 Message sending method, device, computing equipment and storage medium Active CN115580571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211175869.0A CN115580571B (en) 2022-09-26 2022-09-26 Message sending method, device, computing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211175869.0A CN115580571B (en) 2022-09-26 2022-09-26 Message sending method, device, computing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115580571A true CN115580571A (en) 2023-01-06
CN115580571B CN115580571B (en) 2024-02-09

Family

ID=84582936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211175869.0A Active CN115580571B (en) 2022-09-26 2022-09-26 Message sending method, device, computing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115580571B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287247A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Date storage method, device, equipment and storage medium based on Unionpay's system
CN112016967A (en) * 2020-08-28 2020-12-01 中国银联股份有限公司 Transaction data processing method and device
CN113158650A (en) * 2021-05-12 2021-07-23 中国建设银行股份有限公司 Message processing method, device, equipment and storage medium
CN113452712A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Analytic method based on Unionpay ISO 8583 message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287247A (en) * 2019-05-22 2019-09-27 平安银行股份有限公司 Date storage method, device, equipment and storage medium based on Unionpay's system
CN112016967A (en) * 2020-08-28 2020-12-01 中国银联股份有限公司 Transaction data processing method and device
CN113158650A (en) * 2021-05-12 2021-07-23 中国建设银行股份有限公司 Message processing method, device, equipment and storage medium
CN113452712A (en) * 2021-06-29 2021-09-28 上海通联金融服务有限公司 Analytic method based on Unionpay ISO 8583 message

Also Published As

Publication number Publication date
CN115580571B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN109450900B (en) Mimicry judgment method, device and system
CN110378413A (en) Neural network model processing method, device and electronic equipment
CN104348677A (en) Deep packet inspection method and equipment and coprocessor
CN104618304B (en) Data processing method and data handling system
CN113034142B (en) Transaction data processing method and device and computer equipment
CN108762735B (en) Workflow engine management method and device, storage medium and terminal
CN111553652B (en) Service processing method and device
WO2022247201A1 (en) Data query method and apparatus
CN108768835B (en) Mail analysis method, device, server and storage medium
CN105373746B (en) A kind of distributed data processing method and apparatus
CN111209341B (en) Data storage method, device, equipment and medium of block chain
CN111221852A (en) Mixed query processing method and device based on big data
US10339091B2 (en) Packet data processing method, apparatus, and system
CN115580571A (en) Message sending method, device, computing equipment and storage medium
CN116886798A (en) Service message processing method, device, electronic equipment and medium
CN116346961A (en) Financial message processing method and device, electronic equipment and storage medium
CN114172895A (en) Routing method, routing device, computer equipment and storage medium
CN115545976A (en) Cross-border trademark registration method, system, device and computer readable storage medium
CN112187935B (en) Information identification method and read-only memory
CN109120509A (en) A kind of method and device that information is collected
CN115174472A (en) Message forwarding processing method and related device
CN114238213A (en) Multithreading file analysis method and device
CN113868249A (en) Data storage method and device, computer equipment and storage medium
CN111782610B (en) Log processing method, device, server, system network and storage medium
CN113419777B (en) Instruction block conversion execution method and system of programmable switch

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant