Transaction resource isolation method, device, computer equipment and storage medium

By obtaining and adjusting thread pool configuration parameters, the target thread pool is screened to process important transaction resource requests, which solves the waiting problem caused by high-frequency non-important resource occupation and improves the execution efficiency of transaction resource requests.

CN117112206BActive Publication Date: 2024-08-27BEIJING PACTERA JINXIN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311035298.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-16
Publication Date
2024-08-27
Estimated Expiration
2043-08-16

AI Technical Summary

Technical Problem

During the call processing of the gateway engine, high-frequency occupation of non-important transaction resources leads to frequent waiting for important transaction resources. Existing technology is difficult to effectively solve this problem, and the traditional method of upgrading and downgrading processing priorities results in low execution efficiency of transaction resources. .

Method used

By obtaining the transaction resource requests of multiple transaction types and the hardware configuration information of the gateway engine, determine the initial downstream thread pool configuration parameters, adjust the container thread pool parameters, screen the target thread pool based on the thread pool type and optimization strategy, and proceed according to the processing sequence Business processing ensures that important transaction resources are not occupied.

Benefits of technology

It improves the execution efficiency of all transaction resource requests, ensures that the processing process of important transaction resources is not occupied, and achieves efficient processing and optimization of transaction resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117112206B
    Figure CN117112206B
Patent Text Reader

Abstract

The present application relates to a transaction resource isolation method, device, computer equipment and storage medium. The present application relates to the field of artificial intelligence technology. The method includes: obtaining transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determining each downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information; pre-processing the transaction resource requests of each transaction type based on the container thread pool to obtain the initial processing results of the transaction resource requests of each transaction type; identifying the thread pool type of each downstream thread pool, and screening the target thread pool corresponding to each initial processing result in the downstream thread pool and container thread pool of each thread pool type; performing business processing on each initial processing result according to the processing sequence of each target thread pool, and obtaining the processing results of each transaction resource request. The use of this method can improve the execution efficiency of all transaction resource requests.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a transaction resource isolation method, apparatus, computer equipment and storage medium. Background Art

[0002] In the actual call processing process, when the upstream service request enters the Jetty container of the gateway, the gateway engine will use the container thread to execute all the plug-in functions and then call the downstream thread pool. When multiple service requests enter the gateway, the container thread pool will be shared. In the case of thread pool sharing, non-important transaction resources with high call frequency will affect important transaction resources with low call frequency, and high-frequency transaction resources will occupy low-frequency transaction resources, resulting in frequent waiting of important transaction resources. Therefore, how to avoid the occupation of important transaction resources is the current research focus.

[0003] The traditional solution to the problem of important transaction resources being occupied is to upgrade or downgrade the processing priority of each transaction resource request according to the importance of the transaction resource request, and then perform business processing on each transaction resource according to the processing priority of each transaction resource. However, since transaction resource processing requires a thread pool to perform business processing, and this method only includes one thread pool, the container thread pool, and can only perform business processing based on one processing module of the container thread pool, a large number of transaction resources are processed through only one thread pool, resulting in low execution efficiency of all transaction resource requests. Summary of the invention

[0004] Based on this, it is necessary to provide a transaction resource isolation method, apparatus, computer equipment, computer-readable storage medium and computer program product to address the above technical issues.

[0005] In a first aspect, the present application provides a transaction resource isolation method. The method comprises:

[0006] Acquire transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine configuration parameters of each initial downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information to obtain each downstream thread pool;

[0007] Based on the transaction resource requests of each of the transaction types, parameter information of the initial container thread pool is adjusted to obtain a container thread pool, and the transaction resource requests of each of the transaction types are preprocessed based on the container thread pool to obtain an initial processing result of the transaction resource requests of each of the transaction types;

[0008] Identify the thread pool type of each of the downstream thread pools, and based on the initial processing results of each of the transaction types and the thread pool optimization strategy, select a target thread pool corresponding to each of the initial processing results in the downstream thread pools of each of the thread pool types and the container thread pool;

[0009] Based on the transaction type corresponding to each of the initial results, the initial processing results corresponding to each of the target thread pools are sorted to obtain the processing sequence of each of the target thread pools, and business processing is performed on each of the initial processing results according to the processing sequence of each of the target thread pools to obtain the processing result of each of the transaction resource requests.

[0010] Optionally, determining configuration parameters of each initial downstream thread pool based on the transaction resource request of each transaction type and the hardware configuration information to obtain each downstream thread pool includes:

[0011] Obtaining a plurality of initial downstream thread pools and identifying the number of transaction resource requests for each of the transaction types;

[0012] Based on each of the transaction types, determining the transaction resource identifier of each of the initial downstream thread pools, and dividing each of the initial downstream thread pools according to the transaction resource identifier of each of the initial downstream thread pools to obtain a plurality of thread pool groups;

[0013] For each thread pool group, the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group is identified, and based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, the configuration parameters of each initial downstream thread pool in the thread pool group are determined to obtain each downstream thread pool.

