A method, device and equipment for flexibly configuring packet routing scheduling

By generating routing configuration rules to automatically process messages, the problems of low efficiency and low accuracy in existing technologies are solved, flexible configuration and efficient message routing scheduling are achieved, and fine-grained service environment routing requirements are supported.

CN119402405BActive Publication Date: 2025-10-10CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411522885.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-10-10
Estimated Expiration
2044-10-29

AI Technical Summary

Technical Problem

In the existing technology, the message processing efficiency of routing to the designated module through code or manual means is low, the accuracy is low, and it is difficult to maintain. It cannot meet the fine-grained service environment routing requirements. In addition, the existing technology requires the support of multiple external services and middleware, resulting in insufficient link tracking and monitoring capabilities.

Method used

By extracting information from historical messages to generate routing configuration rules, newly received messages are automatically processed. Maintenance queues and routing configuration rules are generated based on configuration parameters and element information to achieve automatic distribution and parsing of messages.

Benefits of technology

It improves the efficiency and accuracy of message processing, reduces manual intervention, supports flexible configuration, shortens the change cycle, and provides business tracking and tracing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402405B_ABST
    Figure CN119402405B_ABST
Patent Text Reader

Abstract

The embodiment of the present specification relates to the technical field of communication, especially to a kind of flexible configuration message routing scheduling method, device and equipment.This scheme obtains the historical message information in historical message, including configuration parameter and element information, judges different element information corresponding to different configuration parameters;Then according to configuration parameter configuration generates maintenance queue, generates the routing configuration rule of each maintenance queue according to different service scenarios;Finally, when new message appears, receive message and extract the message information therein, confirm the maintenance queue and its element information corresponding to the message according to routing configuration rule, and analyze and process the message.Thereby, the newly received message is automatically distributed by routing configuration rule, message routing is automatically routed to different processing modules for analysis and processing by flexible configuration, and the efficiency of message processing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of this specification relate to the field of communication technology, and in particular to a method, apparatus, and device for flexibly configuring message routing scheduling. Background Art

[0002] With the development of internet technology, service environment routing technology has emerged. Service environment routing, located under the service gateway, can provide external business parties with access to services in different environments according to their needs. Its advantages include traffic diversion, impact isolation, and reduced regional impact. Currently, the routing granularity supported by software and hardware in the industry is mostly at the service routing level. For fine-grained requirements like environment routing, traditional approaches to adding and modifying service environment routing requirements for different business parties and allocating service environments to them require restarting the server to modify the service environment routing and implementing a release process. In recent years, with the rapid development of information technology and the continuous growth of overseas business, remittance business volume has increased dramatically. Messages received into the system need to be routed to different processing modules for parsing and processing. Using code or manual routing to specific modules is inefficient, inaccurate, and difficult to maintain. Furthermore, existing technologies require the use of multiple external services and middleware. This requires not only the deployment of different application services for each channel, but also lacks strong link tracking and monitoring capabilities. They only provide routing capabilities and are unable to track business operations or trace messages.

[0003] Currently, there is an urgent need for a method to flexibly configure message routing scheduling, so as to automatically process messages through routing configuration rules and solve the problems of low efficiency, low accuracy and difficulty in maintenance when routing to specified modules through code or manual means. Summary of the Invention

[0004] The embodiments of this specification provide a method, apparatus, and device for flexibly configuring message routing scheduling. By extracting information from historical messages to generate routing configuration rules, newly received messages are automatically assigned based on the routing configuration rules. This allows for flexible configuration to automatically route messages to different processing modules for parsing and processing, thereby improving message processing efficiency. Furthermore, automatically processing messages based on routing configuration rules improves the accuracy of message routing. The specific technical solutions of the embodiments of this specification are as follows:

[0005] On the one hand, embodiments of this specification provide a method for flexibly configuring message routing scheduling, including:

[0006] Acquire historical messages and extract historical message information from the historical messages, wherein the historical message information includes configuration parameters and element information;

[0007] Configure basic parameters of the route according to the configuration parameters, and generate a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information;

[0008] Adjust the basic parameters of the routing in the maintenance queue according to different business scenarios and generate routing configuration rules for each maintenance queue;

[0009] receiving a message and extracting message information from the message, wherein the message information includes configuration parameters;

[0010] Configure basic parameters of the route according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules;

