Slot-based data processing method, device and equipment and readable storage medium

By employing a slot-based data processing method and utilizing flexible slot component configuration and nesting, the problem of low data processing efficiency caused by complex logic in existing technologies is solved, achieving efficient data processing and the ability to quickly respond to user needs.

CN116166689BActive Publication Date: 2026-07-07GLODON CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GLODON CO LTD
Filing Date
2023-01-03
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

Existing technologies suffer from complex logic during data processing, leading to cumbersome procedures, reduced data processing efficiency, and difficulty in quickly responding to changes in user needs.

Method used

It adopts a slot-based data processing method, which receives client requests, configures the target slot component, and calls the slot component to process the data. It supports flexible module assembly and nesting, realizes the assembly of configuration methods, and supports multiple forms such as front slots, rear slots and built-in slots.

Benefits of technology

It improves data processing efficiency, reduces the occurrence of homogenized code, enhances the work efficiency of technical personnel, enables rapid response to changes in requirements, and reduces the occurrence of hidden bugs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116166689B_ABST
    Figure CN116166689B_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on slot data processing method, device, equipment and readable storage medium, the method includes: receiving the data processing request of client, wherein data processing request includes business requirement field and to-be-processed data;According to business requirement field and to-be-processed data configuration target slot component;Call target slot component and to-be-processed data are handled, and data processing result is returned to client.Based on the present application, the technical problem that the processing program of complex logic is tedious and reduces data processing efficiency is solved, by providing flexible slot configuration mode, reduce the inconsistent format of code connection, reduce the appearance of homogenization code, improve the work efficiency of technical personnel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing, and more specifically to a slot-based data processing method, apparatus, device, and readable storage medium. Background Technology

[0002] In conventional data processing, different data processing needs have different processing logic requirements. Whether it is a single type of data processing need (i.e., data migration from database A to database B) or a complex type of data processing need (i.e., combining data from databases A and B and processing it through a series of algorithms before sending it to database C), the processing logic will contain a large amount of homogeneous code implementation. Moreover, due to the complexity of the environment logic, various hidden bugs are prone to occur. In addition, there is the issue that the requirements are easily affected by user changes and require rapid response to handle user data processing requests.

[0003] There are two existing data processing solutions: one is a solution that encodes the data source acquisition and data writing, and the other is a workflow-based data processor assembly solution. The former provides some small components, but the overall logic still requires developers to implement it in code. The first solution has the following drawbacks: 1) The overall logic still requires developers to implement it in code, which can easily lead to hidden bugs; 2) It cannot be configured, making it difficult to quickly respond to changes in requirements; 3) Complex logic implementation still requires a lot of coding, and there will be a large amount of homogeneous code. The latter limits data processing to streaming scenarios. It can generally be used for single-type data processing logic, but this solution is not suitable for scenarios such as algorithm combinations, which still require developers to package large algorithm processing modules to use. The second solution has the following drawbacks: 1) It limits data processing logic to streaming scenarios; non-streaming combined applications require hard adaptation, resulting in logical inconsistencies; 2) Complex logic still requires developers to package large processing modules to use; 3) It overemphasizes data flow while neglecting the program's own processing logic.

[0004] There is currently no effective solution to the technical problem that the cumbersome processing procedures for complex logic in existing technologies reduce data processing efficiency. Summary of the Invention

[0005] The purpose of this invention is to provide a slot-based data processing method, apparatus, device, and readable storage medium that can solve the technical problem of cumbersome processing procedures that reduce data processing efficiency in the prior art.

[0006] One aspect of the present invention provides a slot-based data processing method, the method comprising: receiving a data processing request from a client, wherein the data processing request includes a business requirement field and data to be processed; configuring a target slot component according to the business requirement field and the data to be processed; invoking the target slot component to process the data to be processed, and returning the data processing result to the client.

[0007] Optionally, the target slot component is configured based on the business requirement field and the data to be processed, including: determining the type combination of slot components through the business requirement field; determining the number of slot components in the type combination through the data to be processed; configuring the slot components according to the type and the number to generate the target slot component.

[0008] Optionally, the type combination of slot components is determined by the business requirement field, including: determining the task attribute of the business requirement field; if the business requirement field is a single task attribute, then one type is selected from the preset types of slot components to form the type combination of slot components, and the single task attribute is defined as the function code of the slot component; if the business requirement field is a composite task attribute, then multiple types are selected from the preset types of slot components to form the type combination of slot components, and the composite task attribute is split, and the split result is defined as the function code of each slot component, wherein the multiple types have an execution sequence.

