Task instance processing method and device, electronic equipment and storage medium

By introducing main control terminals and microservice units into the data integration platform system to analyze and process data relationships in task instances, the problem of low processing efficiency in the existing technology is solved, and more efficient task instance processing and optimized processing are achieved. result.

CN119336467APending Publication Date: 2025-01-21SHENZHEN POWER SUPPLY BUREAU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411451020.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

In the prior art, when the server processes the data of the user terminal, the user terminal needs to send additional related data for processing to consider the coupling relationship between the power-related data and economic-related data, resulting in inefficient processing.

Method used

By introducing the main control terminal and multiple microservices units in the data integration platform system, the user terminal sends a task example to the main control terminal, the data relationship in the main control terminal analysis task instance, the micro service unit quickly obtains relevant data according to the relationship to process processing processing for processing. , Improve the processing efficiency of task instances.

Benefits of technology

By analyzing the data relationship in the task instance of the main control terminal, the micro -service unit can quickly obtain relevant data for processing, significantly improved the processing efficiency of the task instance, and optimized the credibility and accuracy of the processing results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336467A_ABST
    Figure CN119336467A_ABST
Patent Text Reader

Abstract

The invention discloses a task instance processing method and device, electronic equipment and a storage medium, the method is applied to a data integration platform system, the method comprises the steps that a user terminal sends a plurality of task instances to a master control terminal, and the plurality of task instances correspond to a plurality of task types; the master control terminal receives a plurality of task instances and obtains a first relationship between first data in the task instances of different task types, and the first data is power related data or economic related data; a plurality of micro-service units respectively obtain task instances corresponding to self service types and first relationships corresponding to the task instances from the main control terminal, and obtain other first data having a first relationship with the first data of the task instances; and the plurality of micro-service units process the first data of the task instance and other first data. By means of the method, the problem that the task instance processing efficiency is low is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power-related data processing, and in particular to a task instance processing method, device, electronic device and storage medium. Background Art

[0002] In the prior art, data services provided to user terminals such as power stations, energy storage stations, and household energy relationship systems are usually processed one-to-one between the server and the user terminal. The service performs calculations and other processing based on the power data in the task instance provided by the user terminal to obtain the corresponding calculation results.

[0003] There is a relationship of mutual influence and mutual promotion between electricity demand and economic growth. This coupling relationship means that economic growth will lead to an increase in electricity demand, and an increase in electricity supply will also promote economic development. When the server processes the data of the user terminal, the user terminal needs to send additional related data for processing so that the coupling relationship between electricity-related data and economic-related data can be considered in the process of processing data. This requires the user terminal to perform too many additional calculations, resulting in the problem of low efficiency in processing various task instances generated by the user terminal. Summary of the invention

[0004] In response to the above problems, the example of the present application provides a method, device, electronic device and storage medium for processing a task instance. The solution of the present application is conducive to solving the problem of inefficiency in processing task instances.

[0005] In the first aspect, an embodiment of the present application provides a method for processing a task instance, which is applied to a data integration platform system. The data integration platform system includes a main control terminal, multiple microservice units and at least one user terminal. The method includes: at least one user terminal sends multiple task instances to the main control terminal, and the multiple task instances correspond to multiple task types; the main control terminal receives multiple task instances, and obtains a first relationship between first data in task instances of different task types, the first relationship characterizing the existence of a positive correlation or a negative correlation between two corresponding first data, and the first data is electricity-related data or economic-related data; multiple microservice units respectively obtain the task instances corresponding to their own service types and the first relationships corresponding to the task instances from the main control terminal, and obtain other first data that have a first relationship with the first data of the task instances; multiple microservice units process the first data of the task instances and other first data.

[0006] It can be seen that in an embodiment of the present application, the first data in multiple task instances are obtained through the main control terminal, and the first relationship between the first data in the task instances is analyzed, so that when the microservice unit processes each task instance, it can quickly obtain the relevant first data with the first relationship according to the first relationship, thereby processing the task instance according to the obtained first data, thereby improving the processing efficiency of the task instance.

[0007] In combination with the first aspect, in a possible embodiment, obtaining the first relationship between the first data in task instances of different task types includes: the main control terminal calculates the correlation coefficient between two first data in two task instances of different task types of multiple first data; if the correlation coefficient is greater than a first preset threshold, the main control terminal determines that there is a positive correlation between the two first data corresponding to the correlation coefficient; if the correlation coefficient is less than a second preset threshold, the main control terminal determines that there is a negative correlation between the two first data corresponding to the correlation coefficient, and the first preset threshold is greater than the second preset threshold.

[0008] It can be seen that in the embodiment of the present application, by calculating the correlation coefficient between two first data, it is possible to determine whether there is a first relationship between the two first data, so that when the microservice unit processes each task instance, it can quickly obtain the relevant first data with the first relationship according to the first relationship, thereby processing the task instance according to the acquired first data, thereby improving the processing efficiency of the task instance.

[0009] In combination with the first aspect, in a possible embodiment, multiple microservice units respectively correspond to a service type, and the service type includes a computing service, a query service, or a storage service. The multiple microservice units respectively obtain task instances corresponding to their own service types and the first relationship corresponding to the task instances from the main control terminal, including: the target microservice unit obtains the task types of multiple task instances from the main control terminal, and the target microservice unit is one of the multiple microservice units; the target microservice unit obtains the physical distance between the user terminal and the target microservice unit corresponding to the multiple target task instances from the main control terminal, and the target task instance is a task instance in the multiple task instances corresponding to the task type and the service type of the target microservice unit; the target microservice unit obtains the task instance with the closest physical distance and the first relationship corresponding to the task instance with the closest physical distance from the main control terminal.

[0010] It can be seen that in the embodiment of the present application, multiple microservice units actively obtain task instances from the main control terminal for processing, and the main control terminal does not need to allocate task instances, thereby improving the processing efficiency of task instances. The microservice unit obtains the nearest task instance based on the physical distance, thereby improving the transmission efficiency in the process of obtaining relevant data and transmitting the processing results of the task instance.

