A routing configuration method and device, electronic equipment and storage medium

By performing routing service analysis and encapsulation on business requests, the problem of flexible switching of multi-level routing in financial and internet scenarios is solved, enabling real-time activation and standardized processing of routing components, thereby reducing costs.

CN116471335BActive Publication Date: 2026-07-31PING AN BANK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN BANK CO LTD
Filing Date
2023-04-07
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies cannot effectively support flexible switching of multi-level routing in financial and internet scenarios, which limits business development.

Method used

By encapsulating business requests into general messages, performing routing service analysis, obtaining routing instance data, and executing routing instances, the routing components are made effective, achieving mutual coordination and standardized processing of multiple routes.

Benefits of technology

It enables new routing components to take effect in real time without requiring business adaptation and compatibility processing, effectively saving costs and improving the flexibility and adaptability of routing configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116471335B_ABST
    Figure CN116471335B_ABST
Patent Text Reader

Abstract

This application provides a routing configuration method, apparatus, electronic device, and storage medium. The method includes: obtaining a service request; encapsulating the service request into a general message; performing routing service analysis on the general message to obtain routing instance data; and executing a routing instance according to the routing instance data to make the routing component corresponding to the routing instance effective. Implementing this application embodiment enables coordination among multiple routes, standardizes processing flows for different route invocation methods, and allows newly added routing components to take effect in real time without requiring business adaptation and compatibility processing, effectively saving costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technology, and more specifically, to a routing configuration method, apparatus, electronic device, and computer storage medium. Background Technology

[0002] Routers or gateways are important applications in enterprise-level information system architectures for external communication, and are responsible for important tasks such as communication protocol integration, security authentication, and message forwarding with external systems.

[0003] Existing internet gateway applications tend to focus on multi-scenario communication integration and pure message forwarding, while traditional financial front-ends tend to focus on fixed-object integration and transaction message format conversion. With the deep integration of the financial industry and the internet, financial scenarios are becoming increasingly complex and diversified. Different callers need to be routed to different service processes and different transaction processes, thus creating the need for caller service-level routing and caller transaction-level routing. Caller service-level business processing is a unified business processing for a specific caller, while caller transaction-level business processing is a special business processing for a specific transaction of a specific caller.

[0004] Existing open-source internet gateways only support service-level routing, while traditional financial front-end systems focus more on supporting transaction-level routing. They either do not support multi-level routing that combines the two, or they are not flexible enough to switch routing mechanisms as the scenario changes, which restricts the normal development of the business. Summary of the Invention

[0005] The purpose of this application is to provide a routing configuration method, device, electronic device, and storage medium that can achieve mutual coordination among multiple routes, implement a standardized processing flow for different route invocation methods, enable newly added route components to take effect in real time, eliminate the need for service adaptation and compatibility processing, and effectively save costs.

[0006] In a first aspect, embodiments of this application provide a routing configuration method, the method comprising:

[0007] Obtain the business request;

[0008] The business request is encapsulated into a generic message;

[0009] Perform routing service analysis on the general message to obtain routing instance data;

[0010] Execute the routing instance based on the routing instance data to make the routing component corresponding to the routing instance effective.

[0011] In the above implementation process, by performing routing service analysis on general messages and then executing the routing instance corresponding to the routing instance data, the coordination between multiple routes can be achieved. For different route calling methods, a standardized processing flow can be implemented, so that newly added routing components take effect in real time without the need for business adaptation and compatibility processing, which can effectively save costs.

[0012] Furthermore, the step of encapsulating the service request into a general message includes:

[0013] Obtain the routing information corresponding to the service request;

[0014] The service processing logic is obtained based on the routing information;

[0015] The general message is obtained according to the service processing logic.

[0016] In the above implementation process, the service processing logic is obtained based on the routing information to ensure that the general message and the service processing logic correspond to each other, so that the general message contains more service information and ensures the validity of the general message.

[0017] Furthermore, the step of performing routing service analysis on the general message to obtain routing instance data includes:

[0018] The general message is analyzed for routing services to obtain a set of service routing components;

[0019] Select an executable route instance from the set of service routing components;

[0020] The route instance data is obtained based on the executable route instance.

[0021] In the above implementation process, by performing routing service analysis on the general message, all service routing components involved in the general message can be obtained. Selecting the executable routing instance among the service routing components can ensure the availability of the route.

