A message transmission method and device

By using business elements to query routing rules and determine target system identification in a multi-system environment, the problem of not being able to effectively determine target systems in the prior art is solved, and efficient and flexible transaction routing is achieved.

CN114610764BActive Publication Date: 2025-04-08AGRICULTURAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210242547.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2025-04-08
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In the case of multiple systems parallelism, the prior art cannot effectively determine the target system based on business needs, resulting in transaction failure.

Method used

By obtaining the business elements in the transaction request message, querying the routing rules to determine the parameters required for the routing, extracting the target parameter value, and determining the target system identification based on the preset correspondence relationship, and finally sending the transaction request message to the target system.

Benefits of technology

It realizes a processing system for pre-configuring routing rules and correspondences according to business needs and dynamically determining transaction request packets, so as to meet the needs of routing different services to different systems, and improves the efficiency and flexibility of transaction processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610764B_ABST
    Figure CN114610764B_ABST
Patent Text Reader

Abstract

The present application discloses a message transmission method. After receiving a transaction request message, a routing rule is queried according to the business elements included in the transaction request message, and the routing rule includes the parameters required to determine the route. If a routing rule corresponding to the business element is queried, the corresponding target parameter value is extracted from the transaction request message according to the parameter in the routing rule, and the target system identifier is determined according to the target parameter value and the preset corresponding relationship. After determining the target system identifier, the transaction request message is sent to the system corresponding to the target system identifier so that the transaction request message is processed by the system. It can be seen that the present application can pre-configure routing rules and corresponding relationships according to business needs. After receiving a transaction request message, the corresponding routing rules are searched according to the business elements in the transaction request message, and then the system for processing the transaction request message is determined according to the routing rules and the corresponding relationship, thereby meeting the needs of routing different businesses to different systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a message transmission method and device. Background Art

[0002] As the system continues to grow and expand, multiple systems often run in parallel. Currently, when a forwarding device receives a transaction request message, it determines the target system based on the port that receives the transaction request message, and then forwards the transaction message to the target system for processing.

[0003] However, in some application scenarios, the above method of determining the target system cannot meet business needs, resulting in transaction failure. Summary of the invention

[0004] In view of this, an embodiment of the present application provides a message transmission method and device to achieve routing distribution and meet business needs.

[0005] To solve the above problems, the technical solutions provided in the embodiments of the present application are as follows:

[0006] In a first aspect of the present application, a message transmission method is provided, the method comprising:

[0007] Acquire a transaction request message, wherein the transaction request message includes business elements, and the business elements include a transaction code and a user identifier;

[0008] Query routing rules according to the business elements, wherein the routing rules include parameters required for determining routing;

[0009] In response to querying the routing rule, extracting the corresponding target parameter value from the business element according to the parameter in the routing rule;

[0010] Determining a target system identifier according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between the parameter value and the system identifier;

[0011] The transaction request message is sent to the system corresponding to the target system identifier.

[0012] In a second aspect of the present application, a message transmission device is provided, the device comprising:

[0013] An acquisition unit, configured to acquire a transaction request message, wherein the transaction request message includes a business element, and the business element includes a transaction code;

[0014] A query unit, configured to query a routing rule according to the transaction code, wherein the routing rule includes parameters required for determining the routing;

[0015] An extraction unit, configured to extract a corresponding target parameter value from the business element according to a parameter in the routing rule in response to querying the routing rule;

[0016] a determination unit, configured to determine a target system identifier according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between the parameter value and the system identifier;

[0017] A sending unit is used to send the transaction request message to the system corresponding to the target system identifier.

[0018] In a third aspect of the present application, a device is provided, including: a processor, a memory;

[0019] The memory is used to store computer-readable instructions or computer programs;

[0020] The processor is used to read the computer-readable instructions or the computer program so that the device implements the message transmission method.

[0021] In a fourth aspect of the present application, a computer-readable storage medium is provided, comprising instructions or a computer program, which, when executed on a computer, enables the computer to execute the message transmission method described in the first aspect.

[0022] In a fifth aspect of the present application, a computer program product is provided, wherein the computer program product comprises a program, and when the program is executed on a processor, a computer or a network device executes the message transmission method described in the first aspect.