[0011] In combination with the first aspect, in a possible embodiment, the task type of the task instance is a computing task, and multiple microservice units process the first data and other first data of the task instance, including: the microservice unit determines the data type of the processing result required by the task instance; if the data type is power-related data, the microservice unit calculates the first data of the task instance and the power-related data in the other first data to obtain a first calculation result; the microservice unit corrects the first calculation result according to the economic-related data in the other first data to obtain a second calculation result, and determines the second calculation result as the processing result of the task instance processed by the microservice unit; if the data type is economic-related data, the microservice unit calculates the processing result of the task instance processed by the microservice unit based on the first data of the task instance and the other first data.

[0012] It can be seen that in the embodiment of the present application, the microservice unit obtains the processing result of the task instance by processing the first data and other first data of the task instance, thereby improving the credibility and accuracy of the processing result and optimizing the processing result of the task instance.

[0013] In combination with the first aspect, in a possible embodiment, before the microservice unit corrects the first calculation result according to the economic-related data in the first data to obtain the second calculation result, the method also includes: if the other first data does not include electricity-related data, the microservice unit sends a data supplement request to the main control terminal; the main control terminal receives the data supplement request, and continuously obtains the electricity-related data indicated by the data supplement request, the electricity-related data indicated by the data supplement request is the electricity-related data that has a first relationship with the first data in the task instance processed by the corresponding microservice unit; when the main control terminal obtains the electricity-related data indicated by the data supplement request, it sends the electricity-related data indicated by the data supplement request to the microservice unit corresponding to the data supplement request.

[0014] It can be seen that in an embodiment of the present application, when the microservice unit is unable to obtain all required first data when processing a computing type task instance, the microservice unit box master control terminal sends a data supplement request, so that the master control terminal sends the data to the corresponding microservice unit in a timely manner when the data indicated by the data supplement request is found, thereby further improving the processing efficiency of the microservice unit.

[0015] In combination with the first aspect, in a possible embodiment, after multiple microservice units process the first data and other first data of the task instance, the method also includes: the multiple microservice units send the processing results obtained by processing the first data and other first data of the task instance to the main control terminal; the main control terminal receives multiple processed task instances sent by the multiple microservice units, and obtains multiple second data in the multiple processed task instances, the second data being electricity-related data or economic-related data different from the first data; the main control terminal obtains and determines the second data as new first data, and obtains the second relationship between the first data in task instances of different task types, the second relationship being a positive correlation or negative correlation between the new first data and other first data; the main control terminal determines the second relationship as a new first relationship.

[0016] It can be seen that in an embodiment of the present application, the second data is obtained from the task instance processed by the microservice unit through the main control terminal, the second data is determined as the new first data, and then the first relationship between the new first data and other first data is obtained, so that the subsequent microservice unit can call more first data through the new first relationship when processing other task instances, thereby further improving the processing efficiency of the task instance.

[0017] In combination with the first aspect, in a possible embodiment, multiple microservice units correspond to a technology stack type respectively, and the method also includes: the main control terminal receives multiple task instance processing volumes sent by multiple microservice units, and the task instance processing volume is the number of task instances processed by the corresponding microservice unit within a preset time period; the main control terminal calculates the processing load of microservice units of different technology stack types in each service type according to the task instance processing volumes sent by multiple microservices; if the processing load is less than the first preset load, the main control terminal determines whether the microservice unit with a processing load less than the first preset load is a dedicated microservice unit, and the dedicated service unit is only used to process the task instance corresponding to the target user terminal, and the target user terminal is one of at least one user terminal; if the microservice unit with a processing load greater than the first preset load is not a dedicated microservice unit, the main control terminal adjusts the technology stack type of at least one microservice unit with a processing load less than the first preset load to the technology stack type corresponding to the microservice unit with a processing load greater than the second preset load, and the first preset load is less than the second preset load.

[0018] It can be seen that in the embodiment of the present application, the main control terminal calculates the computational load of task instances of different technology stacks by obtaining the task instance processing volume sent by multiple microservice units, and then adjusts the number of microservice units of different technology stack types under the same service type according to the computational load, thereby balancing the computational load of the microservice units under each technology stack type, and further improving the processing efficiency of the task instances.

[0019] In a second aspect, an embodiment of the present application further provides a task instance processing device, the device is used to execute a task instance processing method, the device belongs to a data integration platform system, the data integration platform system includes a main control terminal, multiple microservice units and at least one user terminal, and the device includes:

[0020] Sending unit: used to send multiple task instances to the main control terminal, and multiple task instances correspond to multiple task types;

[0021] An acquisition unit: used for receiving a plurality of task instances, and acquiring a first relationship between first data in task instances of different task types, wherein the first relationship indicates that there is a positive correlation or a negative correlation between two corresponding first data, and the first data is power-related data or economic-related data;

[0022] Acquire from the main control terminal the task instance corresponding to the service type and the first relationship corresponding to the task instance, and acquire other first data having a first relationship with the first data of the task instance;

[0023] Processing unit: used for processing the first data and other first data of the task instance.

[0024] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and one or more instructions are suitable for being loaded by the processor and executing part or all of the method of the first aspect.

[0025] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the method of the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product. When a computer reads and executes the computer program product, the computer executes the method in any possible design of the first aspect above.

[0027] It can be understood that the beneficial effects of the embodiments of the second to fifth aspects can refer to the beneficial effects of the method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0029] Figure 1 A schematic diagram of an application scenario of a method for processing a task instance provided in an embodiment of the present application;

