Information routing method, apparatus and computer device

By pre-storing routing and node configuration information in the cache and using a round-robin approach for information routing, the latency problem of traditional routing methods in complex business requests is solved, achieving fast and flexible information routing to meet the needs of different business scenarios.

CN116886604BActive Publication Date: 2026-11-06CHINA CONSTRUCTION BANK +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311063401.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-22
Publication Date
2026-11-06
Estimated Expiration
2043-08-22

AI Technical Summary

Technical Problem

Traditional information routing methods cannot provide flexible and varied routing options when faced with complex and diverse business requests, resulting in reduced routing speed and business processing delays.

Method used

By pre-storing routing configuration information, node configuration information, and address configuration information in the cache, information routing is performed using a round-robin method, and pre-stored reference nodes are used when a target node cannot be matched, reducing data interaction with external storage and improving data interaction speed and flexibility.

Benefits of technology

It enables fast and flexible information routing, reduces latency, ensures normal response to business processing requests, reduces the possibility of response failure, and adapts to the needs of different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886604B_ABST
    Figure CN116886604B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication processing, and relates to an information routing method and device, computer equipment, a storage medium and a computer program product. The message routing method comprises the following steps: in response to a service processing request, pre-stored routing configuration information, node configuration information and address configuration information are acquired from a cache; at least one routing strategy arranged in sequence in the routing configuration information is used to extract a target routing element from service information carried by the service processing request; when a target node corresponding to the target routing element cannot be matched according to the node configuration information, a pre-stored reference node is used as the target node corresponding to the service processing request; at least one target routing address corresponding to the target node is determined according to the address configuration information, and the service processing request is routed to the target routing address in a polling manner. The above method can reduce the possibility of response failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication processing technology, and in particular to an information routing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] With the rapid development of the Internet, the volume of business handled by the Internet systems of business providers is increasing, and the information routing pressure on business requesters is also increasing.

[0003] In traditional routing processes, when faced with complex and diverse business requests, it is often impossible to provide matching and diverse routing methods. This makes the information routing methods inflexible and variable, reduces routing speed, and causes business processing delays. Summary of the Invention

[0004] Therefore, it is necessary to provide an information routing method, apparatus, computer equipment, storage medium, and computer program product that can reduce the delay caused during the information routing process, in order to address the above-mentioned technical problems.

[0005] Firstly, this application provides an information routing method, including:

[0006] In response to business processing requests, retrieve pre-stored routing configuration information, node configuration information, and address configuration information from the cache;

[0007] Based on at least one routing strategy arranged sequentially in the routing configuration information, the target routing element is extracted from the service information carried in the service processing request.

[0008] When the target node corresponding to the target routing element cannot be matched according to the node configuration information, the pre-stored reference node will be used as the target node corresponding to the service processing request.

[0009] Based on the address configuration information, at least one target routing address corresponding to the target node is determined, and the service processing request is routed to the target routing address using a round-robin method.

[0010] In one embodiment, the service information includes a target service number;

[0011] The routing configuration information includes a one-to-one mapping relationship between service numbers and routing policies;

[0012] The step of extracting target routing elements from the service information carried in the service processing request based on at least one routing strategy arranged sequentially in the routing configuration information includes:

[0013] When the target routing policy corresponding to the target service number is matched from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the target routing policy is used to perform routing element extraction processing on the service information to obtain the target routing element.

[0014] When the target service number cannot be matched with the target routing policy corresponding to the target service number from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the service information is processed by extracting routing elements in sequence according to the order of at least one routing policy included in the routing configuration information to obtain the target routing element.

[0015] In one embodiment, the step of sequentially extracting routing elements from the service information according to the order of at least one routing policy included in the routing configuration information to obtain the target routing element includes:

[0016] According to the aforementioned arrangement order, the routing element extraction process for the business information is performed using a routing strategy that prioritizes the order of elements.

[0017] When the extracted routing element is not empty, the extracted routing element is used as the target routing element;