[0009] Optionally, determining the number of slot components in a type combination based on the data to be processed includes: obtaining a list of processors included in each slot component of the type combination; determining the peak data volume of each slot component based on the processor list; and dividing the data to be processed based on the peak data volume to determine the number of slot components in the type combination.

[0010] Optionally, when the business requirement field is a single task attribute, the target slot component is invoked to process the data to be processed and the data processing result is returned to the client, including: obtaining all processors of the target slot component; invoking the processors in parallel to process the data to be processed, and returning the data processing result of each processor to the client simultaneously.

[0011] Optionally, when the business requirement field is a composite task attribute, the target slot component is invoked to process the data to be processed and the data processing result is returned to the client. This includes: sending the data to be processed to the first slot component, invoking all processors of the first slot component in parallel, processing the data to be processed according to the first function code, and obtaining a first processing result; sending the first processing result to the second slot component, invoking all processors of the second slot component in parallel, processing the first processing result according to the second function code, and obtaining a second processing result; determining whether the target slot component has been traversed completely; if so, returning the second processing result to the client; if not, processing the second processing result based on the next slot component adjacent to the second slot component, and returning the processing result to the client.

[0012] Another aspect of the present invention provides a slot-based data processing apparatus, the apparatus comprising: a receiving module for receiving a data processing request from a client, wherein the data processing request includes a business requirement field and data to be processed; a configuration module for configuring a target slot component according to the business requirement field and the data to be processed; and a data processing module for invoking the target slot component to process the data to be processed and returning the data processing result to the client.

[0013] Optionally, the configuration module includes: a first determining unit, used to determine the type combination of slot components through business requirement fields; a second determining unit, used to determine the number of slot components in the type combination through data to be processed; and a generating unit, used to configure the slot components according to type and quantity to generate target slot components.

[0014] Another aspect of the present invention provides a computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the slot-based data processing method of any of the above embodiments.

[0015] Another aspect of the present invention provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the slot-based data processing method of any of the above embodiments. Further, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, etc.; and the data storage area may store data created based on the use of blockchain nodes, etc.

[0016] Compared with the prior art, the present invention has at least the following advantages:

[0017] 1. The module provides multiple slots to support flexible module assembly, including front slots, rear slots, and a variety of customizable built-in slots, enabling processor scheduling methods such as load embedding and condition control.

[0018] 2. Modules can be wrapped and nested, supporting the reuse of complex modules.

[0019] 3. The overall program logic is assembled using a configuration method, which makes it less likely for hidden bugs to appear.

[0020] 4. It can be configured and maintained online, enabling rapid response to changes in requirements.

[0021] 5. After use, it can significantly reduce homogenized code and improve the work efficiency of technical personnel.

[0022] Based on this application, the technical problem of cumbersome processing procedures for complex logic reducing data processing efficiency is solved. By providing a flexible slot configuration method, the inconsistency of code connection format is reduced, the occurrence of homogeneous code is reduced, and the work efficiency of technical personnel is improved. Attached Figure Description

[0023] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0024] Figure 1 An optional flowchart of the slot-based data processing method provided in Embodiment 1 of the present invention is shown;

[0025] Figure 2 A structural block diagram of a slot-based data processing device provided in Embodiment 2 of the present invention is shown; and

[0026] Figure 3 A block diagram of a computer device suitable for implementing a slot-based data processing method is shown in Embodiment 3 of the present invention. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this invention clearer, the invention 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 merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0028] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0029] Example 1

[0030] This embodiment provides a slot-based data processing method. Figure 1 A flowchart of the slot-based data processing method is shown, such as... Figure 1 As shown, the slot-based data processing method may include steps S101 to S103, wherein:

[0031] Step S101: Receive a data processing request from the client, wherein the data processing request includes business requirement fields and data to be processed;

[0032] The business requirement field is the programming language that the user expects to execute on the data to be processed. It can be "query", "statistics", "count", etc., or it can be a regular data processing condition. There are no restrictions here.

[0033] Step S102: Configure the target slot component according to the business requirement fields and the data to be processed;

[0034] Slot components are external openings on system functional modules that can be used for data processing. Different types of data to be processed will require different programs and workloads. By conducting a comprehensive analysis of the business requirement fields and the data to be processed, appropriate target slot components can be configured for the current data to be processed, thereby achieving efficient data processing.