[0023] It can be seen that the embodiments of the present application have the following beneficial effects:

[0024] After receiving the transaction request message, the present application queries the routing rules according to the business elements included in the transaction request message, and the routing rules include the parameters required to determine the routing. If the routing rules corresponding to the business elements are queried, the corresponding target parameter values ​​are extracted from the transaction request message according to the parameters in the routing rules, and the target system identifier is determined according to the target parameter values ​​and the preset corresponding relationship. Among them, the corresponding relationship includes the corresponding relationship between the parameter value and the system identifier. After determining the target system identifier, the transaction request message is sent to the system corresponding to the target system identifier so that the transaction request message is processed by the system. It can be seen that the present application can pre-configure routing rules and corresponding relationships according to business needs. After receiving the transaction request message, the corresponding routing rules are searched according to the business elements in the transaction request message, and then the system for processing the transaction request message is determined according to the routing rules and the corresponding relationship, thereby meeting the needs of routing different businesses to different systems and realizing efficient and flexible navigation. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A flow chart of a message transmission method provided in an embodiment of the present application;

[0026] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0027] Figure 3 A routing hierarchical processing effect diagram provided in an embodiment of the present application;

[0028] Figure 4 A structural diagram of a message transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0030] To facilitate understanding of the technical solutions of the embodiments of the present application, the technical terms involved in the embodiments of the present application will be explained below.

[0031] As the bank's processing system continues to grow and expand, multiple systems often run in parallel. The same transaction needs to be sent to different systems based on the business elements in the transaction request message. For example, during the system migration phase, the new and old systems have a period of parallel operation. At this time, the transaction needs to be identified according to the business element dimension to send it to the new system or the old system. If the system error is sent, it is likely to cause the transaction to fail. If the failure is a financial transaction, the consequences are even more serious. For example, the grayscale environment also has routing demand scenarios. Most systems have grayscale environments. Grayscale environments can perform business verification on transactions well and greatly improve system security. However, for the same transaction, how to determine whether to send it to the grayscale environment or the formal environment is also a difficult problem that needs to be solved under the parallel operation of multiple systems.

[0032] The grayscale environment can also be called an online simulation environment or a pre-release environment. Before going online, the product is released to the grayscale environment and then released online after passing the test. Through the grayscale environment, user feedback can be observed and the product direction can be adjusted in real time to avoid users not being able to adapt to the new system in a short time due to direct release, which may lead to user loss.

[0033] Business elements are key information corresponding to the handling of banking business, such as transaction code, user ID, identity of the person handling the business, amount, payee, identity of the payee, etc.

[0034] In order to realize navigation of different services to corresponding systems, the present application provides a message transmission method, which determines the system for processing the transaction request message according to the business elements and routing rules in the transaction request message, and then sends the transaction request message to the system. That is, the present application provides a method for flexibly and quickly determining the target system to meet different routing requirements.

[0035] To facilitate understanding of the technical solution provided by the embodiments of the present application, it will be described below with reference to the accompanying drawings.

[0036] See also Figure 1 , which is a flow chart of a message transmission method provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0037] S101: Obtain a transaction request message, where the transaction request message includes business elements.

[0038] In this embodiment, when a user handles a business through a bank client, the bank client generates a transaction request message based on the user's operation and sends the transaction request message to the background (for example, a load balancing device deployed by the bank). The transaction request message includes business elements, and the business elements include information such as a transaction code, a user ID, and a province. It should be noted that when a user handles different businesses, the business elements included in the generated transaction request message are different. For example, when the business handled by the user is a balance inquiry, the business elements include a transaction code, a user ID, and a province; when the business handled by the user is a transfer, the business elements include a transaction code, a user ID, a province, a transfer amount, a beneficiary's account, and the like.

[0039] S102: Query routing rules according to business elements, where the routing rules include parameters required for determining routing.

[0040] After receiving the transaction request message, the transfer device will query whether there is a routing rule matching the business element according to the business element in the transaction request message. The routing rule includes parameters required to determine the route, which correspond to the business element in the transaction request message.