[0030] Figure 2 A flowchart of a method for processing a task instance provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of the classification of service types of a microservice unit provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a microservice unit configuration under the same service type provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of the structure of a task instance processing device provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0036] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0037] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0038] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0039] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of a method for processing a task instance provided in an embodiment of the present application, the application scenario 100, includes a master control terminal 101, multiple microservice units 102 and multiple user terminals 103. The master control terminal 101 here is connected to multiple user terminals 103, and the user terminal 103 is specifically a terminal device deployed in a power station, energy storage equipment, a home energy management system, etc. The user terminal 103 generates a specific task instance according to the local operation requirements, and sends the task instance to the master control terminal 101, and realizes data processing, calculation, storage and query services through the master control terminal 101 and the microservice unit 102. After the master control terminal 101 obtains the task instance sent by the user terminal 103, it obtains the first data in the task instance, and then processes the task instance based on different first data through multiple microservice units 102. The microservice unit 102 here can be a real electronic device or a virtual computer in the master control terminal 101, which can independently realize data processing, calculation, storage and other functions.

[0040] In an embodiment of the present application, the user terminal 103 sends multiple task instances to the master control terminal 101, and the multiple task instances correspond to multiple task types, where the task types specifically include computing tasks, storage tasks, and query tasks. The computing task specifically requires the master control terminal 101 to calculate the target data. The storage task requires the master control terminal 101 to store the data in the task instance. The query task requires the master control terminal 101 to send the data required by the task instance to the corresponding user terminal 103. Each user terminal 103 will send one or more task instances of the same or different types to the master control terminal 101.

[0041] The main control terminal 101 receives multiple task instances and obtains a first relationship between first data in task instances of different task types, wherein the first relationship indicates that there is a positive correlation or a negative correlation between two corresponding first data, and the first data is power-related data or economic-related data. After receiving multiple task instances, the main control terminal 101 analyzes whether there is a first relationship between the first data in different task instances by means of data analysis or the like.

[0042] The multiple microservice units 102 respectively obtain the task instances corresponding to their own service types and the first relationships corresponding to the task instances from the main control terminal, and obtain other first data having a first relationship with the first data of the task instances.

[0043] The plurality of microservice units 102 process the first data and other first data of the task instance. After obtaining the task instance from the main control terminal 101, the microservice unit 102 processes the task instance according to the requirements of the task instance to obtain a corresponding processing result.

[0044] It can be seen that in an embodiment of the present application, the first data in multiple task instances are obtained through the main control terminal, and the first relationship between the first data in the task instances is analyzed, so that when the microservice unit processes each task instance, it can quickly obtain the relevant first data with the first relationship according to the first relationship, thereby processing the task instance according to the obtained first data, thereby improving the processing efficiency of the task instance.

[0045] See also Figure 2 , Figure 2 A flowchart of a method for processing a task instance provided in an embodiment of the present application can be based on Figure 1 The system implementation shown is Figure 2 As shown, steps S201-S204 are included:

[0046] S201: At least one user terminal sends a plurality of task instances to a master control terminal, where the plurality of task instances correspond to a plurality of task types.

[0047] Specifically, the task instance here is generated by the user terminal through the local operation logic, which includes multiple different types of task instances, including computing tasks, storage tasks, query tasks, etc. Task instances of different task types require the master terminal and microservice units to provide different services. Each user terminal may generate one or more task instances, and the one or more task instances generated by each user terminal also include task instances of one or more task types.

[0048] S202: The main control terminal receives multiple task instances, and obtains a first relationship between first data in task instances of different task types, where the first relationship represents a positive correlation or a negative correlation between two corresponding first data, and the first data is electricity-related data or economic-related data.

[0049] Specifically, in the embodiment of the present application, the master control terminal obtains all the first data in the multiple task instances and analyzes whether there is a first relationship between the first data in different task instances. When it is determined that there is a first relationship between two first data, the first relationship is recorded. In addition, a task instance may include multiple first data, and the first data may also have a first relationship between them.

[0050] The first data here includes electricity-related data and economic-related data. The electricity-related data includes power generation, power consumption, grid operation status data, load data, fault information data, etc. The economic-related data here includes market data reflecting market prices, supply and demand conditions and market size, gross domestic product data, industrial output value data, etc.

[0051] Furthermore, before obtaining the first relationship between the first data in task instances of different task types, the method also includes: the main control terminal also performs data analysis on multiple task instances to obtain multiple third data, and the third data is electricity-related data or economic-related data obtained by calculation or analysis based on the first data in the target task instance; and the third data is determined as the new first data.

[0052] In a possible embodiment, obtaining the first relationship between the first data in task instances of different task types includes: the main control terminal calculates the correlation coefficient between two first data in two task instances of different task types of multiple first data; if the correlation coefficient is greater than a first preset threshold, the main control terminal determines that there is a positive correlation between the two first data corresponding to the correlation coefficient; if the correlation coefficient is less than a second preset threshold, the main control terminal determines that there is a negative correlation between the two first data corresponding to the correlation coefficient, and the first preset threshold is greater than the second preset threshold.

[0053] Specifically, in the embodiment of the present application, whether there is a first relationship between two first data is determined by calculating a correlation coefficient between two first data in two task instances of different task types of multiple first data.

[0054] The main control terminal can specifically determine whether the corresponding two first data have a first relationship by calculating the correlation coefficient between the two first data. The correlation coefficient here is specifically the Pearson correlation coefficient (PCC). If the PPC between the two first data is greater than the first preset threshold (for example, 0.8), the main control terminal determines that there is a first relationship of positive correlation between the two first data. If the PPC between the two first data is less than the second preset threshold (for example, 0.2), the main control terminal determines that there is a first relationship of negative correlation between the two first data. If the PPC between the first data is between the first preset threshold and the second preset threshold, it is determined that there is no relationship between the two first data.

[0055] It can be seen that in the embodiment of the present application, by calculating the correlation coefficient between two first data, it is possible to determine whether there is a first relationship between the two first data, so that when the microservice unit processes each task instance, it can quickly obtain the relevant first data with the first relationship according to the first relationship, thereby processing the task instance according to the acquired first data, thereby improving the processing efficiency of the task instance.