[0018] When the extracted routing elements are empty, the next routing strategy is used to extract routing elements from the service information according to the order of arrangement, until the extracted routing elements are not empty.

[0019] In one embodiment, the method further includes:

[0020] When the routing configuration information, node configuration information, and address configuration information are not present in the cache, the routing configuration information, node configuration information, and address configuration information are retrieved from external storage and stored in the cache.

[0021] In one embodiment, the method further includes:

[0022] Receive an update instruction; the update instruction carries at least one of updated routing configuration information, updated node configuration information, or updated address configuration information;

[0023] The routing configuration information, node configuration information, or address configuration information stored in the cache are updated according to the update instruction.

[0024] In one embodiment, the method further includes:

[0025] According to the preset acquisition frequency, acquire routing configuration information, node configuration information and address configuration information stored in external storage;

[0026] The routing configuration information, node configuration information, and address configuration information stored in the external storage are compared with the routing configuration information, node configuration information, or address configuration information stored in the cache.

[0027] When the routing configuration information stored in the cache is different from the routing configuration information stored in the external storage, the routing configuration information stored in the cache is updated to the routing configuration information stored in the external storage.

[0028] When the node configuration information stored in the cache is different from the node configuration information stored in the external storage, the node configuration information stored in the cache is updated to the node configuration information stored in the external storage.

[0029] When the address configuration information stored in the cache differs from the address configuration information stored in the external memory, the address configuration information stored in the cache is updated to the address configuration information stored in the external memory.

[0030] Secondly, this application also provides an information routing device, comprising:

[0031] The acquisition module is used to retrieve pre-stored routing configuration information, node configuration information, and address configuration information from the cache when a business processing request is received.

[0032] The extraction module is used to extract target routing elements from the service information according to at least one routing policy arranged in sequence contained in the routing configuration information.

[0033] The determination module is used to determine the target node corresponding to the service processing request when the target node cannot be matched according to the node configuration information, and to use the pre-stored reference node as the target node corresponding to the service processing request.

[0034] The routing module is used to determine at least one target routing address corresponding to the target node based on the address configuration information, and to route the service processing request to the target routing address in a round-robin manner.

[0035] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the information routing method described in any of the above embodiments.

[0036] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the information routing method described in any of the above embodiments.

[0037] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the information routing method described in any of the above embodiments.

[0038] The aforementioned information routing method, apparatus, computer equipment, storage medium, and computer program products can store pre-configured routing configuration information, node configuration information, and address configuration information in a cache. This allows information to be retrieved directly from the cache when a service processing request is received, thereby reducing the number of data interactions with external storage, accelerating data interaction speed, reducing latency caused during information routing, and pre-setting a reference node to respond to service processing requests that cannot extract routing elements, ensuring normal response to service processing requests and reducing the possibility of response failure. Attached Figure Description

[0039] Figure 1 This is a diagram illustrating the application environment of the information routing method in one embodiment;

[0040] Figure 2 This is a flowchart illustrating an information routing method in one embodiment;

[0041] Figure 3 This is a flowchart illustrating an information routing method in one embodiment;

[0042] Figure 4 This is a structural block diagram of an information routing method apparatus in one embodiment;

[0043] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0045] The information routing method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the routing device 102 in this embodiment communicates with at least one terminal 104 of a service requester and at least one server 106 via a network, and the routing device 102 is also connected to a data storage system.

[0046] For example, the information routing method is applied to routing device 102. In response to a service processing request from terminal 104, routing device 102 retrieves pre-stored routing configuration information, node configuration information, and address configuration information from a cache. Based on at least one routing strategy sequentially arranged in the routing configuration information, it extracts the target routing element from the service information carried in the service processing request. When the target node corresponding to the target routing element cannot be matched according to the node configuration information, routing device 102 uses a pre-stored reference node as the target node corresponding to the service processing request. Based on the address configuration information, it determines at least one target routing address corresponding to the target node and routes the service processing request to the target routing address using a round-robin method. The target routing address corresponds one-to-one with server 106. Terminal 104 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Server 106 can be implemented using a standalone server or a server cluster composed of multiple servers. It is understandable that a data storage system can be an independent storage device, or it can be understood as an external storage device.