[0035] Step S103: Invoke the target slot component to process the data to be processed, and return the data processing result to the client.

[0036] Each slot component has its own processing logic. After obtaining the configured target slot component, the data to be processed is processed through the target slot component to obtain the processing result, and the processing result is returned to the client.

[0037] This embodiment uses a configuration-based approach to assemble the overall program logic. Specifically, it provides various slot components to support flexible slot assembly, including front slots, rear slots, and a variety of customizable built-in slots. The modules to which the slots belong can be packaged and nested, supporting the reuse of complex modules.

[0038] Preferably, step S102 may include steps S1021 to S1023, wherein:

[0039] Step S1021: Determine the type combination of slot components through the business requirement field;

[0040] The default type of a slot component can be a front slot, a rear slot, or a built-in slot. The type of slot component contained in the target slot component is directly related to the composition of the business requirement fields.

[0041] Preferably, step S1021 may include steps A1 to A3, wherein:

[0042] Step A1: Determine the task attribute of the business requirement field;

[0043] Task attributes can be single task attributes or composite task attributes. Single task attributes are usually represented by a single field, such as "query," "statistics," or "count," and only one of these fields can appear in a single request. Composite task attributes are usually represented by a combination of multiple fields, such as "parsing," "integrating," and "ingesting" forming a complete composite task attribute's business requirement fields.

[0044] The business attributes of the business requirement fields are judged in order to configure the corresponding type of slot component to effectively process the data to be processed.

[0045] Step A2: If the business requirement field is a single task attribute, select any type from the preset types of the slot component to form a type combination of the slot component, and define the single task attribute as the function code of the slot component.

[0046] For business requirement fields with single task attributes, this type of field indicates that the data to be processed has no obvious timing requirements in the execution program. The slot component does not depend on the processing results of other slot components when processing the data. Therefore, configuring slot components of the same category to process the data to be processed corresponding to this type of field can achieve efficient processing of data with single business requirements.

[0047] Specifically, select one type from the preset types of slot components as the type combination of slot components. This type combination can be any of the front slot, rear slot, or internal slot. Define the single task attribute as the function code of this type of slot component. That is, the slot component of this type will use this function code as the execution program to process data.

[0048] Step A3: If the business requirement field is a composite task attribute, select multiple types from the preset types of the slot component to form a type combination of the slot component, and split the composite task attribute. Define the split result as the functional code of each slot component, where multiple types have an execution sequence.

[0049] For business requirement fields with composite task attributes, these fields indicate that the data to be processed has obvious timing requirements in the execution program. When the subsequent slot component processes the data, it must rely on the processing result of the previous slot component. Therefore, configuring multiple slot component types with sequential timing to process the data to be processed corresponding to this type of field can achieve efficient processing of data with composite business requirements.

[0050] In this embodiment, the combination of multiple slot components with a sequential order can be a front slot + a rear slot, or a front slot + an internal slot + a rear slot. In particular, the data processing of the above combinations must be performed strictly in sequence.

[0051] Specifically, from the preset types of slot components, a combination consisting of multiple types with an execution sequence is selected. The composite task attribute is then split into individual fields, and each field is defined as the functional code of the slot component for the same execution node according to the execution sequence. For example, if the business requirement fields of the composite task attribute are "Query" - "Input", the configured slot component type combination is a front slot + a back slot, with "Query" as the functional code for the front slot and "Input" as the functional code for the back slot. As another example, if the business requirement fields of the composite task attribute are "Parse" - "Integrate" - "Input", the configured slot component type combination is a front slot + an internal slot + a back slot, with "Parse" as the functional code for the front slot, "Integrate" as the functional code for the internal slot, and "Input" as the functional code for the back slot.

[0052] Step S1022: Determine the number of slot components in the type combination using the data to be processed;

[0053] The pending data can reflect the workload of data processing requests. By using the pending data to set the number of slot components in the type combination, the efficiency of data processing can be improved.

[0054] Preferably, step S1022 may include steps B1 to B3, wherein:

[0055] Step B1: Obtain a list of processors included in each slot component of the type combination;

[0056] Each slot component has a list of processors that point to a processor capable of efficiently processing the data to be processed.

[0057] Step B2: Determine the peak data volume for each slot component using the processor list;