[0014] Optionally, the configuration parameters include the number of threads, the maximum number of threads, and basic parameters, and the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information are used to determine the configuration parameters of each initial downstream thread pool in the thread pool group to obtain each downstream thread pool, including:

[0015] Based on the hardware configuration information, determine target basic parameters of each initial downstream thread pool of the thread pool group, and identify the number of all initial downstream thread pools in the thread pool group;

[0016] Based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group are determined, the configuration parameters of each initial downstream thread pool are obtained, and each downstream thread pool is determined based on the configuration parameters of each initial downstream thread pool.

[0017] Optionally, adjusting parameter information of an initial container thread pool based on the transaction resource request of each transaction type to obtain a container thread pool includes:

[0018] Based on the number of transaction resource requests of each of the transaction types, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool are determined, and based on a preset container configuration strategy, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, parameter information of the initial container thread pool is adjusted to obtain a container thread pool.

[0019] Optionally, based on the initial processing results of each of the transaction types and the thread pool optimization strategy, selecting a target thread pool corresponding to each of the initial processing results in the downstream thread pools of each thread pool type and the container thread pool includes:

[0020] For the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool, query the transaction resource identifier of the initial target thread pool adapted by the initial processing result in accordance with the order of each transaction type, and select the initial target thread pool corresponding to the target transaction resource identifier in each initial target thread pool as the target thread pool in accordance with the preset calling order of each thread pool type;

[0021] In the case that the initial processing result has no adapted initial target thread pool's transaction resource identifier, the target thread pool of the unadapted initial processing result is determined based on the container thread pool and the initial processing result of the unadapted transaction resource identifier of the unadapted initial target thread pool.

[0022] Optionally, determining a target thread pool for the unadapted initial processing result based on the container thread pool and the unadapted initial processing result includes:

[0023] Based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted is created as the target thread pool;

[0024] In the case of failure in creating a new thread pool, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure in creating the new thread pool.

[0025] Optionally, the initial processing results corresponding to each of the target thread pools are sorted based on the transaction type corresponding to each of the initial results to obtain a processing sequence for each of the target thread pools, including:

[0026] For each target thread pool, the initial processing results corresponding to the target thread pool are identified, and the transaction type corresponding to each of the initial processing results is identified. The initial processing results corresponding to the target thread pool are sorted according to the order of each of the transaction types to obtain the processing sequence of the target thread pool.

[0027] In a second aspect, the present application also provides a transaction resource isolation device. The device comprises:

[0028] An acquisition module, used to acquire transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine configuration parameters of each initial downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information to obtain each downstream thread pool;

[0029] A preprocessing module, configured to adjust parameter information of an initial container thread pool based on a transaction resource request of each transaction type to obtain a container thread pool, and preprocess the transaction resource request of each transaction type based on the container thread pool to obtain an initial processing result of the transaction resource request of each transaction type;

[0030] A screening module, used for identifying the thread pool type of each of the downstream thread pools, and screening the target thread pool corresponding to each of the initial processing results in the downstream thread pools of each of the thread pool types and the container thread pool based on the initial processing results of each of the transaction types and the thread pool optimization strategy;

[0031] A processing module is used to sort the initial processing results corresponding to each of the target thread pools based on the transaction type corresponding to each of the initial results, obtain the processing sequence of each of the target thread pools, and perform business processing on each of the initial processing results according to the processing sequence of each of the target thread pools to obtain the processing result of each of the transaction resource requests.

[0032] Optionally, the acquisition module is specifically used to:

[0033] Obtaining a plurality of initial downstream thread pools and identifying the number of transaction resource requests for each of the transaction types;

[0034] Based on each of the transaction types, determining the transaction resource identifier of each of the initial downstream thread pools, and dividing each of the initial downstream thread pools according to the transaction resource identifier of each of the initial downstream thread pools to obtain a plurality of thread pool groups;

[0035] For each thread pool group, the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group is identified, and based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, the configuration parameters of each initial downstream thread pool in the thread pool group are determined to obtain each downstream thread pool.

[0036] Optionally, the configuration parameters include the number of threads, the maximum number of threads, and basic parameters, and the acquisition module is specifically used to:

[0037] Based on the hardware configuration information, determine target basic parameters of each initial downstream thread pool of the thread pool group, and identify the number of all initial downstream thread pools in the thread pool group;

[0038] Based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group are determined, the configuration parameters of each initial downstream thread pool are obtained, and each downstream thread pool is determined based on the configuration parameters of each initial downstream thread pool.

[0039] Optionally, the preprocessing module is specifically used to:

[0040] Based on the number of transaction resource requests of each of the transaction types, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool are determined, and based on a preset container configuration strategy, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, parameter information of the initial container thread pool is adjusted to obtain a container thread pool.

[0041] Optionally, the screening module is specifically used for:

[0042] For the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool, query the transaction resource identifier of the initial target thread pool adapted by the initial processing result in accordance with the order of each transaction type, and select the initial target thread pool corresponding to the target transaction resource identifier in each initial target thread pool as the target thread pool in accordance with the preset calling order of each thread pool type;