[0047] In one embodiment, an information routing method is provided, such as Figure 2 As shown in the example, this embodiment illustrates the application of the information routing method to a routing device. The message routing method includes:

[0048] Step 202: In response to the business processing request, retrieve the pre-stored routing configuration information, node configuration information, and address configuration information from the cache.

[0049] A business processing request can refer to a request made for any business provided by a business provider to perform corresponding business processing.

[0050] As an example, a business processing request could be a request to transfer virtual resources stored by the business requester on the business provider's platform, or it could be a request to query the specific value of virtual resources stored by the business requester on the business provider's platform. The business processing request can be issued through the terminal's human-computer interaction interface, which can be a platform interface specified by the business provider. The business requester can pre-register on the platform interface specified by the business provider.

[0051] In this embodiment, the routing device supports rapid information retrieval by pre-storing routing configuration information, node configuration information, and address configuration information in a cache, thereby improving data interaction efficiency. Furthermore, a distributed cache can be introduced to achieve distributed storage of different information, further improving data interaction efficiency and reducing the number of times the routing device accesses external storage.

[0052] In this context, routing configuration information refers to the information that configures corresponding routing strategies for different types of services. A routing strategy refers to a method for extracting keywords from service-related information corresponding to a service processing request. In this embodiment, the routing device is pre-configured with methods for extracting keywords corresponding to different types of services, and further extracts routing elements corresponding to the service processing request based on these methods. Routing elements can refer to key information corresponding to the current service processing request, such as the account ID number and account name of the account corresponding to the service requester, or the terminal device number and terminal device name of the terminal used by the service requester.

[0053] Node configuration information refers to the information of configuring corresponding nodes for different routing elements. A node refers to a terminal device used to receive service processing requests, process the services corresponding to the service processing requests, and respond to service processing requests. A node can be a computer, server, or other terminal device capable of data processing. In this embodiment, the node configured for different routing elements actually refers to a node label used to uniquely identify the node. The node label can be composed of at least one of letters, characters, or numbers to uniquely identify the corresponding node.

[0054] Address configuration information refers to the information that configures corresponding routing addresses for different nodes. Routing devices can forward service processing requests based on the routing address corresponding to the request. This ensures that service-related information is correctly forwarded within the network, guaranteeing that the relevant information accurately reaches the corresponding routing address.

[0055] Step 204: Extract the target routing elements from the business information carried in the business processing request based on at least one routing policy arranged sequentially in the routing configuration information.

[0056] The routing configuration information contains at least one routing policy, and the at least one routing policy is arranged in order. The process by which the routing device extracts target routing elements from the service information according to the routing policy may include, for example, extracting keyword information such as the source address of the service requester or the service type from the request message in the service information.

[0057] The process of extracting keyword information may include, for example, extracting keyword information based on fields in the header of the request message contained in the business information, the payload of the message, such as the Uniform Resource Locator (URL) of the business processing request, or specific fields in the message, according to a pre-configured keyword table.

[0058] Step 206: When the target node corresponding to the target routing element cannot be matched according to the node configuration information, the pre-stored reference node is used as the target node corresponding to the business processing request.

[0059] If the routing device cannot match the target node corresponding to the target routing element from the correspondence between different routing elements and different nodes contained in the node configuration information based on the target routing element composed of the keyword information obtained in step 204, the routing device can directly use the reference node as the target node.

[0060] Reference nodes can also be terminal devices such as computers and servers that can process data.

[0061] In this embodiment, when the routing device receives a service processing request for which the target routing elements cannot be extracted, it ensures a normal response to the service processing request by reserving a reference node.

[0062] Step 208: Based on the address configuration information, determine at least one target routing address corresponding to the target node, and route the service processing request to the target routing address using a round-robin method.

[0063] In this embodiment, node configuration information may also refer to information that configures corresponding node types for different routing elements. Node types may include, for example, public-type computers, servers, and other terminal devices capable of data processing, and private-type computers, servers, and other terminal devices capable of data processing.