[0056] Furthermore, before the multiple microservice units respectively obtain the task instances corresponding to their own service types and the first relationships corresponding to the task instances from the master control terminal, the method further includes: the master control terminal homomorphically encrypts the first data in the task instance whose task type is a computing task; the master control terminal performs fuzzy data processing on the first data in the task instance whose task type is a query task and a storage task. The fuzzy data processing here is specifically processed by introducing random noise data through the Laplace mechanism and / or the Gaussian mechanism.

[0057] S203: The multiple microservice units respectively obtain the task instances corresponding to their own service types and the first relationships corresponding to the task instances from the main control terminal, and obtain other first data having a first relationship with the first data of the task instances.

[0058] Specifically, each microservice unit uses a service discovery mechanism (such as Eureka, Consul and other technologies) to obtain the task instance and the first relationship corresponding to the task instance from the master control terminal. The first relationship corresponding to the task instance here is used to obtain other first data that has a first relationship with the first data of the task instance, and the other first data here is the first data that may be used by the microservice unit to process the task instance.

[0059] In a possible embodiment, multiple microservice units respectively correspond to a service type, and the service type includes a computing service, a query service, or a storage service. The multiple microservice units respectively obtain task instances corresponding to their own service types and the first relationship corresponding to the task instances from the main control terminal, including: the target microservice unit obtains the task types of multiple task instances from the main control terminal, and the target microservice unit is one of the multiple microservice units; the target microservice unit obtains the physical distance between the user terminal corresponding to the multiple target task instances and the target microservice unit from the main control terminal, and the target task instance is a task instance in which the task type in the multiple task instances corresponds to the service type of the target microservice unit; the target microservice unit obtains the task instance with the closest physical distance and the first relationship corresponding to the task instance with the closest physical distance from the main control terminal.

[0060] Specifically, in the embodiments of the present application, the microservice units correspond to a service type in computing service, query service or storage service, that is, in the data integration platform system, there are three types of microservice units: computing service, query service and storage service. Among them, the microservice unit of computing service type is used to process computing tasks, including processing task instances whose task type is computing task, and computing tasks such as calculating the correlation coefficient between two first data; the microservice unit of query service type is used to process the task of querying target data from local storage, storage of the main control terminal and storage of other microservice units; the microservice unit of storage service type is used to store data.

[0061] For example, see Figure 3 , Figure 3 A schematic diagram of the service type classification of a microservice unit provided in an embodiment of the present application. There are three microservice units connected to the main control terminal under the three types of computing service, query service and storage service. This is only an example. In the actual operation scenario, more or fewer microservice units may be configured under each type.

[0062] Here, a target microservice unit is used as an example for explanation. The target microservice unit is one of multiple microservice units. After the target microservice unit processes the previous task instance, the target microservice unit obtains the task types of multiple task instances from the main control terminal. The multiple task instances here are the task instances to be processed currently received by the main control terminal. The target microservice unit obtains the physical distance between the user terminal and the target microservice unit corresponding to the multiple target task instances from the main control terminal. The target task instance is the task instance corresponding to the task type in the multiple task instances and the service type of the target microservice unit. That is to say, if the service type of the target microservice unit is a computing type, the physical distance between the user terminal and the target microservice unit corresponding to the task instance with the task type of the computing task is obtained. The target microservice unit obtains the first relationship corresponding to the task instance with the closest physical distance and the task instance with the closest physical distance from the main control terminal, and then processes the corresponding task instance.

[0063] It can be seen that in the embodiment of the present application, multiple microservice units actively obtain task instances from the main control terminal for processing, and the main control terminal does not need to allocate task instances, thereby improving the processing efficiency of task instances. The microservice unit obtains the nearest task instance based on the physical distance, thereby improving the transmission efficiency in the process of obtaining relevant data and transmitting the processing results of the task instance.

[0064] S204: The multiple microservice units process the first data and other first data of the task instance.

[0065] Specifically, after obtaining the task instance, the microservice unit processes the first data and other first data of the task instance to implement services such as computing target data, storing data, or querying data required by the task instance.

[0066] For a task instance belonging to a storage task, the microservice unit processes the first data and other first data of the task instance, specifically storing the first data and other first data of the task instance locally.

[0067] For a task instance belonging to a query task, the task instance processes the query data according to the first data and other first data, and sends the query data to a user terminal corresponding to the task instance.

[0068] In a possible embodiment, the task type of the task instance is a computing task, and multiple microservice units process the first data and other first data of the task instance, including: the microservice unit determines the data type of the processing result required by the task instance; if the data type is power-related data, the microservice unit calculates the first data of the task instance and the power-related data in the other first data to obtain a first calculation result; the microservice unit corrects the first calculation result according to the economic-related data in the other first data to obtain a second calculation result, and determines the second calculation result as the processing result of the task instance processed by the microservice unit; if the data type is economic-related data, the microservice unit calculates the processing result of the task instance processed by the microservice unit according to the first data of the task instance and the other first data.

[0069] In the embodiment of the present application, the task type of the task instance is a computing task, and the task instance requires the microservice unit to calculate the target data through the first data in the task instance. For example, if the user terminal corresponding to the task instance is used to manage the power station, the first data in the task instance includes the operating status data of the power station, and the task actually requires the calculation of the planned power generation in the next stage.

[0070] There are also differences in the way the microservice unit handles the data type of the target data required by the task instance. If the data type is electricity-related data, such as the planned power generation in the above example, the microservice unit can directly calculate the first calculation result through the first data provided in the task instance. The first calculation result here is calculated based on the data provided by the task instance and is not applied to other first data. Therefore, the microservice unit corrects the first calculation result according to the economic-related data in other first data to obtain the second calculation result, and obtains the corrected second calculation result. Taking the above-mentioned calculation of the planned power generation for the next stage as an example, after the planned power generation is calculated based on the operating status data of the power plant in the task instance, the microservice unit obtains the data such as the power price and power demand that have a first relationship with the operating status data and the planned power generation, and corrects the planned power generation based on the maximum benefit to obtain the corrected polarized power generation, thereby optimizing the processing result of the task instance.