[0043] In the case that the initial processing result has no adapted initial target thread pool's transaction resource identifier, the target thread pool of the unadapted initial processing result is determined based on the container thread pool and the initial processing result of the unadapted transaction resource identifier of the unadapted initial target thread pool.

[0044] Optionally, the screening module is specifically used to:

[0045] Based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted is created as the target thread pool;

[0046] In the case of failure in creating a new thread pool, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure in creating the new thread pool.

[0047] Optionally, the processing module is specifically used to:

[0048] For each target thread pool, the initial processing results corresponding to the target thread pool are identified, and the transaction type corresponding to each of the initial processing results is identified. The initial processing results corresponding to the target thread pool are sorted according to the order of each of the transaction types to obtain the processing sequence of the target thread pool.

[0049] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.

[0050] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0051] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0052] The transaction resource isolation method, device, computer equipment and storage medium obtain transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine the configuration parameters of each initial downstream thread pool based on the transaction resource request of each transaction type and the hardware configuration information to obtain each downstream thread pool; adjust the parameter information of the initial container thread pool based on the transaction resource request of each transaction type to obtain the container thread pool, and pre-process the transaction resource request of each transaction type based on the container thread pool to obtain the initial processing result of the transaction resource request of each transaction type; identify the thread pool type of each downstream thread pool, and based on the initial processing result of each transaction type and the thread pool optimization strategy, select the target thread pool corresponding to each initial processing result in the downstream thread pool and the container thread pool of each thread pool type; sort the initial processing results corresponding to each target thread pool based on the transaction type corresponding to each initial result to obtain the processing sequence of each target thread pool, and perform business processing on each initial processing result according to the processing sequence of each target thread pool to obtain the processing result of each transaction resource request. This solution constructs downstream thread pools with different configuration parameters for different types of transaction resource requests, and uses the thread pool optimization strategy to adapt the initial processing results corresponding to each type of transaction resource request to the corresponding target thread pool, thereby dividing each type of transaction resource request and releasing the business processing tasks of the container thread pool. Then, the processing order of each transaction resource request is determined by the type of each transaction resource request, so that all types of transaction resource requests can be processed normally while ensuring that the processing process of important transaction resources is not occupied, thereby improving the execution efficiency of all transaction resource requests. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a process flow of a transaction resource isolation method in one embodiment;

[0054] Figure 2 A flowchart of a transaction resource isolation method in one embodiment;

[0055] Figure 3 A schematic diagram of a process of an example of transaction resource isolation in one embodiment;

[0056] Figure 4 is a structural block diagram of a transaction resource isolation device in an embodiment;

[0057] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] The transaction resource isolation method provided in the embodiment of the present application can be applied to a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the server can be implemented with an independent server or a server cluster composed of multiple servers. The terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, etc. Among them, the terminal constructs a downstream thread pool with different configuration parameters for different types of transaction resource requests, and adapts the corresponding target thread pool to the initial processing results corresponding to each type of transaction resource request through the thread pool optimization strategy, thereby dividing each type of transaction resource request and releasing the business processing tasks of the container thread pool. Then, the processing order of each transaction resource request is determined by the type of each transaction resource request, so that while ensuring that the processing process of important transaction resources is not occupied, each type of transaction resource request can be processed normally, thereby improving the execution efficiency of all transaction resource requests.

[0060] In one embodiment, Figure 1 As shown, a transaction resource isolation method is provided, which is described by taking the method applied to a terminal as an example, and includes the following steps:

[0061] Step S101, obtaining transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determining configuration parameters of each initial downstream thread pool based on the transaction resource request of each transaction type and the hardware configuration information to obtain each downstream thread pool.

[0062] In this embodiment, the terminal obtains multiple upstream service request information, and divides each service request information into transaction resource requests of multiple transaction types according to the transaction type corresponding to each service request information. Among them, the transaction type includes but is not limited to general important type, ordinary type, important type, and very important type. Among them, the upstream service request information includes but is not limited to call request information, query request information, and reference request information. The transaction type is stored in each service request information, and the terminal obtains the transaction type of each service request information by parsing each service request information. The terminal obtains the thread pools of multiple downstream service applications from the thread pool database in the server to obtain each downstream thread pool. Finally, the terminal obtains the hardware configuration information by identifying the hardware configuration data of the current gateway engine. Among them, the downstream thread pool assumes the business processing function of the container thread pool, and each downstream thread pool is used to perform business processing on the initial processing results of each transaction resource request, thereby obtaining the processing result corresponding to each transaction resource request. The hardware configuration data is the parameter data corresponding to the machine hardware configuration information of the gateway engine. The machine hardware configuration information includes but is not limited to chassis specifications, motherboard model, integrated network card restrictions, integrated graphics card restrictions, CPU model, FLASH card model, FLASH card capacity, network card model, memory model, memory external frequency, encryption card model, and power supply model, etc.