[0022] Further, the step of obtaining the routing instance data based on the executable routing instance includes:

[0023] Read the rule configuration data source corresponding to the executable routing instance;

[0024] The routing instance data is obtained by configuring the data source according to the rules.

[0025] In the above implementation process, obtaining routing instance data based on the data source configured according to the rules can improve the configuration efficiency of routing, make the routing instance more adaptable to the business, and reduce the occurrence of data redundancy.

[0026] Further, the step of executing a routing instance based on the routing instance data to activate the routing component includes:

[0027] Based on the routing instance data, the routing instance is extended to meet business requirements, resulting in an extended routing instance.

[0028] Listen to the extended route instance to enable the route component corresponding to the route instance.

[0029] In the above implementation process, extending the routing instance with business requirements based on the routing instance data can ensure the relevance between the routing instance data and the routing component, and improve the adaptability between the routing instance and the routing component.

[0030] Further, after the step of executing the routing instance based on the routing instance data to activate the routing component corresponding to the routing instance, the method further includes:

[0031] Map the route instance.

[0032] In the above implementation process, mapping route instances can coordinate the adaptability and coordination of route instances in multiple route components, realize the mutual coordination of multiple route components, and avoid different route components being unable to adapt to route instances.

[0033] Further, the step of mapping the route instance includes:

[0034] Obtain the matching type of the routing component;

[0035] Generate service route activation information based on the matching type;

[0036] The service routing activation information is mapped to the transaction routing component.

[0037] In the above implementation process, service route activation information is generated according to the matching type of the routing component, which can promptly obtain the running status of the routing instance in the routing component, making it easier to map the routing instance to the transaction routing component.

[0038] Secondly, embodiments of this application also provide a routing configuration device, the device comprising:

[0039] The acquisition module is used to acquire business requests;

[0040] An encapsulation module is used to encapsulate the business request into a general message;

[0041] The analysis module is used to perform routing service analysis on the general message to obtain routing instance data;

[0042] The execution module is used to execute the routing instance according to the routing instance data, so that the routing component corresponding to the routing instance becomes effective.

[0043] In the above implementation process, by performing routing service analysis on general messages and then executing the routing instance corresponding to the routing instance data, the coordination between multiple routes can be achieved. For different route calling methods, a standardized processing flow can be implemented, so that newly added routing components take effect in real time without the need for business adaptation and compatibility processing, which can effectively save costs.

[0044] Thirdly, an electronic device provided in this application includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method as described in any of the first aspects.

[0045] Fourthly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in any of the first aspects.

[0046] Fifthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform the method described in any of the first aspects.

[0047] Other features and advantages of this disclosure will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the techniques described above.

[0048] It can be implemented in accordance with the contents of the specification. The preferred embodiments of this application are described in detail below with reference to the accompanying drawings. Attached Figure Description

[0049] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation on the range. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0050] Figure 1 A flowchart illustrating the routing configuration method provided in this application embodiment;

[0051] Figure 2 This is a schematic diagram of the structural composition of the routing configuration device provided in the embodiments of this application;

[0052] Figure 3This is a schematic diagram illustrating the structural composition of a routing configuration device provided in an embodiment of this application;

[0053] Figure 4 This is a schematic diagram of the structural composition of the electronic device provided in the embodiments of this application. Detailed Implementation

[0054] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0055] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0056] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.

[0057] Example 1

[0058] Figure 1 This is a flowchart illustrating the routing configuration method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method includes:

[0059] S1, retrieve business requests;

[0060] S2 encapsulates business requests into generic messages;

[0061] S3 performs routing service analysis on general messages to obtain routing instance data;

[0062] S4 executes the routing instance based on the routing instance data to make the routing component corresponding to the routing instance effective.

[0063] In the above implementation process, by performing routing service analysis on general messages and then executing the routing instance corresponding to the routing instance data, the coordination between multiple routes can be achieved. For different route calling methods, a standardized processing flow can be implemented, so that newly added routing components take effect in real time without the need for business adaptation and compatibility processing, which can effectively save costs.

[0064] This application embodiment divides the routing configuration function into a communication layer, a service-level business processing layer, and a transaction-level business processing layer. Independent routing components are embedded in the routing service between the layers. Combined with routing component management, routing rule management, and routing rule matching mechanism, a complete solution supporting multi-scenario and multi-level dynamic routing configuration is provided.