[0064] Correspondingly, address configuration information refers to the information for configuring at least one corresponding routing address for different node types.

[0065] In step 206, the routing device can match the corresponding target node type based on the target routing element corresponding to the service processing request. Then, in step 208, the routing device can match at least one corresponding target routing address based on the target node type corresponding to the service processing request. As an example, the node type can be referred to as a Service Processing Unit (SPU). An SPU represents a type of server, and the server type represented by the SPU corresponds to at least one target routing address ultimately matched by the routing device.

[0066] In the aforementioned information routing method, pre-configured routing configuration information, node configuration information, and address configuration information can be stored in a cache. This allows the routing device to directly retrieve these information from the cache when it receives a service processing request, reducing the number of data interactions between the routing device and the external storage used to store the configuration information. This also speeds up data interaction and reduces latency during information routing. Furthermore, the routing device can pre-configure a reference node to respond to service processing requests that cannot extract routing elements, ensuring normal response to service processing requests and reducing the possibility of response failure. Moreover, by pre-configuring the routing configuration information, node configuration information, and address configuration information, the routing device can flexibly perform information routing according to the pre-configured correspondence when receiving complex service processing requests, ensuring fast and flexible information routing.

[0067] In some optional embodiments, the service information includes the target service number;

[0068] Routing configuration information includes a one-to-one mapping between service numbers and routing policies;

[0069] Step 204 includes:

[0070] When the target routing policy corresponding to the target service number is matched from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the target routing policy is adopted to perform routing element extraction processing on the service information to obtain the target routing element.

[0071] When the target service number cannot be matched with the target routing policy corresponding to the target service number from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the service information is processed by extracting routing elements in sequence according to the order of at least one routing policy included in the routing configuration information to obtain the target routing elements.

[0072] As an example, the routing device can pre-store a one-to-one correspondence between multiple service numbers and routing policies, which means that different types of services in this embodiment are applicable to different keyword extraction methods.

[0073] In the step of sequentially extracting routing elements from service information according to the order of at least one routing policy contained in the routing configuration information, the specific steps of the routing element extraction process may include: extracting routing elements from service information using the routing policy with the highest order of the at least one routing policy; when the extracted routing element is not empty, using the extracted routing element as the target routing element; when the extracted routing element is empty, extracting routing elements from service information using the next routing policy according to the order of the order of the policies, until the extracted routing element is not empty.

[0074] When a target service number cannot be matched to a corresponding routing policy from the one-to-one mapping between service numbers and routing policies based on the target service number corresponding to the service processing request, it can be understood that the routing device is receiving the information routing task for the service type corresponding to the current service processing request for the first time. In this case, the routing device cannot determine which routing policy is suitable for the service type. To ensure the normal response of the service processing request, the routing device extracts routing elements from the service information of the service processing request in sequence according to the routing policies contained in the routing configuration information. If the extracted routing elements are empty, the routing device can consider that the current routing policy is not suitable for the service type, and continues to extract routing elements from the service information of the service processing request using the next routing policy in sequence. When the extracted routing elements are not empty, the routing device can consider that the current routing policy is suitable for the service type.

[0075] As an example, when the extracted routing elements are not empty, the routing device can also store the currently adopted routing strategy and the target service number of the service processing request into the routing configuration information.

[0076] In some optional embodiments, the information routing method further includes:

[0077] When the routing configuration information, node configuration information, and address configuration information are not present in the cache, the routing configuration information, node configuration information, and address configuration information are retrieved from external storage and stored in the cache.

[0078] When a routing device receives a service processing request, it first checks whether the routing configuration information, node configuration information, and address configuration information are stored in the cache. If not, the routing device can retrieve the routing configuration information, node configuration information, and address configuration information stored in the external storage and store them in the cache. This allows the device to directly retrieve the routing configuration information, node configuration information, and address configuration information from the cache the next time it receives a service processing request, thereby speeding up data interaction and reducing the number of interactions between the routing device and the external storage.