[0058] The peak data volume can be defined as the maximum amount of data that the slot component can handle. Each processor has a preset data volume threshold, and the peak data volume for each slot component is determined by summing the data volume thresholds of all processors in the processor list.

[0059] Step B3: Divide the data to be processed based on the peak data volume to determine the number of slot components in the type combination.

[0060] For business requirement fields with a single task attribute, the peak data volume of the slot component is used as the grouping condition to divide the data to be processed into a whole, so as to configure a sufficient number of slot components to process the data efficiently.

[0061] For business requirement fields with composite task attributes, the data to be processed is first divided into groups based on the peak data volume of the slot component with the first execution order, thus configuring a sufficient number of first-order slot components. Secondly, the data volume of the slot component with the second execution order is used as the grouping condition to divide the processing results of the first-order slot component into groups, thus configuring a sufficient number of second-order slot components. The determination of the number of slot components in subsequent orders is based on the same principle as the second-order slot components, which is a further processing of the processing results of the previous slot component, and will not be repeated here.

[0062] It should be noted that for business requirement fields with composite task attributes, this embodiment does not configure all types of slot components simultaneously. Instead, it configures the corresponding type of slot component according to the execution node. That is, the configuration of the next slot component is only implemented after the previous slot component has been executed and the execution result of the previous slot component is used as a basis. This achieves the timeliness of slot configuration during data processing. At the same time, configuring the appropriate number of slot components according to actual needs can avoid the waste or shortage of system configuration resources.

[0063] Step S1023: Configure the slot components according to type and quantity to generate the target slot components.

[0064] After determining the required slot component type and quantity, the relevant information is acquired and integrated according to the above type and quantity to generate the target slot component.

[0065] Preferably, when the business requirement field is a single task attribute, step S103 may include steps S1031 to S1032, wherein:

[0066] Step S1031: Obtain all processors of the target slot assembly;

[0067] Step S1032: The processors are called in parallel to process the data to be processed, and the data processing results of each processor are returned to the client simultaneously.

[0068] Preferably, when the business requirement field is a composite task attribute, step S103 may further include steps S1031' to S1035', wherein:

[0069] Step S1031' sends the data to be processed to the first slot component, calls all processors of the first slot component in parallel, processes the data to be processed according to the first function code, and obtains the first processing result;

[0070] Step S1032' sends the first processing result to the second slot component, and calls all processors of the second slot component in parallel to process the first processing result according to the second function code to obtain the second processing result;

[0071] Step S1033' Determine whether the target slot component has been traversed completely;

[0072] If step S1034' is correct, return the second processing result to the client;

[0073] If not, in step S1035' the second processing result is processed based on the next slot component adjacent to the second slot component, and the processing result is returned to the client.

[0074] Taking a front slot + internal slot + rear slot as an example, when the system receives a data processing request from a client, it first reads the complete configuration, starts loading the main processor, and determines whether the main processor is a module library. If it is, it loads the entire module library for processing; otherwise, it loads the corresponding processor. After the corresponding processor is loaded, the front slot is processed first; then the parameters of the current processor are processed, and the processing method (function code) of this processor is executed. Some processors will call the internal slot to process subtasks; finally, the rear slot is processed. After the overall processing is completed, if there is a post-processor, the post-processor result is returned; otherwise, the current processing result is returned. If the processor has an assignment setting, the result needs to be assigned to the attribute for use by other subsequent processors.

[0075] It should be noted that there is a fundamental difference in the calling order of slot components between business requirement fields that are single-task attributes and composite-task attributes. The former has no execution order, so slot components of the same type combination can be called in parallel simultaneously; the latter has an execution order, and slot components of the same type must be called in parallel strictly according to the execution order, without skipping steps. This embodiment achieves targeted data processing by using different execution procedures for different types of business requirements, avoiding the occurrence of homogenized code and improving data processing efficiency.

[0076] Compared with the prior art, the present invention has at least the following advantages:

[0077] 1. The module provides multiple slots to support flexible module assembly, including front slots, rear slots, and a variety of customizable built-in slots, enabling processor scheduling methods such as load embedding and condition control.

[0078] 2. Modules can be wrapped and nested, supporting the reuse of complex modules.

[0079] 3. The overall program logic is assembled using a configuration method, which makes it less likely for hidden bugs to appear.

[0080] 4. It can be configured and maintained online, enabling rapid response to changes in requirements.

[0081] 5. After use, it can significantly reduce homogenized code and improve the work efficiency of technical personnel.