[0041] Since the business elements may include multiple types of information, when querying routing rules based on the business elements, the routing rules may be queried based on one type of information, such as querying routing rules based on transaction codes. Multiple types of information routing rules may also be used, such as querying routing rules based on transaction codes and provinces. The specific business elements based on which the routing rules are queried may be set according to actual application conditions, and this embodiment does not limit this.

[0042] Optionally, the business elements and routing rules can be stored in the memory of the transfer device in the form of a hashmap, where the business elements are keys and the routing rules are values. A key can correspond to one routing rule or multiple routing rules.

[0043] S103: In response to querying the routing rule, extracting the corresponding target parameter value from the business element according to the parameter in the routing rule.

[0044] When the corresponding routing rule is found according to the business element, the corresponding target parameter value is extracted from the business element according to the parameters in the routing rule. For example, if the parameters in the routing rule are transaction code + province, the target parameter value corresponding to the transaction code extracted from the business element is "xxxxxx", and the target parameter value corresponding to the province is "Hebei". For another example, if the parameter in the routing rule is province, the target parameter value extracted from the business element is "Hebei". Among them, the routing rules are pre-configured according to business needs.

[0045] S104: Determine the target system identifier according to the target parameter value and the preset corresponding relationship.

[0046] After the target parameter value is obtained, the target system identifier is determined according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes the corresponding relationship between the parameter value and the system identifier.

[0047] Optionally, when the acquired target parameter value is the target parameter value corresponding to each of the multiple parameters, the target parameter values ​​are spliced ​​to obtain the spliced ​​parameter value, and then the query is performed based on the spliced ​​parameter value and the corresponding relationship to obtain the query result. When the query result is a system identifier, the system identifier is determined as the target system identifier. The corresponding relationship can be stored in a memory database corresponding to the memory of the transfer device in a hashmap manner. The parameter value is the key and the system identifier is the value. For example, the target parameter value corresponding to the transaction code is "xxxxxx" and the code for Hebei Province is "130000", then the two are spliced ​​to form "xxxxxx_130000", and the spliced ​​parameter value is used as the key for query.

[0048] When multiple routing rules are queried, they can be queried in order according to the parameters and corresponding relationships of the first routing rule. If the corresponding target system identifier is not found, the second routing rule is queried according to the parameters and corresponding relationships, and so on, until the last routing rule is reached.

[0049] Optionally, in order to implement complex routing logic in special business scenarios, the system number will be calculated by expression. Based on this, the correspondence can also include the correspondence between parameter values ​​and expressions. That is, the query result can be a system identifier or an expression. When the query result is an expression, the parameter value corresponding to the independent variable is extracted from the business element according to the independent variable in the expression; the parameter value corresponding to the independent variable is input into the expression to obtain the calculation result. When the calculation result is a system identifier, the system identifier is determined as the target system identifier. Among them, the independent variable in the expression corresponds to the business element.

[0050] S105: Send a transaction request message to the system corresponding to the target system identifier.

[0051] After determining the target system identifier, a transaction request message is sent to the system corresponding to the target system identifier so that the system processes the transaction request message, thereby sending the transaction request message to different systems according to business elements.

[0052] Optionally, when no routing rule is found according to the business element, the query result is neither a system identifier nor an expression, or the calculation result is not a system identifier, a pre-configured default system identifier is obtained, and a transaction request message is sent to the system corresponding to the default system identifier. That is, in order to ensure the normal execution of the transaction, a default system identifier can be pre-configured, and when no routing rule is matched, the transaction can be processed by the system corresponding to the default system identifier. Specifically, when obtaining the pre-configured default system identifier, the corresponding default system identifier can be determined according to the transaction code in the business element. Alternatively, the corresponding default system identifier can be determined according to the transaction code in the business element and additional suffix information. The suffix information can be pre-configured.

[0053] Optionally, to meet different business needs, administrators can adjust routing rules, corresponding relationships, and expressions according to business needs. Considering that the memory layer has limited space and is usually used to store data that grows slowly, routing rules and default system identifiers can be stored in the memory layer, and corresponding relationships and expressions can be stored in the memory database.

[0054] Optionally, in response to a trigger operation by an administrator, the updated routing rules are stored in a memory database, and an update flag is added to the memory database; the updated routing rules are read from the memory database according to the update flag, and the memory is updated using the updated routing rules.