[0011] The maintenance queue and its element information corresponding to the message are confirmed according to the matching result, and the message is analyzed and processed according to the routing configuration rule and its element information.

[0012] Furthermore, the message information at least includes: sending bank, receiving bank, currency, message type, message number and beneficiary information.

[0013] Furthermore, the element information includes: queue code, queue connection mode, queue type, and queue name.

[0014] Furthermore, the queue connection mode includes: interactive connection and FTP connection,

[0015] When the connection mode is FTP connection, it is also necessary to set the storage directory of the message after receiving the message.

[0016] Furthermore, the queue name is used to identify brief information of the maintenance queue, including at least an import queue, an export queue, a reply processing queue, a reconciliation processing queue, and a query and reply processing queue.

[0017] Furthermore, matching the basic parameters according to the routing configuration rule further includes:

[0018] The queue code is a unique identifier of the maintenance queue;

[0019] Determine the queue code that matches the basic parameters according to the routing configuration rule;

[0020] If the queue code does not exist in the maintenance queue, then adding a new element information to generate a new maintenance queue;

[0021] If the queue code already exists in the maintenance queue, it is matched to the maintenance queue corresponding to the queue code.

[0022] Furthermore, adjusting the basic parameters of the routing in the maintenance queue according to different business scenarios further includes:

[0023] The maintenance queue includes a source queue, a destination queue, a message type, a routing priority, a routing processing end flag, and a routing start flag;

[0024] The routing priority is set by the size of the message volume, and the smaller the value, the greater the priority;

[0025] The routing processing end flag is used to determine whether to end the routing configuration of the message and continue the routing of the next message.

[0026] Furthermore, analyzing and processing the message according to the routing configuration rule and its element information further includes:

[0027] Analyze the message information according to the routing configuration rule;

[0028] The message is assigned to a corresponding processing module for processing according to the analysis result of the message information.

[0029] Furthermore, allocating the message to a corresponding processing module for processing according to the analysis result of the message information further includes:

[0030] The processing module includes multiple processing units, and the first processing unit obtains the message;

[0031] Determining whether the message is processed locally, and if it is determined that the message is processed locally, marking the message as a first message to be processed by the first processing unit;

[0032] If it is determined that the message is not processed locally, the first processing unit obtains a second message by adding load balancing information to the message;

[0033] The first processing unit forwards the second message to the second processing unit, and the second processing unit processes the second message.

[0034] Furthermore, determining whether the message is processed locally further includes,

[0035] The processing unit queries the source address and destination address of the message according to the maintenance queue and element information corresponding to the message;

[0036] Input the essential information of the message into a load sharing algorithm, and determine whether the message is processed locally based on a calculation result and a real-time load of the processing unit.

[0037] On the other hand, an embodiment of this specification further provides a device for flexibly configuring message routing scheduling, the device comprising:

[0038] A historical message analysis module, configured to obtain historical messages and extract historical message information from the historical messages, wherein the historical message information includes configuration parameters and element information;

[0039] A maintenance queue creation module, configured to configure basic parameters of the route according to the configuration parameters, and to generate a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information;

[0040] A configuration rule generation module is used to adjust the basic parameters of the routing in the maintenance queue according to different business scenarios and generate routing configuration rules for each maintenance queue;

[0041] A message receiving module, configured to receive a message and extract message information from the message, wherein the message information includes configuration parameters;

[0042] A basic parameter configuration module, configured to configure basic parameters of routing according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules;

[0043] The message analysis module is used to confirm the maintenance queue and its element information corresponding to the message according to the matching result, and analyze and process the message according to the routing configuration rule and its element information.

[0044] On the other hand, an embodiment of this specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements the above method when executing the computer program.

[0045] On the other hand, an embodiment of this specification further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0046] Finally, an embodiment of this specification also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above method is implemented.