[0082] Based on this application, the technical problem of cumbersome processing procedures for complex logic reducing data processing efficiency is solved. By providing a flexible slot configuration method, the inconsistency of code connection format is reduced, the occurrence of homogeneous code is reduced, and the work efficiency of technical personnel is improved.

[0083] Example 2

[0084] Embodiment 2 of the present invention also provides a slot-based data processing device, which corresponds to the slot-based data processing method provided in Embodiment 1 above. The corresponding technical features and effects are not detailed in this embodiment; relevant aspects can be referred to in Embodiment 1 above. Specifically, Figure 2 A block diagram of the slot-based data processing device is shown. Figure 2 As shown, the slot-based data processing device 200 includes a receiving module 201, a configuration module 202, and a data processing module 203, wherein:

[0085] The receiving module 201 is used to receive data processing requests from clients, wherein the data processing requests include business requirement fields and data to be processed;

[0086] Configuration module 202, connected to receiving module 201, is used to configure target slot components according to business requirement fields and data to be processed;

[0087] The data processing module 203, connected to the configuration module 202, is used to call the target slot component to process the data to be processed and return the data processing result to the client.

[0088] Optionally, the configuration module includes: a first determining unit, used to determine the type combination of slot components through business requirement fields; a second determining unit, used to determine the number of slot components in the type combination through data to be processed; and a generating unit, used to configure the slot components according to type and quantity to generate target slot components.

[0089] Optionally, the first determining unit is specifically used to: determine the task attribute of the business requirement field; if the business requirement field is a single task attribute, then select one type from the preset types of the slot component to form a type combination of the slot component, and define the single task attribute as the function code of the slot component; if the business requirement field is a composite task attribute, then select multiple types from the preset types of the slot component to form a type combination of the slot component, and split the composite task attribute, defining the split result as the function code of each slot component, wherein the multiple types have an execution sequence.

[0090] Optionally, the second determining unit is specifically used to: obtain a list of processors included in each slot component in the type combination; determine the peak data volume of each slot component through the processor list; and divide the data to be processed based on the peak data volume to determine the number of slot components in the type combination.

[0091] Optionally, when the business requirement field is a single task attribute, the data processing module is used to: obtain all processors of the target slot component; call the processors in parallel to process the data to be processed, and return the data processing results of each processor to the client simultaneously.

[0092] Optionally, when the business requirement field is a composite task attribute, the data processing module is further configured to: send the data to be processed to the first slot component, call all processors of the first slot component in parallel, process the data to be processed according to the first function code, and obtain a first processing result; send the first processing result to the second slot component, call all processors of the second slot component in parallel, process the first processing result according to the second function code, and obtain a second processing result; determine whether the target slot component has been traversed; if so, return the second processing result to the client; if not, process the second processing result based on the next slot component adjacent to the second slot component, and return the processing result to the client.

[0093] Example 3

[0094] Figure 3 A block diagram of a computer device suitable for implementing a slot-based data processing method, according to Embodiment 3 of the present invention, is shown. In this embodiment, the computer device 300 may be a smartphone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server, or cabinet server (including standalone servers or server clusters composed of multiple servers), etc., that executes a program. Figure 3 As shown, the computer device 300 in this embodiment includes, but is not limited to, a memory 301, a processor 302, and a network interface 303 that are communicatively connected to each other via a system bus. It should be noted that... Figure 3 Only a computer device 300 with components 301-303 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0095] In this embodiment, the memory 303 includes at least one type of computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 301 may be an internal storage unit of the computer device 300, such as the hard disk or memory of the computer device 300. In other embodiments, the memory 301 may also be an external storage device of the computer device 300, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 300. Of course, the memory 301 may include both the internal storage unit and the external storage device of the computer device 300. In this embodiment, the memory 301 is typically used to store the operating system and various application software installed on the computer device 300, such as program code for slot-based data processing methods.

[0096] In some embodiments, processor 302 may be a central processing unit (CPU), controller, microcontroller, microprocessor, or other data processing chip. This processor 302 is typically used to control the overall operation of computer device 300. For example, it performs control and processing related to data interaction or communication with computer device 300. In this embodiment, processor 302 is used to execute program code for the steps of a slot-based data processing method stored in memory 301.

[0097] In this embodiment, the slot-based data processing method stored in memory 301 can be further divided into one or more program modules and executed by one or more processors (processor 302 in this embodiment) to complete the present invention.