[0063] The terminal establishes configuration parameters for each downstream thread pool for transaction resource requests of different transaction types and the hardware configuration information of the gateway engine, so that all downstream thread pools can adapt to transaction resource requests of all transaction types to the greatest extent while ensuring the processing efficiency of each downstream thread pool. The configuration parameters are used to determine the business processing architecture of the downstream thread pool and the business processing efficiency of the downstream thread pool, and the configuration parameters include but are not limited to the number of threads of the downstream thread pool, the maximum number of threads of the downstream thread pool, and the basic parameters of the downstream thread pool.

[0064] Step S102, based on the transaction resource requests of each transaction type, adjust the parameter information of the initial container thread pool to obtain the container thread pool, and pre-process the transaction resource requests of each transaction type based on the container thread pool to obtain the initial processing results of the transaction resource requests of each transaction type.

[0065] In this embodiment, the terminal rebuilds the thread pool in the Jetty container of the gateway engine based on the transaction resource requests of each transaction type to obtain a container thread pool, so that the container thread pool can process transaction resource requests of all transaction types. Then, based on the reconstructed container thread pool, the terminal preprocesses the transaction resource requests of all transaction types to obtain the initial processing results of the transaction resource requests of each transaction type. The preprocessing is the preprocessing process of the transaction resource request. The specific reconstruction process will be described in detail later. Among them, each transaction resource request of each transaction type is preprocessed by the container thread pool, and the initial processing results corresponding to each transaction resource request obtained are in the same data dimension, which improves the recognition accuracy of the difference between the transaction resource requests corresponding to different initial processing results.

[0066] Step S103, identifying the thread pool type of each downstream thread pool, and based on the initial processing result of each transaction type and the thread pool optimization strategy, screening the target thread pool corresponding to each initial processing result in the downstream thread pool and container thread pool of each thread pool type.

[0067] In this embodiment, the terminal identifies the thread pool type of each downstream thread pool, and then the terminal selects the target thread pool corresponding to each initial processing result in the downstream thread pool and container thread pool corresponding to each thread pool type based on the initial processing results of each transaction type and the thread pool optimization strategy. Among them, the thread pool type is the type corresponding to the transaction resource identifier of each downstream thread pool, and the thread pool type includes but is not limited to the application thread pool, API thread pool, operation thread pool, default thread pool, etc. The specific optimization process will be described in detail later. Among them, the target thread pool corresponding to each initial processing result is selected to improve the processing efficiency of each initial processing result.

[0068] Step S104, based on the transaction type corresponding to each initial result, the initial processing results corresponding to each target thread pool are sorted to obtain the processing sequence of each target thread pool, and business processing is performed on each initial processing result according to the processing sequence of each target thread pool to obtain the processing result of each transaction resource request.

[0069] In this embodiment, the terminal sorts the initial processing results corresponding to each target thread pool based on the order of the transaction types of each initial processing result corresponding to each target thread pool to obtain the processing sequence of each target thread pool. The order of transaction types is the order preset in the terminal, for example, the order is 1. very important type, 2. important type, 3. generally important type, 4. ordinary type. Finally, the terminal performs business processing on each initial processing result according to the processing sequence of each target thread pool to obtain the processing result of each transaction resource request.

[0070] Specifically, this plan is as follows Figure 2As shown, each transaction resource request is preprocessed through the reconstructed container (container thread pool), and then the target thread pool adapted for each transaction resource request is screened based on the thread pool type of each downstream thread pool. In the case that the transaction resource request has no adapted target thread pool, a new thread pool is reconstructed based on the transaction resource request as the target thread pool for the transaction resource request. In the case that the transaction resource request fails to construct a new thread pool, the container thread pool is directly used as the target thread pool for the transaction resource request. Finally, each transaction resource request is processed by the target thread pool of each transaction resource request to obtain the processing result of each transaction resource request.

[0071] Based on the above scheme, by constructing downstream thread pools with different configuration parameters for different types of transaction resource requests, and adapting the initial processing results corresponding to each type of transaction resource request to the corresponding target thread pool through the thread pool optimization strategy, the transaction resource requests of each type are divided and the business processing tasks of the container thread pool are released. Then, the processing order of each transaction resource request is determined by the type of each transaction resource request, so that all types of transaction resource requests can be processed normally while ensuring that the processing process of important transaction resources is not occupied, thereby improving the execution efficiency of all transaction resource requests.

[0072] Optionally, based on the transaction resource requests of each transaction type and the hardware configuration information, the configuration parameters of each initial downstream thread pool are determined to obtain each downstream thread pool, including: obtaining multiple initial downstream thread pools and identifying the number of transaction resource requests of each transaction type; based on each transaction type, determining the transaction resource identifier of each initial downstream thread pool, and dividing each initial downstream thread pool according to the transaction resource identifier of each initial downstream thread pool to obtain multiple thread pool groups; for each thread pool group, identifying the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group, and based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, determining the configuration parameters of each initial downstream thread pool in the thread pool group to obtain each downstream thread pool.