[0047] The embodiments of the present disclosure provide a method for flexibly configuring messages and completing routing scheduling. This solution obtains historical message information from historical messages, including configuration parameters and element information, so that the system can determine the different element information corresponding to different configuration parameters based on the element information in the historical message information. Basic routing parameters are then configured based on the configuration parameters and a maintenance queue required for maintaining the routing is generated, reflecting the corresponding relationship between the configuration parameters and element information. To adapt to different parameters or service updates that may be involved in different business scenarios, the basic routing parameters in the maintenance queue are adjusted according to the different business scenarios, generating unique routing configuration rules for each maintenance queue. Finally, when a new message arrives, the message is received and the message information extracted. Since the new message information does not include element information, the basic routing parameters need to be configured based on the message configuration parameters and matched according to the routing configuration rules. The maintenance queue and element information corresponding to the message are then determined based on the matching results, and the message is analyzed and processed according to the routing configuration rules. Thus, the newly received message is automatically assigned through the routing configuration rules, achieving flexible configuration and automatic routing of the message to different processing modules for parsing and processing, thereby improving the efficiency of message processing. At the same time, automatic message processing through routing configuration rules improves the accuracy of message routing. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 FIG2 is a schematic diagram of an implementation system of a method for flexibly configuring message routing scheduling in an embodiment of this specification;

[0050] Figure 2 The figure shows a flow chart of a method for flexibly configuring message routing scheduling in an embodiment of this specification;

[0051] Figure 3 The figure shows a flow chart of matching the basic parameters according to the routing configuration rules in an embodiment of this specification;

[0052] Figure 4 The figure shows a flow chart of analyzing and processing the message according to the routing configuration rules and their element information in an embodiment of this specification;

[0053] Figure 5 The figure shows a schematic diagram of the structure of the processing module in the embodiment of this specification;

[0054] Figure 6 The figure shows a flow chart of allocating the message to the corresponding processing module for processing according to the analysis result of the message information in the embodiment of this specification;

[0055] Figure 7 FIG2 is a schematic diagram showing a specific structure of a device for flexibly configuring message routing scheduling according to this embodiment;

[0056] Figure 8 The figure shows a schematic diagram of the structure of a computer device in an embodiment of this specification.

[0057]

Description of the accompanying drawings

[0058] 101. Terminal;

[0059] 102. Server;

[0060] 5. Processing module;

[0061] 501, first processing unit;

[0062] 502, second processing unit;

[0063] 701. Historical message analysis module;

[0064] 702. Maintenance queue creation module;

[0065] 703. Configuration rule generation module;

[0066] 704, message receiving module;

[0067] 705. Basic parameter configuration module;

[0068] 706. Message analysis module;

[0069] 802. Computer equipment;

[0070] 804. Processing equipment;

[0071] 806. Storage resources;

[0072] 808, drive system;

[0073] 810, input / output module;

[0074] 812. Input devices;

[0075] 814. Output device;

[0076] 816. Presentation equipment;

[0077] 818. Graphical User Interface;

[0078] 820, network interface;

[0079] 822, communication link;

[0080] 824. Communication bus. DETAILED DESCRIPTION

[0081] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the embodiments described are only part of the embodiments of this specification, not all of them. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the embodiments of this specification.

[0082] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this specification and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0083] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of this specification comply with the relevant provisions of national laws and regulations.

[0084] It should be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned. They should be regarded as exemplary and their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0085] like Figure 1The diagram shows a system diagram for implementing a method for flexibly configuring message routing scheduling in an embodiment of the present specification, including a terminal 101 and a server 102. The terminal 101 and the server 102 can communicate via a network, which can include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof, and is connected to a website, a user device (e.g., a computing device), and a back-end system. Optionally, the server 102 can be a node of a cloud computing system, or each server can be a separate cloud computing system, including multiple computers interconnected by a network and operating as a distributed processing system.

[0086] Terminal 101 obtains message input, extracts message information from the message and sends it to server 102. Server 102 matches the basic parameters corresponding to the new message according to the routing configuration rules generated by historical messages, analyzes and processes the message according to the routing configuration rules and its element information, and returns the analysis and processing results to the router through terminal 101 to complete the message configuration.

[0087] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the embodiment of this specification. In actual application, other application environments may also be included, and this specification does not limit them.

[0088] In view of the problems existing in the prior art, the embodiments of this specification provide a method for flexibly configuring message routing scheduling. In the embodiments of this specification, Figure 2 The figure shows a flow chart of the method for flexibly configuring message routing scheduling in the embodiment of this specification. The process of flexibly configuring message routing scheduling is described in this figure. The order of steps listed in the embodiment is only one way of executing the steps among many steps, and does not represent the only execution order. When the actual system or device product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings. Specifically, Figure 2 As shown, the method may include:

[0089] Step 201: Obtain historical messages and extract historical message information from the historical messages, where the historical message information includes configuration parameters and element information;

[0090] Step 202: configuring basic parameters of the route according to the configuration parameters, and generating a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information;

[0091] Step 203: adjusting basic parameters of routing in the maintenance queue according to different business scenarios, and generating routing configuration rules for each maintenance queue;

[0092] Step 204: receiving the packet and extracting packet information in the packet, the packet information including configuration parameters;

[0093] Step 205: configuring basic parameters of the route according to the configuration parameters of the packet, and matching the basic parameters according to the route configuration rule;

[0094] Step 206: confirming the maintenance queue corresponding to the packet and element information thereof according to the matching result, and analyzing and processing the packet according to the route configuration rule and the element information.

[0095] By using the embodiments of the present specification, a method capable of flexibly configuring packets and completing route scheduling is provided. In the present scheme, historical packet information in historical packets is obtained, including configuration parameters and element information, so that the system can judge different element information corresponding to different configuration parameters according to the element information in the historical packet information; then the basic parameters of the route are configured according to the configuration parameters, and the maintenance queue required for maintaining the route is generated, thereby embodying the corresponding relationship between the configuration parameters and the element information; in order to adapt to different parameters or business updates that may be involved in different business scenarios, the basic parameters of the route in the maintenance queue are adjusted according to different business scenarios, and the route configuration rule specific to each maintenance queue is generated; finally, when a new packet appears, the packet is received and the packet information therein is extracted, the new packet information does not include element information, so the basic parameters of the route are configured according to the configuration parameters of the packet, and the basic parameters are matched according to the route configuration rule; then the maintenance queue corresponding to the packet and the element information thereof are confirmed according to the matching result, and the packet is analyzed and processed according to the route configuration rule. Thus, the newly received packet is automatically distributed through the route configuration rule, realizing automatic routing of the packet to different processing modules for analysis and processing through flexible configuration, and improving the efficiency of packet processing. Meanwhile, the accuracy of packet routing is improved through automatic processing of the packet by the route configuration rule.

[0096] In the embodiments of the present specification, a detailed flexible packet automatic routing configuration function is provided, which can configure rich queue information according to business requirements, and then combine the queue information into various queue routes. The function also provides a convenient and efficient route configuration rule setting function, so that the packet entering the system is routed to different processing modules through the automatic scheduling engine of the system, the routing process does not require manual intervention, and the system automatically distributes, thereby greatly improving the efficiency and accuracy. Meanwhile, the routing parameters and rules data are stored in the database, and the business can start, stop or modify the rules at any time, which takes effect without restarting the server, thereby greatly shortening the change cycle. In addition, the system can analyze and output a report for transactions that are not successfully routed, providing manual routing and optimization for business personnel, thereby greatly improving the business processing efficiency.

[0097] According to one embodiment of the present specification, in order to obtain the content contained in the message through message information, the message information at least includes: the sender, the receiver, the currency, the message type, the message number and the payee information.

[0098] In the embodiment of the present specification, the system provides a message analysis service to extract information from the received message file. The sender, the receiver, the currency, the message type, the message number, the payee and other information of the message are obtained. The system stores these information in the database and marks the key words to be routed for the routing and scheduling engine to process.

[0099] According to one embodiment of the present specification, in order to generate the maintenance queue required for maintaining the routing, it is necessary to obtain the historical related queue information, that is, the element information, from the historical message, which includes: the queue code, the queue connection mode, the queue type, and the queue name.

[0100] In the embodiment of the present specification, the element information includes the menu of the basic elements of the maintenance queue required for maintaining the routing. The queue parameter maintenance page is entered to provide the functions of adding, deleting, querying, details, enabling and disabling the basic elements. Each piece of element information contains the following contents: the queue code is the unique identifier of the queue. If the parameter record already exists in the system, the record cannot be added, and the system automatically prompts; the queue connection mode includes interactive connection or FTP connection; the queue type can be divided into from user, to user, from branch, to branch, from FTP mode, through FTP mode, etc.; the queue name: used to identify the brief information of the queue, such as import queue, export queue, reply processing queue, manual processing queue, reconciliation processing queue, query and check processing queue, etc.

[0101] According to one embodiment of the present specification, in order to ensure that the message input and output can be completed in different connection modes, the queue connection mode includes: interactive connection and FTP connection,