[0055] Optionally, in response to the memory completing the update, the update flag is deleted.

[0056] Among them, the data in the memory database can be modified directly and take effect immediately. For the data in the memory, since the transfer device may be multiple machines, the modified parameters need to be accurately transmitted to all machines, so the database value transmission method is adopted, that is, the data is first stored in the database in a certain format, and then the data in the database is updated. After the update is completed, the update flag is inserted into the memory database accordingly. Each transfer device reads the corresponding data according to the update flag and updates the memory. After the update is completed, the update flag is reset.

[0057] It can be seen that after receiving the transaction request message, the routing rules are queried according to the business elements included in the transaction request message, and the routing rules include the parameters required to determine the routing. If the routing rules corresponding to the business elements are queried, the corresponding target parameter values ​​are extracted from the transaction request message according to the parameters in the routing rules, and the target system identifier is determined according to the target parameter values ​​and the preset corresponding relationship. Among them, the corresponding relationship includes the corresponding relationship between the parameter value and the system identifier. After determining the target system identifier, the transaction request message is sent to the system corresponding to the target system identifier so that the transaction request message is processed by the system. It can be seen that the present application can pre-configure routing rules and corresponding relationships according to business needs. After receiving the transaction request message, the corresponding routing rules are searched according to the business elements in the transaction request message, and then the system for processing the transaction request message is determined according to the routing rules and the corresponding relationship, thereby meeting the needs of routing different businesses to different systems and realizing efficient and flexible navigation.

[0058] See also Figure 2 The message transmission framework diagram shown in Figure 2 As shown, the transfer device includes a routing module and a routing management module. The routing module stores routing rules in its memory.

[0059] The routing management module is used to dynamically configure the data in the routing rules to respond to business needs in a timely manner. Considering that all machines including the routing module need to update data, the routing management module can modify the database by passing database values. When the scheduled task in the routing module updates data, it reads the updated data from the database and uses the updated data to update the data in the memory.

[0060] Among them, the routing module parses the transaction request message, processes the business elements in the transaction request message according to the routing rules, obtains the target system and forwards it. The determination of the target system is mainly divided into the following three layers: memory layer, matching value layer, and expression layer. The three-layer processing can not only ensure processing efficiency, but also solve complex routing requirements, and also take into account the hardware environment such as storage space, which comprehensively improves the routing computing capability.

[0061] The memory layer is the fastest, but is limited by the size of the space, so it stores some slow-growing data, such as the default routing system of transactions, routing rule information, etc.

[0062] The matching value layer and expression layer belong to the specific expansion of routing rule information. In order to improve processing efficiency, the specific expansion of routing rule information is stored in the memory database. In the matching value layer, the business elements are spliced ​​to form a key and matched in the memory database. If it matches, the value is the system number of the transaction. If it does not match, continue to the next routing rule. The matching value layer is suitable for fast matching operations when the business elements (support combination) in the transaction request message contain a large number of values, which can greatly improve efficiency.

[0063] The expression layer is mainly used to support complex logic processing, meet the complex routing logic in special business scenarios, and obtain the system number of the transaction through expression calculation.

[0064] Among them, the complexity and processing speed of the above three layers are as follows: Figure 3 As shown, the complexity is getting higher and the processing speed is getting lower. The processing process of the above three layers is as follows:

[0065] Step 1. After receiving the transaction request message, the routing module first parses the transaction request message to obtain the business elements used in the routing rules. Business elements are formulated according to routing requirements, such as transaction code, province and other dimensions.

[0066] Step 2. Find the corresponding routing rules in the memory according to the transaction code. The storage method is hashmap, the key is the transaction code, and the value is the routing rule array.

[0067] Step 3. If the routing rule array is empty, jump to step 7.

[0068] Step 4. Start executing the first routing rule. If the routing rule is a matching value, substitute the business element value corresponding to the routing rule, and search the memory database for a corresponding value according to the key spelled out according to the rule. If so, execute step 5. If not, execute step 4 in a loop. If the routing rule is an expression, search the memory database for the corresponding value according to the key spelled out according to the rule, and execute step 6.