[0065] In S1 and S2, the communication layer of this application embodiment interfaces with all business requests sent by the callers and encapsulates the business requests into a common message that is common to the routing component, and passes it to the service-level business processing layer through function calls.

[0066] Furthermore, S2 includes:

[0067] Obtain the routing information corresponding to the business request;

[0068] Obtain the service processing logic based on the routing information;

[0069] Obtain the general message based on the service processing logic.

[0070] In the above implementation process, the service processing logic is obtained based on the routing information to ensure that the general message and the service processing logic correspond to each other, so that the general message contains more service information and ensures the validity of the general message.

[0071] Furthermore, S3 includes:

[0072] Perform routing service analysis on general messages to obtain a set of service routing components;

[0073] Select an executable route instance from the service routing component collection;

[0074] Obtain route instance data based on the executable route instance.

[0075] In the above implementation process, by performing routing service analysis on the general message, all service routing components involved in the general message can be obtained. Selecting the executable routing instance among the service routing components can ensure the availability of the route.

[0076] Furthermore, the step of obtaining route instance data based on the executable route instance includes:

[0077] Read the rule configuration data source corresponding to the executable route instance;

[0078] Obtain routing instance data based on the data source configured according to the rules.

[0079] In the above implementation process, obtaining routing instance data based on the data source configured according to the rules can improve the configuration efficiency of routing, make the routing instance more adaptable to the business, and reduce the occurrence of data redundancy.

[0080] The function of the service-level business processing layer is to match the routing information of this request to the correct service processing logic. The service processing routing layer analyzes and processes the received general message, encapsulates it into the data required by the routing instance interface, namely the routing instance data. The routing instances are provided by the service routing component pool. The routing instance filtering module filters out executable routing instances one by one. Each routing instance can read the rule configuration data source according to its own implementation mechanism. The process ends when a routing instance matches a routing rule.

[0081] Furthermore, S4 includes:

[0082] The routing instance is extended to meet business requirements based on the routing instance data to obtain the extended routing instance.

[0083] Listen to the expanded route instance to make the corresponding route component take effect.

[0084] In the above implementation process, extending the routing instance with business requirements based on the routing instance data can ensure the relevance between the routing instance data and the routing component, and improve the adaptability between the routing instance and the routing component.

[0085] The routing instance data is then transmitted to the specific service processing module that was hit. Since the executable routing instances in the service routing component collection can be dynamically expanded and added according to business needs, the service processing routing layer uses a listening mechanism to ensure that the routing components take effect in real time.

[0086] Furthermore, after the step of executing the route instance based on the route instance data to make the route component corresponding to the route instance effective, the method further includes:

[0087] Map the route instance.

[0088] In the above implementation process, mapping route instances can coordinate the adaptability and coordination of route instances in multiple route components, realize the mutual coordination of multiple route components, and avoid different route components being unable to adapt to route instances.

[0089] Furthermore, the steps for mapping route instances include:

[0090] Get the matching type of the routing component;

[0091] Generate service route activation information based on the matching type;

[0092] Map the service routing activation information to the transaction routing component.

[0093] In the above implementation process, service route activation information is generated according to the matching type of the routing component, which can promptly obtain the running status of the routing instance in the routing component, making it easier to map the routing instance to the transaction routing component.

[0094] Optionally, the matching types include commonly used URI routing matching components, field routing matching components, and message interception matching components.

[0095] After completing the service-level business processing in the service-level business processing layer, the message will be passed to the transaction-level business processing layer. The working mechanism of the transaction-level business processing layer is generally the same as that of the service-level business processing layer. However, the logic of the transaction routing component is quite different from that of the routing component. The logic implemented by the transaction routing component will also differ significantly from that of the routing component. Optionally, commonly used methods such as transaction code mapping routing component, service name direct routing, and one-to-many routing distribution component are provided.

[0096] The embodiments of this application clearly define the layers between application systems through the above-described scheme, achieving low coupling. After the application system is put into operation, the routing rules can be dynamically adjusted according to the specific scenarios of the caller and the business layer. The business processing module only needs to focus on its own business processing, maintaining business independence and providing a more standardized business processing module.

[0097] The multi-layer routing combination processing method in this application embodiment can be used for the inherent requirements of financial gateways. For the same type of business, differentiated service processing combinations or standardized service processing processes can be performed according to different callers and different transaction interfaces.