[0102] When the connection mode is FTP connection, the storage directory of the message needs to be set after receiving the message.

[0103] In the embodiment of the present specification, when the connection mode is FTP, the storage directory of the input message and the storage directory of the output message need to be set.

[0104] According to one embodiment of the present specification, the queue name is used to identify the brief information of the maintenance queue, at least including import queue, export queue, reply processing queue, reconciliation processing queue and query and check processing queue.

[0105] In the embodiments of this specification, the system provides a page for maintaining message routing queue information, such as adding, deleting, querying, editing, and modifying routing configuration rules. The maintained queue basics can be used to set different routes based on actual business scenarios. Each route contains information such as a source queue, a destination queue, a message type, a routing priority, a routing end flag, and a routing start flag. The source queue represents the source of incoming messages; the destination queue represents the processing queue to which the message is to be routed; the message type represents all messages, but can also be set to a single message type; the routing priority is generally set based on the volume of messages in the route, with a lower value indicating a higher priority. If a message needs to end routing immediately after its destination is determined and continue routing to the next message, this value should be set to "Y." If a message needs to continue routing to another destination after its destination is determined, for example, a message needs to be sent to both route 1 and route 2, this value should be set to "N." The routing start flag determines whether the route is enabled or disabled.

[0106] According to one embodiment of the present specification, in order to obtain a maintenance queue that a new message should be matched with based on the element information of the historical message information, such as Figure 3 As shown, matching the basic parameters according to the routing configuration rule further includes that the queue code is a unique identifier of the maintenance queue;

[0107] Step 301: Determine the queue code that matches the basic parameters according to the routing configuration rule;

[0108] Step 302: If the queue code does not exist in the maintenance queue, then add a new element information to generate a new maintenance queue;

[0109] Step 303: If the queue code already exists in the maintenance queue, match it to the maintenance queue corresponding to the queue code.

[0110] In the embodiment of this specification, the queue code in the element information is the unique identifier of the maintenance queue. The basic parameters of the routing in the maintenance queue are adjusted according to different business scenarios, and the routing configuration rules of each maintenance queue are generated to determine the queue code that matches the basic parameters of the new message, so as to determine whether the new message exists in the existing maintenance queue; if the queue code does not exist in the maintenance queue, it means that the queue that this message should have has not appeared in the historical messages, so a new element information is added to generate a new maintenance queue; if the queue code already exists in the maintenance queue, it is matched to the maintenance queue corresponding to the queue code.

[0111] According to one embodiment of the present specification, in order to adjust the basic parameters of the routing in the maintenance queue according to different business scenarios, the method further includes:

[0112] The maintenance queue includes a source queue, a destination queue, a message type, a routing priority, a routing processing end flag, and a routing start flag;

[0113] The routing priority is set by the size of the message, and the smaller the value, the greater the priority;

[0114] The routing processing end flag is used to determine whether to end the routing configuration of the message and continue the routing of the next message.

[0115] In the embodiment of this specification, the system provides a menu function for maintaining routing configuration rules. Detailed matching rules can be set for each queue route. The menu provides the function of quickly generating judgment expressions, with "relational expression": "and", "or", "not" options; "keywords": message fields such as currency, message type, receiving bank, sending bank, message number, beneficiary, etc.; "operator": greater than, equal to, less than, similar; "judgment condition value": enter which values ​​need to be matched. After setting the relational elements, click Generate to output a judgment expression as a routing judgment rule. For example, set the message sent by the London branch with the currency of the collection as foreign exchange to be routed to the incoming processing queue. In addition, the menu provides the function of directly entering the judgment expression. If you use the keyboard to enter directly, these buttons or drop-down boxes do not need to be operated. You only need to enter directly in the edit box. When the input expression format does not meet the requirements, the system can identify it and pop up a box to prompt the corresponding error.

[0116] According to one embodiment of the present specification, in order to distribute the message to the corresponding processing module for processing, as shown in FIG. Figure 4 As shown, analyzing and processing the message according to the routing configuration rules and their element information further includes:

[0117] Step 401: Analyze the message information according to the routing configuration rule;

[0118] Step 402: Allocate the message to a corresponding processing module for processing according to the analysis result of the message information.