[0069] Step 5. The value retrieved is the system number, then the routing calculation is completed and forwarding begins.

[0070] Step 6. The extracted value is an expression, and the system number is obtained through the expression. The route calculation is completed and forwarding begins.

[0071] Among them, if the expression contains variable values, the corresponding business element values ​​must be substituted.

[0072] Step 7. If the matching value and the expression do not match, the default system number of the transaction is taken out from the memory. The storage method is hashmap, the key is the transaction code + suffix, and the value is the default system number.

[0073] Through the above method, the embodiment of the present application has the following advantages:

[0074] 1. Efficient routing calculation and processing: Through a layered approach, combined with high-speed storage devices such as memory and in-memory database, the system number of this transaction can be quickly calculated. The matching layer and the memory layer can meet most business scenarios, so it has a very high processing speed.

[0075] 2. Routing rules are highly extensible: Both the memory layer and the matching value layer can expand the business element dimension and enrich the applicable scenarios. The expression layer can handle complex routing requirements and can meet most business routing requirements.

[0076] 3. Fast response to business needs: The routing calculation method is based on transaction request messages, memory and memory database data. The routing management module can quickly adjust the data in the memory and memory database to quickly realize on-demand switching of transaction links.

[0077] 4. Flexible and diverse routing rules: The routing rules in the present invention analyze and calculate the business elements in the message through a three-layer rule system, and can be flexibly deployed through the routing management module to achieve customized "precise navigation" for each transaction.

[0078] Based on the above method embodiment, an embodiment of the present application provides a message transmission device, which will be described below in conjunction with the accompanying drawings.

[0079] See also Figure 4 , which is a schematic diagram of the structure of a message transmission device provided in an embodiment of the present application, such as Figure 4 As shown, the device 400 includes: an acquisition unit 401, a query unit 402, an extraction unit 403, a determination unit 404 and a sending unit 405.

[0080] The acquisition unit 401 is used to acquire a transaction request message, wherein the transaction request message includes a business element, and the business element includes a transaction code;

[0081] A query unit 402, configured to query a routing rule according to the transaction code, wherein the routing rule includes parameters required for determining a route;

[0082] An extraction unit 403 is used to extract a corresponding target parameter value from the business element according to a parameter in the routing rule in response to querying the routing rule;

[0083] A determination unit 404, configured to determine a target system identifier according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between the parameter value and the system identifier;

[0084] The sending unit 405 is used to send the transaction request message to the system corresponding to the target system identifier.

[0085] Optionally, the determination unit 404 is specifically used to concatenate the target parameter values ​​to obtain a concatenated parameter value; perform a query based on the concatenated parameter value and the corresponding relationship to obtain a query result; in response to the query result being a system identifier, determine the system identifier as the target system identifier.

[0086] Optionally, the correspondence also includes a correspondence between the parameter value and the expression. The determination unit 404 is further used to, in response to the query result being an expression, extract the parameter value corresponding to the independent variable from the business element according to the independent variable in the expression; input the parameter value corresponding to the independent variable into the expression to obtain a calculation result; and in response to the calculation result being a system identifier, determine the system identifier as the target system identifier.

[0087] Optionally, the acquisition unit 401 is further configured to acquire a pre-configured default system identifier in response to no routing rule being found, the query result being neither a system identifier nor an expression, or the calculation result being not a system identifier;

[0088] The sending unit 404 is specifically configured to send the transaction request message to the system corresponding to the default system identifier.

[0089] Optionally, the device further comprises: an updating unit;

[0090] The updating unit is further configured to update the routing rules and / or the corresponding relationship in response to a triggering operation of an administrator.

[0091] Optionally, the routing rules are stored in a memory, and the corresponding relationship is stored in a memory database corresponding to the memory.

[0092] Optionally, the update unit is specifically used to store the updated routing rules in the memory database in response to the administrator's trigger operation, and add an update flag in the memory database; read the updated routing rules from the memory database according to the update flag, and use the updated routing rules to update the memory.

[0093] Optionally, the device further comprises: a deleting unit;

[0094] The deleting unit is used to delete the update flag in response to the memory completing the update.

[0095] It should be noted that the implementation of each unit in this embodiment can refer to the relevant description in the above method embodiment, and this embodiment will not be repeated here.