[0071] If the data type is economic-related data, the microservice unit calculates a processing result of the task instance processed by the microservice unit according to the first data of the task instance and other first data.

[0072] It can be seen that in the embodiment of the present application, the microservice unit obtains the processing result of the task instance by processing the first data and other first data of the task instance, thereby improving the credibility and accuracy of the processing result and optimizing the processing result of the task instance.

[0073] In a possible embodiment, before the microservice unit corrects the first calculation result according to the economic-related data in the first data to obtain the second calculation result, the method also includes: if the other first data does not include electricity-related data, the microservice unit sends a data supplement request to the main control terminal; the main control terminal receives the data supplement request, and continuously obtains the electricity-related data indicated by the data supplement request, the electricity-related data indicated by the data supplement request is the electricity-related data that has a first relationship with the first data in the task instance processed by the corresponding microservice unit; when the main control terminal obtains the electricity-related data indicated by the data supplement request, it sends the electricity-related data indicated by the data supplement request to the microservice unit corresponding to the data supplement request.

[0074] Specifically, in the embodiment of the present application, the target data of the task instance needs to be calculated by the first data in the task instance and at least one power-related data having a first relationship with the first data. If the other first data does not include power-related data, it proves that the power-related data here also needs to be calculated by the corresponding user terminal by sending the task instance of the storage task to the main control terminal, or other microservice units processing the task instance of the calculation type.

[0075] At this time, the microservice unit sends a data supplement request to the main control terminal, so that when the main control terminal determines that the power-related data indicated by the data supplement request has been received, the power-related data will be sent to the microservice unit that sent the data supplement request in a timely manner, so that the microservice unit that sent the data supplement request can continue to process the task instance as soon as possible.

[0076] Furthermore, the main control terminal also sends a data supplement request to the microservice unit corresponding to the power-related data indicated by the data supplement request, so that when the microservice unit corresponding to the power-related data indicated by the data supplement request obtains the corresponding power-related data, the obtained power-related data is directly sent to the microservice unit that sends the data supplement request, thereby enabling the microservice unit that sends the data supplement request to calculate the target data as soon as possible.

[0077] It can be seen that in an embodiment of the present application, when the microservice unit is unable to obtain all required first data when processing a computing type task instance, the microservice unit box master control terminal sends a data supplement request, so that the master control terminal sends the data to the corresponding microservice unit in a timely manner when the data indicated by the data supplement request is found, thereby further improving the processing efficiency of the microservice unit.

[0078] In a possible embodiment, after multiple microservice units process the first data and other first data of the task instance, the method also includes: the multiple microservice units send the processing results obtained by processing the first data and other first data of the task instance to the main control terminal; the main control terminal receives multiple processed task instances sent by the multiple microservice units, and obtains multiple second data in the multiple processed task instances, the second data being electricity-related data or economic-related data different from the first data; the main control terminal obtains and determines the second data as new first data, and obtains the second relationship between the first data in task instances of different task types, the second relationship being a positive correlation or negative correlation between the new first data and other first data; the main control terminal determines the second relationship as a new first relationship.

[0079] After the microservice unit processes the first data and other first data types of the task instance, the microservice unit obtains the processed task instance, and the processed task instance includes the processing result of the task instance. When the task instance is a task type of a computing task, the corresponding processing result is the target data, and the target data here may also be power-related data and economic-related data.

[0080] Therefore, multiple microservice units process the first data and other first data of the task instance to obtain the processed task instance and send it to the main control terminal. The main control terminal obtains multiple second data from the multiple processed task instances. The second data is electricity-related data or economic-related data different from the first data, that is, the processing result in the calculation type task instance. The main control terminal determines the multiple second data as new first data, and then obtains the second relationship between these new first data and the existing first data. For the specific method for determining the second relationship, please refer to the relevant description of determining the first relationship mentioned above, which will not be repeated here.

[0081] After the second relationship is obtained, the second relationship is determined as a new first relationship, so that the subsequent microservice unit can call the new first data through the new first relationship here when processing the task instance to process the corresponding task instance.

[0082] It can be seen that in an embodiment of the present application, the second data is obtained from the task instance processed by the microservice unit through the main control terminal, the second data is determined as the new first data, and then the first relationship between the new first data and other first data is obtained, so that the subsequent microservice unit can call more first data through the new first relationship when processing other task instances, thereby further improving the processing efficiency of the task instance.

[0083] In a possible embodiment, multiple microservice units correspond to a technology stack type respectively, and the method also includes: the main control terminal receives multiple task instance processing amounts sent by multiple microservice units, and the task instance processing amount is the number of task instances processed by the corresponding microservice unit within a preset time period; the main control terminal calculates the processing load of microservice units of different technology stack types in each service type according to the task instance processing amounts sent by the multiple microservices; if the processing load is less than a first preset load, the main control terminal determines whether the microservice unit with a processing load less than the first preset load is a dedicated microservice unit, and the dedicated service unit is only used to process the task instance corresponding to the target user terminal, and the target user terminal is one of at least one user terminal; if the microservice unit with a processing load greater than the first preset load is not a dedicated microservice unit, the main control terminal adjusts the technology stack type of at least one microservice unit with a processing load less than the first preset load to the technology stack type corresponding to the microservice unit with a processing load greater than the second preset load in the same service type, and the first preset load is less than the second preset load.

[0084] Specifically, in the embodiment of the present application, each microservice unit corresponds to a technology stack type, and the technology stack refers to a combination of programming languages, frameworks, and databases used to configure the microservice unit. A microservice unit can only process task instances required by the technology stack corresponding to its technology stack type.