[0119] In the embodiments of this specification, the information maintained by the routing configuration rules will be stored in the database for use by the automatic scheduling engine. The automatic scheduling engine will obtain historical message information and analyze and match it with the routing configuration rules. Analysis will be performed based on the key elements of the message: such as the source of the message, the type of message, the sending bank, the receiving bank, the currency, the amount, the payee, the payee, the payment date, etc. and the routing configuration rules. Messages with an analysis result of 100% will be accurately routed to various modules of the system for processing, such as the export module, the import module, the query and reply module, etc. In addition, for messages that are not successfully routed, the automatic scheduling engine will output a routing analysis report. The destination modules of the message are listed from the highest to the lowest matching degree, and manual routing and routing optimization are performed.

[0120] According to an embodiment of the present specification, in order to optimize the processing of messages in a distributed system, by adding load balancing information to the message and then forwarding it to other processing units in the same processing module, the working efficiency of the processing module and the accuracy of message processing can be guaranteed. The processing module of the embodiment of the present specification can be as follows: Figure 5 As shown in the figure, the structure of multiple processing units can further subdivide the message processing by combining this structure with the calculation method of load balancing, such as Figure 6 As shown, allocating the message to the corresponding processing module for processing according to the analysis result of the message information further includes:

[0121] Step 601: The processing module includes multiple processing units, and the first processing unit obtains the message;

[0122] Step 602: Determine whether the message is processed locally. If it is determined that the message is processed locally, mark the message as a first message and process it by the first processing unit 501.

[0123] Step 603: If it is determined that the message is not processed locally, the first processing unit 501 obtains a second message by adding load balancing information to the message;

[0124] Step 604: The first processing unit 501 forwards the second message to the second processing unit 502, and the second processing unit 502 processes the second message.

[0125] In the embodiments of this specification, if a message is carried on a connection-oriented protocol, such as the TCP protocol or the QUIC protocol, the processing module needs to ensure that all messages in the session in which the message is located are processed by the same processing unit in the processing module when processing the message. In order to ensure that the message is sent to the corresponding correct processing unit during transmission, the message processing method proposed in the embodiments of this application can forward the message between the processing units within the processing module. When the first processing unit determines that the message is not processed locally, it can forward the message to the second processing unit and record the load balancing information in the message.

[0126] Wherein, determining whether the message is processed locally further includes:

[0127] The processing unit queries the source address and destination address of the message according to the maintenance queue and element information corresponding to the message;

[0128] Input the essential information of the message into a load sharing algorithm, and determine whether the message is processed locally based on a calculation result and a real-time load of the processing unit.

[0129] In an embodiment of the present specification, a load balancing method is used to solve the problem in the prior art that, in order to adapt to protocols such as TCP or QUIC that intelligently connect a single processing unit, the processing speed of a single processing unit is limited during the message processing process. Therefore, by connecting processing units sequentially after the first processing unit to load balance the message, the efficiency of message processing is effectively improved. After receiving a message, the processing unit uses a load balancing algorithm to obtain the load information required by the queue type described in the message in the processing of historical messages, such as the CPU usage of processing the message and the memory usage of processing the message, based on the corresponding maintenance queue and its element information in the message information. The processing unit then determines whether it can process the message based on its own load information in the current time period. For example, a CPU usage threshold of 80% can be preset. When the CPU usage of the processing unit and the CPU usage that may be required by the message add up to more than 80%, it is determined that the message cannot be processed locally and is output to the next processing unit. Furthermore, in the embodiments of this specification, the first processing unit can determine whether the message should be processed locally in a variety of ways, including: through the configuration parameters carried by the message, or searching the local maintenance queue, or making a judgment based on the load balancing algorithm, etc. The load balancing information is used to indicate the status information of the message in the first processing unit. It can be understood that the load balancing information is used to indicate that the message has been processed by the load sharing algorithm of a processing unit. The first processing unit forwards the second message with the added load balancing information to the second processing unit. Since the second message carries the load balancing information, the second processing unit can judge whether to process the second message based on the load balancing information. It can be understood that, according to the requirements of the specific embodiment, the number of processing units can be further increased in the processing module in this case, so as to ensure that the load sharing of each processing unit is within the predetermined threshold, thereby ensuring that the processing efficiency of the processing unit can be maintained within the expected range.

[0130] As an example of this specification, you can also refer to Figure 7 FIG. 1 is a schematic diagram showing the specific structure of the apparatus for flexibly configuring message routing scheduling according to this embodiment.