[0098] Network interface 303 may include a wireless network interface or a wired network interface, which is typically used to establish a communication link between computer device 300 and other computer devices. For example, network interface 303 is used to connect computer device 300 to an external terminal via a network, establishing a data transmission channel and communication link between computer device 300 and the external terminal. The network may be an intranet, the Internet, Global System for Mobile Communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, or other wireless or wired networks.

[0099] Example 4

[0100] This embodiment also provides a computer-readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., which stores a computer program. When the computer program is executed by a processor, it implements the steps of a slot-based data processing method.

[0101] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.

[0102] It should be noted that the sequence numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0104] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A slot-based data processing method, characterized in that, The method includes: Receive a data processing request from a client, wherein the data processing request includes a business requirement field and data to be processed; The type combination of slot components is determined by the aforementioned business requirement fields; The number of slot components in the type combination is determined by the data to be processed; Configure the slot components according to their type and quantity to generate target slot components; The target slot component is invoked to process the data to be processed, and the data processing result is returned to the client; The step of determining the type combination of slot components through the business requirement field includes: Determine the task attribute of the business requirement field; If the business requirement field is a single task attribute, then any type can be selected from the preset types of the slot component to form the type combination of the slot component, and the single task attribute is defined as the function code of the slot component; If the business requirement field is a composite task attribute, then multiple types are randomly selected from the preset types of the slot component to form a type combination of the slot component, and the composite task attribute is split, and the split result is defined as the functional code of each slot component, wherein the multiple types have an execution sequence; Specifically, for the business requirement field of the composite task attribute, the slot components of each type are not configured simultaneously. Instead, the corresponding type of slot component is configured according to the execution node. That is, the configuration of the next slot component is only implemented after the previous slot component has been executed and the execution result of the previous slot component is used as the basis.

2. The method according to claim 1, characterized in that, Determining the number of slot components in the type combination using the data to be processed includes: Obtain a list of processors included in each slot component of the type combination; The peak data volume for each slot component is determined using the processor list; The data to be processed is divided by the peak data volume to determine the number of slot components in the type combination.

3. The method according to claim 1, characterized in that, When the business requirement field is a single task attribute, the step of calling the target slot component to process the data to be processed and returning the data processing result to the client includes: Obtain all processors of the target slot assembly; The processors are invoked in parallel to process the data to be processed, and the data processing results of each processor are returned to the client simultaneously.

4. The method according to claim 1, characterized in that, When the business requirement field is a composite task attribute, the step of calling the target slot component to process the data to be processed and returning the data processing result to the client includes: The data to be processed is sent to the first slot component, and all processors of the first slot component are invoked in parallel to process the data to be processed according to the first function code to obtain the first processing result; The first processing result is sent to the second slot component, and all processors of the second slot component are invoked in parallel to process the first processing result according to the second function code to obtain the second processing result; Determine whether the target slot component has been traversed completely; If so, the second processing result is returned to the client; If not, the second processing result is processed based on the next slot component adjacent to the second slot component, and the processing result is returned to the client.

5. A slot-based data processing device, characterized in that, The device includes: A receiving module is used to receive data processing requests from clients, wherein the data processing requests include business requirement fields and data to be processed; The configuration module is used to configure the target slot component according to the business requirement field and the data to be processed; The data processing module is used to call the target slot component to process the data to be processed and return the data processing result to the client; The configuration module includes: The first determining unit is used to determine the type combination of slot components through the business requirement field; The second determining unit is used to determine the number of slot components in the type combination based on the data to be processed; A generation unit is configured to generate target slot components by configuring the slot components according to their type and quantity. Specifically, the first determining unit is used to: determine the task attribute of the business requirement field; if the business requirement field is a single task attribute, select one type from the preset types of the slot component to form a type combination of the slot component, and define the single task attribute as the function code of the slot component; if the business requirement field is a composite task attribute, select multiple types from the preset types of the slot component to form a type combination of the slot component, split the composite task attribute, and define the split result as the function code of each slot component, wherein the multiple types have an execution sequence; Specifically, for the business requirement field of the composite task attribute, the slot components of each type are not configured simultaneously. Instead, the corresponding type of slot component is configured according to the execution node. That is, the configuration of the next slot component is only implemented after the previous slot component has been executed and the execution result of the previous slot component is used as the basis.

6. A computer device, the computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the method according to any one of claims 1 to 4.

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