Business processing method and device, computer equipment, readable storage medium and program product
By introducing management nodes, associated service nodes and business processing nodes into the business processing system, and using the business attribute type decomposition functional module, the stability problems caused by the traditional R&D collaborative integrated platform are solved due to the strong correlation dependence between functional modules, and higher system stability and fault tolerance are achieved.
Patent Information
- Application Number
- CN202510304531.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-13
AI Technical Summary
Due to the strong correlation and static dependence between functional modules, traditional R&D collaborative integrated platforms cause when one functional module fails, other functional modules relying on their functional modules are unavailable, which in turn affects the stability of the platform.
By introducing management nodes, associated service nodes and business processing nodes into the business processing system, the business attribute types are used to decompose functional modules, reducing the dependence between nodes, and determining the target processing nodes of the business request through preset request allocation strategies, so as to realize the decentralized processing of business requests.
This method can improve the stability and fault tolerance of the system, avoid business processing failures caused by failure of a single functional module, and optimize resource utilization and improve response speed.
Smart Images

Figure CN120144309A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of domain-driven technology, and in particular, to a business processing method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of business systems, the technology of integrated R & D collaboration platforms has emerged, which can integrate various links involved in the enterprise R & D process on a unified platform to achieve data sharing and process automation.
[0003] In traditional technologies, the various functions of the integrated R & D collaboration platform are tightly integrated together. Functions such as project management, version management, code repository, and automated testing are highly coupled in the overall platform, and there are strong static dependency relationships among the functions, such that an operation of one function will directly affect or call other functions that are strongly associated with it.
[0004] However, in current traditional methods, due to the strong static dependency relationships among the functions, when a certain function module fails, other function modules that have a dependency relationship with it become unavailable, thereby resulting in poor stability of the integrated R & D collaboration platform. Summary of the Invention
[0005] Based on this, it is necessary to provide a business processing method, apparatus, computer device, computer-readable storage medium, and computer program product for the above technical problems.
[0006] In a first aspect, this application provides a business processing method, which is applied to a business processing system. The business processing system includes a management node, an associated service node, and a business processing node, and includes:
[0007] Obtain a business request initiated by the management node;
[0008] Analyze and process the business request according to the associated service node to determine the target business attribute type corresponding to the business request, and determine the initial business processing node corresponding to the target business attribute type in the business processing node;
[0009] Determine the target business processing node corresponding to the target business attribute type in the initial business processing node according to a preset request allocation strategy;
[0010] Perform business processing on the business request based on the target business processing node to obtain a business processing result, and feedback the business processing result to the management node.
[0011] In one embodiment, before obtaining the business request initiated by the management node, the method further includes:
[0012] Obtain the configuration information of the management node and the service processing nodes;
[0013] Encrypt the configuration information according to a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node;
[0014] Decrypt the encrypted message according to the decryption algorithm corresponding to the associated service node and the preset encryption algorithm to obtain the configuration information of each management node and each service processing node, and store the configuration information.
[0015] In one embodiment, the preset request allocation policy includes a random allocation policy; according to the preset request allocation policy, determining the target service processing node corresponding to the target service attribute type among the initial service processing nodes includes:
[0016] Determine a random index among the initial service processing nodes based on the random allocation policy;
[0017] Determine the initial service processing node corresponding to the random index as the target service processing node.
[0018] In one embodiment, the preset request allocation policy includes a complexity allocation policy; according to the preset request allocation policy, determining the target service processing node corresponding to the target service attribute type among the initial service processing nodes includes:
[0019] Determine a set of candidate service processing nodes corresponding to the service request among the initial service processing nodes according to the service complexity of the service request;
[0020] Among the set of candidate service processing nodes, determine the candidate service processing node corresponding to the maximum processing capacity as the target service processing node.
[0021] In one embodiment, before determining the set of candidate service processing nodes corresponding to the service request among the initial service processing nodes according to the service complexity of the service request, the method further includes:
[0022] Divide the initial service processing nodes into a high-complexity service processing node set and a low-complexity service processing node set according to the processing capacity and average processing capacity of each initial service processing node;
[0023] Determining the set of candidate service processing nodes corresponding to the service request among the initial service processing nodes according to the service complexity of the service request includes:
[0024] If the service complexity of the service request is greater than or equal to the average processing capacity, determine the high-complexity service processing node set as the candidate service processing node set;
[0025] If the complexity of the service request is less than the average processing capacity, determine the low-complexity service processing node set as the candidate service processing node set.
[0026] In one embodiment, the step of dividing the initial service processing nodes into a high-complexity service processing node set and a low-complexity service processing node set according to the processing capacity of each initial service processing node and the average processing capacity includes:
[0027] Obtain the performance information of each initial service processing node within a preset time period;
[0028] For each initial service processing node, determine the average value of the corresponding performance information of the initial service processing node as the processing capacity of the initial service processing node;
[0029] Determine the average value of the processing capacities of all the initial service processing nodes as the average processing capacity, and construct a high-complexity service processing node set based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity;
[0030] Construct a low-complexity service processing node set based on the initial service processing nodes whose processing capacity is less than the average processing capacity.
[0031] In one embodiment, the step of performing service processing on the service request based on the target service processing node, obtaining a service processing result, and feeding back the service processing result to the management node includes:
[0032] Determine the first sending interface of the associated service node based on the configuration information of the service processing node in the associated service node;
[0033] Send the service request to the target service processing node according to the first sending interface;
[0034] Perform service processing on the service request based on the target service processing node to obtain a service processing result;
[0035] Feed back the service processing result to the associated service node based on the second sending interface of the target service processing node;
[0036] Feed back the service processing result to the management node based on the third sending interface of the associated service node.
[0037] Second aspect, the present application further provides a service processing device, which is applied to a service processing system. The service processing system includes a management node, an associated service node, and a service processing node, and includes:
[0038] A first acquisition module, configured to acquire a service request initiated by the management node;
[0039] An analysis module, configured to analyze and process the service request according to the associated service node, determine a target service attribute type corresponding to the service request, and determine an initial service processing node corresponding to the target service attribute type in the service processing node;
[0040] A determination module, configured to determine a target service processing node corresponding to the target service attribute type in the initial service processing node according to a preset request allocation policy;
[0041] A processing module, configured to perform service processing on the service request based on the target service processing node, obtain a service processing result, and feedback the service processing result to the management node.
[0042] In one embodiment, the device further includes:
[0043] A second acquisition module, configured to acquire configuration information of the management node and the service processing node;
[0044] An encryption module, configured to encrypt the configuration information according to a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node;
[0045] A decryption module, configured to decrypt the encrypted message according to the decryption algorithm corresponding to the associated service node and the preset encryption algorithm, obtain the configuration information of each management node and each service processing node, and store the configuration information.
[0046] In one embodiment, the preset request allocation policy includes a random allocation policy; the determination module is specifically configured to determine a random index in the initial service processing node based on the random allocation policy;
[0047] Determine the initial service processing node corresponding to the random index as the target service processing node.
[0048] In one embodiment, the preset request allocation policy includes a complexity allocation policy; the determination module is specifically configured to determine a set of candidate service processing nodes corresponding to the service request in the initial service processing node according to the service complexity of the service request;
[0049] Among the set of candidate service processing nodes, determine the candidate service processing node corresponding to the maximum processing capacity as the target service processing node.
[0050] In one embodiment, the apparatus further includes:
[0051] A partitioning module, configured to partition the initial service processing nodes into a high-complexity service processing node set and a low-complexity service processing node set according to the processing capacities and average processing capacity of the initial service processing nodes;
[0052] The determining module is specifically configured to, if the service complexity of the service request is greater than or equal to the average processing capacity, determine the high-complexity service processing node set as the candidate service processing node set;
[0053] If the complexity of the service request is less than the average processing capacity, determine the low-complexity service processing node set as the candidate service processing node set.
[0054] In one embodiment, the partitioning module is specifically configured to obtain the performance information of each initial service processing node within a preset time period;
[0055] For each initial service processing node, determine the average value of the performance information corresponding to the initial service processing node as the processing capacity of the initial service processing node;
[0056] Determine the average value of the processing capacities of the initial service processing nodes as the average processing capacity, and construct a high-complexity service processing node set based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity;
[0057] Construct a low-complexity service processing node set based on the initial service processing nodes whose processing capacity is less than the average processing capacity.
[0058] In one embodiment, the processing module is specifically configured to determine a first sending interface of the associated service node based on the configuration information of the service processing node in the associated service node;
[0059] Send the service request to the target service processing node according to the first sending interface;
[0060] Perform service processing on the service request based on the target service processing node to obtain a service processing result;
[0061] Feedback the service processing result to the associated service node based on a second sending interface of the target service processing node;
[0062] Based on the third sending interface of the associated service node, feedback the service processing result to the management node.
[0063] Thirdly, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0064] Obtain the service request initiated by the management node;
[0065] Analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node;
[0066] Determine the target service processing node corresponding to the target service attribute type in the initial service processing node according to the preset request allocation policy;
[0067] Perform service processing on the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node.
[0068] Fourthly, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0069] Obtain the service request initiated by the management node;
[0070] Analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node;
[0071] Determine the target service processing node corresponding to the target service attribute type in the initial service processing node according to the preset request allocation policy;
[0072] Perform service processing on the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node.
[0073] Fifthly, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0074] Obtain the service request initiated by the management node;
[0075] Analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node;
[0076] According to the preset request allocation policy, determine the target service processing node corresponding to the target service attribute type in the initial service processing node;
[0077] Perform service processing on the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node.
[0078] The above service processing method, device, computer device, computer-readable storage medium, and computer program product obtain a service request initiated by a management node; analyze and process the service request according to an associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node; according to the preset request allocation policy, determine the target service processing node corresponding to the target service attribute type in the initial service processing node; perform service processing on the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node. By using this method, the service processing system is decomposed into a management node, an associated service node, and a service processing node with low coupling degree through the service attribute type, and the management node and the service processing node communicate through the joint service node, which can reduce the dependence between nodes of different functional modules, make the nodes of each functional module independent of each other in service processing. Furthermore, when the management node and the service processing node are updated or the service processing system is expanded, it can ensure that the management nodes or service nodes of other functional modules can operate stably, and determine the target service processing node corresponding to the service request through the preset request allocation policy, enabling the multi-service processing nodes to cooperate with each other, avoiding service processing failures caused by the unavailability of a single function. At the same time, when there are multiple service requests, the service requests are distributed to multiple target service processing nodes for service processing to optimize resource utilization, improve response speed, and increase system reliability, which can improve the fault tolerance of the data processing system and thus improve the stability of the data processing system. Description of the Drawings
[0079] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0080] Figure 1 Schematic diagram of the process of the service processing method in an embodiment;
[0081] Figure 2 Schematic diagram for dividing the service attribute types of the R & D collaboration integration system in an embodiment;
[0082] Figure 3 Schematic diagram of the architecture of the service processing system in an embodiment;
[0083] Figure 4 Schematic diagram of the process of sending configuration information to the associated service node in an embodiment;
[0084] Figure 5 Schematic diagram of the process of determining the target service processing node based on the random allocation strategy in an embodiment;
[0085] Figure 6 Schematic diagram of the process of determining the target service processing node based on the complexity allocation strategy in an embodiment;
[0086] Figure 7 Schematic diagram of the process of an example of determining the target service processing node based on the complexity allocation strategy in an embodiment;
[0087] Figure 8 Schematic diagram of the process of constructing a high - complexity service processing node set and a low - complexity service processing node set in an embodiment;
[0088] Figure 9 Schematic diagram of the process of the associated service node relaying messages between the management node and the target service processing node in an embodiment;
[0089] Figure 10 Schematic block diagram of the service processing device in an embodiment;
[0090] Figure 11 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0091] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to 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.
[0092] In one embodiment, as Figure 1 shown, a service processing method is provided. In this embodiment, it is exemplified that this method is applied to a service processing system, and this service processing system may be a distributed system. In this embodiment, the service processing system includes a management node, an associated service node, and service processing nodes, and includes the following steps:
[0093] Step 102, obtain the service request initiated by the management node.
[0094] In the embodiment of the present application, the functional modules in the service processing system are multiple functional modules with low coupling degrees after decomposition. Each functional module is divided according to the service attribute type. Each functional module only focuses on its own service function and communicates through interfaces. At the same time, each functional module can be deployed in the nodes of the distributed system where the service processing system is located and is divided according to the role of the functional module in the service process. Then, the functional modules of each node in the service processing system can be divided into a management node and a service processing node. For example, the functional module that initiates the service request can be used as the management node, and the functional module that processes the service request can be used as the service processing node. In addition, in order to reduce the coupling degree between the functional modules, the distributed system where the service processing system is located also includes an associated service node. This associated service node serves as an intermediate layer to realize the communication between the functional modules of different service attribute types, so that the management node and the service processing node in the functional module interact through the associated service node, avoiding direct communication between the management node and the service processing node.
[0095] Taking the R & D collaboration integration system as an example of the service processing system for illustration, as Figure 2 shown, the functional modules after the R & D collaboration integration system is divided according to the service attribute type include functional modules in the project management field, version management field, pipeline field, code repository field, automatic test field, and artifact repository field. Each functional module can be an independent service model. Among them, the functional modules in the project management field and version management field can be used as the management node, and the functional modules in the pipeline field, code repository field, automatic test field, and artifact repository field can be used as the service processing node.
[0096] In the application of the service processing system, for a certain service process, the management node initiates a service request. The service processing system receives the service request through the associated service node and transfers the service request initiated from the management node to the target service processing node through the associated service node. The service request contains detailed information related to the service, such as the goal of the service, required resources, time requirements, etc. For example, in the special stages of project startup and project execution or in the version management stage, taking the functional module in the project management field as the management node and the functional module in the code repository field as the service processing node for illustration, the management node sends a service request including creating a code repository for the target project and access permissions for each person to the service processing node, and the service processing system receives the service request through the associated service node.
[0097] Step 104: Analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node.
[0098] In the embodiment of the present application, as Figure 3 shown, the associated service node in the service processing system serves as the middle layer, receives the service request sent by the management node, and parses and analyzes the service request to determine the target service attribute type corresponding to the service request. Specifically, the associated service node can determine the target service attribute type of the service request through the request type carried in the service request to distinguish the service operation type of the service request. For example, the associated service node determines the target service attribute type of the current service request through the request type identifier in the service request. The target service attribute types include development type services, test type services, or project management type services, that is, different target service attribute types correspond to different service processing nodes.
[0099] The service processing node mapping table of the service processing node is stored in the associated service node in the service processing system. The service processing node mapping table records the initial service processing node information corresponding to each service attribute type. The associated service node realizes the screening of the service processing node by querying the service processing node corresponding to the target service attribute type in the service processing node mapping table, and then determines the service processing node corresponding to the target service attribute type as the initial service processing node in the service processing node.
[0100] For example, the service request of "developer code submission service" initiated by the user or "R & D efficiency statistics" initiated by the function module in the project management field is stored in the service processing node mapping table. The service processing node corresponding to the service request is the service processing node in the "code repository field". And the function modules of the service processing system are deployed on multiple service processing nodes, that is, the service processing nodes corresponding to the function modules in the "code repository field" can include service processing node 1, service processing node 2, and service processing node 3. That is, the associated service node determines service processing node 1, service processing node 2, and service processing node 3 as the initial service processing nodes corresponding to the service request of "developer code submission service" or "R & D efficiency statistics".
[0101] Step 106: Determine the target service processing node corresponding to the target service attribute type in the initial service processing node according to the preset request allocation policy.
[0102] In the embodiments of the present application, a preset request allocation policy is set in the associated service node in the service processing system. Further, the service processing system determines, through the associated service node, a target service processing node that will ultimately be used to process the service request among multiple initial service processing nodes. The preset request allocation policy is a rule formulated based on factors such as the performance, resource usage, and service priority of each initial service processing node. For example, the associated service node may preferentially allocate service requests to initial service processing nodes with lower loads according to the load conditions of each node; or allocate high-priority service requests to initial service processing nodes with stronger processing capabilities according to the urgency of the service.
[0103] In a specific embodiment, for a code development request, in the initial service processing nodes corresponding to the pipeline field in the associated service node, if the associated service node determines that a certain initial service processing node in the pipeline field has a relatively low current load and strong processing capabilities, it will be determined as the target service processing node.
[0104] Step 108: Process the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node.
[0105] In the embodiments of the present application, the associated service node prestores the configuration information of each functional module in the service processing system and provides interfaces for each service processing node. The configuration information includes connection information corresponding to the service processing nodes of each functional module. For example, the name, number, IP (Internet Protocol) of the functional module to which the service processing node belongs, etc. The service processing system connects to the target service processing node through the interfaces provided by the associated service node and forwards the service request from the management node to the target service processing node.
[0106] After receiving the service request, the target service processing node processes the service according to the requirements of the service request and the service functions of its own functional modules. Taking a code development request as an example, the target service processing node in the code repository field will provide corresponding code storage and version control services, and the target service processing node in the pipeline field will perform operations such as code compilation and construction. After a series of service processing operations, the target service processing node will obtain a service processing result. For example, after code development is completed, a new code version will be generated; after code testing is completed, a test report will be obtained. Finally, the target service processing node feeds back the service processing result to the associated service node, and the associated service node then forwards the result to the management node that initiated the service request. The management node can make subsequent decisions and operations based on the feedback result. For example, the management node in the project management field adjusts the project progress, or the management node in the version management field releases the product version, etc.
[0107] In the above business processing method, the business processing system is decomposed into management nodes, associated service nodes, and business processing nodes with low coupling degree through business attribute types, and the management nodes and business processing nodes communicate through the joint service nodes, which can reduce the dependence between nodes of different functional modules, make the nodes of each functional module independent of each other in business processing, and then when the management nodes and business processing nodes are updated or the business processing system is expanded, ensure that the management nodes or business nodes of other functional modules can run stably, and determine the target business processing node corresponding to the business request through the preset request allocation strategy, so that multiple business processing nodes cooperate with each other, avoiding business processing failures caused by the unavailability of a single business processing node's function. At the same time, when there are multiple business requests, the business requests are distributed to multiple target business processing nodes for business processing to optimize resource utilization, improve response speed, and increase system reliability, which can improve the fault tolerance of the data processing system and then improve the stability of the data processing system.
[0108] In an exemplary embodiment, as Figure 4 shown, before step 102, the method further includes steps 402 to 406. Among them:
[0109] Step 402, obtain the configuration information of the management node and the business processing node.
[0110] In the embodiment of the present application, during the pre-configuration process of the business processing system, the business processing system collects its own configuration information through the management node and the business processing node, including the function module names, numbers, IPs (Internet Protocol), ports of the management nodes and business processing nodes of each functional module, as well as configuration information such as serialization protocols, rules, and weights. Specifically, the business processing system can read the local server file or query the local database through each management node and business processing node to obtain the configuration information of the management node and the business processing node.
[0111] Step 404, encrypt the configuration information according to a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node.
[0112] In the embodiments of the present application, after the management node and the service processing node obtain their own configuration information, the management node and the service processing node encrypt the configuration information using a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to an associated service node through a network communication protocol. The preset encryption algorithm may be a symmetric encryption algorithm (for example, AES, Advanced Encryption Standard) or an asymmetric encryption algorithm (for example, RSA, RSA algorithm, an asymmetric encryption algorithm).
[0113] Step 406: Decrypt the encrypted message according to the decryption algorithm corresponding to the associated service node and the preset encryption algorithm to obtain the configuration information of each management node and each service processing node, and store the configuration information.
[0114] In the embodiments of the present application, after receiving the encrypted message, the associated service node decrypts it to restore the original configuration information and stores it as a service processing node mapping table for subsequent use. Specifically, the associated service node determines the decryption algorithm corresponding to the encrypted message according to the encryption algorithm used by the management node and the service processing node when encrypting the configuration information, determines the secret key for decrypting the encrypted message, and then decrypts the encrypted message through the decryption algorithm and the secret key corresponding to the preset encryption algorithm to obtain the configuration information in plain text to ensure the security of the transmission of the configuration information. Furthermore, the associated service node constructs a service processing node mapping table according to the decrypted configuration information and stores it in the local storage device (for example, hard disk) or database of the associated service node for subsequent query and use.
[0115] In this embodiment, by encrypting and transmitting the configuration information of the management node and the service processing node to the associated service node, the security of the configuration information of the management node and the service processing node can be ensured, and the security vulnerability of the service processing system caused by the attack and theft of the configuration information can be avoided. Furthermore, by storing the configuration information of the management node and the service processing node in the associated service node, the management node and the service processing node can communicate and interact through the unified associated service node, so that the management node and the service processing node are not directly associated, eliminating the strong correlation dependence between different functions, avoiding the service processing failure caused by the unusability of a single function, improving the fault tolerance of the data processing system, and further improving the stability of the data processing system.
[0116] In an exemplary embodiment, the preset request allocation strategy is described by taking the random allocation strategy as an example, as Figure 5 shown, step 106 includes steps 502 to 504. Among them:
[0117] Step 502: Determine a random index among the initial service processing nodes based on a random allocation strategy.
[0118] In the embodiment of the present application, the associated service node determines the target service processing node among the initial service processing nodes based on a random allocation strategy. First, the associated service node uses a random number generator to generate a random index among the initial service processing nodes. The index range of the random index is determined by the size of the set of initial service processing nodes. If there are n initial service processing nodes in the set of initial service processing nodes, then the index range is from 0 to n - 1. For example, if there are 3 initial service processing nodes in the set, then the index range is 0, 1, 2.
[0119] Since the random allocation strategy does not depend on the actual performance of the initial service processing nodes, but allocates service requests randomly, the random allocation strategy is applicable to the scenario where the performance of each initial service processing node is basically the same.
[0120] Step 504: Determine the initial service processing node corresponding to the random index as the target service processing node.
[0121] In the embodiment of the present application, the associated service node determines the initial service processing node corresponding to the random index as the target service processing node among the initial service processing nodes.
[0122] In a specific embodiment, taking 3 initial service processing nodes as an example for illustration, the configuration information of the initial service processing nodes is shown in Table 1 below:
[0123] Table 1
[0124]
[0125] The associated service node generates any positive integer between 0 and n based on the random allocation strategy. If 2 is generated for the first time based on the random allocation strategy, the associated service node takes the initial service processing node in the field of automated testing with serial number 2 as the target service processing node. When the initial service processing node with serial number 2 is in use, for the second request, a random selection is made from 1 and 3 that are available. If all initial service processing nodes are in use, the service request enters the waiting queue to queue up and waits to continue executing the random allocation strategy after an idle initial service processing node appears.
[0126] In this embodiment, a random index is generated in the initial service processing node by a random number generator, and the corresponding node is determined as the target service processing node, so that multiple service requests can be effectively distributed to multiple target service processing nodes for service processing. Since the random allocation strategy does not depend on the actual performance of the initial service processing node and is applicable to scenarios where the performance of each node is basically the same, the random allocation strategy avoids the concentration of service requests on a few nodes, enables each node to give full play to its role, and greatly optimizes the resource utilization rate. At the same time, after the service requests are distributed to multiple target service processing nodes, the service volume borne by each target service processing node is relatively balanced, avoiding the problem of slow response caused by overloading a single node, thereby significantly improving the overall response speed of the service processing system. When processing multiple service requests, if a certain target service processing node fails or is busy, other target service processing nodes can still process service requests normally, and the service processing system can randomly select again among the available nodes to allocate service requests; if all nodes are in use, the service requests will enter the waiting queue and continue to perform random allocation after there are idle nodes, increasing the fault tolerance of the service processing system through a flexible allocation mechanism, improving the reliability of the service processing system, and ensuring that the service processing system can still operate stably and efficiently in a complex service request environment.
[0127] In an exemplary embodiment, the preset request allocation strategy includes a complexity allocation strategy. As Figure 6 shown, step 106 includes steps 602 to 604. Among them:
[0128] Step 602: Determine a set of candidate service processing nodes corresponding to the service request in the initial service processing nodes according to the service complexity of the service request.
[0129] In the embodiment of the present application, the associated service nodes in the service processing system initially screen the initial service processing nodes according to the complexity of the request, match the service complexity of the service request with the processing capabilities of the initial service processing nodes, so that high-complexity service requests are allocated in a set of candidate service processing nodes with high processing capabilities, and low-complexity service requests are allocated in a set of candidate service processing nodes with low processing capabilities, to obtain a set of candidate service processing nodes corresponding to the service request. Specifically, for high-complexity service requests (for example, the complexity score is 7-10 points), the associated service nodes screen out the initial service processing nodes with higher processing capability scores to form a set of candidate service processing nodes; for low-complexity service requests (for example, the complexity score is 1-3), the associated service nodes screen out the initial service processing nodes with lower processing capability scores to form a set of candidate service processing nodes.
[0130] Among them, the business complexity of a business request can be evaluated from indicators in multiple dimensions. For example, for a code compilation request in a software development project, if the code scale is large, the dependency relationship is complex, and the compilation environment requirements are high, then the business complexity of this business request is relatively high; conversely, if the code scale is small and the dependencies are simple, then the business complexity of this business request is relatively low. Secondly, for data processing requests involved in business requests, the size of the data volume and the complexity of the processing logic (for example, whether complex algorithms or multi-step data conversions are involved) can both be used as evaluation indicators for business complexity. Furthermore, when the above evaluation indicators are greater than or equal to a preset threshold, this business request can be determined as a business request with high complexity, and when the above evaluation indicators are less than the preset threshold, this business request can be determined as a business request with low complexity. The processing ability of the initial business processing node can be measured by hardware performance indicators. For example, CPU performance (number of cores, main frequency, etc.), memory size, storage capacity, network bandwidth, etc. For some specific initial business processing nodes, dedicated processing ability indicators can also be set. For example, the concurrent processing ability of a database node, the algorithm execution efficiency of a data processing node, etc.
[0131] Step 604, in the set of candidate business processing nodes, determine the candidate business processing node corresponding to the maximum processing ability as the target business processing node.
[0132] In the embodiment of the present application, the associated service node compares the processing abilities of each candidate business processing node in the set of candidate business processing nodes. For example, sort each candidate business processing node in descending order according to the processing ability score, and determine the candidate business processing node corresponding to the maximum processing ability as the target business processing node.
[0133] In this embodiment, node screening and allocation are performed according to business complexity and processing ability, which can make more reasonable use of system resources. High-complexity business requests are processed by target business processing nodes with strong processing abilities, avoiding performance problems caused by low-processing-ability nodes being unable to handle complex tasks; low-complexity business requests are processed by nodes with relatively low processing abilities, which can give full play to the role of each node, and by monitoring the processing abilities of each business processing node during operation, the allocation of business requests can be dynamically adjusted to ensure that high-pressure or high-latency business processing nodes are appropriately relieved of the load, while optimizing the utilization of resources, enabling user requests to be quickly responded to, and improving the efficiency and stability of the entire business processing system.
[0134] In an exemplary embodiment, before step 602, the method further includes step 6021. Among them:
[0135] Step 6021: Divide the initial service processing nodes into a high-complexity service processing node set and a low-complexity service processing node set according to the processing capabilities and average processing capabilities of the initial service processing nodes.
[0136] In the embodiments of the present application, the associated service nodes divide the initial service processing nodes into a high-service-complexity service processing node set and a low-complexity service processing node set based on the processing capabilities and average processing capabilities of the initial service processing nodes. The high-complexity service processing node set has strong computing, storage, and data processing capabilities and can handle service requests with a higher service complexity, and is used to process service requests with a high service complexity; the processing capabilities of the low-complexity service processing node set are weak and are suitable for processing service requests with a lower service complexity, that is, the low-complexity service processing node set is used to process service requests with a low service complexity.
[0137] Step 602 includes:
[0138] Step 6022: If the service complexity of the service request is greater than or equal to the average processing capability, determine the high-complexity service processing node set as the candidate service processing node set.
[0139] In the embodiments of the present application, the associated service nodes first analyze the service request to determine the service complexity corresponding to the service request. When the service complexity of the service request is greater than or equal to the average processing capability, it indicates that the current service request is a high-service complexity, that is, the current service request requires service processing nodes with higher processing capabilities. Then, the associated service nodes determine the high-complexity service processing node set as the candidate service processing node set. As Figure 7 shown, the high-complexity service processing node set includes Node No. 1, Node No. 2, and Node No. 3. Furthermore, the associated service nodes use Node No. 1, Node No. 2, and Node No. 3 as the candidate service processing nodes for the current service request.
[0140] Step 6023: If the complexity of the service request is less than the average processing capability, determine the low-complexity service processing node set as the candidate service processing node set.
[0141] In the embodiments of the present application, when the associated service nodes analyze the service request and determine that the current service request is a low-service complexity according to the service complexity corresponding to the service request, it indicates that the current service request does not have a high requirement for the processing capabilities of the service processing nodes. Then, the associated service nodes determine the low-complexity service processing node set as the candidate service processing node set. As Figure 7As shown in the figure, the set of low-complexity service processing nodes includes the node numbered 4, the node numbered 5, and the node numbered 6. Furthermore, the associated service node uses the node numbered 4, the node numbered 5, and the node numbered 6 as candidate service processing nodes for the current service request.
[0142] In this embodiment, node screening and allocation are performed according to service complexity and processing capabilities, which can make more reasonable use of system resources. High-complexity service requests are processed by target service processing nodes with strong processing capabilities, avoiding performance problems caused by low-processing-capability nodes being unable to handle complex tasks; low-complexity service requests are processed by nodes with relatively low processing capabilities, which can give full play to the role of each node. By monitoring the processing capabilities of each service processing node during runtime, service requests can be dynamically adjusted and allocated to ensure that high-pressure or high-latency service processing nodes are appropriately relieved of the load, while optimizing resource utilization, enabling user requests to be quickly responded to, and improving the efficiency and stability of the entire service processing system.
[0143] In an exemplary embodiment, as Figure 8 shown, step 6021 includes steps 802 to 808. Among them:
[0144] Step 802, obtain the performance information of each initial service processing node within a preset time period.
[0145] Among them, the performance information can be the CPU idle rate, the memory free rate, the disk read rate, the network card rate, etc., and the preset time period can be 1 minute.
[0146] In the embodiment of the present application, the processing capabilities of the initial service processing nodes can be measured by the performance information within a preset time period, and this performance information includes historical data and service growth trends. Therefore, the associated service node can obtain the performance information of each service processing node within a preset time period according to a preset cycle. Furthermore, after determining the initial service processing node corresponding to the current service request, the associated service node collects the performance information of each initial service processing node within a preset time period.
[0147] Step 804, for each initial service processing node, determine the average value of the corresponding performance information of the initial service processing node as the processing capability of the initial service processing node.
[0148] In the embodiment of the present application, the associated service node calculates the average value of all the performance information corresponding to each initial service processing node and determines this average value as the processing capabilities of each initial service processing node to quantify the processing capabilities of the initial service processing nodes. For example, as shown in Table 2 below:
[0149] Table 2
[0150]
[0151] Among them, taking the initial service processing nodes S = {S1, S2, S3, S4, S5, S6} as an example for illustration, the associated service node records the average values of the CPU idle rate, memory free rate, disk read rate, and network card rate of each domain service node within 1 minute as the node processing capacity.
[0152] Step 806: Determine the average processing capacity as the average of the processing capacities of each initial service processing node, and construct a set of high-complexity service processing nodes based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity.
[0153] In the embodiment of the present application, the associated service node aggregates the processing capacity scores of all initial service processing nodes, then calculates the average value of the processing capacity to obtain the average processing capacity. Then, the associated service node filters out the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity according to the average processing capacity, and constructs a set of high-complexity service processing nodes based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity. The set of high-complexity service processing nodes has strong resource processing capabilities and is suitable for processing service requests with high service complexity. For example, as shown in Table 2, the average values of the processing capacities of each initial service processing node are as follows:
[0154] Average processing capacity = (36.5 + 61.5 + 42.25 + 19.5 + 17.25 + 26.75) / 6 = 33.95
[0155] Furthermore, the associated service node uses the node with serial number 1, the node with serial number 2, and the node with serial number 3 whose processing capacity is greater than or equal to the average processing capacity as the set of high-complexity service processing nodes.
[0156] Step 808: Construct a set of low-complexity service processing nodes based on the initial service processing nodes whose processing capacity is less than the average processing capacity.
[0157] In the embodiment of the present application, the associated service node filters out the initial service processing nodes with a processing capacity lower than the average processing capacity according to the average processing capacity of the initial service processing nodes, and constructs a set of low-complexity service processing nodes based on the initial service processing nodes with a processing capacity lower than the average processing capacity. For example, as shown in Table 2, the average processing capacity is 33.95, then the associated service node uses the node with serial number 4, the node with serial number 5, and the node with serial number 6 whose processing capacity is greater than or equal to this average value as the set of high-complexity service processing nodes.
[0158] In this embodiment, by determining the average value of each performance information as the node processing capacity, the quantification of the processing capacity of the initial service processing node is realized. Then, the average processing capacity is obtained by calculating the average value of the processing capacities of all nodes. According to the average processing capacity, the initial service processing nodes are divided into a high-complexity service processing node set and a low-complexity service processing node set. The service requests with high service complexity can be assigned to the initial service processing nodes with strong processing capacity, and the service requests with low service complexity can be assigned to the initial service processing nodes with relatively weak processing capacity, thereby improving the overall resource utilization rate and service processing efficiency of the service processing system.
[0159] In an exemplary embodiment, as Figure 9 shown, step 108 includes steps 902 to 910. Among them:
[0160] Step 902, based on the configuration information of the service processing nodes in the associated service node, determine the first sending interface of the associated service node.
[0161] Step 904, send the service request to the target service processing node according to the first sending interface.
[0162] Step 906, perform service processing on the service request based on the target service processing node to obtain a service processing result.
[0163] Step 908, based on the second sending interface of the target service processing node, feedback the service processing result to the associated service node.
[0164] Step 910, based on the third sending interface of the associated service node, feedback the service processing result to the management node.
[0165] In the embodiments of the present application, the management node and the service processing nodes cannot communicate directly with each other. Instead, the communication messages between the management node and the service nodes need to be forwarded through an associated service node. Specifically, the associated service node determines its first sending interface based on the configuration information of each service processing node stored therein. The configuration information includes relevant parameters, rules, etc. required for the associated service node to communicate with other service processing nodes. By analyzing the configuration information, the first sending interface corresponding to the target service processing node can be accurately matched. Then, based on the determined first sending interface, the associated service node accurately sends the service request received from the management node to the target service processing node. Subsequently, after receiving the service request, the target service processing node processes the request according to the preset service logic and algorithms. This process may involve various operations such as data retrieval, calculation, and integration, and finally obtains a service processing result. The target service processing node uses its own second sending interface to feedback the service processing result to the associated service node. The second sending interface specifies the communication format and path for the feedback result. Finally, the associated service node feeds back the service processing result obtained from the target service processing node to the management node that initially initiated the service request through its third sending interface, completing the entire process of service request processing and result feedback.
[0166] In this embodiment, through the first sending interface of the associated service node, the second sending interface of the target service processing node, and the third sending interface of the associated service node, the associated service node realizes the message forwarding between the management node and the target service processing node, ensuring the independence between the management node and each service processing node, reducing the overall complexity of the service processing system, avoiding service processing failures caused by the inavailability of a single function, improving the fault tolerance of the data processing system, and enhancing the stability of the data processing system.
[0167] It should be understood that although the steps in the flowcharts involved in the above-described embodiments are displayed sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this document, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-described embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in rotation with at least a part of other steps or steps or stages in other steps.
[0168] Based on the same inventive concept, an embodiment of the present application further provides a service processing apparatus for implementing the service processing method involved above. The solution provided by this apparatus for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the service processing apparatus provided below can refer to the limitations on the service processing method in the above text, and will not be repeated here.
[0169] In an exemplary embodiment, as Figure 10 shown, a service processing apparatus 1000 is provided. This apparatus 1000 is applied to a service processing system, and the service processing system includes a management node, an associated service node, and a service processing node, including: a first acquisition module 1001, an analysis module 1002, a determination module 1003, and a processing module 1004, where:
[0170] The first acquisition module 1001 is configured to acquire a service request initiated by the management node;
[0171] The analysis module 1002 is configured to analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node;
[0172] The determination module 1003 is configured to determine the target service processing node corresponding to the target service attribute type in the initial service processing node according to a preset request allocation policy;
[0173] The processing module 1004 is configured to perform service processing on the service request based on the target service processing node, obtain a service processing result, and feedback the service processing result to the management node.
[0174] In one embodiment, the apparatus 1000 further includes:
[0175] A second acquisition module, configured to acquire the configuration information of the management node and the service processing node;
[0176] An encryption module, configured to encrypt the configuration information according to a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node;
[0177] A decryption module, configured to decrypt the encrypted message according to the decryption algorithm corresponding to the associated service node and the preset encryption algorithm, obtain the configuration information of each management node and each service processing node, and store the configuration information.
[0178] In one embodiment, the preset request allocation policy includes a random allocation policy; the determination module 1003 is specifically configured to determine a random index in the initial service processing node based on the random allocation policy;
[0179] Determine the initial service processing node corresponding to the random index as the target service processing node.
[0180] In one embodiment, the preset request allocation policy includes a complexity allocation policy; the determining module 1003 is specifically configured to determine a set of candidate service processing nodes corresponding to the service request among the initial service processing nodes according to the service complexity of the service request.
[0181] Among the set of candidate service processing nodes, determine the candidate service processing node corresponding to the maximum processing capacity as the target service processing node.
[0182] In one embodiment, the apparatus 1000 further includes:
[0183] A partitioning module, configured to partition the initial service processing nodes into a set of high-complexity service processing nodes and a set of low-complexity service processing nodes according to the processing capacity and average processing capacity of each initial service processing node.
[0184] The determining module is specifically configured to, if the service complexity of the service request is greater than or equal to the average processing capacity, determine the set of high-complexity service processing nodes as the set of candidate service processing nodes.
[0185] If the complexity of the service request is less than the average processing capacity, determine the set of low-complexity service processing nodes as the set of candidate service processing nodes.
[0186] In one embodiment, the partitioning module is specifically configured to obtain the performance information of each initial service processing node within a preset time period.
[0187] For each initial service processing node, determine the average value of each piece of performance information corresponding to the initial service processing node as the processing capacity of the initial service processing node.
[0188] Determine the average value of the processing capacities of each initial service processing node as the average processing capacity, and construct a set of high-complexity service processing nodes based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity.
[0189] Construct a set of low-complexity service processing nodes based on the initial service processing nodes whose processing capacity is less than the average processing capacity.
[0190] In one embodiment, the processing module 1004 is specifically configured to determine a first sending interface of the associated service node based on the configuration information of the service processing node in the associated service node.
[0191] Send the service request to the target service processing node according to the first sending interface.
[0192] Perform business processing on a business request based on a target business processing node to obtain a business processing result;
[0193] Based on a second sending interface of the target business processing node, feedback the business processing result to an associated service node;
[0194] Based on a third sending interface of the associated service node, feedback the business processing result to a management node.
[0195] Each module in the above business processing device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0196] In an exemplary embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 11 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. 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, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the configuration information of the management node and the business processing node. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a business processing method.
[0197] Those skilled in the art can understand that Figure 11 the structure shown in
[0198] is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0199] Obtain a business request initiated by a management node;
[0200] Analyze and process the service request according to the associated service node, determine the target service attribute type corresponding to the service request, and determine the initial service processing node corresponding to the target service attribute type in the service processing node;
[0201] According to the preset request allocation policy, determine the target service processing node corresponding to the target service attribute type in the initial service processing node;
[0202] Perform service processing on the service request based on the target service processing node to obtain a service processing result, and feedback the service processing result to the management node.
[0203] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0204] Obtain the configuration information of the management node and the service processing node;
[0205] Encrypt the configuration information according to the preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node;
[0206] Decrypt the encrypted message according to the decryption algorithm corresponding to the associated service node and the preset encryption algorithm to obtain the configuration information of each management node and each service processing node, and store the configuration information.
[0207] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0208] Determine a random index in the initial service processing node based on the random allocation policy;
[0209] Determine the initial service processing node corresponding to the random index as the target service processing node.
[0210] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0211] According to the service complexity of the service request, determine a set of candidate service processing nodes corresponding to the service request in the initial service processing node;
[0212] In the set of candidate service processing nodes, determine the candidate service processing node corresponding to the maximum processing capacity as the target service processing node.
[0213] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0214] According to the processing capacity and average processing capacity of each initial service processing node, divide the initial service processing node into a high-complexity service processing node set and a low-complexity service processing node set;
[0215] Determine a set of candidate service processing nodes corresponding to the service request in the initial service processing nodes according to the service complexity of the service request, including:
[0216] If the service complexity of the service request is greater than or equal to the average processing capacity, determine the set of high-complexity service processing nodes as the set of candidate service processing nodes;
[0217] If the complexity of the service request is less than the average processing capacity, determine the set of low-complexity service processing nodes as the set of candidate service processing nodes.
[0218] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0219] Obtain the performance information of each initial service processing node within a preset time period;
[0220] For each initial service processing node, determine the average value of the corresponding performance information as the processing capacity of the initial service processing node;
[0221] Determine the average value of the processing capacities of each initial service processing node as the average processing capacity, and construct a set of high-complexity service processing nodes based on the initial service processing nodes whose processing capacity is greater than or equal to the average processing capacity;
[0222] Construct a set of low-complexity service processing nodes based on the initial service processing nodes whose processing capacity is less than the average processing capacity.
[0223] In one embodiment, when the processor executes the computer program, the following steps are further implemented:
[0224] Determine the first sending interface of the associated service node based on the configuration information of the service processing node in the associated service node;
[0225] Send the service request to the target service processing node according to the first sending interface;
[0226] Perform service processing on the service request based on the target service processing node to obtain a service processing result;
[0227] Feedback the service processing result to the associated service node based on the second sending interface of the target service processing node;
[0228] Feedback the service processing result to the management node based on the third sending interface of the associated service node.
[0229] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0230] In one embodiment, a computer program product is provided, including a computer program which, when executed by a processor, implements the steps in the above method embodiments.
[0231] 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 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, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0232] Those of ordinary skill in the art can understand that all or part of the processes in the above method embodiments can be completed by instructing relevant hardware through a computer program. 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 above method embodiments. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory 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. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0233] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered as the scope recorded in this application.
[0234] The above-described embodiments merely represent several implementation manners of this application. The description is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of this application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application shall be subject to the appended claims.
Claims
1. A business processing method, characterized in that: The method is applied to a business processing system, the business processing system includes a management node, an associated service node and a business processing node, and the method includes: Obtaining a service request initiated by the management node; Analyzing and processing the service request according to the associated service node, determining a target service attribute type corresponding to the service request, and determining an initial service processing node corresponding to the target service attribute type in the service processing node; According to a preset request allocation strategy, determining a target service processing node corresponding to the target service attribute type in the initial service processing node; The target service processing node performs service processing on the service request to obtain a service processing result, and feeds the service processing result back to the management node.
2. The method according to claim 1, characterized in that Before obtaining the service request initiated by the management node, the method further includes: Obtain configuration information of management nodes and business processing nodes; Encrypt the configuration information according to a preset encryption algorithm to obtain an encrypted message, and send the encrypted message to the associated service node; The encrypted message is decrypted according to the associated service node and the decryption algorithm corresponding to the preset encryption algorithm to obtain the configuration information of each management node and each service processing node, and the configuration information is stored.
3. The method according to claim 1, characterized in that The preset request allocation strategy includes a random allocation strategy; and determining the target service processing node corresponding to the target service attribute type in the initial service processing node according to the preset request allocation strategy includes: Determining a random index in the initial service processing node based on a random allocation strategy; The initial service processing node corresponding to the random index is determined as a target service processing node.
4. The method according to claim 1, characterized in that: The preset request allocation strategy includes a complexity allocation strategy; and determining, in the initial service processing node, a target service processing node corresponding to the target service attribute type according to the preset request allocation strategy, includes: Determining, in the initial service processing node, a set of candidate service processing nodes corresponding to the service request according to the service complexity of the service request; In the candidate service processing node set, the candidate service processing node corresponding to the maximum value of the processing capability is determined as the target service processing node.
5. The method according to claim 4, characterized in that Before determining, in the initial service processing node, a set of candidate service processing nodes corresponding to the service request according to the service complexity of the service request, the method further includes: According to the processing capability and average processing capability of each of the initial service processing nodes, the initial service processing nodes are divided into a high-complexity service processing node set and a low-complexity service processing node set; The determining, in the initial service processing node, a set of candidate service processing nodes corresponding to the service request according to the service complexity of the service request includes: If the service complexity of the service request is greater than or equal to the average processing capacity, determining the high-complexity service processing node set as a candidate service processing node set; If the complexity of the service request is less than the average processing capability, the low-complexity service processing node set is determined as the candidate service processing node set.
6. The method according to claim 5, characterized in that The dividing the initial service processing nodes into a high-complexity service processing node set and a low-complexity service processing node set according to the processing capability and the average processing capability of each of the initial service processing nodes comprises: Acquiring performance information of each of the initial service processing nodes within a preset time period; For each of the initial service processing nodes, determining an average value of each piece of performance information corresponding to the initial service processing node as the processing capacity of the initial service processing node; Determining an average value of the processing capabilities of the initial service processing nodes as an average processing capability, and constructing a high-complexity service processing node set based on the initial service processing nodes whose processing capabilities are greater than or equal to the average processing capability; A low-complexity service processing node set is constructed based on the initial service processing nodes whose processing capabilities are less than the average processing capabilities.
7. The method according to claim 1, characterized in that The performing service processing on the service request based on the target service processing node to obtain a service processing result, and feeding back the service processing result to the management node includes: Determining a first sending interface of the associated service node based on configuration information of the service processing node in the associated service node; Sending the service request to the target service processing node according to the first sending interface; Performing business processing on the business request based on the target business processing node to obtain a business processing result; Based on the second sending interface of the target service processing node, feeding back the service processing result to the associated service node; Based on the third sending interface of the associated service node, the service processing result is fed back to the management node.
8. A service processing device, characterized in that: The device is applied to a service processing system, the service processing system includes a management node, an associated service node and a service processing node, and the device includes: A first acquisition module, used to acquire a service request initiated by the management node; An analysis module, configured to analyze and process the service request according to the associated service node, determine a target service attribute type corresponding to the service request, and determine an initial service processing node corresponding to the target service attribute type in the service processing node; A determination module, configured to determine, in the initial service processing node, a target service processing node corresponding to the target service attribute type according to a preset request allocation strategy; A processing module is used to perform business processing on the business request based on the target business processing node, obtain a business processing result, and feed back the business processing result to the management node.
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.
Citation Information
Patent Citations
Partitioned data control method and system
CN104486401A
Service request response method and service request response system
CN111131401A
Node calling method and device, computer equipment and storage medium
CN114785798A
Code management device and method, storage medium and electronic equipment
CN116466983A