[0131] A historical message analysis module 701 is configured to obtain historical messages and extract historical message information from the historical messages, wherein the historical message information includes configuration parameters and element information;

[0132] A maintenance queue creation module 702 is configured to configure basic parameters of a route according to the configuration parameters, and to generate a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information;

[0133] The configuration rule generation module 703 is configured to generate a routing configuration rule of each maintenance queue according to adjustment of a basic parameter of routing in the maintenance queue according to different service scenarios.

[0134] The packet receiving module 704 is configured to receive a packet and extract packet information in the packet, wherein the packet information comprises a configuration parameter.

[0135] The basic parameter configuration module 705 is configured to configure a basic parameter of routing according to the configuration parameter of the packet, and match the basic parameter according to the routing configuration rule.

[0136] The packet analysis module 706 is configured to confirm a maintenance queue corresponding to the packet and element information of the maintenance queue according to a matching result, and analyze and process the packet according to the routing configuration rule and the element information.

[0137] Since the principle of solving the problem of the above device is similar to that of the above method, the implementation of the above system can refer to the implementation of the above method, and the repeated parts will not be described herein.

[0138] As shown in Figure 8 is a structural schematic diagram of a computer device in the embodiment of the present specification. The computer device in the embodiment of the present specification can run the method of the embodiment of the present specification.

[0139] The computer device 802 can include one or more processing devices 804, such as one or more central processing units (CPUs), each of which can implement one or more hardware threads. The computer device 802 can also include any storage resource 806 for storing any kind of information such as code, settings, data, etc. Without limitation, for example, the storage resource 806 can include any one or a combination of more than one of the following: any type of RAM, any type of ROM, a flash memory device, a hard disk, an optical disk, etc. More generally, any storage resource can store information using any technology.

[0140] Further, any storage resource can provide volatile or non-volatile retention of information.

[0141] Further, any storage resource can represent a fixed or removable component of the computer device 802. In one case, the computer device 802 can perform any operation of the associated instructions when the processing device 804 executes the associated instructions stored in any storage resource or a combination of storage resources. The computer device 802 also includes one or more drive systems 808 for interacting with any storage resource, such as a hard disk drive system, an optical disk drive system, etc.

[0142] The computer device 802 can also include an input / output module 810 (I / O) for receiving input (via input device 812) and for providing output (via output device 814). One specific output mechanism can include a presentation device 816 and associated graphical user interface 818 (GUI). In other embodiments, the input / output module 810 (I / O), the input device 812, and the output device 814 can not be included, and the computer device 802 can be a standalone computer device in a networked environment. The computer device 802 can also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. The one or more communication buses 824 couple the various components in the computer device 802.

[0143] The communication links 822 can be implemented in any manner, such as through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication links 822 can include any combination of hardwired links, wireless links, routers, gateway functionality, name servers, etc., governed by any protocol or combination of protocols.

[0144] The embodiments of the present specification also provide a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program is executed by a processor to implement the above method.

[0145] The embodiments of the present specification also provide a computer readable instruction, wherein when the processor executes the instruction, the program in the processor makes the processor execute the above method.

[0146] It should be understood that, in various embodiments of the embodiments of the present specification, the size of the sequence number of each process described above does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present specification.

[0147] It should also be understood that, in the embodiments of the present specification, the term "and / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships. For example, A and / or B can represent three cases of A alone, A and B together, and B alone. In addition, the character " / " in the embodiments of the present specification generally represents an "or" relationship between the front and rear associated objects.

[0148] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of this specification.

[0149] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0150] In the several embodiments provided in the embodiments of this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or can be electrical, mechanical or other forms of connection.

[0151] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.

[0152] In addition, the functional units in each embodiment of the present specification may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this specification is essentially or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the embodiments of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.

[0154] The embodiments of this specification use specific embodiments to illustrate the principles and implementation methods of the embodiments of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of this specification. At the same time, for those skilled in the art, based on the ideas of the embodiments of this specification, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of this specification.

Claims