[0085] For example, see Figure 4 , Figure 4 A schematic diagram of the configuration of microservice units under the same service type provided in an embodiment of the present application. Figure 4 A plurality of microservice units under a computing service type are shown, in which two microservice units of the first technology stack type and two microservice units of the second service technology stack type are configured. The first technology stack type and the second technology type here specifically represent that the corresponding microservice units are implemented through different programming languages, frameworks and databases. When the microservice unit obtains a task instance, it will obtain the most matching task instance based on its own technology stack type for processing. In addition, the technology stack type of the microservice unit can be converted based on actual needs and the requirements of the user terminal, so that each technology stack type includes more or fewer microservice units, and more microservice units of technology stack types are configured.

[0086] Based on the deployment environment of the aforementioned microservice unit, the microservice unit will send the task instance processing volume to the main control terminal. The task instance processing volume here is the number of task instances processed by the corresponding microservice unit within the preset time period. The preset time period here is specifically the time period between the target moment and the moment before the preset time from the target moment. The main control terminal calculates the processing load of the corresponding microservice unit through the task instance processing volume.

[0087] If the processing load is less than the first preset load, the main control terminal determines whether the microservice unit with a processing load less than the first preset load is a dedicated microservice unit. The dedicated microservice unit here is used to process the task instance of a specific user terminal to ensure that the task instance of the target user terminal can be processed in time.

[0088] If the microservice unit with a processing load greater than the first preset load is not a dedicated microservice unit, the main control terminal adjusts the technology stack type of at least one microservice unit with a processing load less than the first preset load to the technology stack type corresponding to the microservice unit with a processing load greater than the second preset load in the same service type, and the first preset load is less than the second preset load. That is to say, for multiple microservice units of the same service type, any microservice unit of the technology stack type is less than the first preset load, which proves that the number of task instances of the technology stack type is small and the computing load of the microservice unit of the technology stack type is low. The main control terminal adjusts the technology stack type of at least one microservice unit among the multiple microservice units under the technology stack type to the same technology stack type as the microservice unit with the same service type and a processing load greater than the second load of the microservice unit with a processing load less than the first preset load. In this way, the technology stack type of the microservice unit with a processing load less than the first preset load is changed to the technology stack type corresponding to the microservice unit with a processing load greater than the second preset load, so as to reduce the computing load of the microservice unit with a processing load greater than the second preset load.

[0089] It can be seen that in the embodiment of the present application, the main control terminal calculates the computational load of task instances of different technology stacks by obtaining the task instance processing volume sent by multiple microservice units, and then adjusts the number of microservice units of different technology stack types under the same service type according to the computational load, thereby balancing the computational load of the microservice units under each technology stack type, and further improving the processing efficiency of the task instances.

[0090] By implementing the above application embodiments, it can be seen that the processing efficiency of the task instance is improved by obtaining the first relationship through the main control terminal. The transmission efficiency of the relevant data of the task instance is improved by actively obtaining the task instance from the main control terminal according to the service type and the physical distance through the microservice unit. The microservice unit obtains the relevant data to process the task instance through the first relationship, and optimizes the processing result of the task instance. The main control terminal analyzes the new first data according to the processing result of the task instance of the microservice unit, and balances the computing load of the microservice unit under each technology stack type according to the number of task processing fed back by the microservice unit, thereby further improving the processing efficiency of subsequent task instances.

[0091] Based on the description of the configuration method embodiment, the present application also provides a task instance processing device 500, which can be a task instance processing device 500 running on Figure 1A computer program (including program code) in the application scenario shown. It can also be Figure 1 The main control terminal 101, micro service unit 102 or user terminal 103 shown. Figure 5 , Figure 5 A schematic diagram of the structure of a processing device for a task instance provided in an embodiment of the present application, wherein the processing device 500 for the task instance includes:

[0092] The sending unit 501 is used to send multiple task instances to the main control terminal, where the multiple task instances correspond to multiple task types;

[0093] An acquisition unit 502 is used to receive a plurality of task instances, and acquire a first relationship between first data in task instances of different task types, wherein the first relationship indicates that there is a positive correlation or a negative correlation between two corresponding first data, and the first data is power-related data or economic-related data;

[0094] Acquire from the main control terminal the task instance corresponding to the service type and the first relationship corresponding to the task instance, and acquire other first data having a first relationship with the first data of the task instance;

[0095] Processing unit 503: used for processing the first data and other first data of the task instance.

[0096] In a possible embodiment, in terms of obtaining the first relationship between the first data in task instances of different task types, the acquisition unit 502 is also specifically used for: the main control terminal calculates the correlation coefficient between two first data in two task instances of different task types of multiple first data; if the correlation coefficient is greater than a first preset threshold, the main control terminal regards the existence of a positive correlation between the two first data corresponding to the correlation coefficient; if the correlation coefficient is less than a second preset threshold, the main control terminal regards the existence of a negative correlation between the two first data corresponding to the correlation coefficient, and the first preset threshold is greater than the second preset threshold.

[0097] In a possible embodiment, multiple microservice units respectively correspond to a service type, and the service type includes a computing service, a query service, or a storage service. In terms of the multiple microservice units respectively obtaining the task instances corresponding to their own service types and the first relationship corresponding to the task instances from the main control terminal, the acquisition unit 502 is also specifically used to: the target microservice unit obtains the task types of multiple task instances from the main control terminal, and the target microservice unit is one of the multiple microservice units; the target microservice unit obtains the physical distance between the user terminal corresponding to the multiple target task instances and the target microservice unit from the main control terminal, and the target task instance is a task instance corresponding to the task type in the multiple task instances and the service type of the target microservice unit; the target microservice unit obtains the task instance with the closest physical distance and the first relationship corresponding to the task instance with the closest physical distance from the main control terminal.

