Method, device and equipment for flexibly configuring message routing scheduling
By generating routing configuration rules and automatically allocating packets, the problems of low efficiency and low accuracy of packet routing in the existing technology are solved, and efficient and accurate packet processing is achieved.
Patent Information
- Application Number
- CN202411522885.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-29
AI Technical Summary
In the prior art, the efficiency of routing messages to designated modules through code or manual code is inefficient, the accuracy is not high, and it is difficult to maintain, and the service tracking and trace messages cannot be performed.
By extracting information from historical messages, the routing configuration rules are generated, and newly received messages are automatically allocated to different processing modules for analysis and processing, improving the efficiency and accuracy of message processing.
It realizes automatic routing of packets to different processing modules for parsing and processing through flexible configuration, improving the efficiency and accuracy of packet processing.
Smart Images

Figure CN119402405A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present specification relate to the field of communication technology, and in particular, to a method, device and equipment for flexibly configuring message routing scheduling. Background Art
[0002] With the development of Internet technology, service environment routing technology has emerged. Service environment routing is under the service gateway. It can provide services for external business parties to call. It can call services in different environments according to the needs of the business parties. Its advantage is that it can achieve diversion, isolate impacts, and reduce regional impacts. At present, most of the routing granularity supported by software and hardware in the industry is at the service routing level. For fine-grained requirements such as environment routing, in the traditional way of adding and modifying the needs of different business parties for service environment routing and allocating service environments to business parties, it is necessary to restart the server to modify the service environment routing and follow the release process. In recent years, with the rapid development of information technology and the continuous development of overseas business, the volume of remittance business has increased dramatically. For the messages received into the system, they need to be routed to different processing modules for parsing and processing. If it is routed to the specified module through code or manual, the efficiency is low, the accuracy is not high, and it is not easy to maintain. At the same time, the existing technology needs to adopt a variety of external services and middleware to complete, not only to deploy different application services for the channel end, but also to have weak link tracking and monitoring capabilities. It only has routing capabilities and cannot track business and trace messages.
[0003] At present, there is an urgent need for a method for flexibly configuring 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 a specified module through code or manual means. Summary of the invention
[0004] In order to solve the problems of inaccurate intent recognition and low multi-path retrieval efficiency in the business question-and-answer system in the prior art, the embodiments of this specification provide a method, device and equipment for flexibly configuring message routing scheduling, which generates routing configuration rules by extracting information from historical messages, so that newly received messages are automatically allocated through routing configuration rules, and the messages are automatically routed to different processing modules for parsing and processing through flexible configuration, thereby improving the efficiency of message processing. At the same time, automatically processing messages through 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, an embodiment of this specification provides 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] Adjusting basic parameters of routing in the maintenance queue according to different business scenarios, and generating 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 routing 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: a sending bank, a receiving bank, a currency, a message type, a 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 modes include: interactive connection and FTP connection.
[0015] When the connection mode is FTP connection, after receiving the message, it is also necessary to set the storage directory of 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 parameter according to the routing configuration rule;
[0020] If the queue code does not exist in the maintenance queue, 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] Determine whether the message is processed locally, and if it is determined that the message is processed locally, mark 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] Further, determining whether the message is processed locally further includes,
[0035] The processing unit queries the source address and the destination address of the message according to the maintenance queue and element information corresponding to the message;
[0036] The element information of the message is input into a load sharing algorithm, and it is determined whether the message is processed locally based on the calculation result and the real-time load of the processing unit.
[0037] On the other hand, an embodiment of the present specification also provides a device for flexibly configuring message routing scheduling, the device comprising:
[0038] A historical message analysis module, used 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, used 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, 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, used for receiving a message and extracting message information from the message, wherein the message information includes configuration parameters;
[0042] A basic parameter configuration module, used 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 the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, and the processor implements the above method when executing the computer program.
[0045] On the other hand, an embodiment of the present 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, the embodiments of this specification also provide a computer program product, wherein the computer program product includes a computer program, and the computer program implements the above method when executed by a processor.
[0047] By using the embodiment of the specification, a method for flexibly configuring messages and completing routing scheduling is provided. The scheme obtains historical message information in historical messages, 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 message information; then configures the basic parameters of the route according to the configuration parameters and generates the maintenance queue required for maintaining the route, reflecting 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 unique routing configuration rules of each maintenance queue are generated; finally, when a new message appears, the message is received and the message information therein is extracted. The new message information does not include element information, so it is necessary to configure the basic parameters of the route according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules; then 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 rules. Thus, the newly received message is automatically allocated through the routing configuration rules, and the message is automatically routed to different processing modules for parsing and processing through flexible configuration, 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 drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 creative work.
[0049] Figure 1 It is a schematic diagram of a system for implementing a method for flexibly configuring message routing scheduling in an embodiment of this specification;
[0050] Figure 2 The figure is a flow chart of a method for flexibly configuring message routing scheduling in an embodiment of this specification;
[0051] Figure 3 The figure is a schematic diagram of a process 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 rule and its element information in the 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 It is a schematic diagram of a flow chart of allocating the message to a corresponding processing module for processing according to the analysis result of the message information in an embodiment of this specification;
[0055] Figure 7 FIG. 1 is a schematic diagram showing a specific structure of a device for flexibly configuring message routing scheduling according to the present embodiment;
[0056] Figure 8 The figure is a schematic diagram of the structure of a computer device in an embodiment of the present 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 device;
[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 described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work 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 data 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, device, product or equipment 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 equipment.
[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, and they should be regarded as exemplary. 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 schematic diagram of a system 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 through a network, and the network can include a local area network (Local Area Network, referred to as LAN), a wide area network (Wide Area Network, referred to as WAN), the Internet or a combination thereof, and is connected to a website, a user device (such as 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 working 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 basic parameters corresponding to the new message according to routing configuration rules generated by historical messages, analyzes and processes the message according to routing configuration rules and 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 it.
[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 figure describes the process of flexibly configuring message routing scheduling. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the actual system or device product is executed, it can be executed in the order of the method shown in the embodiment or the accompanying drawings or in parallel. 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 a message and extracting message information in the message, wherein the message information includes configuration parameters;
[0093] Step 205: configuring basic parameters of routing according to the configuration parameters of the message, and matching the basic parameters according to the routing configuration rules;
[0094] Step 206: 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.
[0095] By using the embodiment of the specification, a method for flexibly configuring messages and completing routing scheduling is provided. The scheme obtains historical message information in historical messages, 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 message information; then configures the basic parameters of the route according to the configuration parameters and generates the maintenance queue required for maintaining the route, reflecting 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 unique routing configuration rules of each maintenance queue are generated; finally, when a new message appears, the message is received and the message information therein is extracted. The new message information does not include element information, so it is necessary to configure the basic parameters of the route according to the configuration parameters of the message, and match the basic parameters according to the routing configuration rules; then 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 rules. Thus, the newly received message is automatically allocated through the routing configuration rules, and the message is automatically routed to different processing modules for parsing and processing through flexible configuration, thereby improving the efficiency of message processing. At the same time, automatic message processing through routing configuration rules improves the accuracy of message routing.
[0096] In the embodiments of this specification, a detailed and flexible message automatic routing configuration function is provided, which can configure rich queue information according to business requirements, and then combine into various queue routes. This function also provides a convenient and fast routing configuration rule setting function, so that the messages entering the system are routed to different processing modules after being analyzed by the system's automatic scheduling engine. The routing process does not require manual intervention, and the system automatically distributes, greatly improving efficiency and accuracy. At the same time, the routing parameters and rule data are stored in the database, and the business can also start and stop or modify the routing configuration rules at any time, and the rules can take effect without restarting the server, greatly shortening the change cycle. In addition, the system can analyze and output reports for transactions that have not been successfully routed, and provide business personnel with manual routing and optimization, greatly improving business processing efficiency.
[0097] According to an embodiment of the present specification, in order to obtain the content contained in the message through the message information, the message information at least includes: the sending bank, the receiving bank, the currency, the message type, the message number and the payee information.
[0098] In the embodiment of this specification, the system provides a message parsing service to extract information from the received message file. The system obtains the information of the sending bank, receiving bank, currency, message type, message number, beneficiary, etc. The system will store this information in the database and mark the keywords to be routed for processing by the routing scheduling engine.
[0099] According to an embodiment of the present specification, in order to generate a maintenance queue required for maintaining a route, it is necessary to obtain historical related queue information, that is, element information, from historical messages. The element information includes: queue code, queue connection mode, queue type, and queue name.
[0100] In the embodiment of the present specification, the element information includes a menu of basic elements of the maintenance queue required for maintaining the route, and enters the queue parameter maintenance page to provide functions of adding, deleting, querying, detailing, enabling, and disabling basic elements. Each element information contains the following content: 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 method includes interactive connection or FTP connection; the queue type can be divided into from user, to user, from branch, to branch, from FTP, through FTP, etc.; queue name: brief information used to identify the queue, such as import queue, export queue, reply processing queue, manual processing queue, reconciliation processing queue, query and reply processing queue, etc.
[0101] According to an embodiment of the present specification, in order to ensure that 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, after receiving the message, it is also necessary to set the storage directory of the message.
[0103] In the embodiment of the present specification, when the connection mode is FTP, it is necessary to set the storage directory for input messages and the storage directory for output messages.
[0104] According to an embodiment of the present specification, 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.
[0105] In the embodiment of the present specification, the system provides a page for maintaining the message routing queue information, such as adding, deleting, querying, editing routing configuration rules, and modifying functions; different routes can be set according to the actual business scenarios using the basic elements of the maintained queue. Each route contains information such as the source queue, the destination queue, the message type, the routing priority, the routing processing end flag, and the routing start flag. Including, the source queue is the source of the message received by the system; the destination queue is the processing queue to which the message needs to be routed; the message type represents all messages, and can also be set to a single type of message type; the size of the routing priority is generally set according to the message volume of the route, and the smaller the value, the greater the priority; if the message needs to end the routing of the message immediately and continue the routing of the next message after its routing destination has been determined, then this should be set to "Y"; if the message needs to continue to perform other routing on the message after its routing destination has been determined, for example, a message needs to be sent to route 1 and route 2 at the same time, then this should be set to "N"; set whether the route is enabled or not according to the routing start flag.
[0106] According to an embodiment of the present specification, in order to obtain a maintenance queue that a new message should be matched with according to 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 matching the basic parameter according to the routing configuration rule;
[0108] Step 302: If the queue code does not exist in the maintenance queue, then a new element information is added 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 the present 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 an embodiment of the present specification, in order to adjust the basic parameters of the routing in the maintenance queue according to different business scenarios, it 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 volume, 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 embodiments 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", "non" options; "keywords": message fields such as currency, message type, receiving bank, sending bank, message number, payee, 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 a foreign exchange currency as the receiving currency to be routed to the import 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, just enter directly in the edit box. When the input expression format does not meet the requirements, the system can identify and pop up a box to prompt the corresponding error.
[0116] According to an 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 rule and its 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. According to 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, the analysis is performed. For messages with an analysis result of 100%, accurate routing is performed to the 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 high to low matching, 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 in 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 ensured. The processing module of the embodiment of the present specification can be as follows: Figure 5 As shown in FIG. 1 , a structure of multiple processing units can further subdivide 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 to be processed 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 the message is carried by 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 where 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 the destination address of the message according to the maintenance queue and element information corresponding to the message;
[0128] The element information of the message is input into a load sharing algorithm, and it is determined whether the message is processed locally based on the calculation result and the real-time load of the processing unit.
[0129] In the embodiment of the present specification, the method of load sharing solves the problem that in the prior art, in order to adapt to the protocols of intelligently connecting a single processing unit such as TCP protocol or QUIC protocol, the processing speed of a single processing unit is limited during the message processing. Therefore, the method of load sharing the message by connecting the processing units in sequence after the first processing unit effectively improves the efficiency of message processing. After the processing unit obtains the message, the load sharing algorithm obtains the load information required by the queue type described in the message in the processing of historical messages, such as the CPU occupancy rate of processing the message, the memory occupancy rate of processing the message, etc., according to the corresponding maintenance queue and its element information in the message information. Then, the processing unit determines whether the message can be processed according to the load information of its current time period. For example, a CPU occupancy rate threshold of 80% can be preset. When the CPU occupancy rate of this processing unit and the CPU occupancy rate 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. Further, in the embodiments of the present 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 judging 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 load balancing information added 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, so as to ensure that the processing efficiency of the processing unit can be maintained within the expected range.
[0130] As an example of this specification, please refer to Figure 7 The figure shows a specific structural diagram of the device for flexibly configuring message routing scheduling in this embodiment.
[0131] A historical message analysis module 701, used 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, 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;
[0133] A configuration rule generation module 703 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;
[0134] A message receiving module 704, configured to receive a message and extract message information from the message, wherein the message information includes configuration parameters;
[0135] A basic parameter configuration module 705, 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;
[0136] The message analysis module 706 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.
[0137] Since the principle of solving the problem by 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 repeated.
[0138] like Figure 8 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present specification. The computer device according to the embodiment of the present specification can run the method according to the embodiment of the present specification.
[0139] The computer device 802 may include one or more processing devices 804, such as one or more central processing units (CPUs), each of which may implement one or more hardware threads. The computer device 802 may also include any storage resources 806 for storing any type of information such as code, settings, data, etc. Without limitation, for example, the storage resources 806 may include any one or more combinations 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 may use any technology to store information.
[0140] Further, any storage resource may provide volatile or non-volatile retention of information.
[0141] Further, any storage resource may represent a fixed or removable component of the computer device 802. In one case, when the processing device 804 executes the associated instructions stored in any storage resource or combination of storage resources, the computer device 802 may perform any operation of the associated instructions. 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 may also include an input / output module 810 (I / O) for receiving various inputs (via input devices 812) and for providing various outputs (via output devices 814). A specific output mechanism may include a presentation device 816 and an associated graphical user interface 818 (GUI). In other embodiments, the input / output module 810 (I / O), input device 812, and output device 814 may not be included, and the computer device 802 may be used as a computer device in a network. The computer device 802 may also include one or more network interfaces 820 for exchanging data with other devices via one or more communication links 822. One or more communication buses 824 couple the components described above together.
[0143] The communication link 822 may be implemented in any manner, for example, 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 link 822 may include any combination of hardwired links, wireless links, routers, gateway functions, 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, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0145] The embodiments of the present specification also provide a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the above method.
[0146] It should be understood that in the various embodiments of the present specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal 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 this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the embodiments of this specification generally indicates that the associated objects before and after are in an "or" relationship.
[0148] Those of ordinary skill 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 with 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 exceed the scope of the embodiments of this specification.
[0149] Those skilled in the art can 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 only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, 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 it can be an electrical, mechanical or other form of connection.
[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on 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, each functional unit in each embodiment of the present specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of 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 embodiment of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment 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, according to 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; Adjusting basic parameters of routing in the maintenance queue according to different business scenarios, and generating 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 routing 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 scheduling according to claim 1, characterized in that: The message information at least includes: the sending bank, the receiving bank, the currency, the message type, the message number and the payee information.
3. The method for flexibly configuring message routing scheduling according to claim 1, characterized in that: The element information includes: queue code, queue connection mode, queue type, and queue name.
4. The method for flexibly configuring message routing scheduling according to claim 3, characterized in that: The queue connection modes include: interactive connection and FTP connection. When the connection mode is FTP connection, after receiving the message, it is also necessary to set the storage directory of the message.
5. The method for flexibly configuring message routing scheduling according to claim 3, characterized in that: 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 scheduling according to claim 3, characterized in that: 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 parameter according to the routing configuration rule; If the queue code does not exist in the maintenance queue, 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 scheduling according to claim 1, characterized in that: 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 greater 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 scheduling according to claim 1, characterized in that: 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 allocated 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 scheduling according to claim 1, characterized in that: 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; Determine whether the message is processed locally, and if it is determined that the message is processed locally, mark 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 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 the destination address of the message according to the maintenance queue and element information corresponding to the message; The element information of the message is input into a load sharing algorithm, and it is determined whether the message is processed locally based on the calculation result and the 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, used 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, used 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, 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, used for receiving a message and extracting message information from the message, wherein the message information includes configuration parameters; A basic parameter configuration module, used 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
Message transmission method and device
CN114610764A
Message routing system
US20240283767A1