[0098] With the increasingly diverse internet ecosystem, the dynamic routing pool mechanism can more responsively support rapid scenario switching, adding new routing components and making them effective dynamically in real time, without requiring business processing modules to perform adaptation and compatibility processing.

[0099] Example 2

[0100] In order to execute the method corresponding to Embodiment 1 above and achieve the corresponding functions and technical effects, a routing configuration device is provided below, such as... Figure 3 As shown, the device includes:

[0101] Module 1 is used to obtain business requests;

[0102] Encapsulation module 2 is used to encapsulate business requests into general messages;

[0103] Analysis module 3 is used to perform routing service analysis on general messages to obtain routing instance data;

[0104] Execution module 4 is used to execute the routing instance based on the routing instance data so that the routing component corresponding to the routing instance becomes effective.

[0105] In the above implementation process, by performing routing service analysis on general messages and then executing the routing instance corresponding to the routing instance data, the coordination between multiple routes can be achieved. For different route calling methods, a standardized processing flow can be implemented, so that newly added routing components take effect in real time without the need for business adaptation and compatibility processing, which can effectively save costs.

[0106] Furthermore, the encapsulation module 2 is also used for:

[0107] Obtain the routing information corresponding to the business request;

[0108] Obtain the service processing logic based on the routing information;

[0109] Obtain the general message based on the service processing logic.

[0110] In the above implementation process, the service processing logic is obtained based on the routing information to ensure that the general message and the service processing logic correspond to each other, so that the general message contains more service information and ensures the validity of the general message.

[0111] Furthermore, analysis module 3 is also used for:

[0112] Perform routing service analysis on general messages to obtain a set of service routing components;

[0113] Select an executable route instance from the service routing component collection;

[0114] Obtain route instance data based on the executable route instance.

[0115] In the above implementation process, by performing routing service analysis on the general message, all service routing components involved in the general message can be obtained. Selecting the executable routing instance among the service routing components can ensure the availability of the route.

[0116] Furthermore, analysis module 3 is also used for:

[0117] Read the rule configuration data source corresponding to the executable route instance;

[0118] Obtain routing instance data based on the data source configured according to the rules.

[0119] In the above implementation process, obtaining routing instance data based on the data source configured according to the rules can improve the configuration efficiency of routing, make the routing instance more adaptable to the business, and reduce the occurrence of data redundancy.

[0120] Furthermore, execution module 4 is also used for:

[0121] The routing instance is extended to meet business requirements based on the routing instance data to obtain the extended routing instance.

[0122] Listen to the expanded route instance to make the corresponding route component take effect.

[0123] In the above implementation process, extending the routing instance with business requirements based on the routing instance data can ensure the relevance between the routing instance data and the routing component, and improve the adaptability between the routing instance and the routing component.

[0124] Furthermore, such as Figure 3 As shown, the device also includes a mapping module 5, used for:

[0125] Map the route instance.

[0126] In the above implementation process, mapping route instances can coordinate the adaptability and coordination of route instances in multiple route components, realize the mutual coordination of multiple route components, and avoid different route components being unable to adapt to route instances.

[0127] Furthermore, mapping module 5 is also used for:

[0128] Get the matching type of the routing component;

[0129] Generate service route activation information based on the matching type;

[0130] Map the service routing activation information to the transaction routing component.

[0131] In the above implementation process, service route activation information is generated according to the matching type of the routing component, which can promptly obtain the running status of the routing instance in the routing component, making it easier to map the routing instance to the transaction routing component.

[0132] The routing configuration device described above can implement the method of Embodiment 1. The options in Embodiment 1 also apply to this embodiment, and will not be described in detail here.

[0133] The remaining contents of this embodiment can be referred to the contents of Embodiment 1 above, and will not be repeated in this embodiment.

[0134] Example 3

[0135] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor runs the computer program to enable the electronic device to perform the routing configuration method of Embodiment 1.

[0136] Alternatively, the aforementioned electronic device may be a server.

[0137] Please see Figure 4 , Figure 4This is a schematic diagram illustrating the structural composition of an electronic device provided in an embodiment of this application. The electronic device may include a processor 41, a communication interface 42, a memory 43, and at least one communication bus 44. The communication bus 44 is used to enable direct communication between these components. In this embodiment, the communication interface 42 is used for signaling or data communication with other node devices. The processor 41 may be an integrated circuit chip with signal processing capabilities.