[0073] In this embodiment, the terminal obtains multiple initial downstream thread pools and identifies the number of transaction resource requests of each transaction type. Then, the terminal determines the transaction resource identifier of each initial downstream thread pool based on each transaction type. Among them, the transaction resource identifier is determined by the granularity division criterion of the transaction resource, and the transaction resource identifier includes but is not limited to application, API, operation, default resource, etc. Then, the terminal divides each initial downstream thread pool according to the transaction resource identifier of each initial downstream thread pool to obtain multiple thread pool groups. Among them, each thread pool group contains multiple initial downstream thread pools with the same transaction resource identifier. For each thread pool group, the terminal identifies the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group. Then, the terminal determines the configuration parameters of each initial downstream thread pool in the thread pool group based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information. The specific process of determining the configuration parameters will be described in detail later.

[0074] Based on the above solution, different downstream thread pools are set based on different transaction resource requests, which improves the efficiency of each downstream thread pool in processing transaction resource requests.

[0075] Optionally, the configuration parameters include the number of threads, the maximum number of threads, and basic parameters. Based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, the configuration parameters of each initial downstream thread pool in the thread pool group are determined to obtain each downstream thread pool, including: based on the hardware configuration information, determining the target basic parameters of each initial downstream thread pool in the thread pool group, and identifying the number of all initial downstream thread pools in the thread pool group; based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, determining the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group, obtaining the configuration parameters of each initial downstream thread pool, and determining each downstream thread pool based on the configuration parameters of each initial downstream thread pool.

[0076] In this embodiment, the terminal determines the target basic parameters of each initial downstream thread pool of the thread pool group based on the hardware configuration information. Then, the terminal identifies the number of all initial downstream thread pools in the thread pool group. Secondly, based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, the terminal evenly divides the number of transaction resource requests corresponding to each initial downstream thread pool to obtain the maximum number of threads of each initial downstream thread pool in the thread pool group. Then, based on the number of threads corresponding to each initial downstream thread pool at the optimal processing efficiency, the terminal determines the number of threads of each initial downstream thread pool in the thread pool group.

[0077] Based on the above solution, the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group is used to divide the number of threads of each downstream thread pool and the maximum number of threads of each downstream thread pool, thereby improving the accuracy of determining the number of threads of each downstream thread pool and the maximum number of threads of each downstream thread pool.

[0078] Optionally, based on the transaction resource requests of each transaction type, parameter information of the initial container thread pool is adjusted to obtain the container thread pool, including: based on the number of transaction resource requests of each transaction type, determining the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, and based on a preset container configuration policy, the number of threads of the initial container thread pool, and the maximum number of threads of the initial container thread pool, adjusting the parameter information of the initial container thread pool to obtain the container thread pool.

[0079] In this embodiment, the terminal determines the number of threads of the container thread pool based on the number of transaction resource requests of each transaction type, and determines the maximum number of threads of the container thread pool based on the hardware configuration information of the gateway engine and the number of transaction resource requests of all transaction types. Finally, the terminal uses the number of threads of the container thread pool and the maximum number of threads of the container thread pool as configuration parameters of the container thread pool, and adjusts the container thread pool according to the thread pool configured in the communication protocol container.

[0080] Based on the above solution, the container thread pool is adjusted according to the number of transaction resource requests of each transaction type, thereby improving the processing efficiency of the container thread pool.

[0081] Optionally, based on the initial processing results of each transaction type and the thread pool optimization strategy, in the downstream thread pools and container thread pools of each thread pool type, the target thread pool corresponding to each initial processing result is screened, including: for the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifiers of each downstream thread pool, query the transaction resource identifier of the initial target thread pool that is adapted to the initial processing result, and in accordance with the preset calling order of each thread pool type, screen the initial target thread pool corresponding to the target transaction resource identifier as the target thread pool in each initial target thread pool; in the case where the initial processing result does not have an adapted initial target thread pool's transaction resource identifier, determine the target thread pool without an adapted initial processing result based on the initial processing results of the container thread pool and the transaction resource identifier of the initial target thread pool that is not adapted.

[0082] In this embodiment, the terminal queries the transaction resource identifier of the initial target thread pool adapted to the initial processing result of each transaction type based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool in the order of each transaction type, and selects the initial target thread pool corresponding to the target transaction resource identifier in each initial target thread pool according to the preset calling order of each thread pool type as the target thread pool. Wherein, when the number of initial processing results corresponding to the target thread pool meets the number of threads of the target thread pool, the target thread pool cannot continue to adapt more initial processing results. Wherein, the calling order of the thread pool type is, for example, operation thread pool>API thread pool>application thread pool>default thread pool. Then, when the initial processing result does not have the transaction resource identifier of the initial target thread pool adapted, the terminal determines the target thread pool without the initial processing result based on the container thread pool and the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted. The specific determination process will be described in detail later.

[0083] Based on the above solution, the target thread pool is screened by the order of transaction types, ensuring that transaction resource requests of important transaction types do not wait frequently, thereby improving the processing efficiency of transaction resource requests of important transaction types.