[0079] like Figure 3 As shown, in some optional embodiments, the information routing method further includes:

[0080] Step 302: Receive update command; the update command carries at least one of the following: updated routing configuration information, updated node configuration information, or updated address configuration information;

[0081] Step 304: Update the routing configuration information, node configuration information, or address configuration information stored in the cache according to the update instructions.

[0082] Update commands refer to commands that delete or add routing configuration information, node configuration information, or address configuration information.

[0083] As an example, an update command may carry at least one of the following: updated routing configuration information, updated node configuration information, or updated address configuration information. After receiving the update command, the routing device may first compare the updated routing configuration information, updated node configuration information, or updated address configuration information carried by the update command with the routing configuration information, node configuration information, or address configuration information stored in the cache. When the comparison result indicates that the updated routing configuration information, updated node configuration information, or updated address configuration information carried by the update command differs from the routing configuration information, updated node configuration information, or updated address configuration information stored in the cache, the routing device may update the differing stored routing configuration information, updated node configuration information, or updated address configuration information with the updated routing configuration information, updated node configuration information, or updated address configuration information carried by the update command.

[0084] In this embodiment, the update instruction can be issued by the service provider through a terminal. Before step 304, the routing device can also verify the initiating terminal corresponding to the update instruction. When the initiating terminal corresponding to the update instruction is an authorized terminal pre-set by the routing device, the routing device updates the routing configuration information, node configuration information or address configuration information stored in the cache according to the update instruction. Otherwise, it is considered that the update instruction was initiated by an unauthorized third-party terminal, and the routing device can discard the update instruction directly.

[0085] In some optional embodiments, the information routing method further includes:

[0086] According to the preset acquisition frequency, acquire routing configuration information, node configuration information and address configuration information stored in external storage;

[0087] The routing configuration information, node configuration information, and address configuration information stored in the external storage are compared with the routing configuration information, node configuration information, or address configuration information stored in the cache.

[0088] When the routing configuration information stored in the cache differs from the routing configuration information stored in the external storage, the routing configuration information stored in the cache will be updated to the routing configuration information stored in the external storage.

[0089] When the node configuration information stored in the cache is different from the node configuration information stored in the external storage, the node configuration information stored in the cache will be updated to the node configuration information stored in the external storage.

[0090] When the address configuration information stored in the cache differs from the address configuration information stored in the external memory, the address configuration information stored in the cache will be updated to the address configuration information stored in the external memory.

[0091] The routing device in this embodiment can be pre-configured with a polling mechanism to retrieve routing configuration information, node configuration information, and address configuration information stored in the external memory at a preset acquisition frequency. For example, the acquisition frequency could be 24 hours per acquisition.

[0092] By setting a preset acquisition frequency, the routing device can obtain the latest routing configuration information, node configuration information, and address configuration information from the external storage at the preset acquisition frequency. When the service provider's staff updates the routing configuration information, node configuration information, and address configuration information stored in the external storage through the terminal, the routing device can promptly update the routing configuration information, node configuration information, and address configuration information in the cache according to the latest routing configuration information, node configuration information, and address configuration information.

[0093] In this embodiment, the service provider's staff only need to modify and adjust the routing configuration information, node configuration information, and address configuration information stored in the external storage to adjust the routing configuration. This enables highly flexible and configurable routing rules, allowing for flexible configuration of information routing, meeting the business needs of different business scenarios, and having wider applicability.

[0094] The aforementioned information routing method stores pre-configured routing, node, and address configuration information in a cache. This allows the routing device to directly retrieve these information from the cache when it receives a service processing request. This reduces the number of data interactions between the routing device and the external storage used to store the configuration information, speeding up data interaction and reducing latency during information routing. Furthermore, the routing device can pre-configure a reference node to respond to service processing requests that cannot extract routing elements, ensuring normal response to service processing requests and reducing the possibility of response failures. It can also promptly update the routing, node, and address configuration information stored in the cache, ensuring flexible configuration of information routing to meet the business needs of different scenarios and broadening its applicability.