[0138] The processor 41 described above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor, or the processor 41 can be any conventional processor.

[0139] The memory 43 may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), etc. The memory 43 stores computer-readable instructions. When these computer-readable instructions are executed by the processor 41, the device can perform the aforementioned operations. Figure 1 The various steps involved in the method implementation examples.

[0140] Optionally, the electronic device may also include a storage controller and an input / output unit. The memory 43, storage controller, processor 41, peripheral interface, and input / output unit are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 44. The processor 41 is used to execute executable modules stored in the memory 43, such as software function modules or computer programs included in the device.

[0141] Input / output units are used to enable users to create tasks and set optional start periods or preset execution times for those tasks, facilitating user-server interaction. Input / output units can be, but are not limited to, a mouse and keyboard.

[0142] Understandable. Figure 4 The structure shown is for illustrative purposes only; the electronic device may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.

[0143] In addition, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the routing configuration method of Embodiment 1.

[0144] This application also provides a computer program product that, when run on a computer, causes the computer to perform the method described in the method embodiment.

[0145] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can also be implemented in other ways. The apparatus embodiments described above are merely illustrative; for example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using dedicated hardware-based apparatus that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0146] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0147] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, external hard drives, ROM, RAM, magnetic disks, or optical disks.

[0148] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0149] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

[0150] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method of routing configuration, characterized by, The method includes: Obtain the business request; The business request is encapsulated into a generic message; Perform routing service analysis on the general message to obtain routing instance data; Execute the routing instance based on the routing instance data to make the routing component corresponding to the routing instance effective; The step of performing routing service analysis on the general message to obtain routing instance data includes: The general message is analyzed for routing services to obtain a set of service routing components; Select an executable route instance from the set of service routing components; The route instance data is obtained based on the executable route instance; The step of obtaining the routing instance data based on the executable routing instance includes: Read the rule configuration data source corresponding to the executable routing instance; The routing instance data is obtained by configuring the data source according to the rules; The service processing routing layer analyzes and processes the received general messages, encapsulates them into the data required by the routing instance interface, namely the routing instance data. The routing instances are provided by the service routing component pool. The routing instance filtering module filters out executable routing instances one by one. Each routing instance can read the rule configuration data source according to its own implemented mechanism. The process ends when a routing instance matches a routing rule.

2. The routing configuration method of claim 1, wherein, The step of encapsulating the service request into a general message includes: Obtain the routing information corresponding to the service request; The service processing logic is obtained based on the routing information; The general message is obtained according to the service processing logic.

3. The routing configuration method of claim 1, wherein, The step of executing a routing instance based on the routing instance data to enable the routing component includes: Based on the routing instance data, the routing instance is extended to meet business requirements, resulting in an extended routing instance. Listen to the extended route instance to enable the route component corresponding to the route instance.

4. The routing configuration method of claim 1, wherein, After the step of executing the routing instance based on the routing instance data to activate the routing component corresponding to the routing instance, the method further includes: Map the route instance.

5. The routing configuration method according to claim 4, characterized in that, The step of mapping the route instance includes: Obtain the matching type of the routing component; Generate service route activation information based on the matching type; The service routing activation information is mapped to the transaction routing component.

6. A routing configuration device, characterized in that, The device includes: The acquisition module is used to acquire business requests; An encapsulation module is used to encapsulate the business request into a general message; The analysis module is used to perform routing service analysis on the general message to obtain routing instance data; The execution module is used to execute the routing instance according to the routing instance data, so that the routing component corresponding to the routing instance becomes effective; The analysis module is also used for: The general message is analyzed for routing services to obtain a set of service routing components; Select an executable route instance from the set of service routing components; The route instance data is obtained based on the executable route instance; Read the rule configuration data source corresponding to the executable routing instance; The routing instance data is obtained by configuring the data source according to the rules; The service processing routing layer analyzes and processes the received general messages, encapsulates them into the data required by the routing instance interface, namely the routing instance data. The routing instances are provided by the service routing component pool. The routing instance filtering module filters out executable routing instances one by one. Each routing instance can read the rule configuration data source according to its own implemented mechanism. The process ends when a routing instance matches a routing rule.

7. An electronic device, characterized in that, The device includes a memory and a processor, the memory being used to store a computer program, and the processor running the computer program to cause the electronic device to perform the routing configuration method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, implements the routing configuration method as described in any one of claims 1 to 5.