1. A method for flexibly configuring message routing scheduling, characterized in that: The method comprises, Acquire historical messages and extract historical message information from the historical messages, wherein the historical message information includes configuration parameters and element information; Configure basic parameters of the route according to the configuration parameters, and generate a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information; Adjust the basic parameters of the routing in the maintenance queue according to different business scenarios and generate routing configuration rules for each maintenance queue; receiving a message and extracting message information from the message, wherein the message information includes configuration parameters; Configure basic parameters of the route according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules; The maintenance queue and its element information corresponding to the message are confirmed according to the matching result, and the message is analyzed and processed according to the routing configuration rule and its element information.

2. The method for flexibly configuring message routing and scheduling according to claim 1, characterized in that: The message information at least includes: sending bank, receiving bank, currency, message type, message number and beneficiary information.

3. The method for flexibly configuring message routing and scheduling according to claim 1, wherein: The element information includes: queue code, queue connection mode, queue type, and queue name.

4. The method for flexibly configuring message routing and scheduling according to claim 3, wherein: The queue connection modes include: interactive connection and FTP connection. When the connection mode is FTP connection, it is also necessary to set the storage directory of the message after receiving the message.

5. The method for flexibly configuring message routing and scheduling according to claim 3, wherein: The queue name is used to identify brief information of the maintenance queue, including at least an import queue, an export queue, a reply processing queue, a reconciliation processing queue, and a query and reply processing queue.

6. The method for flexibly configuring message routing and scheduling according to claim 3, wherein: Matching the basic parameters according to the routing configuration rule further includes: The queue code is a unique identifier of the maintenance queue; Determine the queue code that matches the basic parameters according to the routing configuration rule; If the queue code does not exist in the maintenance queue, then adding a new element information to generate a new maintenance queue; If the queue code already exists in the maintenance queue, it is matched to the maintenance queue corresponding to the queue code.

7. The method for flexibly configuring message routing and scheduling according to claim 1, wherein: Adjusting the basic parameters of the routing in the maintenance queue according to different business scenarios further includes: The maintenance queue includes a source queue, a destination queue, a message type, a routing priority, a routing processing end flag, and a routing start flag; The routing priority is set according to the size of the message, and the smaller the message size, the higher the priority; The routing processing end flag is used to determine whether to end the routing configuration of the message.

8. The method for flexibly configuring message routing and scheduling according to claim 1, wherein: Analyzing and processing the message according to the routing configuration rule and its element information further includes: Analyze the message information according to the routing configuration rule; According to the analysis result of the message information, the message is assigned to the maintenance queue corresponding to the message and the processing module corresponding to its element information for processing.

9. The method for flexibly configuring message routing and scheduling according to claim 1, wherein: Allocating the message to a maintenance queue corresponding to the message and a processing module corresponding to its element information for processing according to the analysis result of the message information further includes: The processing module includes multiple processing units, and the first processing unit obtains the message; Determining whether the message is processed locally, and if it is determined that the message is processed locally, marking the message as a first message to be processed by the first processing unit; If it is determined that the message is not processed locally, the first processing unit obtains a second message by adding load balancing information to the message; The first processing unit forwards the second message to the second processing unit, and the second processing unit processes the second message.

10. The method for flexibly configuring message routing and scheduling according to claim 9, characterized in that: Determining whether the message is processed locally further includes, The processing unit queries the source address and destination address of the message according to the maintenance queue and element information corresponding to the message; Input the essential information of the message into a load sharing algorithm, and determine whether the message is processed locally based on a calculation result and a real-time load of the processing unit.

11. A device for flexibly configuring message routing scheduling, characterized in that: The device comprises: A historical message analysis module, configured to obtain historical messages and extract historical message information from the historical messages, wherein the historical message information includes configuration parameters and element information; A maintenance queue creation module, configured to configure basic parameters of the route according to the configuration parameters, and to generate a maintenance queue required for maintaining the route according to the basic parameters of the route and the element information; A configuration rule generation module is used to adjust the basic parameters of the routing in the maintenance queue according to different business scenarios and generate routing configuration rules for each maintenance queue; A message receiving module, configured to receive a message and extract message information from the message, wherein the message information includes configuration parameters; A basic parameter configuration module, configured to configure basic parameters of routing according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules; The message analysis module is used to confirm the maintenance queue and its element information corresponding to the message according to the matching result, and analyze and process the message according to the routing configuration rule and its element information.

12. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

14. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Method and device for queue scheduling

    CN102594654A

  • Transaction data processing method, device, equipment and system

    CN111767143A