[0098] In a possible embodiment, the task type of the task instance is a computing task. In terms of multiple microservice units processing the first data and other first data of the task instance, the processing unit 503 is also specifically used for: the microservice unit determines the data type of the processing result required by the task instance; if the data type is power-related data, the microservice unit calculates the first data of the task instance and the power-related data in the other first data to obtain a first calculation result; the microservice unit corrects the first calculation result according to the economic-related data in the other first data to obtain a second calculation result, and determines the second calculation result as the processing result of the task instance processed by the microservice unit; if the data type is economic-related data, the microservice unit calculates the processing result of the task instance processed by the microservice unit according to the first data of the task instance and the other first data.

[0099] In a possible embodiment, before the microservice unit corrects the first calculation result according to the economic-related data in the first data to obtain the second calculation result, the sending unit 501 is also specifically used for: if the other first data does not include electricity-related data, the microservice unit sends a data supplement request to the main control terminal; the main control terminal receives the data supplement request, and continuously obtains the electricity-related data indicated by the data supplement request, the electricity-related data indicated by the data supplement request is the electricity-related data that has a first relationship with the first data in the task instance processed by the corresponding microservice unit; when the main control terminal obtains the electricity-related data indicated by the data supplement request, it sends the electricity-related data indicated by the data supplement request to the microservice unit corresponding to the data supplement request.

[0100] In a possible embodiment, after multiple microservice units process the first data and other first data of the task instance, the processing unit 503 is also specifically used for: the multiple microservice units send the processing results obtained by processing the first data and other first data of the task instance to the main control terminal; the main control terminal receives multiple processed task instances sent by the multiple microservice units, and obtains multiple second data in the multiple processed task instances, the second data being electricity-related data or economic-related data different from the first data; the main control terminal obtains and determines the second data as new first data, and obtains the second relationship between the first data in task instances of different task types, the second relationship being a positive correlation or negative correlation between the new first data and other first data; the main control terminal determines the second relationship as a new first relationship.

[0101] In a possible embodiment, multiple microservice units correspond to a technology stack type respectively, and the processing unit 503 is also specifically used for: the main control terminal receives multiple task instance processing amounts sent by multiple microservice units, and the task instance processing amount is the number of task instances processed by the corresponding microservice unit within a preset time period; the main control terminal calculates the processing load of microservice units of different technology stack types in each service type according to the task instance processing amounts sent by multiple microservices; if the processing load is less than the first preset load, the main control terminal determines whether the microservice unit with a processing load less than the first preset load is a dedicated microservice unit, and the dedicated service unit is only used to process the task instance corresponding to the target user terminal, and the target user terminal is one of the at least one user terminal; if the microservice unit with a processing load greater than the first preset load is not a dedicated microservice unit, the main control terminal adjusts the technology stack type of the microservice unit with a processing load less than the first preset load to the technology stack type corresponding to the microservice unit with a processing load greater than the second preset load, and the first preset load is less than the second preset load.

[0102] Based on the description of the above method embodiment and device embodiment, please refer to Figure 6 , Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 The electronic device 600 shown (the electronic device 600 may be a computer device, Figure 1 The main control terminal 101, micro service unit 102 or user terminal 103 shown includes a memory 601, a processor 602, a communication interface 603 and a bus 604. The memory 601, the processor 602 and the communication interface 603 are connected to each other through the bus 604.

[0103] The memory 601 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM).

[0104] The memory 601 can store programs. When the program stored in the memory 601 is executed by the processor 602, the processor 602 and the communication interface 603 are used to execute the various steps of the processing method of the task instance of the embodiment of the present application.

[0105] The processor 602 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the electronic device 600 of the embodiment of the present application, or to execute the processing method of the task instance of the method embodiment of the present application.

[0106] The processor 602 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the processing method of the task instance of the present application may be completed by an integrated logic circuit of hardware or software instructions in the processor 602. The above-mentioned processor 602 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 602 reads the information in the memory 601, and combines its hardware to complete the functions required to be performed by the units included in the electronic device 600 of the embodiment of the present application, or executes the processing method of the task instance of the method embodiment of the present application.

[0107] The communication interface 603 uses a transceiver such as, but not limited to, a transceiver to implement communication between the electronic device 600 and other devices or a communication network. For example, data can be acquired through the communication interface 603 .

[0108] The bus 604 may include a path for transmitting information between various components of the electronic device 600 (eg, the memory 601 , the processor 602 , and the communication interface 603 ).

[0109] It should be noted that although Figure 6 The electronic device 600 shown only shows a memory, a processor, and a communication interface, but in the specific implementation process, those skilled in the art should understand that the electronic device 600 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 600 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 600 may also only include the devices necessary to implement the embodiments of the present application, and does not necessarily include Figure 6 All devices shown in .

[0110] An embodiment of the present application also provides a chip, which includes a processor and a data interface. The processor reads instructions stored in a memory through the data interface to implement the processing method of the task instance.

[0111] Optionally, as an implementation method, the chip may also include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the processing method of the task instance.

[0112] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

[0113] The embodiment of the present application further provides a computer program product including instructions. When the computer program product is executed on a computer or a processor, the computer or the processor executes one or more steps in any of the above methods.

[0114] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logic blocks, modules, and steps can be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or includes any media (e.g., based on a communication protocol) that facilitates the transfer of a computer program from one place to another. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in this application. A computer program product may include computer-readable media.

[0115] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwave are included in the definition of media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are actually directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0116] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.

[0117] The techniques of the present application may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this application to emphasize functional aspects of devices for performing the disclosed techniques, but do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in an encoded hardware unit in conjunction with appropriate software and / or firmware, or provided by interoperating hardware units (including one or more processors as described above).

[0118] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the specific descriptions of the corresponding steps in the aforementioned method embodiments, and will not be repeated here.

[0119] It should be understood that in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; wherein A and B can be singular or plural. Also, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art can understand that the words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be necessarily different. Meanwhile, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the division of the unit is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. The mutual coupling, direct coupling, or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0122] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. 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 according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. The available medium may be a read-only memory (ROM), or a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state disk (SSD), etc.

[0123] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