[0084] Optionally, based on the container thread pool and the unadapted initial processing result, a target thread pool of the unadapted initial processing result is determined, including: based on the initial processing result of the transaction resource identifier of the unadapted initial target thread pool and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the unadapted initial target thread pool is created as the target thread pool; in the event of failure to create a new thread pool, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure to create the new thread pool.

[0085] In this embodiment, the terminal creates a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted as the target thread pool based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information. The specific creation process is that based on the initial processing results of each same transaction type, a downstream thread pool that meets the transaction type is randomly selected in each downstream thread pool, and when the number of initial processing results of the transaction type of the initial target thread pool that is not adapted is not greater than the number of threads of the downstream thread pool, the number of threads of the downstream thread pool is modified to the number of initial processing results of the transaction type of the initial target thread pool that is not adapted, and the thread pool corresponding to the modified number of threads is used as the new thread pool of the initial processing result of the transaction type of the initial target thread pool that is not adapted. When the number of initial processing results of the transaction type of the initial target thread pool that is not adapted is greater than the number of threads of the downstream thread pool, the terminal re-acquires the same thread pool as the downstream thread pool as the new thread pool of the initial processing result of the transaction type of the initial target thread pool that is not adapted.

[0086] In the case of failure to create a new thread pool, the terminal directly uses the container thread pool as the target thread pool corresponding to the initial processing result of the failure to create a new thread pool.

[0087] Based on the above solution, the target thread pool of each initial transaction result is determined by the initial transaction result of each unadapted target thread pool, ensuring that the transaction resource requests corresponding to each initial transaction result can be processed, thereby improving the comprehensiveness of the execution of all transaction resource requests.

[0088] Optionally, based on the transaction type corresponding to each initial result, the initial processing results corresponding to each target thread pool are sorted to obtain a processing sequence of each target thread pool, including: for each target thread pool, identifying the initial processing results corresponding to the target thread pool, and identifying the transaction type corresponding to each initial processing result, and sorting the initial processing results corresponding to the target thread pool in order of each transaction type to obtain a processing sequence of the target thread pool.

[0089] In this embodiment, the terminal identifies each initial processing result corresponding to each target thread pool. Then, the terminal identifies the transaction type corresponding to each initial processing result of the target thread pool according to the correspondence between the initial processing result and the transaction type of the transaction resource request. Then, the terminal sorts the initial processing results corresponding to the target thread pool according to the order of each transaction type to obtain the processing sequence of the target thread pool. Among them, the processing order of the same transaction type is random.

[0090] Based on the above solution, by sorting the initial processing results of the same target thread pool, it is ensured that the processing process of the initial processing results corresponding to important transaction resource requests is not occupied by the initial processing results corresponding to other types of transaction resource requests.

[0091] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0092] In one embodiment, Figure 3 As shown, a transaction resource isolation example is provided, which includes the following steps:

[0093] Step S301, obtaining transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine.

[0094] Step S302, obtaining multiple initial downstream thread pools, and identifying the number of transaction resource requests of each transaction type.

[0095] Step S303: determining the transaction resource identifier of each initial downstream thread pool based on each transaction type, and dividing each initial downstream thread pool according to the transaction resource identifier of each initial downstream thread pool to obtain a plurality of thread pool groups.

[0096] Step S304: for each thread pool group, identify the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group.

[0097] Step S305: determining target basic parameters of each initial downstream thread pool of the thread pool group based on the hardware configuration information, and identifying the number of all initial downstream thread pools in the thread pool group.

[0098] Step S306, based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, determine the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group, obtain the configuration parameters of each initial downstream thread pool, and determine each downstream thread pool based on the configuration parameters of each initial downstream thread pool.

[0099] Step S307, based on the number of transaction resource requests of each transaction type, determine the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, and based on the preset container configuration strategy, the number of threads of the initial container thread pool, and the maximum number of threads of the initial container thread pool, adjust the parameter information of the initial container thread pool to obtain the container thread pool.

[0100] Step S308 , pre-processing the transaction resource requests of each transaction type based on the container thread pool to obtain initial processing results of the transaction resource requests of each transaction type.

[0101] Step S309, for the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool, in the order of each transaction type, the transaction resource identifier of the initial target thread pool adapted by the initial processing result is queried respectively, and in accordance with the preset calling order of each thread pool type, the initial target thread pool corresponding to the target transaction resource identifier is screened in each initial target thread pool as the target thread pool.

[0102] Step S310, when the initial processing result does not have an adapted transaction resource identifier of the initial target thread pool, based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted is created as the target thread pool.

[0103] Step S311, when the creation of the new thread pool fails, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure to create the new thread pool.

[0104] Step S312, for each target thread pool, identify each initial processing result corresponding to the target thread pool, and identify the transaction type corresponding to each initial processing result, sort the initial processing results corresponding to the target thread pool according to the order of each transaction type, and obtain the processing sequence of the target thread pool.

[0105] Step S313: Perform business processing on each initial processing result according to the processing sequence of each target thread pool to obtain the processing result of each transaction resource request.