[0096] In addition, an embodiment of the present application further provides a device, including: a processor, a memory;

[0097] The memory is used to store computer-readable instructions or computer programs;

[0098] The processor is used to read the computer-readable instructions or the computer program so that the device implements the message transmission method.

[0099] An embodiment of the present application provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the message transmission method described above.

[0100] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0101] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0102] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0103] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0104] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A message transmission method, characterized in that: The method comprises: Acquire a transaction request message, wherein the transaction request message includes business elements, and the business elements include a transaction code and a user identifier; Query routing rules according to the business elements, wherein the routing rules include parameters required for determining routing; In response to querying the routing rule, extracting the corresponding target parameter value from the business element according to the parameter in the routing rule; Determining a target system identifier according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between the parameter value and the system identifier, and a corresponding relationship between the parameter value and the expression; Sending the transaction request message to the system corresponding to the target system identifier; Wherein, determining the target system identifier according to the target parameter value and the preset corresponding relationship includes: Concatenating the target parameter values ​​to obtain a concatenated parameter value; Perform a query based on the spliced ​​parameter values ​​and the corresponding relationship to obtain a query result; In response to the query result being a system identifier, determining the system identifier as a target system identifier; In response to the query result being an expression, extracting a parameter value corresponding to the independent variable from the business element according to the independent variable in the expression; Inputting the parameter value corresponding to the independent variable into the expression to obtain the calculation result; In response to the calculation result being a system identifier, the system identifier is determined as a target system identifier.

2. The method according to claim 1, characterized in that: The method further comprises: In response to no routing rule being found, the query result being neither a system identifier nor an expression, or the calculation result being not a system identifier, obtaining a preconfigured default system identifier; The transaction request message is sent to the system corresponding to the default system identifier.

3. The method according to claim 1, characterized in that The method further comprises: In response to a triggering operation by an administrator, the routing rule and / or the corresponding relationship is updated.

4. The method according to any one of claims 1 to 3, characterized in that: The routing rules are stored in a memory, and the corresponding relationship is stored in a memory database corresponding to the memory.

5. The method according to claim 4, characterized in that The updating of the routing rules in response to a triggering operation of the user includes: In response to a trigger operation by an administrator, the updated routing rules are stored in the memory database, and an update flag is added to the memory database; The updated routing rule is read from the memory database according to the update flag, and the memory is updated using the updated routing rule.

6. The method according to claim 5, characterized in that The method further comprises: In response to the memory completing the update, the update flag is deleted.

7. A message transmission device, characterized in that: The device comprises: An acquisition unit, configured to acquire a transaction request message, wherein the transaction request message includes a business element, and the business element includes a transaction code; A query unit, configured to query a routing rule according to the transaction code, wherein the routing rule includes parameters required for determining the routing; an extraction unit, configured to extract corresponding target parameter values ​​from the business elements according to parameters in the routing rules in response to querying the routing rules; A determination unit, configured to determine a target system identifier according to the target parameter value and a preset corresponding relationship, wherein the corresponding relationship includes a corresponding relationship between the parameter value and the system identifier, and a corresponding relationship between the parameter value and the expression; A sending unit, configured to send the transaction request message to the system corresponding to the target system identifier; The determining unit is specifically configured to concatenate the target parameter values ​​to obtain a concatenated parameter value; perform a query based on the concatenated parameter value and the corresponding relationship to obtain a query result; and in response to the query result being a system identifier, determine the system identifier as a target system identifier; The determination unit is further used to, in response to the query result being an expression, extract a parameter value corresponding to the independent variable from the business element according to the independent variable in the expression; input the parameter value corresponding to the independent variable into the expression to obtain a calculation result; and in response to the calculation result being a system identifier, determine the system identifier as a target system identifier.

8. A device, characterized in that include: Processor, memory; The memory is used to store computer-readable instructions or computer programs; The processor is used to read the computer-readable instructions or the computer program so that the device implements the message transmission method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Transaction request processing method and device

    CN112633867A

  • Method and system for transmitting data through one-way communication between servers

    CN112839038A

  • Business processing method and device, equipment and storage medium

    CN113467971A