[0095] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0096] Based on the same inventive concept, this application also provides a message routing apparatus for implementing the message routing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more message routing apparatus embodiments provided below can be found in the limitations of the message routing method described above, and will not be repeated here.

[0097] In one embodiment, such as Figure 4 As shown, an information routing device 400 is provided, comprising an acquisition module 402, an extraction module 404, a determination module 406, and a routing module 408, wherein:

[0098] The acquisition module 402 is used to retrieve pre-stored routing configuration information, node configuration information, and address configuration information from the cache when a business processing request is received.

[0099] The extraction module 404 is used to extract target routing elements from service information based on at least one routing policy arranged sequentially in the routing configuration information.

[0100] The determination module 406 is used to use a pre-stored reference node as the target node corresponding to the business processing request when the target node cannot be matched according to the node configuration information.

[0101] The routing module 408 is used to determine at least one target routing address corresponding to the target node based on the address configuration information, and to route the service processing request to the target routing address in a round-robin manner.

[0102] In some optional embodiments, the service information includes the target service number;

[0103] Routing configuration information includes a one-to-one mapping between service numbers and routing policies;

[0104] Extraction module 404 is also configured as follows:

[0105] When the target routing policy corresponding to the target service number is matched from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the target routing policy is adopted to perform routing element extraction processing on the service information to obtain the target routing element.

[0106] When the target service number cannot be matched with the target routing policy corresponding to the target service number from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the service information is processed by extracting routing elements in sequence according to the order of at least one routing policy included in the routing configuration information to obtain the target routing elements.

[0107] In some optional embodiments, the extraction module 404 is further configured to:

[0108] Based on the order of arrangement, the routing strategy that prioritizes the order of arrangement is used to extract routing elements from the business information.

[0109] When the extracted routing element is not empty, the extracted routing element is used as the target routing element;

[0110] When the extracted routing elements are empty, the next routing strategy is used to extract routing elements from the business information according to the order of arrangement, until the extracted routing elements are not empty.

[0111] In some optional embodiments, the acquisition module 402 is further configured to:

[0112] When the routing configuration information, node configuration information, and address configuration information are not present in the cache, the routing configuration information, node configuration information, and address configuration information are retrieved from external storage and stored in the cache.

[0113] In some optional embodiments, the acquisition module 402 is further configured to:

[0114] Receive update instructions; the update instructions carry at least one of the following: updated routing configuration information, updated node configuration information, or updated address configuration information;

[0115] According to the update instruction, update the routing configuration information, node configuration information, or address configuration information stored in the cache.

[0116] In some optional embodiments, the acquisition module 402 is further configured to:

[0117] According to the preset acquisition frequency, acquire routing configuration information, node configuration information and address configuration information stored in external storage;

[0118] The routing configuration information, node configuration information, and address configuration information stored in the external storage are compared with the routing configuration information, node configuration information, or address configuration information stored in the cache.

[0119] When the routing configuration information stored in the cache differs from the routing configuration information stored in the external storage, the routing configuration information stored in the cache will be updated to the routing configuration information stored in the external storage.

[0120] When the node configuration information stored in the cache is different from the node configuration information stored in the external storage, the node configuration information stored in the cache will be updated to the node configuration information stored in the external storage.

[0121] When the address configuration information stored in the cache differs from the address configuration information stored in the external memory, the address configuration information stored in the cache will be updated to the address configuration information stored in the external memory.

[0122] Each module in the aforementioned information routing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0123] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an information routing method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0124] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the various steps of the information routing method described above.

[0126] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the various steps of the information routing method described above.