[0106] Based on the same inventive concept, the embodiment of the present application also provides a transaction resource isolation device for implementing the transaction resource isolation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more transaction resource isolation device embodiments provided below can refer to the limitations of the transaction resource isolation method above, and will not be repeated here.

[0107] In one embodiment, Figure 4 As shown, a transaction resource isolation device is provided, including: an acquisition module 410, a pre-processing module 420, a screening module 430 and a processing module 440, wherein:

[0108] The acquisition module 410 is used to acquire transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine the configuration parameters of each initial downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information to obtain each downstream thread pool;

[0109] A preprocessing module 420 is used to adjust the parameter information of the initial container thread pool based on the transaction resource request of each transaction type to obtain the container thread pool, and preprocess the transaction resource request of each transaction type based on the container thread pool to obtain the initial processing result of the transaction resource request of each transaction type;

[0110] A screening module 430 is used to identify the thread pool type of each of the downstream thread pools, and based on the initial processing results of each of the transaction types and the thread pool optimization strategy, screen the target thread pool corresponding to each of the initial processing results in the downstream thread pools of each of the thread pool types and the container thread pool;

[0111] The processing module 440 is used to sort the initial processing results corresponding to each of the target thread pools based on the transaction type corresponding to each of the initial results, obtain the processing sequence of each of the target thread pools, and perform business processing on each of the initial processing results according to the processing sequence of each of the target thread pools to obtain the processing result of each of the transaction resource requests.

[0112] Optionally, the acquisition module 410 is specifically configured to:

[0113] Obtaining a plurality of initial downstream thread pools and identifying the number of transaction resource requests for each of the transaction types;

[0114] Based on each of the transaction types, determining the transaction resource identifier of each of the initial downstream thread pools, and dividing each of the initial downstream thread pools according to the transaction resource identifier of each of the initial downstream thread pools to obtain a plurality of thread pool groups;

[0115] For each thread pool group, the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group is identified, and based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, the configuration parameters of each initial downstream thread pool in the thread pool group are determined to obtain each downstream thread pool.

[0116] Optionally, the configuration parameters include the number of threads, the maximum number of threads, and basic parameters. The acquisition module 410 is specifically used to:

[0117] Based on the hardware configuration information, determine target basic parameters of each initial downstream thread pool of the thread pool group, and identify the number of all initial downstream thread pools in the thread pool group;

[0118] Based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group are determined, the configuration parameters of each initial downstream thread pool are obtained, and each downstream thread pool is determined based on the configuration parameters of each initial downstream thread pool.

[0119] Optionally, the preprocessing module 420 is specifically used for:

[0120] Based on the number of transaction resource requests of each of the transaction types, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool are determined, and based on a preset container configuration strategy, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, parameter information of the initial container thread pool is adjusted to obtain a container thread pool.

[0121] Optionally, the screening module 430 is specifically used to:

[0122] For the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool, query the transaction resource identifier of the initial target thread pool adapted by the initial processing result in accordance with the order of each transaction type, and select the initial target thread pool corresponding to the target transaction resource identifier in each initial target thread pool as the target thread pool in accordance with the preset calling order of each thread pool type;

[0123] In the case that the initial processing result has no adapted initial target thread pool's transaction resource identifier, the target thread pool of the unadapted initial processing result is determined based on the container thread pool and the initial processing result of the unadapted transaction resource identifier of the unadapted initial target thread pool.

[0124] Optionally, the screening module 430 is specifically used to:

[0125] Based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted is created as the target thread pool;

[0126] In the case of failure in creating a new thread pool, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure in creating the new thread pool.

[0127] Optionally, the processing module 440 is specifically configured to:

[0128] For each target thread pool, the initial processing results corresponding to the target thread pool are identified, and the transaction type corresponding to each of the initial processing results is identified. The initial processing results corresponding to the target thread pool are sorted according to the order of each of the transaction types to obtain the processing sequence of the target thread pool.

[0129] Each module in the transaction resource isolation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0130] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a transaction resource isolation method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0131] Those skilled in the art will understand that Figure 5The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0134] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.

[0135] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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), magnetoresistive 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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.