[0124] The device embodiments described above are merely illustrative, wherein the units and modules described as separate components may or may not be physically separated. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.

[0125] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for processing a task instance, characterized in that: Applied to a data integration platform system, the data integration platform system includes a main control terminal, multiple microservice units and at least one user terminal, the method includes: The at least one user terminal sends a plurality of task instances to the master control terminal, where the plurality of task instances correspond to a plurality of task types; The main control terminal receives the multiple task instances, and obtains a first relationship between first data in task instances of different task types, wherein the first relationship indicates that there is a positive correlation or a negative correlation between two corresponding first data, and the first data is power-related data or economic-related data; The multiple microservice units respectively obtain the task instances corresponding to their own service types and the first relationships corresponding to the task instances from the main control terminal, and obtain other first data having a first relationship with the first data of the task instances; The multiple microservice units process the first data of the task instance and the other first data.

2. The method according to claim 1, characterized in that: The obtaining of the first relationship between the first data in the task instances of different task types includes: The main control terminal calculates a correlation coefficient between two first data in two task instances of different task types of the plurality of first data; If the correlation coefficient is greater than a first preset threshold, the main control terminal determines that there is a positive correlation between the two first data corresponding to the correlation coefficient; If the correlation coefficient is less than a second preset threshold, the main control terminal determines that there is a negative correlation between two first data corresponding to the correlation coefficient, and the first preset threshold is greater than the second preset threshold.

3. The method according to claim 1, characterized in that The multiple microservice units respectively correspond to a service type, the service type includes a computing service, a query service or a storage service, and the multiple microservice units respectively obtain a task instance corresponding to their own service type and a first relationship corresponding to the task instance from the main control terminal, including: The target microservice unit obtains the task types of the multiple task instances from the main control terminal, and the target microservice unit is one of the multiple microservice units; The target microservice unit obtains, from the master control terminal, a physical distance between a user terminal corresponding to a plurality of target task instances and the target microservice unit, wherein the target task instance is a task instance in the plurality of task instances whose task type corresponds to a service type of the target microservice unit; The target microservice unit obtains, from the master control terminal, the task instance with the closest physical distance and a first relationship corresponding to the task instance with the closest physical distance.

4. The method according to claim 1, characterized in that: The task type of the task instance is a computing task, and the multiple microservice units process the first data of the task instance and the other first data, including: The microservice unit determines the data type of the processing result required by the task instance; If the data type is power-related data, the microservice unit calculates the first data of the task instance and the power-related data in the other first data to obtain a first calculation result; The microservice unit corrects the first calculation result according to the economic-related data in the other first data to obtain a second calculation result, and determines the second calculation result as the processing result of the task instance processed by the microservice unit; If the data type is economic-related data, the microservice unit calculates a processing result of the task instance processed by the microservice unit according to the first data of the task instance and the other first data.

5. The method according to claim 4, characterized in that Before the microservice unit corrects the first calculation result according to the economic-related data in the first data to obtain a second calculation result, the method further includes: If the other first data does not include the power-related data, the microservice unit sends a data supplement request to the main control terminal; The master control terminal receives the data supplement request, and continuously obtains the power-related data indicated by the data supplement request, where the power-related data indicated by the data supplement request is the power-related data having a first relationship with the first data in the task instance processed by the corresponding microservice unit; When the main control terminal obtains the power-related data indicated by the data supplement request, it sends the power-related data indicated by the data supplement request to the microservice unit corresponding to the data supplement request.

6. The method according to any one of claims 1 to 5, characterized in that: After the multiple microservice units process the first data of the task instance and the other first data, the method further includes: The multiple microservice units send processing results obtained by processing the first data of the task instance and the other first data to the main control terminal; The main control terminal receives a plurality of processed task instances sent by the plurality of microservice units, and obtains a plurality of second data in the plurality of processed task instances, where the second data is power-related data or economic-related data different from the first data; The master control terminal obtains and determines the second data as new first data, and obtains a second relationship between the first data in task instances of different task types, where the second relationship is a positive correlation or a negative correlation between the new first data and other first data; The master control terminal determines the second relationship as a new first relationship.

7. The method according to any one of claims 1 to 5, characterized in that: The multiple microservice units respectively correspond to a technology stack type, and the method further includes: The master control terminal receives a plurality of task instance processing amounts sent by the plurality of microservice units, wherein the task instance processing amount is the number of task instances processed by the corresponding microservice unit within a preset time period; The main control terminal calculates the processing load of microservice units of different technology stack types in each service type according to the task instance processing volume sent by the multiple microservices; If the processing load is less than the first preset load, the main control terminal determines whether the microservice unit whose processing load is less than the first preset load is a dedicated microservice unit, and the dedicated service unit is only used to process the task instance corresponding to the target user terminal, and the target user terminal is one of the at least one user terminal; If the microservice unit with a processing load greater than the first preset load is not a dedicated microservice unit, the main control terminal adjusts the technology stack type of at least one microservice unit with a processing load less than the first preset load to a technology stack type corresponding to a microservice unit of the same service type with a processing load greater than a second preset load, and the first preset load is less than the second preset load.

8. A task instance processing device, characterized in that: The device is used to execute a processing method for a task instance. The device belongs to a data integration platform system. The data integration platform system includes a main control terminal, multiple microservice units and at least one user terminal. The device includes: A sending unit: used for sending a plurality of task instances to the master control terminal, wherein the plurality of task instances correspond to a plurality of task types; An acquisition unit: used for receiving the plurality of task instances, and acquiring a first relationship between first data in task instances of different task types, wherein the first relationship indicates that there is a positive correlation or a negative correlation between two corresponding first data, and the first data is power-related data or economic-related data; Acquire from the master control terminal respectively a task instance corresponding to the service type thereof and a first relationship corresponding to the task instance, and acquire other first data having a first relationship with the first data of the task instance; Processing unit: used for processing the first data of the task instance and the other first data.

9. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.