CN115580571B - 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
CN115580571B
CN115580571B CN202211175869.0A CN202211175869A CN115580571B CN 115580571 B CN115580571 B CN 115580571B CN 202211175869 A CN202211175869 A CN 202211175869A CN 115580571 B CN115580571 B CN 115580571B
Authority
CN
China
Prior art keywords
message
route
routing
expression
domain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211175869.0A
Other languages
Chinese (zh)
Other versions
CN115580571A (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

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, a computing device 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 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; determining a first route expression conforming to the first destination route from a route rule setting record; determining each first threshold value corresponding to each first parameter item in each message domain in the first routing expression; and if the first threshold values accord with 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 which need to expand the routing table and modify the codes can be effectively simplified, and the difficulty of newly adding the 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, a computing device and a storage medium.
Background
In the rapid development of the internet, the route can be said to constitute the backbone of the internet. The message forwarding is realized through a routing rule in the route, and the route information of the message forwarding is acquired 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 routing rule set in advance, and the message is forwarded by inquiring a conforming path from the inside and the outside according to the analysis result. Resolving the message according to the routing rule means defining the message domain needed to be used in the routing rule in advance, and searching the corresponding routing rule according to the message resolving 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 field is added or a word message field is reduced in the routing rule, at this time, a message field (field) needs to be added or a message field needs to be reduced in the table, and at the same time, a code for querying the table needs to be modified. This implementation is difficult and requires much manual modification.
In summary, a method for sending a message is needed, which is capable of more conveniently increasing a routing rule and reducing workload of staff when service requirements are increased.
Disclosure of Invention
The embodiment of the application provides a message sending method, a message sending device, a message sending computing device and a message storage medium, and solves the problem that operation for changing routing rules is more when service requirements change.
In a first aspect, an embodiment of the present application provides a method for sending a message, where the method includes: analyzing the domain value of each message domain of the message to be sent;
determining a first 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;
determining a first route expression conforming to the first destination route from a route rule setting record;
determining each first threshold value corresponding to each first parameter item in each message domain in the first routing expression;
and if the first threshold values accord with 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 domain analysis can be performed on the message to be sent, that is, the analysis is performed on each domain of the message. And then matching a first destination route in the route information setting record according to the threshold value of the source route corresponding to the message, searching a first route expression corresponding to the first destination route in the route rule setting record according to the first destination route, and determining a sending path of the message based on the first route expression to send the message. In this implementation, the route information setting record focuses on the source route and destination route, i.e. only needs to modify the route information setting record when the route changes; the sending path is searched according to the routing expression corresponding to the destination route, and if the routing rule is wanted to be changed, the routing expression is only needed 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 one possible design, the route information setting record includes a plurality of destination routes corresponding to the same source route; determining the destination route of the message to be sent from a route information setting record according to the threshold value of the source route in each message domain, including: and determining the destination route with the highest priority from the route information setting record according to the threshold value of the source route in each message domain, and taking the destination route as the first destination route of the message to be sent.
Each destination route in the route information setting record has respective 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 arranged in the route information setting record aiming at the domain value of the source route, and the destination route with the highest priority is firstly obtained as the first destination route corresponding to the source route domain value through the matching of the priority from high to low. In this implementation, the message forwarding may be performed by the destination route with a high priority.
In one possible design, according to the threshold value of the source route in each message domain, determining the destination route with the highest priority from the route information setting record, as the first destination route of the message to be sent, and further including: if the first threshold values do not accord with the first routing expression, determining a destination route with a second highest priority from the routing information setting record according to the threshold value of the source route, and taking the destination route as a second destination route of the message to be sent;
determining a second routing expression conforming to the second destination route from the routing rule setting record;
determining each second threshold value corresponding to each second parameter item in each message domain in the second routing expression;
and if the second threshold values accord with the second routing expression, sending the message to be sent through a sending path corresponding to the second routing expression.
And the message acquires the corresponding destination route according to the parsed source route threshold value. And in the first destination route acquired according to the highest priority order, acquiring a first expression according to the first destination route, and if the acquired first expression is not successfully matched with each first threshold value, searching a second destination route corresponding to the next highest priority under the highest priority order by the threshold value of the source route again, then searching a second route expression according to the second destination route, matching the second route expression with each threshold value of the message, and if the matching is successful, transmitting the message through a path corresponding to the second route expression. And if the third destination route is not matched, acquiring a third destination route and transmitting the message according to the method. The design makes the information needed by the message be quickly obtained step by step according to the routing rule when the message comes.
In one possible design, each routing expression is added or modified in the routing rule set record.
When the routing rule is required to be added or modified based on the service requirement during message transmission, the routing rule expression can be added or modified in the routing rule setting record. The design does not need a great deal of workload and code modification when the routing rule is added, thereby reducing the workload of staff and saving unnecessary waste of human resources.
In a second aspect, an embodiment of the present application provides a packet sending device, including: the analyzing unit is used for analyzing the domain value of each message domain of the message to be sent;
the determining unit is used for determining a first destination route of the message to be sent from a route information setting record according to the threshold value of the source route in each message domain;
a determining unit, configured to determine a first routing expression conforming to the first destination route from a routing rule setting record;
the determining unit is further used for determining each first threshold 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 the first threshold values accord with the first routing expression.
In one possible design, the determining unit is specifically configured to determine, according to a threshold value of the source route in each message domain, a destination route with a highest priority from a route information setting record, as the first destination route of the message to be sent.
In one possible design, the determining unit is further configured to determine, from the routing information setting record, a second destination route with a next highest priority according to the threshold value of the source route if the first threshold values do not conform to the first routing expression; and determining a second routing expression conforming to the second destination route from the routing rule set record; the method is also used for determining each second threshold value corresponding to each second parameter item in each message domain in the second routing expression;
and the sending unit is used for sending the message to be sent through a sending path corresponding to the second routing expression if the second threshold values accord with the second routing expression.
In one possible design, the method further comprises: 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 foregoing message sending device provided in the second aspect may be referred to as beneficial effects brought by each possible implementation manner of the first aspect, which are not described herein again.
In a third aspect, embodiments of the present application provide a computing device comprising: 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 a method as may be devised in any of the first aspects described 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, the program, when run on the computing device, performing a method as set forth in any one of the possible designs of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a computer program for executing a method according to any one of the possible designs of the first aspect described above by a processor.
In addition, the technical effects caused by any implementation manner of the third aspect to the fifth aspect may refer to the technical effects caused by different implementation manners of the first aspect, which are not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram of a message sending provided in 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 application;
FIG. 3 is a flowchart of another message sending method according to an embodiment of the present application;
fig. 4 is a device diagram of a message sending provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a computing device according to an embodiment of the present application.
Detailed Description
For the purpose of promoting an understanding of the principles and advantages of this application, reference will now be made in detail to the drawings, in which it is apparent that the embodiments described are only some, but not all embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present invention based on the embodiments herein.
Referring to fig. 1, fig. 1 is a system architecture diagram of a message transmission provided in an embodiment of the present application, where the system architecture diagram at least includes a client 101, a router 102, and a destination system 103.
Client 101 may be understood as the source of a message in the embodiments of the present application, and client 101 sends a message to router 102.
Router 102 is a hardware device that connects two or more networks, acting as a gateway between networks, and is a dedicated intelligent network device that reads the address in each packet and then decides how to transmit. In this embodiment, 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, a unique identifier of the message is included in the message, and it is 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 the present application.
The client 101 and the router 102, and the router 102 and the destination system 103 may be connected through a wired network or a wireless network, which 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 transaction message of a bank, which realizes the function of saving money of a customer. The message is matched through the routing rule in the router 102 to find the destination system for saving money, so as to realize the operation.
Specific routing rules for message transmission refer to fig. 2, and fig. 2 is a flow chart of a method for message transmission according to an embodiment of the present application, including:
s201, analyzing the domain value of each message domain of the message to be sent;
a message is a data unit exchanged and transmitted in the network, i.e. a data block to be sent by a station at one time. And a message has multiple domains, and each domain corresponds to a respective domain value. The threshold is information that is resolved for each field in the message. For example, there are three domains under a bank transaction message to be forwarded, and each domain corresponds to a different domain value. The threshold value of the first field is recorded as the roll-out account; the threshold of the second domain is a transfer account; the threshold value of the third field is the transfer amount, etc.
S202, determining a first destination route of the message to be sent from a route information setting record according to the threshold value of the source route in each message domain;
message routing is a signal link or a concatenation of adjacent links between a sending point to a destination for transmitting a message. The source route of the message is the sending point of the marked message, and the source of the message can be known based on the source route. The so-called routing information sets up some identifiers of the messages in the record, based on which the messages can be distinguished. The source route in each message domain in the route information setting record has a corresponding destination route.
And a message is analyzed, and the identification of the source route threshold value of the message has a corresponding first destination route. The first destination route, GMTOG is determined from the following route information set record (table 1) based on the source route threshold, MFrNFTB.
TABLE 1
S203, determining a first route expression conforming to the first destination route from a route rule setting record;
the routing expression is a rule set by using a character string, namely, a meaningful expression that is connected by operation symbols according to a certain rule. Destination routing is understood to be the destination from which the message is ultimately sent. There is a lot of information in the routing rule set record, which exists in the form of expressions, and the first routing expression is found in the routing rule set record by the first destination route.
As the first destination route is gmtigsp in the following routing rule setting record (table 2), the first routing expression corresponding to the first gmtigsp is found in the routing rule setting record, that is, the first routing expression is { { MSGTYPE = '199' } |{ MSGTYPE = '202' } | { MSGTYPE = '202COV' }.
TABLE 2
S204, determining each first threshold value corresponding to each first parameter item in each message domain in the first routing expression;
after the first routing expression is obtained, each parameter item in the corresponding routing expression is determined, and then each corresponding first threshold value in each message field is found, namely the message field conforming to each first parameter item is found from each message field. 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 the first threshold value of the MSGTYPE in the message to be sent is obtained.
S205, if the first threshold values accord with the first routing expression, the message to be sent is 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 route information forwarding message of the message forwarding is obtained on the route based on the routing rule. Each message is sent with its corresponding sending path. Each routing expression will have a corresponding transmit path. Next, in the above example, each first threshold corresponding to each message field conforms to each first parameter item in the first routing expression, that is, it is determined whether the first threshold of MSGTYPE in the message to be sent conforms to the first routing expression { { MSGTYPE = '199' } | { MSGTYPE = '202COV' }, and if so, the message is sent according to the sending path corresponding to the first routing expression. If the message to be sent is sent to a 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 domain analysis can be performed on the message to be sent, that is, the analysis is performed on each domain of the message. And then matching a first destination route in the route information setting record according to the threshold value of the source route corresponding to the message, searching a first route expression corresponding to the first destination route in the route rule setting record according to the first destination route, and determining a sending path of the message based on the first route expression to send the message. In this implementation, the route information setting record focuses on the source route and destination route, i.e. only needs to modify the route information setting record when the route changes; the sending path is searched according to the routing expression corresponding to the destination route, and if the routing rule is wanted to be changed, the routing expression is only needed 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.
Aiming at the steps, according to the threshold value of the source route in each message domain, the destination route of the message to be sent is determined from the route information setting record, which comprises the following steps:
and determining the destination route with the highest priority from the route information setting record according to the threshold value of the source route in each message domain, and taking the destination route as the first destination route of the message to be sent.
The same source route corresponds to a plurality of destination routes in the route information setting record. 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. The priority is a contract, a first-order, high-priority, and a second-order, low-priority.
For example, a source route of a message corresponds to a first destination route, a second destination route, a third destination route, and so on from top to bottom according to priorities. Therefore, when the destination route of the message is acquired, the first destination route is found first, and the priority of the first destination route is highest. The source route MFrNFTB corresponds to the destination route GMTOGISP with priority 1 and the destination route GMTOGMX with priority 3, respectively, as shown in table 1.
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 searching method of 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 threshold values do not accord with the first routing expression, determining a destination route with a second highest priority from the routing information setting record according to the threshold value of the source route, and taking the destination route as a second destination route of the message to be sent;
since there are multiple expressions in the routing rule setting record, the transmission paths corresponding to each expression are different, when each first threshold value does not conform to the first routing expression, the routing expression needs to be re-acquired, and since the routing expression and the destination route are in one-to-one correspondence, a new routing expression needs to be acquired 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 threshold value of the source route.
For example, when the first destination route corresponding to the parsed source route of the message is not consistent with the situation, we can obtain the second destination route, that is, the second destination route GMTOGMX corresponding to the source route MFrNFTB.
S302, determining a second routing expression conforming to the second destination route from the routing rule setting record;
and searching 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, at this time, there are two routing expressions in the routing rule setting record, namely, 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 each second threshold value corresponding to each second parameter item in each message domain in the second routing expression;
and after the second routing expression is found, determining the corresponding expression parameter item, bringing each corresponding second threshold value in each message domain into a corresponding expression parameter item calculation result, namely, finding the parameter item of the second expression which accords with each corresponding second threshold value in each message domain.
As shown in table 2, the data of the corresponding field type in one message domain value is 210, and the data found based on the above manner is 202COV, which indicates that each first domain value does not conform to the first routing expression; and what is looked up based on the second expression parameter term is data 210.
S304, if the second threshold values accord with the second routing expression, the message to be sent is sent through a sending path corresponding to the second routing expression.
Next, in the example of step S303, the second expression parameter item is found that the data 210 is identical to each domain value of the message parsing, i.e. the case is met, which indicates that each domain value of the message meets the message sending path of the second routing expression.
When the routing rule needs to be changed in order to meet the service requirement, the method can be implemented as follows. Further comprises:
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 a message, and the sending path of the message can be found based on the expression of the message, but the expression is configured in advance according to the service requirement in the routing rule setting record, but when the service requirement is changed or increased, the service requirement cannot be met in the routing rule setting record at the moment, so that 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 performed when the routing expression is modified or added.
For example, the expression in the original routing rule setting record is only three routing expressions of { { msgtype= '199' } | { msgtype= '202COV' }, { msgtype= '199' } | { msgtype= '202' } and { { msgtype= '199' } and { (MSGTYPE) = '202' }, { MSGTYPE = '202' }, }, and { SENDER = (BKCHCNBJXXX) }. On the basis of the service requirement, a routing rule needs to be added, and a routing expression of { { { MSGTYPE= '199' } | { MSGTYPE= '202' } } }, & { SENDER= 'ABGCCNBJXXX' } is directly added in the table.
TABLE 3 Table 3
Based on the same technical concept, as shown in fig. 4, an embodiment of the present application provides a device diagram for sending a message.
An parsing unit 401, configured to parse a domain value of each message domain of a message to be sent;
a determining unit 402, configured to determine, according to the domain value of the 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 a first routing expression that conforms to the first destination route from a routing rule setting record;
the determining unit 402 is further configured to determine each first threshold value corresponding to each first parameter item in the first routing expression in each message domain;
and a sending unit 403, configured to send the message to be sent through a sending path corresponding to the first routing expression if the first threshold values conform to the first routing expression.
In an embodiment, the determining unit 402 is specifically configured to determine, according to the threshold value of the source route in each message, a destination route with the highest priority from the route information setting record, as the first destination route of the message to be sent.
In an embodiment, the determining unit 402 is further configured to determine, from the routing information setting record, a second destination route with a next highest priority according to the threshold value of the source route if the first threshold values do not conform to the first routing expression;
the determining unit 402 is further configured to determine a second routing expression that conforms to the second destination route from the routing rule setting record;
the determining unit 402 is further configured to determine each second threshold value corresponding to each second parameter item in the second routing expression in each message domain;
the sending unit 403 is further configured to send the message to be sent through a sending path corresponding to the second routing expression if the second threshold values conform 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, the 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 in the embodiment of the present invention, a specific connection medium between the processor 501 and the memory 502 is not limited, and in fig. 5, the processor 501 and the memory 502 are connected by a bus, for example. The buses may be divided into address buses, data buses, control buses, 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 foregoing message-based transmission method by executing the instructions stored in the memory 502.
Where the processor 501 is a control center of a computing device, various interfaces and lines may be utilized to connect various portions of the computing device, and to implement data processing by executing or executing instructions stored in the memory 502 and invoking data stored in the memory 502. Alternatively, 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 primarily processes operating systems, user interfaces, application programs, etc., and the modem processor primarily processes issuing instructions. 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 they may be implemented separately on separate chips in some embodiments.
The processor 501 may be a general purpose processor such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, and may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with embodiments of a page-based generation method may be embodied directly in hardware processor execution or in a combination of hardware and software modules in a processor.
The memory 502, as 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, flash Memory, hard disk, multimedia card, card Memory, random access Memory (Random Access Memory, RAM), static random access Memory (Static Random Access Memory, SRAM), programmable Read-Only Memory (Programmable Read Only Memory, PROM), read-Only Memory (ROM), charged erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory), magnetic Memory, magnetic disk, optical disk, and the like. 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 in embodiments of the present invention may also be circuitry or any other device capable of performing storage functions for storing 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 program causes the computing device to execute the steps of the message-based transmission method.
Based on the same technical concept, the embodiment of the invention also provides a computer program product, which is characterized by comprising a computer program, wherein the program, when running on the computing device, causes the computing device to execute the steps based on the message sending method.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (8)

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 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;
determining a first route expression conforming to the first destination route from a route rule setting record;
determining each first threshold value corresponding to each first parameter item in each message domain in the first routing expression;
if the first threshold values accord with the first routing expression, the message to be sent is sent through a sending path corresponding to the first routing expression;
when the routing rules are required to be added or modified based on the service requirements during message transmission, each routing expression is newly added or modified in the routing rule setting record.
2. The method of claim 1, wherein the same source route in the routing information set 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 threshold value of the source route in each message domain, including:
and determining the destination route with the highest priority from the route information setting record according to the threshold value of the source route in each message domain, and taking the destination route as the first destination route of the message to be sent.
3. The method as recited in claim 2, further comprising:
if the first threshold values do not accord with the first route expression, determining a second destination route with a next highest priority from the route information setting record according to the threshold value of the source route;
determining a second routing expression conforming to the second destination route from the routing rule setting record;
determining each second threshold value corresponding to each second parameter item in each message domain in the second routing expression;
and if the second threshold values accord with the second routing expression, sending the message to be sent through a sending path corresponding to the second routing expression.
4. A message transmitting apparatus, comprising:
the analyzing unit is used for analyzing the domain value of each message domain of the message to be sent;
the determining unit is used for determining a first destination route of the message to be sent from a route information setting record according to the threshold value of the source route in each message domain;
the determining unit is further configured to determine a first routing expression conforming to the first destination route from a routing rule setting record;
the determining unit is further configured to determine each first threshold value corresponding to each first parameter item in the first routing expression in each message domain;
a sending unit, configured to send the message to be sent through a sending path corresponding to the first routing expression if the first threshold values conform to the first routing expression;
and the processing unit is used for adding or modifying each routing expression in the routing rule setting record when the routing rule needs to be added or modified based on the service requirement during message transmission.
5. The apparatus of claim 4, wherein the same source route from the routing information set record corresponds to a plurality of destination routes;
the determining unit is specifically configured to determine, according to the threshold value of the source route in each message domain, a destination route with the highest priority from the route information setting record, as the first destination route of the message to be sent.
6. The apparatus of claim 4, wherein,
the determining unit is further configured to determine, if the first threshold does not conform to the first routing expression, a second destination route with a next highest priority from the routing information setting record according to the threshold of the source route;
the determining unit is further configured to determine a second routing expression that conforms to the second destination route from the routing rule setting record;
the determining unit is further configured to determine each second threshold value corresponding to each second parameter item in the second routing expression in each message domain;
and the sending unit is further configured to send the message to be sent through a sending path corresponding to the second routing expression if the second threshold values conform to the second routing expression.
7. 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 3.
8. A computer readable storage medium, characterized in that it stores a computer program executable by a computing device, which when run on the computing device causes the computing device to perform the method of any of claims 1 to 3.
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 CN115580571A (en) 2023-01-06
CN115580571B true 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
CN115580571A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN109450900B (en) Mimicry judgment method, device and system
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
US6636521B1 (en) Flexible runtime configurable application program interface (API) that is command independent and reusable
CN112333169B (en) Message processing method, device, electronic equipment and computer readable medium
CN106528289B (en) Resource operation processing method and device
CN111580884A (en) Configuration updating method and device, server and electronic equipment
JP2006513466A (en) Apparatus and method for converting locally dependent data in text data based on recipient locale
CN112508573A (en) Transaction data processing method and device and computer equipment
CN110602056A (en) Service parameter transmission method and device
CN108718258B (en) Quality detection method and equipment for inter-board link
CN112861346A (en) Data processing system, method and electronic equipment
WO2020071962A1 (en) System for classifying traffic
CN115426312A (en) Method and device for managing, optimizing and forwarding identifiers in large-scale multi-modal network
CN111767304A (en) Cross-database data query method, query device and readable medium
CN115580571B (en) Message sending method, device, computing equipment and storage medium
CN112925586B (en) Applet routing method, device, computer equipment and storage medium
CN116346961B (en) Financial message processing method and device, electronic equipment and storage medium
US10339091B2 (en) Packet data processing method, apparatus, and system
CN111315026B (en) Channel selection method, device, gateway and computer readable storage medium
CN112187935B (en) Information identification method and read-only memory
CN113238897B (en) System-level test method and device for chip, computer equipment and storage medium
CN115174472A (en) Message forwarding processing method and related device
CN114079634B (en) Message forwarding method and device and computer readable storage medium
CN114172895A (en) Routing method, routing device, computer equipment and storage medium
CN115150280A (en) Data packet sending method and equipment

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