[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A transaction resource isolation method, characterized in that: The method comprises: Acquire transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine configuration parameters of each initial downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information to obtain each downstream thread pool; Based on the transaction resource requests of each of the transaction types, parameter information of the initial container thread pool is adjusted to obtain a container thread pool, and the transaction resource requests of each of the transaction types are preprocessed based on the container thread pool to obtain an initial processing result of the transaction resource requests of each of the transaction types; Identify the thread pool type of each of the downstream thread pools, and based on the initial processing results of each of the transaction types and the thread pool optimization strategy, select a target thread pool corresponding to each of the initial processing results in the downstream thread pools of each of the thread pool types and the container thread pool; Based on the transaction type corresponding to each of the initial processing results, the initial processing results corresponding to each of the target thread pools are sorted to obtain a processing sequence of each of the target thread pools, and business processing is performed on each of the initial processing results according to the processing sequence of each of the target thread pools to obtain a processing result of each of the transaction resource requests.

2. The method according to claim 1, characterized in that The step of determining configuration parameters of each initial downstream thread pool based on the transaction resource request of each transaction type and the hardware configuration information to obtain each downstream thread pool includes: Obtaining a plurality of initial downstream thread pools and identifying the number of transaction resource requests for each of the transaction types; Based on each of the transaction types, determining the transaction resource identifier of each of the initial downstream thread pools, and dividing each of the initial downstream thread pools according to the transaction resource identifier of each of the initial downstream thread pools to obtain a plurality of thread pool groups; For each thread pool group, the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group is identified, and based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information, the configuration parameters of each initial downstream thread pool in the thread pool group are determined to obtain each downstream thread pool.

3. The method according to claim 2, characterized in that The configuration parameters include the number of threads, the maximum number of threads, and basic parameters. The number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the hardware configuration information are used to determine the configuration parameters of each initial downstream thread pool in the thread pool group, and each downstream thread pool is obtained, including: Based on the hardware configuration information, determine target basic parameters of each initial downstream thread pool of the thread pool group, and identify the number of all initial downstream thread pools in the thread pool group; Based on the number of transaction resource requests of the transaction type corresponding to the transaction resource identifier of the thread pool group and the number of all initial downstream thread pools in the thread pool group, the number of threads of each initial downstream thread pool in the thread pool group and the maximum number of threads of each initial downstream thread pool in the thread pool group are determined, the configuration parameters of each initial downstream thread pool are obtained, and each downstream thread pool is determined based on the configuration parameters of each initial downstream thread pool.

4. The method according to claim 1, characterized in that: The step of adjusting the parameter information of the initial container thread pool based on the transaction resource request of each transaction type to obtain the container thread pool includes: Based on the number of transaction resource requests of each of the transaction types, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool are determined, and based on a preset container configuration strategy, the number of threads of the initial container thread pool and the maximum number of threads of the initial container thread pool, parameter information of the initial container thread pool is adjusted to obtain a container thread pool.

5. The method according to claim 2, characterized in that: The method of selecting a target thread pool corresponding to each of the initial processing results in the downstream thread pools and the container thread pool of each of the thread pool types based on the initial processing results of each of the transaction types and the thread pool optimization strategy includes: For the initial processing result of each transaction type, based on the initial processing result of the transaction type and the transaction resource identifier of each downstream thread pool, query the transaction resource identifier of the initial target thread pool adapted by the initial processing result in accordance with the order of each transaction type, and select the initial target thread pool corresponding to the target transaction resource identifier in each initial target thread pool as the target thread pool in accordance with the preset calling order of each thread pool type; In the case that the initial processing result has no adapted initial target thread pool's transaction resource identifier, the target thread pool of the unadapted initial processing result is determined based on the container thread pool and the initial processing result of the unadapted transaction resource identifier of the unadapted initial target thread pool.

6. The method according to claim 5, characterized in that The step of determining a target thread pool for the unadapted initial processing result based on the container thread pool and the unadapted initial processing result includes: Based on the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted and the hardware configuration information, a new thread pool corresponding to the initial processing result of the transaction resource identifier of the initial target thread pool that is not adapted is created as the target thread pool; In the case of failure in creating a new thread pool, the container thread pool is used as the target thread pool corresponding to the initial processing result of the failure in creating the new thread pool.

7. The method according to claim 1, characterized in that The initial processing results corresponding to each of the target thread pools are sorted based on the transaction type corresponding to each of the initial processing results to obtain a processing sequence for each of the target thread pools, including: For each target thread pool, the initial processing results corresponding to the target thread pool are identified, and the transaction type corresponding to each of the initial processing results is identified. The initial processing results corresponding to the target thread pool are sorted according to the order of each of the transaction types to obtain the processing sequence of the target thread pool.

8. A transaction resource isolation device, characterized in that: The device comprises: An acquisition module, used to acquire transaction resource requests of multiple transaction types and hardware configuration information of the gateway engine, and determine configuration parameters of each initial downstream thread pool based on the transaction resource requests of each transaction type and the hardware configuration information to obtain each downstream thread pool; A preprocessing module, configured to adjust parameter information of an initial container thread pool based on a transaction resource request of each transaction type to obtain a container thread pool, and preprocess the transaction resource request of each transaction type based on the container thread pool to obtain an initial processing result of the transaction resource request of each transaction type; A screening module, used for identifying the thread pool type of each of the downstream thread pools, and screening the target thread pool corresponding to each of the initial processing results in the downstream thread pools of each of the thread pool types and the container thread pool based on the initial processing results of each of the transaction types and the thread pool optimization strategy; A processing module is used to sort the initial processing results corresponding to each of the target thread pools based on the transaction type corresponding to each of the initial processing results, obtain the processing sequence of each of the target thread pools, and perform business processing on each of the initial processing results according to the processing sequence of each of the target thread pools to obtain the processing result of each of the transaction resource requests.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.