Request processing method and related device
By monitoring the waiting time and load rate of dependent task processing, and activating target sub-functional units with lower load rates, the problem of long request processing time caused by functional unit dependencies is solved, and processing efficiency and user experience are improved.
Patent Information
- Application Number
- CN202410825573.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
AI Technical Summary
In a distributed cluster environment, the dependency between functional units causes the request processing time of the dependent unit to be too long, reducing the user experience.
By monitoring the waiting time and load rate of dependent task processing, target sub-functional units with lower load rates are activated to share task processing and improve processing efficiency.
It reduces task backlog time, improves processing efficiency and user experience, and avoids backlog problems caused by tasks being reassigned to units with high loads.
Smart Images

Figure CN118708347A
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and in particular to a request processing method and related devices. Background Art
[0002] In a distributed cluster environment, each functional unit provides relatively independent functions. For example, mobile banking is divided into financial management unit, life payment unit, and account unit. The financial management unit provides financial management functions, the life payment unit provides life payment functions, and the account unit provides account query functions. Each functional unit can also be subdivided into multiple sub-functional units. For example, the financial management unit is divided into fund sub-functional unit, fixed-term sub-functional unit, and bank financial management sub-functional unit.
[0003] There are dependencies between different functional units or sub-functional units. For example, the fund sub-functional unit depends on the accounting unit and the order unit. If the task volume of the dependent unit is large during the execution of the request, the request processing time of the dependent unit will be longer, reducing the user experience. Summary of the invention
[0004] In view of the above problems, the present application provides a request processing method and related devices to achieve the purpose of improving the efficiency of request processing. The specific scheme is as follows:
[0005] A first aspect of the present application provides a request processing method, which is applied to a task processing device, wherein the task processing device is configured with a plurality of sub-function units that perform different tasks, wherein among the sub-function units of the task processing device after initialization, at least one first sub-function unit is in an activated state and at least one second sub-function unit is in an inactivated state;
[0006] The request processing method comprises:
[0007] When the first sub-functional unit receives a data processing request, monitoring a waiting time for dependent task processing of the first sub-functional unit;
[0008] If the waiting time for the dependent task processing is longer than a preset time threshold, obtaining the load rate of the task processing device;
[0009] If the load rate is less than a preset load rate threshold, selecting at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends; the target sub-functional unit is at least one of the second sub-functional units;
[0010] The unactivated target sub-functional unit in the task processing device is activated, and the activated target sub-functional unit can be used to execute the corresponding task.
[0011] In a possible implementation, selecting at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends includes:
[0012] Determine a dependent sub-functional unit on which the first sub-functional unit depends;
[0013] Based on the load rates of the dependent sub-functional units, selecting a designated sub-functional unit having a load rate greater than a preset load rate threshold from the dependent sub-functional units;
[0014] If the designated sub-functional unit exists, a target sub-functional unit with the highest load rate is selected from the designated sub-functional units.
[0015] In a possible implementation, determining the dependent sub-functional unit on which the first sub-functional unit depends includes:
[0016] Obtaining a function list; the function list includes each sub-function unit and input parameters of the sub-function unit;
[0017] Determine output parameters obtained by each sub-functional unit for the input parameters;
[0018] Establishing dependency relationships between sub-functional units having corresponding relationships between input parameters and output parameters;
[0019] The dependent sub-functional unit on which the first sub-functional unit depends is filtered out from the dependency relationship.
[0020] In a possible implementation, establishing a dependency relationship between sub-function units having a corresponding relationship between input parameters and output parameters includes:
[0021] Screening out sub-functional units whose output parameters are the same as input parameters of another sub-functional unit;
[0022] The sub-function unit corresponding to the screened output parameter is set in front of the sub-function unit of the screened input parameter to obtain a dependency relationship.
[0023] In a possible implementation, when the designated sub-functional unit does not exist, the method further includes:
[0024] The sub-functional unit in the task processing device that is not in an activated state and has the highest load rate is used as a target sub-functional unit;
[0025] The unactivated target sub-functional unit in the task processing device is activated, and the activated target sub-functional unit can be used to execute the corresponding task.
[0026] In a possible implementation, after activating the unactivated target sub-functional unit in the task processing device, the method further includes:
[0027] If it is detected that the load rate of the task processing device is greater than the preset load rate threshold, the state of the target sub-functional unit is set to an inactivated state.
[0028] A second aspect of the present application provides a request processing device, which is applied to a task processing device, wherein the task processing device is configured with a plurality of sub-function units that perform different tasks, wherein among the sub-function units of the task processing device after initialization, at least one first sub-function unit is in an activated state and at least one second sub-function unit is in an inactivated state;
[0029] The request processing device comprises:
[0030] A duration monitoring module, used for monitoring the waiting time of dependent task processing of the first sub-functional unit when the first sub-functional unit receives a data processing request;
[0031] A load rate acquisition module, used for acquiring the load rate of the task processing device if the waiting time of the dependent task processing is greater than a preset time threshold;
[0032] a unit selection module, configured to select at least one target sub-functional unit whose load rate meets a load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends if the load rate is less than a preset load rate threshold; the target sub-functional unit is at least one of the second sub-functional units;
[0033] The activation module is used to activate the unactivated target sub-functional unit in the task processing device, and the activated target sub-functional unit can be used to execute the corresponding task.
[0034] A third aspect of the present application provides a computer program product, including computer-readable instructions, which, when executed on an electronic device, enables the electronic device to implement the above-mentioned request processing method.
[0035] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0036] The memory is used to store computer programs;
[0037] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned request processing method.
[0038] A fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the above-mentioned request processing method.
[0039] By means of the above technical scheme, the present application provides a request processing method and related devices. In the present application, when the first sub-functional unit processes a data processing request, the task processing device monitors the waiting time for the dependent task processing. If the waiting time for the dependent task processing is greater than the preset time threshold, it means that the task amount of the dependent sub-functional unit that the first sub-functional unit depends on is large and the processing efficiency is low. At this time, if the load rate of the task processing device is low, at least one target sub-functional unit whose load rate meets the load rate screening rule is selected from the dependent sub-functional units that the first sub-functional unit depends on, and the unactivated target sub-functional unit in the task processing device is activated, so that the activated target sub-functional unit can be used to perform the corresponding task. In the present invention, when the load rate is low, by activating the target sub-functional unit in the task processing device, it shares the tasks of the target sub-functional units in other task processing devices, reduces the task backlog time, improves the processing efficiency, reduces the waiting time, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0041] Figure 1 A schematic diagram of a system architecture provided for this application;
[0042] Figure 2 A schematic diagram of a terminal structure provided for this application;
[0043] Figure 3 A schematic diagram of a server structure provided for this application;
[0044] Figure 4 A flowchart of a request processing method provided for this application;
[0045] Figure 5 A flowchart of a method for determining a target sub-functional unit provided in this application;
[0046] Figure 6 A schematic diagram of the structure of a request processing device provided by this application;
[0047] Figure 7 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0048] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0049] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0050] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0051] 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, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0052] See also Figure 1 , Figure 1 A schematic diagram of a system architecture is shown. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.
[0053] Among them, a request processing application can be installed on the terminal 100. The above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the request processing interface and send the above parameters to the server 200. The server 200 can obtain the processing results based on the received parameters and return the processing results to the terminal 100.
[0054] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.
[0055] Next describe Figure 1 The product form of the mid-terminal 100;
[0056] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.
[0057] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.
[0058] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.
[0059] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0060] Among them, the input device 132 can receive input data and the like.
[0061] The display unit 140 may be used to display information input by the user or provided to the user, various menus of the terminal 100, interactive interfaces, file displays and / or playback of any multimedia file. In the embodiment of the present application, the display unit 140 may be used to display an interface for request processing, processing results, etc.
[0062] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.
[0063] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.
[0064] Among them, the memory 120 can be used to store software codes related to the request processing method, the processor 170 can execute the steps of the request processing method, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.
[0065] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0066] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.
[0067] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.
[0068] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0069] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .
[0070] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.
[0071] Next describe Figure 1 The product form of the server 200;
[0072] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.
[0073] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0074] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0075] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).
[0076] The memory 204 may be used to store software codes related to the request processing method, and the processor 202 may execute the steps of the request processing method of the chip, and may also schedule other units to implement corresponding functions.
[0077] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.
[0078] There are dependencies between different functional units or sub-functional units. If the task load of the dependent unit is large during the execution of a request, the request processing time of the dependent unit will be longer, reducing the user experience.
[0079] For example, if the fund sub-functional unit depends on the account unit and the order unit, and the user purchases the fund through the fund sub-functional unit, the fund sub-functional unit will steal the account unit to query the user's level and other data. If the user's level and other data meet the requirements, the order unit will be called to perform the fund purchase operation. In actual applications, if the task volume of the account unit is large, the fund sub-functional unit will wait for a long time for the query result of the account unit, which will make the entire fund purchase time longer, the user's waiting time is longer, and the efficiency is lower.
[0080] In order to improve efficiency, in the present invention, all sub-functional units with or without dependencies are configured in the task processing device. Among the sub-functional units after the task processing device is initialized, at least one first sub-functional unit is in an activated state and at least one second sub-functional unit is in an unactivated state, that is, at this time the task processing device only operates the first sub-functional unit normally. If the first sub-functional unit depends on other sub-functional units, then when the task volume of the dependent sub-functional unit is large and the processing efficiency is low, the dependent sub-functional unit in the task processing device will be activated. At this time, the dependent sub-functional unit can also process tasks normally and share the task volume of the sub-functional units in other devices, thereby improving the task processing efficiency of the dependent sub-functional units.
[0081] For example, an order sub-function unit and an account sub-function unit are configured simultaneously on a device configured with a fund sub-function unit. When the device is initialized, only the fund sub-function unit is activated, and the order sub-function unit and the account sub-function unit are not activated, that is, at this time, the device only has the fund sub-function unit operating normally, and the user can perform fund purchase operations through the fund sub-function unit of the device. At this time, the fund sub-function unit calls the account sub-function unit of other devices to perform user information query operations. If the waiting time for the query operation is long, it means that the task volume of the account sub-function unit is large and the processing efficiency is low. At this time, the account sub-function unit in this device is activated, and the subsequent account sub-function unit can process the new user information query operation. Since the account sub-function unit has no backlog of tasks, it can quickly process the user information query operation and improve efficiency. In addition, the present invention can also avoid the problem of allocating the task to other account sub-function units with a large task volume again, resulting in a larger backlog of tasks and lower processing efficiency.
[0082] In another implementation of the present invention, after the account sub-function unit is activated, the accumulated user information can also be Information Query The operation is assigned to the accounting sub-functional unit for execution. Since the amount of data of the device executing the user information query operation is increased, the backlog of tasks can be processed quickly, thereby improving efficiency.
[0083] On the basis of the above content, the present application provides a request processing method and related devices. In the present application, when the first sub-functional unit processes a data processing request, the task processing device monitors the waiting time for the dependent task processing. If the waiting time for the dependent task processing is greater than the preset time threshold, it means that the task amount of the dependent sub-functional unit that the first sub-functional unit depends on is large and the processing efficiency is low. At this time, if the load rate of the task processing device is low, at least one target sub-functional unit whose load rate meets the load rate screening rule is selected from the dependent sub-functional units that the first sub-functional unit depends on, and the unactivated target sub-functional unit in the task processing device is activated, so that the activated target sub-functional unit can be used to perform the corresponding task. In the present invention, when the load rate is low, by activating the target sub-functional unit in the task processing device, it shares the tasks of the target sub-functional units in other task processing devices, reduces the task backlog time, improves the processing efficiency, reduces the waiting time, and improves the user experience.
[0084] It should be noted that the request processing method and related devices provided by the present invention can be used in the distributed field or the financial field. The above is only an example and does not limit the application field of the request processing method and related devices provided by the present invention.
[0085] In a possible implementation, an embodiment of the present application provides a request processing method, which is applied to a task processing device, which may be a server device in a distributed cluster, such as the server 200 described above.
[0086] The task processing device is configured with a plurality of sub-functional units that perform different tasks. For example, sub-functional units with dependencies and sub-functional units without dependencies can be configured. For example, b depends on d, and d depends on e, that is, b-->d-->e has a dependency relationship. In addition, there is no dependency relationship, such as a and c, which run independently, that is, a and c do not depend on other sub-functional units. The task processing device in this embodiment can be configured with sub-functional units a, b, c, d and e.
[0087] In actual applications, for example, a living expense payment sub-functional unit, a fund sub-functional unit, an order sub-functional unit, and an accounting sub-functional unit may be configured. The fund sub-functional unit depends on the order sub-functional unit and the accounting sub-functional unit, and the living expense payment sub-functional unit runs independently.
[0088] In practical applications, among the sub-functional units after the task processing device is initialized, at least one first sub-functional unit is in an activated state and at least one second sub-functional unit is in an inactivated state.
[0089] Generally, when the task processing device is initialized, only one sub-functional unit is in an activated state, such as for task processing device A, the activated sub-functional unit is the living fee payment sub-functional unit, and for task processing device B, the activated sub-functional unit is the order sub-functional unit. In this embodiment, the activated sub-functional unit is referred to as the first sub-functional unit.
[0090] When the task processing device is initialized, the sub-functional units other than the first sub-functional unit (referred to as the second sub-functional unit in this embodiment) are not in an activated state.
[0091] It should be noted that the number of the first sub-functional unit and the second sub-functional unit in this embodiment is configurable. For example, during initialization, two first sub-functional units are activated, and the other sub-functional units are not activated. Activation in this embodiment means that the sub-functional unit can operate normally, and inactivation means that although the sub-functional unit is configured, it is not used.
[0092] Compared with the method of configuring one sub-functional unit in a device in the prior art, the task processing device in the present invention is configured with multiple sub-functional units, but only some of the sub-functional units are activated, and the remaining sub-functional units are not activated, and can be activated later according to actual conditions.
[0093] Reference Figure 4 , Figure 4 A flowchart of a request processing method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, a request processing method provided in an embodiment of the present application may include:
[0094] S11. When the first sub-functional unit receives a data processing request, monitor the waiting time for dependent task processing of the first sub-functional unit.
[0095] In practical applications, the main application scenario of the present invention is the dependency scenario, such as the first sub-functional unit depends on other sub-functional units, such as the first sub-functional unit is a fund sub-functional unit, and the fund sub-functional unit depends on the order sub-functional unit and the accounting sub-functional unit.
[0096] If the first sub-function unit receives a data processing request, such as a fund purchase request, sent by the terminal 100, the account sub-function unit may be called to perform a user information query operation. The account sub-function unit that performs the user information query operation may have one or more tasks, so when processing this request, when calling the account sub-function unit to perform the user information query operation, it may or may not need to wait.
[0097] In this embodiment, the called accounting sub-function unit may be a sub-function unit in other task processing devices. For example, if the first sub-function unit in task processing device A receives a data processing request, it calls the accounting sub-function unit in task processing device B to perform a user information query operation. Then, task processing device A monitors the waiting time of the dependent task processing of the first sub-function unit, which is the time for the accounting sub-function unit in task processing device B to perform a user information query operation.
[0098] S12: If the waiting time for the dependent task processing is greater than a preset time threshold, obtain the load rate of the task processing device.
[0099] In this embodiment, the preset time threshold is based on actual configuration, such as 50S. If the waiting time for the dependent task processing is longer than the preset time threshold, it means that the time for the account sub-function unit in the task processing device B to perform the user information query operation is long, which also means that the account sub-function unit has a large amount of tasks and low processing efficiency.
[0100] In this embodiment, in order to improve the processing efficiency of the accounting sub-functional unit, the accounting sub-functional unit in the task processing device A can be activated to assist other accounting sub-functional units in task processing and improve the overall efficiency.
[0101] Before activating the accounting sub-functional unit in task processing device A, it is necessary to determine the load rate of task processing device A. Since task processing device A only runs the first sub-functional unit at this time, the load rate of task processing device A is the load rate of the first sub-functional unit. Only when the load rate is low, the sub-functional unit is allowed to be activated to avoid reducing the processing efficiency of task processing device A.
[0102] When the load rate is high, the task volume of task processing device A is already large. If the sub-functional unit is activated, the burden of task processing device A will be further increased, resulting in low operating efficiency of task processing device A, or even stuck. Therefore, when the load rate is high, task processing device A does not activate the sub-functional unit.
[0103] S13: If the load rate is less than a preset load rate threshold, select at least one target sub-functional unit whose load rate meets a load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends.
[0104] The target sub-functional unit is at least one of the second sub-functional units, that is, the target sub-functional unit is selected from the unactivated sub-functional units.
[0105] If the load rate is less than the preset load rate threshold, it means that the task processing device A can still undertake other tasks at this time, and the sub-functional unit can be activated.
[0106] During activation, since the number of unactivated sub-functional units may be more than one, it is necessary to select which sub-functional unit to activate.
[0107] When making a selection, the load rate is still used as a reference. If the load rate is high, it means that there are more tasks to be processed. At this time, if the sub-functional unit with a high load rate is activated, the workload can be shared and the processing efficiency can be improved.
[0108] Therefore, in this embodiment, the target sub-functional unit to be activated is selected, and its load rate meets the load rate screening rule, and the target sub-functional unit should be inactivated. The load rate screening rule in this embodiment can select the sub-functional unit corresponding to the highest load rate among the load rates greater than the preset load rate threshold. At this time, only one target sub-functional unit can be selected. That is, the sub-functional unit with the highest load rate among the inactivated sub-functional units and the load rate greater than the preset load rate threshold is selected as the target sub-functional unit.
[0109] The load rate screening rule in this embodiment can also be all sub-functional units whose load rate is greater than a preset load rate threshold. In this case, all inactivated sub-functional units whose load rate is greater than the preset load rate threshold can be used as target sub-functional units. In this case, the number of target sub-functional units is one or more.
[0110] You can configure the load rate screening rules based on actual conditions.
[0111] In one possible implementation, referring to Figure 5 , selecting at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends, may include:
[0112] S21. Determine a dependent sub-functional unit on which the first sub-functional unit depends.
[0113] In actual applications, the first sub-functional unit depends on other sub-functional units, which will cause the waiting time of dependent task processing to be too long. Therefore, when activating, it is necessary to determine which sub-functional unit to activate. In the preferred implementation, the sub-functional unit that the first sub-functional unit depends on is activated, which is called the dependent sub-functional unit in this embodiment. Therefore, in this embodiment, it is necessary to determine the dependent sub-functional unit.
[0114] In a possible implementation, step S21 may include:
[0115] 1) Get the list of features.
[0116] The function list includes various sub-function units and input parameters of the sub-function units.
[0117] Specifically, the function list is a complete service list for providing services to the outside world, including all sub-function units (such as fund sub-function unit, order sub-function unit, account sub-function unit, etc.) and input parameters of the sub-function units. Input parameters are parameters input to the sub-function unit and processed by the sub-function unit. Input parameters can be field names, field quantities, field types, etc.
[0118] 2) Determine the output parameters obtained by each sub-functional unit in response to the input parameters.
[0119] In this embodiment, for the input parameters of each sub-functional unit, an external client request may be simulated, that is, the input parameters may be simulated, and the simulated input parameters may be input into the sub-functional unit to obtain the output parameters of the sub-functional unit.
[0120] 3) Establish dependency relationships between sub-functional units with corresponding input parameters and output parameters.
[0121] In this embodiment, the dependency relationship between the sub-functional units is established based on whether the input parameters and the output parameters are the same.
[0122] In a possible implementation, establishing a dependency relationship may specifically include:
[0123] 3.1) Filter out the sub-functional units whose output parameters are the same as the input parameters of another sub-functional unit.
[0124] Specifically, the field name, field quantity, field type, etc. in the output parameter are compared with the input parameters of other sub-functional units in the list. If the two are consistent, it means that one sub-functional unit has a dependency relationship with another sub-functional unit.
[0125] For example, the output parameter of sub-functional unit A is the same as the input parameter of B, that is, the output of sub-functional unit A is the input of B, then A depends on B, and the two have a dependency relationship. The previous sub-functional unit and the next sub-functional unit should be logically connected in series.
[0126] 3.2) The sub-functional unit corresponding to the screened output parameter is set in front of the sub-functional unit of the screened input parameter to obtain a dependency relationship.
[0127] For example, the output parameter of sub-functional unit A is the same as the input parameter of B, that is, the output of sub-functional unit A is the input of B, then A depends on B, and A is placed before B, that is, A-->B.
[0128] If there is no dependency, the sub-functional unit exists independently. For example, b-->d-->e mentioned above has a dependency relationship. In addition, a and c that do not have a dependency relationship run independently.
[0129] The dependency relationship between the independent sub-functional units obtained according to the above steps and the sub-functional units with dependency relationship after logical series connection. Since the above dependency relationship is established only by the same input parameters and output parameters, in actual applications, there are cases where there is no dependency relationship even though the input parameters and output parameters are the same. For example, sub-functional units A and C, the output parameters of sub-functional unit A are the same as the input parameters of sub-functional unit C, but sub-functional unit A does not depend on sub-functional unit C, that is, sub-functional units A and C operate independently.
[0130] In order to avoid this situation in the dependency relationship, in this embodiment, the real input from the client side is received and the real return of the functional unit is monitored. When the return result is consistent with the dependency list, the dependency between the independent sub-functional units and the sub-functional units is registered in the sub-functional service list. If there is inconsistency, it can be corrected manually or the device can correct it according to the usage probability. If, for example, sub-functional units A and C, in the case of high probability, A does not depend on C, then the part of the dependency relationship where A depends on C will be deleted.
[0131] In this embodiment, all sub-function units in the current unit are scanned to detect the input and output content of the sub-functions and identify the dependency relationship between the sub-functions, thereby dividing all sub-function units into independent sub-functions and dependent sub-function items, and performing service series connection on the dependent sub-function items to obtain the dependency relationship. The independent sub-functions receive the service requests of the unit indiscriminately, and the sub-function requests with dependency relationships are transmitted and returned according to the service link.
[0132] 4) Filter out the dependent sub-functional units on which the first sub-functional unit depends from the dependency relationship.
[0133] Specifically, after the dependency relationship has been determined, the dependent sub-functional unit that the first sub-functional unit depends on can be selected from the dependency relationship. For example, if the first sub-functional unit is b, and there is b-->d-->e in the dependency relationship, then d and e are dependent sub-functional units.
[0134] S22. Based on the load rates of the dependent sub-functional units, select a designated sub-functional unit whose load rate is greater than a preset load rate threshold from the dependent sub-functional units.
[0135] In this embodiment, in order to ensure that the sub-functional unit with a large load rate is activated, the load rate is limited when screening the sub-functional units, and only the designated sub-functional units with a load rate greater than a preset load rate threshold are selected.
[0136] In actual applications, if there is a sub-functional unit with a load rate greater than a preset load rate threshold, then there is an execution sub-functional unit. In addition, there is another situation where the load rate is not very large, that is, there is no sub-functional unit with a load rate greater than the preset load rate threshold, and there is no execution sub-functional unit.
[0137] S23: If the designated sub-functional unit exists, select a target sub-functional unit with the highest load rate from the designated sub-functional units.
[0138] Specifically, if there are designated sub-functional units, the sub-functional unit with the highest load rate among the designated sub-functional units may be used as the target sub-functional unit, that is, only one target sub-functional unit is selected at this time.
[0139] In addition, one or more sub-functional units may be selected as target sub-functional units according to the order of load rate arrangement from high to low.
[0140] In actual applications, there are cases where the designated sub-functional unit does not exist. In this case, it means that the load rates of the sub-functional units that the first sub-functional unit depends on are not very high, which may be due to the fact that other sub-functional units except the dependent sub-functional unit occupy a large amount of memory, threads and other resources, resulting in the slow data processing progress of the dependent sub-functional unit. At this time, the sub-functional unit that is not in an activated state and has the highest load rate in the task processing device can be used as the target sub-functional unit to share the task volume of the target sub-functional unit, so that the dependent sub-functional units of other devices occupy more resources, thereby improving the data processing efficiency of the dependent sub-functional units.
[0141] After the sub-functional unit in the task processing device that is not in an activated state and has the highest load rate is used as the target sub-functional unit, the inactivated target sub-functional unit in the task processing device is activated. The activated target sub-functional unit can be used to execute the corresponding task to share the task load of the target sub-functional unit, so that the dependent sub-functional units of other devices occupy more resources, thereby improving the data processing efficiency of the dependent sub-functional units and reducing the waiting time of the first sub-functional unit.
[0142] S14, activating the unactivated target sub-functional unit in the task processing device, so that the activated target sub-functional unit can be used to execute the corresponding task.
[0143] In this embodiment, activating the unactivated target sub-functional unit in the task processing device may refer to setting the activation state of the target sub-functional unit to activated, so that the execution function of the current task processing device is expanded, and at the same time, the functions of the first sub-functional unit and the target sub-functional unit can be supported, thereby improving the scope of data processing.
[0144] In actual applications, the activated target sub-functional unit can be used to execute corresponding tasks, such as processing subsequent new requests, or assigning currently unprocessed characters to task processing equipment for execution, which can be specifically configured according to actual conditions.
[0145] After the target sub-functional unit is activated, it can be decided whether to continue to activate another sub-functional unit based on the load rate of the task processing device and the load rate of each sub-functional unit. If it can be activated, one or more sub-functional units can be activated.
[0146] If after activating the target sub-functional unit, the task volume of the task processing device is large, resulting in a large load rate, in order to avoid the problem of reducing the data processing efficiency of the task processing device caused by this situation, if it is detected that the load rate of the task processing device is greater than the preset load rate threshold, the state of the target sub-functional unit is set to an unactivated state. At this time, the task processing device only runs the first sub-functional unit, reducing the data processing task volume, thereby being able to restore its data processing efficiency.
[0147] In this embodiment, when the first sub-functional unit processes a data processing request, the task processing device monitors the waiting time for the dependent task processing. If the waiting time for the dependent task processing is greater than the preset time threshold, it means that the task amount of the dependent sub-functional unit that the first sub-functional unit depends on is large and the processing efficiency is low. At this time, if the load rate of the task processing device is low, at least one target sub-functional unit whose load rate meets the load rate screening rule is selected from the dependent sub-functional units that the first sub-functional unit depends on, and the unactivated target sub-functional unit in the task processing device is activated so that the activated target sub-functional unit can be used to perform the corresponding task. In the present invention, when the load rate is low, by activating the target sub-functional unit in the task processing device, it shares the tasks of the target sub-functional units in other task processing devices, reduces the task backlog time, improves the processing efficiency and throughput, reduces the waiting time, and improves the user experience.
[0148] In order to enable those skilled in the art to more clearly understand the specific implementation of the present invention, the specific implementation of the present invention is now described with examples.
[0149] For the sub-functional units after dependency classification, the full quantum functional unit is encapsulated into an independently executable sub-functional unit, that is, the sub-functional units added are [a, b, c, d, e]. Then, 5 executable units are initialized in the functional unit, that is, a, b, c, d, e are all executable units, and b-->d-->e have a dependency relationship. When b receives a client's request, it needs to call the functions of d and e in sequence to return. The redundant service unit encapsulation working method is:
[0150] A service waiting queue is set for each operating unit. After the functional unit receives the client's request, it is distributed to the waiting queue of the corresponding sub-functional item according to the requested sub-functional unit.
[0151] Each executable sub-functional unit in [a,b,c,d,e] obtains a request from the service queue and performs service and result responses. After b receives the service request, it proceeds to the next step.
[0152] First, the request conversion is performed according to certain parameters in the service waiting queue of e. After the element request in the e queue is completed, it can be responded to b.
[0153] b encapsulates the received response result again, converts the request according to certain parameters in d's service queue, and asynchronously waits for b's result to be returned.
[0154] During the asynchronous waiting process, b counts the load rate of the current running unit. When the load rate is lower than the system threshold, it expands the independently runnable unit, that is, obtains the running unit with the highest load rate in [a, c, d, e], and expands the function of the unit, that is, b can provide two types of services [b, x], where x is the one with the highest load rate in [a, c, d, e]. Alternatively, by expanding the running unit with the highest load rate in [d, e] and greater than the set threshold, b can provide two types of services [b, x], where x is the one with the highest load rate in [d, e].
[0155] When the load rate of the device where b is located continues to increase and exceeds the system threshold, the x sub-function item is split and rolled back to only provide services for the b sub-function unit. At the same time, when the load rate of each executable sub-function is refreshed, x is updated and replaced at a certain time interval.
[0156] In this embodiment, the sub-functional units within the functional unit are automatically disassembled and classified, the services of the sub-functional units with dependencies are connected in series, and redundant services are assembled for each independent sub-functional item. The service requests of the unit are independently received and responded to. When the service is received and distributed, it is distributed to the corresponding operating unit according to the type of the sub-functional unit, thereby improving the overall operating efficiency of the functional unit, taking into account the load rate of the sub-functions, and improving the customer's service experience, ultimately achieving the goal of improving the service capabilities within the unit.
[0157] A request processing method provided in an embodiment of the present application is introduced above, and a device for executing the above request processing method will be introduced below.
[0158] See also Figure 6 , Figure 6 A schematic diagram of the structure of a request processing device provided in an embodiment of the present application. Figure 6 As shown, the request processing device includes:
[0159] The duration monitoring module 11 is used to monitor the waiting time of the dependent task processing of the first sub-functional unit when the first sub-functional unit receives a data processing request;
[0160] A load rate acquisition module 12, configured to acquire the load rate of the task processing device if the waiting time for the dependent task processing is greater than a preset time threshold;
[0161] a unit selection module 13, configured to select at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends if the load rate is less than a preset load rate threshold; the target sub-functional unit is at least one of the second sub-functional units;
[0162] The activation module 14 is used to activate the unactivated target sub-functional unit in the task processing device, and the activated target sub-functional unit can be used to execute the corresponding task.
[0163] In a possible implementation, the unit selection module 13 includes:
[0164] a unit determination submodule, used to determine a dependent sub-functional unit on which the first sub-functional unit depends;
[0165] a unit selection submodule, configured to select, based on the load rates of the dependent sub-functional units, a designated sub-functional unit having a load rate greater than a preset load rate threshold from the dependent sub-functional units;
[0166] The unit screening submodule is used to screen out a target subfunctional unit with the highest load rate from the designated subfunctional units if the designated subfunctional unit exists.
[0167] In a possible implementation, the unit determination submodule includes:
[0168] A list acquisition unit, used to acquire a function list; the function list includes each sub-function unit and input parameters of the sub-function unit;
[0169] A parameter determination unit, used to determine output parameters obtained by each sub-functional unit for the input parameters;
[0170] A relationship establishing unit, used to establish a dependency relationship between sub-function units having a corresponding relationship between input parameters and output parameters;
[0171] A screening unit is used to screen out the dependent sub-functional units on which the first sub-functional unit depends from the dependency relationship.
[0172] In a possible implementation, the relationship establishing unit is specifically used for:
[0173] The sub-functional units whose output parameters are the same as the input parameters of another sub-functional unit are screened out; the sub-functional units corresponding to the screened out output parameters are set in front of the sub-functional units of the screened out input parameters to obtain a dependency relationship.
[0174] In a possible implementation, the method further includes:
[0175] a unit designation module, for, in the absence of the designated sub-functional unit, using a sub-functional unit in the task processing device that is not in an activated state and has the highest load rate as a target sub-functional unit;
[0176] The activation module 14 is also used to activate the unactivated target sub-functional unit in the task processing device after the unit designation module selects the target sub-functional unit, and the activated target sub-functional unit can be used to execute the corresponding task.
[0177] In a possible implementation, the method further includes:
[0178] The state setting module is used to set the state of the target sub-functional unit to an inactive state if it is detected that the load rate of the task processing device is greater than the preset load rate threshold.
[0179] In this embodiment, when the first sub-functional unit processes a data processing request, the task processing device monitors the waiting time for the dependent task processing. If the waiting time for the dependent task processing is greater than the preset time threshold, it means that the task amount of the dependent sub-functional unit that the first sub-functional unit depends on is large and the processing efficiency is low. At this time, if the load rate of the task processing device is low, at least one target sub-functional unit whose load rate meets the load rate screening rule is selected from the dependent sub-functional units that the first sub-functional unit depends on, and the unactivated target sub-functional unit in the task processing device is activated so that the activated target sub-functional unit can be used to perform the corresponding task. In the present invention, when the load rate is low, by activating the target sub-functional unit in the task processing device, it shares the tasks of the target sub-functional units in other task processing devices, reduces the task backlog time, improves the processing efficiency and throughput, reduces the waiting time, and improves the user experience.
[0180] It should be noted that, for the working process of each module, sub-module and unit in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.
[0181] The present application also provides an electronic device in an embodiment. Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic device in the embodiments of the present application may include but is not limited to fixed terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0182] like Figure 7As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603, specifically implementing the above-mentioned request processing method. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0183] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0184] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the request processing methods provided in the embodiments of the present application.
[0185] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any request processing method provided in an embodiment of the present application.
[0186] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0187] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0188] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0189] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A request processing method, characterized in that: Applied to a task processing device, wherein the task processing device is configured with a plurality of sub-functional units for performing different tasks, wherein among the sub-functional units after the task processing device is initialized, at least one first sub-functional unit is in an activated state and at least one second sub-functional unit is in an inactivated state; The request processing method comprises: When the first sub-functional unit receives a data processing request, monitoring a waiting time for dependent task processing of the first sub-functional unit; If the waiting time for the dependent task processing is longer than a preset time threshold, obtaining the load rate of the task processing device; If the load rate is less than a preset load rate threshold, selecting at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends; the target sub-functional unit is at least one of the second sub-functional units; The unactivated target sub-functional unit in the task processing device is activated, and the activated target sub-functional unit can be used to execute the corresponding task.
2. The request processing method according to claim 1, characterized in that: Selecting at least one target sub-functional unit whose load rate meets the load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends includes: Determine a dependent sub-functional unit on which the first sub-functional unit depends; Based on the load rates of the dependent sub-functional units, selecting a designated sub-functional unit having a load rate greater than a preset load rate threshold from the dependent sub-functional units; If the designated sub-functional unit exists, a target sub-functional unit with the highest load rate is selected from the designated sub-functional units.
3. The request processing method according to claim 2, characterized in that: Determining the dependent sub-functional unit on which the first sub-functional unit depends includes: Obtaining a function list; the function list includes each sub-function unit and input parameters of the sub-function unit; Determine output parameters obtained by each sub-functional unit for the input parameters; Establishing dependency relationships between sub-functional units having corresponding relationships between input parameters and output parameters; The dependent sub-functional unit on which the first sub-functional unit depends is filtered out from the dependency relationship.
4. The request processing method according to claim 3, characterized in that: Establishing dependency relationships between sub-function units with corresponding input parameters and output parameters, including: Screening out sub-functional units whose output parameters are the same as input parameters of another sub-functional unit; The sub-function unit corresponding to the screened output parameter is set in front of the sub-function unit of the screened input parameter to obtain a dependency relationship.
5. The request processing method according to claim 2, characterized in that: In the case where the specified sub-functional unit does not exist, the method further includes: The sub-functional unit in the task processing device that is not in an activated state and has the highest load rate is used as a target sub-functional unit; The unactivated target sub-functional unit in the task processing device is activated, and the activated target sub-functional unit can be used to execute the corresponding task.
6. The request processing method according to claim 1, characterized in that: After activating the unactivated target sub-functional unit in the task processing device, the method further includes: If it is detected that the load rate of the task processing device is greater than the preset load rate threshold, the state of the target sub-functional unit is set to an inactivated state.
7. A request processing device, characterized in that: Applied to a task processing device, wherein the task processing device is configured with a plurality of sub-functional units for performing different tasks, wherein among the sub-functional units after the task processing device is initialized, at least one first sub-functional unit is in an activated state and at least one second sub-functional unit is in an inactivated state; The request processing device comprises: A duration monitoring module, used for monitoring the waiting time of dependent task processing of the first sub-functional unit when the first sub-functional unit receives a data processing request; A load rate acquisition module, used for acquiring the load rate of the task processing device if the waiting time of the dependent task processing is greater than a preset time threshold; a unit selection module, configured to select at least one target sub-functional unit whose load rate meets a load rate screening rule from the dependent sub-functional units on which the first sub-functional unit depends if the load rate is less than a preset load rate threshold; the target sub-functional unit is at least one of the second sub-functional units; The activation module is used to activate the unactivated target sub-functional unit in the task processing device, and the activated target sub-functional unit can be used to execute the corresponding task.
8. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the request processing method as claimed in any one of claims 1 to 6.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the request processing method as described in any one of claims 1 to 6.
10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the request processing method as described in any one of claims 1 to 6.