[0127] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0128] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0129] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. An information routing method, characterized in that, include: In response to business processing requests, retrieve pre-stored routing configuration information, node configuration information, and address configuration information from the cache; The routing configuration information is used to represent the routing strategies corresponding to different types of service configurations; The routing strategy is used to characterize the method of extracting keywords from the business information corresponding to the business processing request; the business information includes the target business number; the routing configuration information includes a one-to-one mapping relationship between the business number and the routing strategy. When the target routing policy corresponding to the target service number is matched from the one-to-one mapping relationship between the service number and the routing policy based on the target service number included in the service information, the target routing policy is used to perform routing element extraction processing on the service information to obtain the target routing element. When the target service number included in the service information cannot be matched with the target routing policy corresponding to the target service number from the one-to-one mapping relationship between the service number and the routing policy, the routing element extraction processing of the service information is performed by using the routing policy with the highest order of sorting. When the extracted routing element is not empty, the extracted routing element is used as the target routing element; When the extracted routing elements are empty, the next routing strategy is used to extract routing elements from the service information according to the order of arrangement until the extracted routing elements are not empty. When the target node corresponding to the target routing element cannot be matched according to the node configuration information, the pre-stored reference node will be used as the target node corresponding to the service processing request. Based on the address configuration information, at least one target routing address corresponding to the target node is determined, and the service processing request is routed to the target routing address using a round-robin method.

2. The method according to claim 1, characterized in that, The method further includes: When the routing configuration information, node configuration information, and address configuration information are not present in the cache, the routing configuration information, node configuration information, and address configuration information are retrieved from external storage and stored in the cache.

3. The method according to claim 1, characterized in that, The method further includes: Receive an update instruction; the update instruction carries at least one of updated routing configuration information, updated node configuration information, or updated address configuration information; The routing configuration information, node configuration information, or address configuration information stored in the cache are updated according to the update instruction.

4. The method according to claim 1, characterized in that, The method further includes: According to the preset acquisition frequency, acquire routing configuration information, node configuration information and address configuration information stored in external storage; The routing configuration information, node configuration information, and address configuration information stored in the external storage are compared with the routing configuration information, node configuration information, or address configuration information stored in the cache. When the routing configuration information stored in the cache is different from the routing configuration information stored in the external storage, the routing configuration information stored in the cache is updated to the routing configuration information stored in the external storage. When the node configuration information stored in the cache is different from the node configuration information stored in the external storage, the node configuration information stored in the cache is updated to the node configuration information stored in the external storage. When the address configuration information stored in the cache differs from the address configuration information stored in the external memory, the address configuration information stored in the cache is updated to the address configuration information stored in the external memory.

5. An information routing device, characterized in that, include: The acquisition module is used to retrieve pre-stored routing configuration information, node configuration information, and address configuration information from the cache when a business processing request is received. The routing configuration information is used to represent the routing strategies corresponding to different types of service configurations; the routing strategies are pre-configured with keyword extraction methods corresponding to different types of services; the service information includes the target service number; the routing configuration information includes a one-to-one mapping relationship between the service number and the routing strategy; The extraction module is configured to: when a target routing policy corresponding to the target service number is matched from the one-to-one mapping relationship between service numbers and routing policies based on the target service number included in the service information, the module uses the target routing policy to perform routing element extraction processing on the service information to obtain target routing elements; when a target routing policy corresponding to the target service number cannot be matched from the one-to-one mapping relationship between service numbers and routing policies based on the target service number included in the service information, the module uses the routing policy with the highest order of priority to perform routing element extraction processing on the service information; when the extracted routing elements are not empty, the module uses the extracted routing elements as the target routing elements; when the extracted routing elements are empty, the module uses the next routing policy to perform routing element extraction processing on the service information according to the order of priority until the extracted routing elements are not empty. The determination module is used to determine the target node corresponding to the service processing request when the target node cannot be matched according to the node configuration information, and to use the pre-stored reference node as the target node corresponding to the service processing request. The routing module is used to determine at least one target routing address corresponding to the target node based on the address configuration information, and to route the service processing request to the target routing address in a round-robin manner.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the information routing method according to any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the information routing method according to any one of claims 1 to 4.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the information routing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data processing method and a system based on distributed stream computing

    CN109359109A

  • Flow management method and device for micro-service request, server and storage medium

    CN111600930A

  • Service request distribution method and device, equipment and medium

    CN115529271A