Task processing method and device, computer equipment and storage medium
By obtaining and comparing the instantaneous utility value reduction rate in the financial terminal and the target edge server, the task processing subject is determined, which solves the problem of low task processing efficiency in mobile edge computing and achieves more efficient task processing and resource utilization.
Patent Information
- Application Number
- CN202410637453.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
Existing mobile edge computing methods cannot reasonably migrate computing tasks when network transmission and communication are unstable, resulting in low task processing efficiency.
By obtaining the instantaneous utility value reduction rate in the financial terminal and the target edge server respectively, the processing efficiency is predicted, and the task processing subject is determined based on the utility function to optimize the task processing method.
Improved task processing efficiency and performance, reasonably allocated tasks and resources, and reduced processing time and costs.
Smart Images

Figure CN118612792A
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a task processing method, apparatus, computer equipment, storage medium and computer program product. Background Art
[0002] With the development of high-performance chip technology and the advancement of lightweight terminal technology, the hardware capabilities of financial service terminals are becoming stronger and stronger. In order to ensure the stability and security of financial services, a new cloud computing method has emerged: mobile edge computing. Mobile edge computing reduces the computing pressure of terminals by migrating complex computing tasks from terminals to edge servers, thereby making full use of distributed cloud resources and improving the responsiveness of financial technology service systems.
[0003] However, the current mobile edge computing method is to migrate complex computing tasks from the terminal to the nearest cloud server, and the implementation of the above method requires the use of the new generation of 5G communication technology. Therefore, the current mobile edge computing process has the problem that when the network transmission and communication process are unstable, it cannot make reasonable migration decisions for the computing tasks generated by the terminal, resulting in low task processing efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a task processing method, apparatus, computer equipment, computer-readable storage medium and computer program product to address the technical problem of low task processing efficiency.
[0005] In a first aspect, the present application provides a task processing method, comprising:
[0006] When the financial terminal receives a new target task, respectively obtaining a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal;
[0007] According to the first instantaneous utility value reduction rate, predicting a first processing efficiency when the financial terminal processes the target task, and according to the second instantaneous utility value reduction rate, predicting a second processing efficiency when the target task is migrated to the target edge server for processing;
[0008] According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
[0009] In one embodiment, predicting a first processing efficiency when the financial terminal processes the target task based on the first instantaneous utility value reduction rate includes: obtaining a first difference between an initial utility value of the target task processed at the financial terminal and a minimum value of the first instantaneous utility value reduction rate within the corresponding total processing time, substituting the first difference into a utility function for calculation to obtain a first processing efficiency; predicting a second processing efficiency when the target task is processed at the target edge server based on the second instantaneous utility value reduction rate includes: obtaining a second difference between an initial utility value of the target task processed at the target edge server and a minimum value of the second instantaneous utility value reduction rate within the corresponding total processing time, substituting the second difference into a utility function for calculation to obtain a second processing efficiency.
[0010] In one of the embodiments, determining the subject that processes the target task from the financial terminal and the target edge server based on the first processing efficiency and the second processing efficiency includes: comparing the first processing efficiency and the second processing efficiency, and when the comparison result is that the first processing efficiency is less than or equal to the second processing efficiency, determining that the subject that processes the target task is the financial terminal; when the comparison result is that the first processing efficiency is greater than the second processing efficiency, determining that the subject that processes the target task is the target edge server.
[0011] In one of the embodiments, based on the first processing efficiency and the second processing efficiency, the subject that processes the target task is determined from the financial terminal and the target edge server. After the subject processes the target task, it also includes: determining the task migration duration for migrating the target task to the target edge server, and the waiting time for the target task to be processed on the target edge server; based on the task migration duration and the waiting time, determining the subject that processes the target task again from the financial terminal and the target edge server.
[0012] In one of the embodiments, the subject that processes the target task is determined again from the financial terminal and the target edge server based on the task migration duration and the waiting duration, including: when the task migration duration and the waiting duration are both equal to zero, returning to the steps of respectively obtaining the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal, so as to determine the subject that processes the target task; when the task migration duration is greater than or equal to zero and the waiting duration is greater than zero, determining the subject that is currently processing the target task; when the subject that is currently processing the target task is the target edge server, respectively obtaining the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing; and determining the subject that processes the target task again from the financial terminal and the target edge server based on the third processing efficiency and the fourth processing efficiency.
[0013] In one of the embodiments, when the subject currently processing the target task is the target edge server, a third processing efficiency of processing the target task on the target edge server and a fourth processing efficiency when the target task is rolled back to the financial terminal for processing are obtained respectively, including: when the task migration duration is equal to zero and the waiting duration is greater than zero, a third task processing parameter for processing the target task on the target edge server and a fourth task processing parameter for rolling back to the financial terminal for processing the target task are obtained respectively; the third task processing parameter includes a total utility value and a utility value during the waiting duration; the fourth task processing parameter includes a consumption value of the waiting duration and a defection risk value of the waiting duration; the third processing efficiency of processing the target task on the target edge server is determined according to the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting duration; the fourth processing efficiency of rolling back the target task to the financial terminal for processing is determined according to the sum of the consumption value of the waiting duration for processing the target task on the financial terminal and the defection risk value during the waiting duration.
[0014] In one of the embodiments, when the subject currently processing the target task is the target edge server, the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing are obtained respectively, and also includes: when the task migration duration and the waiting duration are both greater than zero, the third task processing parameters of processing the target task on the target edge server and the fourth task processing parameters of rolling back to the financial terminal for processing the target task are obtained respectively; the third task processing parameters include the instantaneous final utility value corresponding to the waiting duration and the defection risk threshold value; the fourth task processing parameter includes the instantaneous final utility value corresponding to the waiting time, the defection risk value corresponding to the waiting time and the defection risk threshold; according to the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting time, the third processing efficiency of processing the target task on the target edge server is determined; according to the difference between the instantaneous final utility value corresponding to the waiting time, the defection risk value during the waiting time and the defection risk threshold when the target task is processed on the financial terminal, the fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined.
[0015] In a second aspect, the present application further provides a task processing device, comprising:
[0016] A rate acquisition module, used to respectively acquire a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of a target edge server corresponding to the financial terminal when the financial terminal receives a new target task;
[0017] an efficiency prediction module, configured to predict a first processing efficiency when the financial terminal processes the target task according to the first instantaneous utility value reduction rate, and predict a second processing efficiency when the target task is migrated to the target edge server for processing according to the second instantaneous utility value reduction rate;
[0018] The subject determination module is used to determine the subject that processes the target task from the financial terminal and the target edge server according to the first processing efficiency and the second processing efficiency, and process the target task through the subject.
[0019] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0020] When the financial terminal receives a new target task, respectively obtaining a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal;
[0021] According to the first instantaneous utility value reduction rate, predicting a first processing efficiency when the financial terminal processes the target task, and according to the second instantaneous utility value reduction rate, predicting a second processing efficiency when the target task is migrated to the target edge server for processing;
[0022] According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
[0023] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0024] When the financial terminal receives a new target task, respectively obtaining a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal;
[0025] According to the first instantaneous utility value reduction rate, predicting a first processing efficiency when the financial terminal processes the target task, and according to the second instantaneous utility value reduction rate, predicting a second processing efficiency when the target task is migrated to the target edge server for processing;
[0026] According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
[0027] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:
[0028] When the financial terminal receives a new target task, respectively obtaining a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal;
[0029] According to the first instantaneous utility value reduction rate, predicting a first processing efficiency when the financial terminal processes the target task, and according to the second instantaneous utility value reduction rate, predicting a second processing efficiency when the target task is migrated to the target edge server for processing;
[0030] According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
[0031] The above-mentioned task processing method, device, computer equipment, storage medium and computer program product have the following beneficial effects in the process of task processing: when a financial terminal receives a new target task, first, the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal are respectively obtained, so as to accurately evaluate the current load situation and resource utilization of the financial terminal and the target edge server, which is helpful for reasonably allocating tasks and resources; then, according to the first instantaneous utility value reduction rate, the first processing efficiency when the financial terminal processes the target task is predicted, and according to the second instantaneous utility value reduction rate, the second processing efficiency when the target task is migrated to the target edge server for processing is predicted, which is helpful for selecting the optimal processing method in the task processing process and improving the overall processing efficiency and performance; finally, according to the first processing efficiency and the second processing efficiency, the subject that processes the target task is determined from the financial terminal and the target edge server, and the subject processes the target task, and the subject that finally processes the target task is determined by comparing the first processing efficiency and the second processing efficiency, so that the task can be effectively allocated to the appropriate financial terminal or target edge server, reducing the time and cost of task processing and improving the efficiency of task processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are 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 creative work.
[0033] FIG1 is an application environment diagram of a task processing method in one embodiment;
[0034] Figure 2 is a flowchart of a task processing method in one embodiment;
[0035] Figure 3 is a flowchart of a task processing method in another embodiment;
[0036] Figure 4 is a flowchart of a task processing method in yet another embodiment;
[0037] Figure 5 A flowchart of a task processing step in an embodiment;
[0038] Figure 6 A schematic diagram of a selection process of a task processing method in one embodiment;
[0039] Figure 7 A schematic diagram of a system model of a task processing method in one embodiment;
[0040] Figure 8 is a structural block diagram of a task processing device in one embodiment;
[0041] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The task processing method provided in the embodiment of the present application can be applied to the application environment shown in FIG. 1. Among them, the financial terminal 102 communicates with the target edge server 104 through the network. The data storage system can store the data that the target edge server 104 needs to process. The data storage system can be integrated on the target edge server 104, or it can be placed on the cloud or other network servers. When the financial terminal 102 receives a new target task, the current first instantaneous utility value reduction rate of the financial terminal 102 and the current second instantaneous utility value reduction rate of the target edge server 104 corresponding to the financial terminal 102 are respectively obtained; according to the first instantaneous utility value reduction rate, the first processing efficiency when the financial terminal 102 processes the target task is predicted, and according to the second instantaneous utility value reduction rate, the second processing efficiency when the target task is migrated to the target edge server 104 for processing is predicted; according to the first processing efficiency and the second processing efficiency, the subject of processing the target task is determined from the financial terminal 102 and the target edge server 104, and the target task is processed by the subject. Among them, there are multiple financial terminals 102, and the target edge server 104 can be implemented with an independent server or a server cluster composed of multiple servers.
[0044] In an exemplary embodiment, Figure 2 As shown, a task processing method is provided, and the method is applied to the financial terminal 102 in FIG. 1 as an example for explanation, including the following steps S202 to S206. Among them:
[0045] Step S202: When the financial terminal receives a new target task, the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal are respectively obtained.
[0046] Among them, financial terminal refers to the terminal equipment used in the financial field, which is used for financial transactions, data analysis and other operations; target task refers to the task or work that needs to be processed received at the financial terminal, which can be data analysis, transaction execution, etc.; instantaneous utility value reduction rate refers to the reduction rate of the efficiency and quality of the target task at a certain moment, expressed in The first instantaneous utility value reduction rate refers to the reduction rate of the current utility value of the financial terminal when processing the target task, which reflects the efficiency and quality of the task processing in the financial terminal. Indicates; accordingly, the second instantaneous utility value reduction rate refers to the reduction rate of the current utility value of the target edge server when processing the target task, which reflects the efficiency and quality of the task processing at the target edge server. express.
[0047] Specifically, before obtaining the first instantaneous utility value reduction rate and the second instantaneous utility value reduction rate, it is necessary to determine that the task volume of the current financial terminal has been blocked, and the blocked tasks can be migrated from the financial terminal to the target edge server.
[0048] Step S204, predicting a first processing efficiency when processing the target task at the financial terminal based on the first instantaneous utility value reduction rate, and predicting a second processing efficiency when migrating the target task to the target edge server for processing based on the second instantaneous utility value reduction rate.
[0049] Among them, processing efficiency refers to the efficiency level achieved when processing the target task, which can be predicted and evaluated by the utility value reduction rate. The evaluation criteria may include the processing time of the target task and the utility value of the target task after processing; the first processing efficiency refers to the time and utility value of processing the target task at the financial terminal; correspondingly, the second processing efficiency refers to the time and utility value of processing the target task at the target edge server.
[0050] Step S206: According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
[0051] The subject of the target task refers to the subject that processes the target task and is determined according to the requirements, which can be a financial terminal or a target edge server.
[0052] Specifically, the first processing efficiency and the second processing efficiency obtained are compared, and a financial terminal or a target edge server with high efficiency is selected as the main body, and the target task is migrated to the main body for processing, thereby improving the processing efficiency.
[0053] In the above-mentioned task processing method, when the financial terminal receives a new target task, first, the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal are obtained respectively, so as to accurately evaluate the current load situation and resource utilization of the financial terminal and the target edge server, which is helpful for the reasonable allocation of tasks and resources; then, according to the first instantaneous utility value reduction rate, the first processing efficiency when the financial terminal processes the target task is predicted, and according to the second instantaneous utility value reduction rate, the second processing efficiency when the target task is migrated to the target edge server for processing is predicted, which is helpful for selecting the optimal processing method during the task processing process and improving the overall processing efficiency and performance; finally, according to the first processing efficiency and the second processing efficiency, the subject that processes the target task is determined from the financial terminal and the target edge server, and the subject processes the target task, and the subject that finally processes the target task is determined by comparing the first processing efficiency and the second processing efficiency, which can effectively allocate tasks to suitable financial terminals or target edge servers, reduce the time and cost of task processing, and improve the efficiency of task processing.
[0054] In an exemplary embodiment, step S204 predicts a first processing efficiency when the financial terminal processes the target task according to the first instantaneous utility value reduction rate, and predicts a second processing efficiency when the target edge server processes the target task according to the second instantaneous utility value reduction rate, including:
[0055] Obtain a first difference between an initial utility value of a target task processed at a financial terminal and a minimum value of a first instantaneous utility value reduction rate within a corresponding total processing time, substitute the first difference into a utility function for calculation, and obtain a first processing efficiency; obtain a second difference between an initial utility value of a target task processed at a target edge server and a minimum value of a second instantaneous utility value reduction rate within a corresponding total processing time, substitute the second difference into a utility function for calculation, and obtain a second processing efficiency.
[0056] The first processing efficiency is less than or equal to the defection risk threshold, and the second processing efficiency is less than or equal to the defection risk threshold. The utility function is used to represent the first instantaneous utility reduction rate corresponding to the target task being processed at the financial terminal and the second instantaneous utility reduction rate corresponding to the target task being processed at the target edge server. Calculate the utility value reduction rate corresponding to the total processing time Indicates that, accordingly, the first difference of the minimum value of the first instantaneous utility reduction rate is , the first processing efficiency is The second difference of the minimum value of the second instantaneous utility reduction rate is , the second processing efficiency is ; Defection risk threshold express.
[0057] In this embodiment, by comparing the efficiency of the financial terminal and the target edge server in processing tasks, it is ensured that the efficiency reaches the maximum when processing tasks and the risk does not exceed the risk threshold, thereby improving the efficiency of task processing and optimizing the effect of task processing. Comparing and evaluating the financial terminal and the target edge server can also help optimize the task processing process, improve processing efficiency, and reduce potential risks.
[0058] In one embodiment, based on the first processing efficiency and the second processing efficiency, the subject of processing the target task is determined from the financial terminal and the target edge server, including: comparing the first processing efficiency and the second processing efficiency, when the comparison result is that the first processing efficiency is less than or equal to the second processing efficiency, determining that the subject of processing the target task is the financial terminal; when the comparison result is that the first processing efficiency is greater than the second processing efficiency, determining that the subject of processing the target task is the target edge server.
[0059] Specifically, by constructing the selection function , according to the comparison between the first processing efficiency and the second processing efficiency, the optimal subject for processing the target task is determined, and the function expression is specifically selected as:
[0060] That is, when the first processing efficiency is greater than or equal to the second processing efficiency, the selection function takes a value of 0, indicating that the financial terminal is selected as the main body to process the target task; correspondingly, when the first processing efficiency is less than the second processing efficiency, the selection function takes a value of 1, indicating that the target edge server is selected as the main body to process the target task.
[0061] In this embodiment, by comparing the first processing efficiency and the second processing efficiency and selecting the subject of the target task according to the comparison result, the processing process of the target task can be completed more accurately and efficiently, and the target task can be assigned to a more efficient subject, thereby speeding up task processing and reducing waiting time, thereby maximizing the use of resources, improving user experience and satisfaction, and also improving the overall efficiency of task processing.
[0062] Further, in one embodiment, if Figure 3As shown, step S206 determines the subject for processing the target task from the financial terminal and the target edge server according to the first processing efficiency and the second processing efficiency. After the subject processes the target task, steps S302 to S304 are also included, wherein:
[0063] Step S302, determining the task migration time for migrating the target task to the target edge server and the waiting time for the target task to be processed on the target edge server.
[0064] The target edge server refers to the edge server closest to the financial terminal. The task migration time for migrating the target task to the target edge server is expressed as , the waiting time for the target task to be processed on the target edge server is expressed as .
[0065] Specifically, when the financial terminal is at the initial time Receive a target task And no subject is selected, if the target edge server already has tasks, then The remaining service delay of tasks entering the computing task queue of the target edge server can be Calculate, where yes Position in the queue The waiting time for the data to be processed, is the task migration duration, then the utility function The value decreases as time increases.
[0066] in, is the symbolic representation of the queuing model. G refers to the arrival time, M refers to the exponentially distributed processing time, and the processing time is exponentially distributed, that is, it conforms to the Poisson process. 1 means there is only one processing station, that is, Tasks are queued one after another waiting to be processed, and ∞ means that the queue length is infinite, that is, the queue can accommodate an infinite number of tasks waiting.
[0067] Step S304: According to the task migration duration and the waiting duration, the subject that processes the target task is determined again from the financial terminal and the target edge server.
[0068] Specifically, based on the size relationship between the task migration duration and the waiting time, the entity that is most suitable for processing the target task can be identified, where the size relationship may include the task migration duration and the waiting time being both equal to zero, the task migration duration being greater than or equal to zero, the waiting time being greater than zero, and the task migration duration being equal to zero, and the waiting time being greater than zero.
[0069] In this embodiment, through the queuing model , can relatively simplify the distribution of service time, making analysis and calculation more convenient. By evaluating the task migration time and waiting time, the task processing process can be optimized, and the task migration and waiting time can be reduced. According to the evaluation results of the task migration time and waiting time, the task can be assigned to the subject with higher processing efficiency, which can reduce the task processing time, maximize the utilization of resources, and improve the processing efficiency.
[0070] In an exemplary embodiment, Figure 4 As shown, step S304 determines the subject for processing the target task again from the financial terminal and the target edge server according to the task migration duration and the waiting duration, including:
[0071] Step S402, when the task migration duration and the waiting duration are both equal to zero, return to the step of respectively obtaining the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal to determine the subject of processing the target task.
[0072] Specifically, the task migration time and waiting time are both equal to zero, that is, the task does not need to wait or migrate, and the subject that processes the target task can be selected immediately. According to the corresponding selection function, the first efficiency value and the second efficiency value are compared to complete the subject selection.
[0073] Step S404, when the task migration time is greater than or equal to zero and the waiting time is greater than zero, determine the subject currently processing the target task; when the subject currently processing the target task is the target edge server, obtain the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing; based on the third processing efficiency and the fourth processing efficiency, determine the subject processing the target task again from the financial terminal and the target edge server.
[0074] Among them, the third processing efficiency is , the fourth processing efficiency is , which respectively correspond to the efficiencies of the case where the subject of the current target task processing is the financial terminal and the case where the subject of the current target task processing is the target edge server at the current time t, and the subject of the target task processing is determined again based on the efficiency.
[0075] In this embodiment, by judging the migration time and waiting time, the utility value reduction rate and processing efficiency of different subjects can be comprehensively considered, and then the most suitable subject can be selected to process the target task, thereby improving the task processing efficiency. The task processing process can also be optimized, the processing efficiency can be improved, the task response speed can be accelerated, and the user experience and satisfaction can be improved.
[0076] In one embodiment, in step S404, when the subject currently processing the target task is the target edge server, respectively obtaining the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing, including:
[0077] When the task migration duration is equal to zero and the waiting duration is greater than zero, respectively obtain the third task processing parameter for processing the target task on the target edge server and the fourth task processing parameter for falling back to the financial terminal for processing the target task; the third task processing parameter includes the total utility value and the utility value during the waiting time; the fourth task processing parameter includes the consumption value of the waiting time and the defection risk value of the waiting time; the third processing efficiency for processing the target task on the target edge server is determined according to the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting time; the fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined according to the sum of the consumption value of the waiting time for processing the target task on the financial terminal and the defection risk value during the waiting time.
[0078] Among them, the total utility value in the third task processing parameter is expressed as , the utility value of the waiting time is expressed as , the consumption value of the waiting time in the fourth task processing parameter is expressed as , the defection risk value of the waiting time is expressed as , Based on the calculation of the second instantaneous utility reduction rate, the specific formula is:
[0079] ;
[0080] Furthermore, the third processing efficiency and the fourth processing efficiency are respectively confirmed according to the above-mentioned corresponding task processing parameters.
[0081] Specifically, by confirming the third task processing parameter and the fourth task processing parameter, if the third processing efficiency of the target task calculated on the target edge server is greater than the fourth processing efficiency of the target task back to the financial terminal, that is, less than The utility value at the moment minus The consumption of migrating the time interval to the financial terminal and the consumption of calculating in the financial terminal are considered to be able to be processed and migrated back to the local calculation, and the selection function corresponding to the above process is defined as the variable effect selection function.
[0082] In the above embodiment, the third processing efficiency and the fourth processing efficiency are obtained by calculating the third task processing parameter and the fourth task processing parameter respectively. The subject of the target task corresponding to the current moment can be selected more accurately according to the migration time and waiting time of the target task, that is, whether the target task is to be rolled back to the financial terminal for processing can be selected more accurately, thereby improving the task processing efficiency.
[0083] Further, in one embodiment, step S404, when the subject currently processing the target task is the target edge server, respectively obtains the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing, and also includes:
[0084] When the task migration duration and the waiting duration are both greater than zero, the third task processing parameters for processing the target task on the target edge server and the fourth task processing parameters for falling back to the financial terminal for processing the target task are respectively obtained; the third task processing parameters include the instantaneous final utility value corresponding to the waiting duration and the defection risk threshold; the fourth task processing parameters include the instantaneous final utility value corresponding to the waiting duration, the defection risk value corresponding to the above waiting duration and the defection risk threshold; the third processing efficiency for processing the target task on the target edge server is determined based on the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting duration; the fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined based on the difference between the instantaneous final utility value corresponding to the above waiting duration, the defection risk value during the waiting duration and the defection risk threshold when the target task is processed on the financial terminal.
[0085] Among them, the instantaneous final utility value corresponding to the waiting time in the third task processing parameter is expressed as , the defection risk threshold corresponding to the waiting time is expressed as The instantaneous final utility value corresponding to the waiting time in the fourth task processing parameter is expressed as , the defection risk threshold corresponding to the waiting time is expressed as , the defection risk value corresponding to the waiting time , and the third processing efficiency and the fourth processing efficiency are respectively confirmed according to the above corresponding task processing parameters.
[0086] Specifically, if If the time corresponding to the instantaneous final utility value calculated by the moment target task falling back to the financial terminal is less than the time corresponding to the instantaneous utility value calculated on the target edge server, then the task will be chosen to fall back to the financial terminal for processing; otherwise, the fallback will be canceled and the task will continue to queue on the target edge server for processing.
[0087] Through the above embodiment, when the waiting time and the migration time are both greater than zero, the third processing efficiency and the fourth processing efficiency of the target task at the target edge server and at the financial terminal are calculated again, respectively, and a more suitable subject for processing the target task can be selected, thereby improving the processing efficiency of the target task and saving resources.
[0088] This application provides a task processing method. In order to better understand the process of the above task processing method, combined with Figure 5 As shown, the specific process of the task processing method of this application is described in detail below, including the following steps:
[0089] Step S501: construct a selection function based on the instantaneous utility reduction rate.
[0090] Among them, for any terminal , define the generated tasks as ,when After being successfully processed, Generate a utility value, which will be Total processing time Increase and decrease, the corresponding relationship is as follows:
[0091]
[0092] Above Indicates the task The utility function satisfies the initial utility value of any task without discount due to waiting delay. , and its utility value decreases as the waiting delay increases. Therefore, for any given time , The instantaneous utility value reduction rate is ,definition To select a function.
[0093] Step S502: Initialize multiple financial terminals and multiple edge servers to obtain an initial selection function.
[0094] Specifically, based on the above steps, the instantaneous utility values of the financial terminal and the edge server can be obtained: The expression is:
[0095]
[0096] in Indicates that the task is calculated locally. Indicates that the current task is being calculated on the MEC server. Correspondingly, MEC (Multi-access Edge Computing) refers to edge servers, which are located at the edge of the network, close to the terminal devices, and can provide faster data processing and lower latency. They can also perform computing tasks at the edge of the network, reducing the time and cost of transmitting data to the cloud, and improving service quality and user experience. The instantaneous utility value decrement rate is recorded as , the terminal can obtain the instantaneous probability density value of the remaining local calculation delay , MEC can obtain the instantaneous utility value reduction rate of the MEC calculation queue delay , the terminal can obtain real-time information from the MEC server The value of .
[0097] Step S503: Process the task requests sent by the current financial terminal in sequence according to the initial selection function.
[0098] Specifically, the defection risk threshold is defined as , in order to make the utility function To take the maximum value, the corresponding utility reduction rate needs to be small enough:
[0099]
[0100] And, select the function The calculation rules are:
[0101]
[0102] set up The inverse function of , the above formula is equivalent to:
[0103]
[0104] In addition, for the target tasks of financial terminal processing, ,and Not necessarily equal, the target edge server computing task queue status information is sent to the financial terminal through the paging channel. When the financial terminal is set to perform a defection operation, only consider falling back from the target edge server to the financial terminal computing, and do not consider switching from the financial terminal to the target edge server computing again. The specific representation method is:
[0105]
[0106] In the target task During the total period from the start to the end of the execution, evaluating the utility value of the defection risk can better select the corresponding processing subject for the target task.
[0107] Step S504, calculating the expected instantaneous utility value reduction rate according to the Martingale prediction and calculating the time-varying result according to the state space transition rate.
[0108] Financial terminals in Generate a task If no migration decision is made, it is assumed that the target edge server already has tasks, then the task enters the MEC computing task queue and the remaining service delay can be and Calculate, where yes Position in the queue The waiting time, is the overhead delay of task migration. Obviously, the rate of reduction of instantaneous utility value decreases with time. At this moment, the undecided target task queue and the target edge server execution queue enter the monitoring state. When the status of the two queues changes, the financial terminal and the target edge server will be notified and the execution position of the target task will be adjusted.
[0109] Furthermore, the calculation time, The expected value of is calculated as:
[0110]
[0111] in, , indicating that time Different service status, the first The service status can be expressed as , that is, The element value is 1. Indicates the corresponding The instantaneous rate under different service states is calculated as follows:
[0112]
[0113] in, is the state space transition rate of the system, is the Martingale forecast, and , It conforms to the hidden Markov model and can accurately approximate any time-varying service process when D is large enough.
[0114] Step S505: Select a corresponding function according to the time-varying result.
[0115] when When , the task is decided whether to migrate according to formula (4).
[0116] when If the task is calculated locally, no re-decision is required. If the task is calculated in MEC, consider the defection risk. , and its selection function is:
[0117]
[0118] The above means that if the final utility value calculated by the task on the target edge server is less than The utility value at the moment minus The utility consumption of the time interval migrated to the financial terminal for processing and the consumption calculated at the financial terminal are considered to be eligible for cross-processing and migrated back to the financial terminal for processing. This function is defined as the cross-effect selection function.
[0119] Similarly, when When, due to If it is greater than zero, the utility value of the target task in the financial terminal and the target edge server cannot be predicted, and the processing time can only be calculated using the inverse function. If the target task is processed in the financial terminal, no new decision is required. If the task is processed in the target edge server, the selection function is defined as a variable working condition selection function:
[0120]
[0121] The above meaning is: if If the time corresponding to the instantaneous final utility value calculated by the task back to the financial terminal is less than the time corresponding to the instantaneous utility value calculated at the target edge server, the task will be back to the financial terminal for processing. Otherwise, the backoff is canceled and the task will continue to queue for processing at the target edge server.
[0122] Step S506: After all task requests of the current financial terminal are processed, the task request of the next financial terminal will be processed.
[0123] Specifically, after the migration decision is completed, the target task completes the migration operation and continues to execute the processing flow of the target task until the target task is completed and exits the queue, and then continues to iterate and process the next target task, that is, The value of is increased by 1; after the target task migration process of the current financial terminal is completed, the next financial terminal is iterated, that is, The value of is increased by 1. After the migration is completed, the target task processing flow enters a blocked state, waiting for the next financial terminal target task request.
[0124] Furthermore, the selection flow diagram of the target task processing method is as follows: Figure 6 shown.
[0125] More specifically, the system model diagram for target task processing is shown in Figure 7 As shown, further, the target edge server The total number of financial terminals for computing task migration is , all financial terminals share Message queue of any financial terminal , You can choose to calculate the generated target task on the financial terminal or migrate it to the target edge server for calculation. In addition, the financial terminal can obtain the exact time when the target task is processed on the financial terminal. When it is necessary to migrate to the target edge server, the data and instructions need to be transmitted to the target edge server, and the results will be sent to the financial terminal after processing. The target edge server can obtain the exact time when the target task is processed on the target edge server, and organize and transmit it at the lowest cost through the software defined network (SDN). The task queue characteristics meet , and can be expanded to In addition, after selecting the target task to be processed at the target edge server, the financial terminal can choose to fall back to the financial terminal for processing. This type of fallback is called defection, including defection risk value and defection risk threshold.
[0126] Through the above embodiments, mathematical modeling is performed on the task migration processing process of the target edge server and the financial terminal in the financial field, and a migration decision model based on utility decay and defection risk threshold is constructed, which realizes the request migration decision of the financial terminal in the edge computing scenario. The task queue to be migrated and the computing task queue on the target edge server are established for decision offloading at the financial terminal, and the triggering of financial terminal messages is realized through message blocking. The message synchronization of queue information to the financial terminal is realized based on the paging channel. The initial migration decision and defection decision of the task are decoupled through dual-queue assisted migration and message synchronization, and a time-based instantaneous effect is established. Using the instantaneous utility evaluation method of the reduction rate and the initial migration selection function, as well as the defective risk threshold and the instantaneous utility reduction function, the calculation rules of the selection function and the inverse selection function are constructed, and the instantaneous rate expectation of the establishment process of the state space transition rate, Martingale prediction value and the hidden Markov model is obtained; finally, the initial selection function, the variable aftereffect selection function and the variable working condition selection function are used to process the decisions of different initial times and time-consuming time periods, so as to realize the three aspects of the task decision migration process, which can effectively make migration decisions on the tasks requested by the financial terminal, realize the migration and rollback of the tasks with the optimal utility, and improve the efficiency of financial technology services.
[0127] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0128] Based on the same inventive concept, the embodiment of the present application also provides a task processing device for implementing the task processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more task processing device embodiments provided below can refer to the limitations on the task processing method above, and will not be repeated here.
[0129] In an exemplary embodiment, Figure 8 As shown, a task processing device is provided, including: a rate acquisition module 701, an efficiency prediction module 702 and a subject determination module 703, wherein:
[0130] The rate acquisition module 701 is used to respectively acquire the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal when the financial terminal receives a new target task.
[0131] The efficiency prediction module 702 is used to predict the first processing efficiency when processing the target task at the financial terminal according to the first instantaneous utility value reduction rate, and to predict the second processing efficiency when migrating the target task to the target edge server for processing according to the second instantaneous utility value reduction rate.
[0132] The subject determination module 703 is used to determine the subject that processes the target task from the financial terminal and the target edge server according to the first processing efficiency and the second processing efficiency, and process the target task through the subject.
[0133] Furthermore, in one embodiment, the efficiency prediction module 702 is also used to obtain a first difference between an initial utility value of the target task processed at the financial terminal and a minimum value of a first instantaneous utility value reduction rate within the corresponding total processing time, substitute the first difference into the utility function for calculation, and obtain a first processing efficiency; based on the second instantaneous utility value reduction rate, predict a second processing efficiency when the target task is processed at the target edge server, including: obtaining a second difference between an initial utility value of the target task processed at the target edge server and a minimum value of a second instantaneous utility value reduction rate within the corresponding total processing time, substitute the second difference into the utility function for calculation, and use the calculation result as the second processing efficiency; the above-mentioned second processing efficiency is less than or equal to the defection risk threshold.
[0134] Furthermore, in one embodiment, the subject determination module 703 is also used to compare the first processing efficiency and the second processing efficiency. When the comparison result is that the first processing efficiency is less than or equal to the second processing efficiency, the subject of the processing target task is determined to be the financial terminal; when the comparison result is that the first processing efficiency is greater than the second processing efficiency, the subject of the processing target task is determined to be the target edge server.
[0135] Furthermore, in one embodiment, the subject determination module 703 is also used to determine the task migration duration for migrating the target task to the target edge server, and the waiting time for the target task to be processed on the target edge server; based on the task migration duration and the waiting time, the subject for processing the target task is again determined from the financial terminal and the target edge server.
[0136] Furthermore, in one embodiment, the subject determination module 703 is also used to, when the task migration duration and the waiting duration are both equal to zero, return to the steps of respectively obtaining the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal, so as to determine the subject for processing the target task; when the task migration duration is greater than or equal to zero and the waiting duration is greater than zero, determine the subject currently processing the target task; when the subject currently processing the target task is the target edge server, respectively obtain the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing; and based on the third processing efficiency and the fourth processing efficiency, again determine the subject for processing the target task from the financial terminal and the target edge server.
[0137] Furthermore, in one embodiment, the efficiency prediction module 702 is also used to obtain a third task processing parameter for processing the target task on the target edge server and a fourth task processing parameter for falling back to the financial terminal to process the target task when the task migration duration is equal to zero and the waiting duration is greater than zero; the third task processing parameter includes a total utility value and a utility value during the waiting duration; the fourth task processing parameter includes a consumption value of the waiting duration and a defection risk value of the waiting duration; the third processing efficiency for processing the target task on the target edge server is determined based on the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting duration; the fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined based on the sum of the consumption value of the waiting duration and the defection risk value during the waiting duration.
[0138] Further, in one embodiment, the efficiency prediction module 702 is also used to obtain a third task processing parameter for processing the target task on the target edge server and a fourth task processing parameter for falling back to the financial terminal to process the target task when both the task migration time and the waiting time are greater than zero; the third task processing parameter includes an instantaneous final utility value corresponding to the waiting time and a defection risk threshold; the fourth task processing parameter includes an instantaneous final utility value corresponding to the waiting time, a defection risk value corresponding to the above waiting time, and a defection risk threshold; the third processing efficiency for processing the target task on the target edge server is determined based on the difference between the total utility value of the target task processed on the target edge server and the utility value during the waiting time; the fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined based on the difference between the instantaneous final utility value corresponding to the above waiting time, the defection risk value during the waiting time, and the defection risk threshold when the target task is processed on the financial terminal.
[0139] Each module in the above task processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0140] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store task processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a task processing method is implemented.
[0141] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0142] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0143] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0144] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0147] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0148] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A task processing method, characterized in that: The method comprises: When the financial terminal receives a new target task, respectively obtaining a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal; According to the first instantaneous utility value reduction rate, predicting a first processing efficiency when the financial terminal processes the target task, and according to the second instantaneous utility value reduction rate, predicting a second processing efficiency when the target task is migrated to the target edge server for processing; According to the first processing efficiency and the second processing efficiency, a subject for processing the target task is determined from the financial terminal and the target edge server, and the target task is processed by the subject.
2. The method according to claim 1, characterized in that The predicting, according to the first instantaneous utility value reduction rate, a first processing efficiency when the financial terminal processes the target task includes: Obtaining a first difference between an initial utility value of the target task processed at the financial terminal and a minimum value of the first instantaneous utility value reduction rate within a corresponding total processing time, substituting the first difference into a utility function for calculation, and obtaining a first processing efficiency; The predicting, according to the second instantaneous utility value reduction rate, a second processing efficiency when the target edge server processes the target task comprises: Obtain a second difference between an initial utility value of the target task processed on the target edge server and a minimum value of the second instantaneous utility value reduction rate within the corresponding total processing time, substitute the second difference into the utility function for calculation, and obtain a second processing efficiency.
3. The method according to claim 1, characterized in that The determining, based on the first processing efficiency and the second processing efficiency, a subject for processing the target task from the financial terminal and the target edge server includes: comparing the first processing efficiency and the second processing efficiency, and when the comparison result shows that the first processing efficiency is less than or equal to the second processing efficiency, determining that the subject that processes the target task is the financial terminal; When the comparison result is that the first processing efficiency is greater than the second processing efficiency, it is determined that the subject that processes the target task is the target edge server.
4. The method according to claim 1, characterized in that: The method further comprises: determining a subject for processing the target task from the financial terminal and the target edge server according to the first processing efficiency and the second processing efficiency, and after the subject processes the target task, the method further comprises: Determine a task migration duration for migrating the target task to the target edge server, and a waiting duration for the target task to be processed on the target edge server; According to the task migration duration and the waiting duration, a subject that processes the target task is determined again from the financial terminal and the target edge server.
5. The method according to claim 4, characterized in that The determining again, based on the task migration duration and the waiting duration, a subject for processing the target task from the financial terminal and the target edge server includes: When the task migration duration and the waiting duration are both equal to zero, returning to the step of respectively obtaining the current first instantaneous utility value reduction rate of the financial terminal and the current second instantaneous utility value reduction rate of the target edge server corresponding to the financial terminal, so as to determine the subject for processing the target task; When the task migration duration is greater than or equal to zero and the waiting duration is greater than zero, determine the subject currently processing the target task; when the subject currently processing the target task is the target edge server, obtain the third processing efficiency of processing the target task on the target edge server and the fourth processing efficiency when the target task is rolled back to the financial terminal for processing; based on the third processing efficiency and the fourth processing efficiency, determine the subject processing the target task again from the financial terminal and the target edge server.
6. The method according to claim 5, characterized in that When the subject currently processing the target task is the target edge server, respectively obtaining a third processing efficiency of processing the target task on the target edge server and a fourth processing efficiency when the target task is rolled back to the financial terminal for processing, including: When the task migration duration is equal to zero and the waiting duration is greater than zero, respectively obtain a third task processing parameter for processing the target task at the target edge server and a fourth task processing parameter for falling back to the financial terminal to process the target task; the third task processing parameter includes a total utility value and a utility value at the waiting duration; the fourth task processing parameter includes a consumption value of the waiting duration and a defection risk value of the waiting duration; determining a third processing efficiency of processing the target task at the target edge server according to a difference between a total utility value of processing the target task at the target edge server and a utility value at the waiting time; A fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined according to the sum of the consumption value of the waiting time for processing the target task at the financial terminal and the defection risk value during the waiting time.
7. The method according to claim 5, characterized in that When the subject currently processing the target task is the target edge server, respectively obtaining a third processing efficiency of processing the target task on the target edge server and a fourth processing efficiency when the target task is rolled back to the financial terminal for processing, further comprising: When the task migration duration and the waiting duration are both greater than zero, respectively obtain a third task processing parameter for processing the target task at the target edge server and a fourth task processing parameter for falling back to the financial terminal to process the target task; the third task processing parameter includes an instantaneous final utility value and a defection risk threshold value corresponding to the waiting duration; the fourth task processing parameter includes an instantaneous final utility value corresponding to the waiting duration, a defection risk value and a defection risk threshold value corresponding to the waiting duration; determining a third processing efficiency of processing the target task at the target edge server according to a difference between a total utility value of processing the target task at the target edge server and a utility value at the waiting time; The fourth processing efficiency when the target task is rolled back to the financial terminal for processing is determined based on the instantaneous final utility value corresponding to the waiting time, the defection risk value during the waiting time, and the difference between the defection risk threshold when the target task is processed on the financial terminal.
8. A task processing device, characterized in that: The device comprises: A rate acquisition module, used to respectively acquire a current first instantaneous utility value reduction rate of the financial terminal and a current second instantaneous utility value reduction rate of a target edge server corresponding to the financial terminal when the financial terminal receives a new target task; an efficiency prediction module, configured to predict a first processing efficiency when the financial terminal processes the target task according to the first instantaneous utility value reduction rate, and to predict a second processing efficiency when the target task is migrated to the target edge server for processing according to the second instantaneous utility value reduction rate; The subject determination module is used to determine the subject that processes the target task from the financial terminal and the target edge server according to the first processing efficiency and the second processing efficiency, and process the target task through the subject.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
