Business data processing method, device, computer equipment and readable storage medium

By counting and optimizing the interface consumption and response time of business sub-interfaces, determining task allocation weights, and distributing interface call requests, the problems of low business data processing efficiency and difficult to control interface call costs in traditional methods are solved, and a more efficient business is achieved. Data processing and cost management.

CN118409882BActive Publication Date: 2024-09-03深圳高灯计算机科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410833480.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-03
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In the traditional method, the cost of interface calls by the business system is directly counted and controlled, resulting in low business data processing efficiency and the inability to effectively manage the cost of interface calls.

Method used

By obtaining the interface consumption and response time of data returned by multiple interfaces of the target business, statistics of the comprehensive consumption and response time of each business sub-interface are determined, task allocation weights are determined, and interface call requests are distributed based on the weights to optimize interface call efficiency and cost.

Benefits of technology

The efficiency of business data processing is improved, the interface response time is reduced, and the interface call cost is controlled and kept within a reasonable range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118409882B
    Figure CN118409882B
Patent Text Reader

Abstract

The present application relates to a business data processing method, device, computer equipment and readable storage medium. The method comprises: obtaining the interface consumption and interface response time corresponding to the return data of multiple interfaces corresponding to the target business; counting the interface consumption corresponding to the same business sub-interface, and obtaining the comprehensive interface consumption corresponding to each business sub-interface corresponding to the target business; determining the sub-interface to be adjusted from each business sub-interface; counting the interface response time corresponding to the same sub-interface to be adjusted, and obtaining the comprehensive interface response time corresponding to each sub-interface to be adjusted; determining the task allocation weight corresponding to each business sub-interface based on the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted; distributing interface call requests to each business sub-interface based on the task allocation weight. The use of this method can improve the efficiency of business data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of computer technology, interface calling technology has emerged. Each business function in a business system is often served by multiple interfaces in parallel, which can improve the throughput and fault tolerance of the system. The calls of each interface by the business system usually require payment based on usage, so the usage of each interface is closely related to the overhead of the business system.

[0003] In traditional methods, the cost of interface calls of business systems is usually directly counted, and the system call cost is controlled based on the overhead of interface calls, which leads to low business data processing efficiency in business systems. Summary of the invention

[0004] Based on this, it is necessary to provide a business data processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of business data processing in response to the above technical problems.

[0005] In a first aspect, the present application provides a business data processing method, comprising:

[0006] Obtain the interface consumption and interface response time corresponding to the multiple interface return data corresponding to the target business; the target business is a business that calls a third-party service through a business interface to process requests received locally, and the interface return data exists in the corresponding business sub-interface;

[0007] Count the consumption of each interface corresponding to the same service sub-interface, and obtain the comprehensive interface consumption corresponding to each service sub-interface corresponding to the target service;

[0008] Determine the sub-interface to be adjusted from each business sub-interface;

[0009] Count the response time of each interface corresponding to the same sub-interface to be adjusted, and obtain the comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0010] Determine the task allocation weights corresponding to each service sub-interface based on the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0011] Based on the task allocation weights corresponding to each business sub-interface, interface call requests are distributed to each business sub-interface.

[0012] In one embodiment, the consumption of each interface corresponding to the same service sub-interface is counted to obtain the comprehensive interface consumption corresponding to each service sub-interface corresponding to the target service, including:

[0013] Count the interface costs in the interface consumption corresponding to the same service sub-interface, and obtain the total interface costs corresponding to each service sub-interface;

[0014] Count the text usage in the consumption of each interface corresponding to the same business sub-interface, and obtain the total text usage corresponding to each business sub-interface;

[0015] Count the interface call volume corresponding to each business sub-interface;

[0016] The total interface cost, total text usage and interface call volume corresponding to the same business sub-interface are integrated to obtain the comprehensive interface consumption corresponding to each business sub-interface.

[0017] In one embodiment, determining the sub-interface to be adjusted from each service sub-interface includes:

[0018] Based on the comprehensive interface consumptions corresponding to the respective service sub-interfaces, the sub-interfaces to be adjusted are determined in each service sub-interface.

[0019] In one embodiment, based on the comprehensive interface consumption and the comprehensive interface response time respectively corresponding to each sub-interface to be adjusted, the task allocation weights respectively corresponding to each service sub-interface are determined, including:

[0020] Based on the comprehensive interface consumption corresponding to each business sub-interface, the estimated interface cost corresponding to each business sub-interface is obtained;

[0021] Based on the estimated interface cost and comprehensive interface response time corresponding to the same business sub-interface, the task allocation weight corresponding to each business sub-interface is determined respectively; the task allocation weight is negatively correlated with the estimated interface cost and comprehensive interface response time.

[0022] In one embodiment, the business data processing method further includes:

[0023] Obtain the historical average statistical value of each business sub-interface for each statistical indicator; each statistical indicator includes interface consumption and interface response time;

[0024] Based on the business type corresponding to the target business, determine the warning level corresponding to the target business;

[0025] Adjust the historical average statistical values ​​corresponding to each statistical indicator according to the warning level to obtain the warning value of each statistical indicator for the target business;

[0026] When the current statistical value of a business sub-interface for a statistical indicator is greater than the warning value corresponding to the statistical indicator, an abnormal warning for the corresponding business sub-interface is triggered.

[0027] In one embodiment, the business data processing method further includes:

[0028] Count the interface consumption and interface response time of each business sub-interface of the business object, and obtain the object statistical value of each statistical indicator of the business object;

[0029] Based on the object statistical values ​​of each business object for each statistical indicator, determine the target object with abnormal operation behavior in each business object;

[0030] According to the object statistical values ​​of the target object for each statistical indicator, an abnormal behavior report corresponding to the target object is generated.

[0031] In one embodiment, the business data processing method further includes:

[0032] When accessing the management platform of the target business as an administrator, various statistical indicators corresponding to the target business are displayed on the management platform; various statistical indicators include interface consumption and interface response time;

[0033] In response to a statistical data viewing operation for at least one target statistical indicator among the statistical indicators, a statistical chart of each business sub-interface for the target statistical indicator is displayed.

[0034] In a second aspect, the present application also provides a business data processing device, including:

[0035] The acquisition module is used to obtain the interface consumption and interface response time corresponding to the multiple interface return data corresponding to the target business; the target business is a business that calls a third-party service through a business interface to process requests received locally, and the interface return data exists in the corresponding business sub-interface;

[0036] The first statistical module is used to count the consumption of each interface corresponding to the same service sub-interface, and obtain the comprehensive interface consumption corresponding to each service sub-interface corresponding to the target service;

[0037] An interface determination module, used to determine the sub-interface to be adjusted from various business sub-interfaces;

[0038] The second statistical module is used to count the response time of each interface corresponding to the same sub-interface to be adjusted, and obtain the comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0039] A weight determination module determines the task allocation weights corresponding to each business sub-interface based on the comprehensive interface consumption and the comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0040] The request distribution module is used to distribute interface call requests to each business sub-interface based on the task allocation weight corresponding to each business sub-interface.

[0041] In a third aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned business data processing method when executing the computer program.

[0042] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned business data processing method are implemented.

[0043] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned business data processing method when executed by a processor.

[0044] The above-mentioned business data processing method, device, computer equipment, computer-readable storage medium and computer program product obtain the interface consumption and interface response time corresponding to the multiple interface return data corresponding to the target business, and count the interface consumption corresponding to the same business sub-interface, and respectively obtain the comprehensive consumption corresponding to each business sub-interface corresponding to the target business. Then, the sub-interface to be adjusted is determined in each business sub-interface, and the interface response time corresponding to the same sub-interface to be adjusted is counted, and the comprehensive interface response time corresponding to each sub-interface to be adjusted is obtained. Based on the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted, the task allocation weight corresponding to each business sub-interface is determined, and the interface call request is distributed to each business sub-interface based on the task allocation weight. In this way, while the interface return data is obtained by calling the third-party service through the business sub-interface, the interface consumption and interface response time corresponding to the interface return data are obtained and counted, and the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted are obtained. Then, the task allocation weights corresponding to each business sub-interface are adjusted according to the comprehensive interface consumption and the comprehensive interface response time, which can reduce the interface response time corresponding to the target business and improve the business data processing efficiency. At the same time, it can also control the cost and consumption generated by calling third-party services through the business sub-interface corresponding to the target business within a reasonable range. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 An application environment diagram of a business data processing method in an embodiment;

[0047] Figure 2 A flowchart of a method for processing business data in one embodiment;

[0048] Figure 3 A schematic diagram of a process for determining comprehensive interface consumption in one embodiment;

[0049] Figure 4 A schematic diagram of a statistical chart of interface response time in an embodiment;

[0050] Figure 5 A schematic diagram of various statistical charts corresponding to interface consumption in an embodiment;

[0051] Figure 6 A schematic diagram of a system architecture of a management platform in one embodiment;

[0052] Figure 7 is a flowchart of a business data processing method in another embodiment;

[0053] Figure 8 is a structural block diagram of a business data processing device in an embodiment;

[0054] Fig. 9 is an internal structure diagram of a computer device in one embodiment;

[0055] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] 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.

[0057] The business data processing method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 102 obtains multiple interface return data corresponding to the target business from each terminal 104, as well as the interface consumption and interface response time corresponding to the interface return data. The target business refers to the business that calls a third-party service through a business interface to process the request received locally, and the interface return data exists in the business sub-interface. The server 102 counts the consumption of each interface corresponding to the same business sub-interface, and obtains the comprehensive consumption corresponding to each business sub-interface corresponding to the target business. The server 102 determines the sub-interface to be adjusted from each business sub-interface, counts the response time of each interface corresponding to the same sub-interface to be adjusted, and obtains the comprehensive interface response time corresponding to each sub-interface to be adjusted. The server 102 determines the task allocation weight corresponding to each business sub-interface based on the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted. When the server 102 receives the interface call request corresponding to the target service, it distributes the interface call request to the terminal 104 corresponding to each service sub-interface based on the task allocation weight corresponding to each service sub-interface. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0058] In an exemplary embodiment, Figure 2 As shown, a business data processing method is provided, which is applied to Figure 1 The server in the example is used to illustrate, including the following steps 202 to 212. Among them:

[0059] Step 202, obtain the interface consumption and interface response time corresponding to multiple interface return data corresponding to the target business; the target business is a business that calls a third-party service through a business interface to process requests received locally, and the interface return data exists in the corresponding business sub-interface.

[0060] The target business refers to the business provided in the business system that needs to call a third-party service through the corresponding business interface to process the received request. For example, the target business can be a business that calls a large language model through a business interface to generate an answer text, or a business that obtains a large amount of relevant data by calling a data analysis interface and analyzes and processes the data. In the actual implementation process, the target business can be a business that uses a large language model to complete functions such as financial analysis generation, knowledge question and answer, and text-assisted creation.

[0061] Interface return data refers to the data returned by calling a third-party service through a business interface. For the same target business, the third-party service corresponding to the target business can be called through multiple business sub-interfaces. Each business sub-interface can call the same version of the third-party service or a different version of the third-party service. Different versions of third-party services corresponding to the target business differ in terms of function, performance, and cost. For example, when the target business is a business that generates answer text by calling a large language model, the different versions of the third-party service corresponding to the target business are different versions of the large language model. For example, they can be version 3.5 and version 4.0 corresponding to the large language model A. Compared with version 3.5, version 4.0 can provide more advanced functions, and its data processing efficiency and accuracy are higher than version 3.5. Therefore, in terms of cost, version 4.0 will be higher than version 3.5.

[0062] Interface consumption refers to the detailed resource consumption generated by calling the business sub-interface to generate the corresponding interface return data. Interface response time refers to the time spent from receiving the interface call request for the target business to receiving the interface return data for the interface call request returned by calling the third-party service.

[0063] Exemplarily, when the server receives an interface call request for a target business, it sends the interface call request to a business sub-interface among the business sub-interfaces corresponding to the target business, calls a third-party service through the business sub-interface, responds to the business requirements corresponding to the interface call request through the third-party service, generates corresponding interface return data, and sends the interface consumption corresponding to this interface call to the server together with the interface return data. The server obtains the interface return data corresponding to the target business and the interface consumption corresponding to the interface return data, and calculates the interface response time corresponding to the interface return data based on the time when the interface call request is received and the time when the interface return data is received.

[0064] Step 204, counting the interface consumption corresponding to the same service sub-interface, and obtaining the comprehensive interface consumption corresponding to each service sub-interface corresponding to the target service.

[0065] The comprehensive interface consumption is used to characterize the overall interface consumption corresponding to the service sub-interface.

[0066] Exemplarily, the server counts the consumption of each interface corresponding to the same business sub-interface in the current cycle, and obtains the comprehensive interface consumption corresponding to each business sub-interface corresponding to the target business in the current cycle. In the actual implementation process, the interface call situation of each business sub-interface can be statistically analyzed according to the preset cycle, so as to determine the task allocation weight corresponding to each business sub-interface in the next cycle, so that load balancing can be achieved between each business sub-interface through the task allocation weight, and the business data processing efficiency can be improved. The cycle can be set according to actual needs, for example, it can be set to one day, one week or one month. Specifically, the consumption of each interface corresponding to the same business sub-interface in the current cycle can be summed to obtain the comprehensive interface consumption corresponding to each business sub-interface.

[0067] Step 206: Determine the sub-interface to be adjusted from each service sub-interface.

[0068] The sub-interface to be adjusted refers to the service sub-interface for which the interface response time needs to be counted among the service sub-interfaces.

[0069] Exemplarily, the server may use each service sub-interface as a sub-interface to be adjusted, or may determine the sub-interface to be adjusted in each service sub-interface based on the interface consumption corresponding to each service sub-interface. Specifically, the interface consumption may include information such as interface cost and text usage. The interface cost and text usage corresponding to each service sub-interface in the current cycle may be counted, and the sub-interface to be adjusted may be determined in each service sub-interface based on the total interface cost and total text usage corresponding to each service sub-interface. In addition, the interface call volume corresponding to each service sub-interface in the current cycle may be counted, and the sub-interface to be adjusted may be determined in each service sub-interface according to the interface call volume corresponding to each service sub-interface in the current cycle. For example, a service sub-interface whose interface call volume is greater than a preset threshold may be used as a sub-interface to be adjusted.

[0070] Step 208 , counting the interface response time corresponding to the same sub-interface to be adjusted, and obtaining the comprehensive interface response time corresponding to each sub-interface to be adjusted.

[0071] The comprehensive interface response time is used to represent the average interface response time corresponding to the service sub-interface.

[0072] Exemplarily, the server obtains and counts the interface response time corresponding to the same sub-interface to be adjusted in the current cycle, and obtains the comprehensive interface response time corresponding to each sub-interface to be adjusted. Specifically, the average value of each interface response time corresponding to the same sub-interface to be adjusted in the current cycle can be directly used as the comprehensive interface response time, or the interface response time corresponding to the same sub-interface to be adjusted in the current cycle can be randomly sampled, and the average of each randomly collected interface response time is calculated to obtain the comprehensive response time, which can reduce the amount of calculation and improve the efficiency of calculating the comprehensive interface response time.

[0073] Step 210: Determine the task allocation weights corresponding to the various service sub-interfaces based on the comprehensive interface consumption and the comprehensive interface response time corresponding to the various sub-interfaces to be adjusted.

[0074] Among them, the task allocation weight is set to achieve more reasonable and efficient task allocation. Differentiated allocation of interface call requests can be performed based on the performance, cost and other factors corresponding to each business sub-interface. The task allocation weight corresponding to the business sub-interface is used to indicate the proportion of interface call requests allocated to the business sub-interface. The higher the task allocation weight corresponding to the business sub-interface, the more interface call requests need to be allocated to the business sub-interface.

[0075] Exemplarily, the server adjusts the task allocation weight corresponding to the sub-interface to be adjusted according to the comprehensive interface consumption and the comprehensive interface response time corresponding to the sub-interface to be adjusted. Specifically, the server can obtain the corresponding fusion weights set for the comprehensive interface consumption and the comprehensive interface response time. The fusion weights corresponding to the comprehensive interface consumption and the comprehensive interface response time can be set according to the actual business needs corresponding to the target business. For example, when the target business has a high requirement for the interface response time, the fusion weight corresponding to the comprehensive interface response time can be increased, and when the target business has a high requirement for the interface consumption, the fusion weight corresponding to the comprehensive interface consumption can be increased. According to the fusion weights corresponding to the comprehensive interface consumption and the comprehensive interface response time, the comprehensive interface consumption and the comprehensive interface response time corresponding to the same sub-interface to be adjusted are fused to obtain the first evaluation scores corresponding to each sub-interface to be adjusted. Then, based on the first evaluation scores corresponding to each sub-interface to be adjusted, the initial task allocation weights corresponding to each sub-interface to be adjusted are adjusted. The initial task allocation weight corresponding to the business sub-interface can be set to 1 by default, or the task allocation weight corresponding to the business sub-interface in the current cycle can be used as the initial task allocation weight, and the task allocation weight corresponding to the business sub-interface in the current cycle can be adjusted to obtain the task allocation weight corresponding to the business sub-interface in the next cycle. The task allocation weight corresponding to the sub-interface to be adjusted is negatively correlated with the first evaluation score corresponding to the sub-interface to be adjusted. That is, when the comprehensive interface response time and comprehensive interface consumption corresponding to the sub-interface to be adjusted are large, the task allocation weight of the sub-interface to be adjusted is reduced, so that the interface call request can be more allocated to other relatively idle business sub-interfaces, which can improve the overall business data processing efficiency of the target business.

[0076] For each business sub-interface except the sub-interface to be adjusted in each business sub-interface corresponding to the target business, the server fuses the comprehensive interface consumption and the comprehensive interface response time corresponding to the same business sub-interface according to the fusion weights corresponding to the comprehensive interface consumption and the comprehensive interface response time, and obtains the first evaluation score corresponding to each business sub-interface. Based on the first evaluation scores corresponding to the remaining business sub-interfaces, the initial task allocation weights corresponding to the remaining business sub-interfaces are adjusted. The task allocation weight corresponding to the sub-interface to be adjusted is negatively correlated with the first evaluation score corresponding to the sub-interface to be adjusted. That is, when the comprehensive interface response time and comprehensive interface consumption corresponding to the business sub-interface are small, the task allocation weight of the business sub-interface is increased, so that the interface call request can be allocated more to the business sub-interface, which can improve the overall business data processing efficiency of the target business, and at the same time, the interface call consumption corresponding to the target business can be controlled to remain within a reasonable range.

[0077] In some embodiments, for each service sub-interface other than the sub-interface to be adjusted among the service sub-interfaces corresponding to the target service, the server can determine the first evaluation score corresponding to the service sub-interface only according to the comprehensive interface consumption corresponding to the service sub-interface. In this way, it is not necessary to count the comprehensive response time of the remaining service sub-interfaces, so the first evaluation score corresponding to each of the remaining service sub-interfaces can be quickly determined, thereby further improving the efficiency of service data processing.

[0078] Step S212: Distribute the interface call request to each business sub-interface based on the task allocation weight corresponding to each business sub-interface.

[0079] Among them, the interface call request refers to the request to call the business sub-interface corresponding to the target business. For example, when the target business is to call a large language model to generate an answer text, the user enters and submits the question text in the input box, triggering the generation of an interface call request carrying the question text. When the interface call request is distributed to the corresponding business sub-interface, the business sub-interface calls the corresponding third-party service to perform natural language processing on the question text carried in the interface call request to obtain the corresponding answer text, that is, the interface return data.

[0080] Exemplarily, the server determines the frequency of distributing interface call requests to each business sub-interface based on the task allocation weights corresponding to each business sub-interface, and the task allocation weights are positively correlated with the frequency of distributing interface call requests.

[0081] In the above-mentioned business data processing method, by obtaining the interface consumption and interface response time corresponding to the return data of multiple interfaces corresponding to the target business, and counting the interface consumption corresponding to the same business sub-interface, the comprehensive consumption corresponding to each business sub-interface corresponding to the target business is obtained. Then, the sub-interface to be adjusted is determined in each business sub-interface, and the interface response time corresponding to the same sub-interface to be adjusted is counted, and the comprehensive interface response time corresponding to each sub-interface to be adjusted is obtained. Based on the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted, the task allocation weight corresponding to each business sub-interface is determined, and the interface call request is distributed to each business sub-interface based on the task allocation weight. In this way, while the interface return data is obtained by calling the third-party service through the business sub-interface, the interface consumption and interface response time corresponding to the interface return data are obtained and counted, and the comprehensive interface consumption and comprehensive interface response time corresponding to each sub-interface to be adjusted are obtained. Then, the task allocation weights corresponding to each business sub-interface are adjusted according to the comprehensive interface consumption and the comprehensive interface response time, which can reduce the interface response time corresponding to the target business and improve the business data processing efficiency. At the same time, it can also control the cost and consumption generated by calling third-party services through the business sub-interface corresponding to the target business within a reasonable range.

[0082] In an exemplary embodiment, Figure 3 As shown, step 204 includes steps 302 to 308. Among them:

[0083] Step 302: Count the interface costs in the interface consumption corresponding to the same service sub-interface, and obtain the total interface costs corresponding to each service sub-interface.

[0084] Among them, interface cost refers to the cost incurred by calling third-party services through business sub-interfaces.

[0085] Exemplarily, the server sums up the interface costs in the interface consumptions corresponding to the same service sub-interface, and obtains the total interface costs corresponding to each service sub-interface.

[0086] Step 304: count the text usage in the interface consumption corresponding to the same service sub-interface, and obtain the total text usage corresponding to each service sub-interface.

[0087] Among them, when the target business is to call the large language model through the business interface to generate answer text, the text usage is the number of text measurement units consumed by the text data input into the large language model and the answer text output by the large language model. In the actual implementation process, the text measurement unit can be a token, and the text usage is the token usage. A token is the smallest semantic unit into which the text is cut, such as a word, a character, a punctuation mark, etc.

[0088] Exemplarily, the server sums the text usage in the consumption of each interface corresponding to the same business sub-interface, and obtains the total text usage corresponding to each business sub-interface. Since large language models are usually billed based on text usage, by monitoring and analyzing the text usage corresponding to each business sub-interface, we can better understand the needs and usage of large language models by different users, thereby achieving more efficient resource allocation, timely optimizing resource waste problems, and reducing the cost of interface calls. For example, when a business sub-interface with abnormally high text usage appears, the cause of the abnormality can be analyzed for the business sub-interface, and the calling method of the business sub-interface can be optimized, thereby improving the overall business data processing performance and reducing the cost of interface calls.

[0089] Step 306: Count the interface call volumes corresponding to each service sub-interface.

[0090] Step 308, integrating the total interface cost, total text usage and interface call volume corresponding to the same business sub-interface, and obtaining the comprehensive interface consumption corresponding to each business sub-interface.

[0091] The interface call volume refers to the number of times the business sub-interface is called.

[0092] Exemplarily, the server counts the number of times each business sub-interface is called to obtain the interface call volume corresponding to each business sub-interface. The total interface cost, total text usage, and interface call volume corresponding to the same business sub-interface are integrated to obtain the comprehensive interface consumption corresponding to each business sub-interface. Specifically, the weights corresponding to the total interface cost, total text usage, and interface call volume can be obtained, and the total interface cost, total text usage, and interface call volume are weighted and integrated to obtain the comprehensive interface consumption corresponding to the business sub-interface.

[0093] In this embodiment, the comprehensive consumption of each business sub-interface is analyzed from three aspects: interface consumption, text usage and interface call volume. The comprehensive interface consumption obtained in this way can be more accurate and can comprehensively and meticulously display the user's usage of each business sub-interface, thereby providing accurate data support for achieving more effective resource allocation, timely optimizing resource waste problems, and reducing the cost of interface calls.

[0094] In an exemplary embodiment, step 206 includes:

[0095] Based on the comprehensive interface consumptions corresponding to the respective service sub-interfaces, the sub-interfaces to be adjusted are determined in each service sub-interface.

[0096] Exemplarily, the server compares the comprehensive interface consumption corresponding to each service sub-interface, and determines the sub-interface to be adjusted in each service sub-interface based on the comparison result. Specifically, the service sub-interface whose comprehensive interface consumption is greater than the preset consumption threshold can be used as the sub-interface to be adjusted, and the preset consumption threshold can be set according to the actual situation.

[0097] In this embodiment, by comparing the comprehensive interface consumption corresponding to the business sub-interface with the preset consumption threshold, the business sub-interface with higher consumption can be quickly and accurately determined as the sub-interface to be adjusted among the various business sub-interfaces, thereby improving the efficiency of business data processing.

[0098] In an exemplary embodiment, step 210 includes:

[0099] Based on the comprehensive interface consumption corresponding to each business sub-interface, the estimated interface cost corresponding to each business sub-interface is obtained; based on the estimated interface cost and comprehensive interface response time corresponding to the same business sub-interface, the task allocation weight corresponding to each business sub-interface is determined respectively; the task allocation weight is negatively correlated with the estimated interface cost and comprehensive interface response time.

[0100] The estimated interface cost refers to the estimated cost of calling a business sub-interface.

[0101] Exemplarily, the server calculates the estimated interface cost corresponding to each business sub-interface according to the comprehensive interface consumption and interface call volume corresponding to the same business sub-interface. Specifically, the ratio between the comprehensive interface consumption and interface call volume corresponding to the same business sub-interface can be used as the estimated interface cost corresponding to the business sub-interface.

[0102] The server calculates the task allocation weights corresponding to each business sub-interface according to the expected interface cost and the comprehensive interface response time corresponding to the same business sub-interface. Specifically, the corresponding fusion weights can be set for the expected interface cost and the comprehensive interface response time. The fusion weights corresponding to the expected interface cost and the comprehensive interface response time can be set according to the actual business needs corresponding to the target business. According to the fusion weights corresponding to the expected interface cost and the comprehensive interface response time, the expected interface cost and the comprehensive interface response time corresponding to the same sub-interface to be adjusted are fused to obtain the second evaluation scores corresponding to each sub-interface to be adjusted. Then, based on the second evaluation scores corresponding to each sub-interface to be adjusted, the initial task allocation weights corresponding to each sub-interface to be adjusted are adjusted. The task allocation weight corresponding to the sub-interface to be adjusted is negatively correlated with the second evaluation score corresponding to the sub-interface to be adjusted. Therefore, the task allocation weight determined based on the second evaluation score is also negatively correlated with the expected interface cost and the comprehensive interface response time. That is, when the comprehensive interface response time and the estimated interface cost corresponding to the sub-interface to be adjusted are large, the task allocation weight of the sub-interface to be adjusted is reduced so that the interface call requests can be more allocated to other relatively idle business sub-interfaces. This can improve the overall business data processing efficiency of the target business, and at the same time control the cost of the interface call corresponding to the target business to remain within a reasonable range.

[0103] For each business sub-interface except the sub-interface to be adjusted in each business sub-interface corresponding to the target business, the server fuses the expected interface cost and the comprehensive interface response time corresponding to the same business sub-interface according to the fusion weights corresponding to the expected interface cost and the comprehensive interface response time, and obtains the second evaluation score corresponding to each business sub-interface. Based on the second evaluation scores corresponding to the remaining business sub-interfaces, the initial task allocation weights corresponding to the remaining business sub-interfaces are adjusted. The task allocation weight corresponding to the business sub-interface is negatively correlated with the second evaluation score corresponding to the sub-interface to be adjusted. That is, when the comprehensive interface response time and the expected interface cost corresponding to the business sub-interface are small, the task allocation weight of the business sub-interface is increased, so that the interface call request can be allocated more to the business sub-interface, which can improve the overall business data processing efficiency of the target business, and at the same time, the cost of the interface call corresponding to the target business can be controlled to be within a reasonable range.

[0104] In some embodiments, for each service sub-interface other than the sub-interface to be adjusted among the service sub-interfaces corresponding to the target service, the server can determine the first evaluation score corresponding to the service sub-interface only according to the estimated interface cost corresponding to the service sub-interface. In this way, there is no need to count the comprehensive response time of the remaining service sub-interfaces, so the second evaluation score corresponding to each of the remaining service sub-interfaces can be quickly determined, thereby further improving the efficiency of service data processing.

[0105] In this embodiment, since the comprehensive interface consumption can reflect the overall interface consumption of the service sub-interface in the current cycle, the estimated interface cost calculated based on the comprehensive interface consumption and interface call volume of the same service sub-interface in the current cycle can more accurately reflect the estimated cost of each call of the service sub-interface in the next cycle. Then, based on the estimated interface cost corresponding to the sub-interface to be adjusted and the comprehensive interface response time, the task allocation weights corresponding to each service sub-interface are determined, which can improve the efficiency of service data processing while ensuring that the cost of the target service on interface calls can be kept within a reasonable range.

[0106] In an exemplary embodiment, the business data processing method further includes:

[0107] Obtain the historical average statistical value of each business sub-interface for each statistical indicator; each statistical indicator includes interface consumption and interface response time; based on the business type corresponding to the target business, determine the warning level corresponding to the target business; adjust the historical average statistical value corresponding to each statistical indicator according to the warning level, and obtain the warning value of each statistical indicator for the target business; when the current statistical value of the business sub-interface for the statistical indicator is greater than the warning value corresponding to the statistical indicator, trigger an abnormal warning for the corresponding business sub-interface.

[0108] Among them, the statistical indicator refers to the indicator used to record the interface call details of the business sub-interface, which can be interface consumption, interface response time, interface call volume, etc. Interface consumption can be refined into interface cost and text usage. The historical average statistical value corresponding to the statistical indicator refers to the average value of the statistical data of each business sub-interface for the statistical indicator in each past period.

[0109] Exemplarily, the server determines the warning level corresponding to the target business based on the business type corresponding to the target business. Specifically, the warning level corresponding to the business type corresponding to the target business can be determined by querying the mapping relationship between the pre-configured business type and the warning level. The higher the warning level, the higher the sensitivity of the target business to the abnormalities occurring during the interface call process, that is, it is necessary to trigger the warning when the current statistical value of each statistical indicator reaches a smaller value, so as to prevent the abnormal situation from further developing and causing greater losses. Obtain and average the statistical values ​​of each statistical indicator for each business sub-interface in multiple historical periods to obtain the historical average statistical value of the target business for each statistical indicator. According to the warning level corresponding to the target business, adjust the historical average statistical value of the target business for each statistical indicator to obtain the warning value of the target business for each statistical indicator. The warning level is positively correlated with the warning value corresponding to the target business. Specifically, the historical average statistical value of each statistical indicator of the target business can be adjusted by the adjustment coefficient corresponding to the warning level, and the adjustment coefficient is greater than 1. For example, when there are three warning levels, the adjustment coefficient corresponding to the highest warning level can be set to 1.2, the adjustment coefficient corresponding to the lowest warning level can be set to 1.6, and the adjustment coefficient corresponding to the middle warning level can be set to 1.4. The historical average statistical value of each statistical indicator of the target business is adjusted by the adjustment coefficient corresponding to the warning level, and the product of the adjustment coefficient corresponding to the warning level and the historical average statistical value of each statistical indicator of the target business is used as the warning value for the statistical indicator. The current statistical value of each statistical indicator of each business sub-interface is updated in real time. When the current statistical value of the statistical indicator of the business sub-interface is greater than the warning value corresponding to the statistical indicator, the corresponding abnormal warning is triggered. Specifically, based on the interface information of the business sub-interface and the corresponding statistical indicator, abnormal prompt information can be generated, and the abnormal prompt information can be sent to the management terminal.

[0110] In this embodiment, according to the target type corresponding to the target business, the warning level corresponding to the target business can be flexibly and accurately determined. Then, by adjusting the historical average value of the target business for each statistical indicator through the warning level, the warning value of the target business for each statistical indicator can be quickly and accurately determined. According to the current statistical value and the corresponding warning value corresponding to each statistical indicator, when the statistical data is abnormal, a timely warning is issued, which can improve the security and stability of the interface call.

[0111] In an exemplary embodiment, the business data processing method further includes:

[0112] The interface consumption and interface response time of each business sub-interface of the business object are counted to obtain the object statistical value of the business object for each statistical indicator; based on the object statistical value of each business object for each statistical indicator, the target object with abnormal operation behavior is determined in each business object; according to the object statistical value of the target object for each statistical indicator, an abnormal behavior report corresponding to the target object is generated.

[0113] The business object refers to the user who uses the target application. The object statistics refer to the statistical value of the user for the statistical indicator. The target object refers to the user who has abnormal calling behavior on each business sub-interface corresponding to the target business. The abnormal operation behavior refers to the abnormal calling behavior of the user on the business sub-interface of the target business.

[0114] Exemplarily, the server counts the interface consumption and interface response time corresponding to each interface return data corresponding to the same business object, and obtains the object statistical value of the business object for each statistical indicator. Then, based on the object statistical value of the business object for each statistical indicator, it is determined whether the business object has abnormal operation behavior. Specifically, the average value of the statistical data of the business object for each statistical indicator in each past cycle can be counted, and based on the warning level corresponding to the target business, the above average value is adjusted to obtain the warning threshold of the business object for each statistical indicator. When the object statistical value corresponding to the business object is higher than the warning threshold of the corresponding statistical indicator, the business object is determined as a target object with abnormal operation behavior. Then, based on the object statistical value of the target object for each statistical indicator, an abnormal behavior report corresponding to the target object is generated, and the abnormal prompt information is sent to the management terminal.

[0115] In this embodiment, statistical data for each statistical indicator is collected from the perspective of the business object. By comparing the object statistical value corresponding to the business object with the corresponding warning threshold, it is possible to quickly determine whether the business object has abnormal operation behavior, so as to promptly perform warning processing for the business object with abnormal operation behavior, thereby improving the security and stability of the interface call.

[0116] In an exemplary embodiment, the business data processing method further includes:

[0117] When accessing the management platform of the target business with an administrator identity, various statistical indicators corresponding to the target business are displayed on the management platform; each statistical indicator includes interface consumption and interface response time; in response to a statistical data viewing operation for at least one target statistical indicator among the statistical indicators, a statistical chart of each business sub-interface for the target statistical indicator is displayed.

[0118] The administrator identity refers to the login account used by the administrator of the business system when logging into the target business. The administrator identity can be a mobile phone number, user name, account ID, etc. The statistical data viewing operation refers to the operation triggered by the administrator on the management platform to view the interface call statistical data for the target business. The target statistical indicator refers to the statistical indicator selected by the administrator to view among various statistical indicators.

[0119] For example, the administrator accesses the management platform of the target business through the administrator identity, and the server displays various statistical indicators corresponding to the target business on the management platform in response to the administrator's access operation on the management platform. Then, in response to the administrator's statistical data viewing operation on at least one target statistical indicator among the statistical indicators, the management platform displays statistical charts for each target statistical indicator. For example, Figure 4 The statistical chart in is used to show the average interface response time corresponding to each business sub-interface. Figure 5 The figure shows the corresponding statistical charts for statistical indicators such as interface cost, interface token usage (i.e. text usage), number of interface requests (i.e. interface call volume), as well as a chart for displaying the cumulative consumption of each interface.

[0120] In this embodiment, a statistical analysis is performed on the call status of each business sub-interface on the management platform corresponding to the target business, and the statistical status of multiple statistical dimensions is displayed to the management personnel in the form of visual charts, so that the management personnel can quickly view the call status of each business sub-interface by logging into the management platform, so that the statistical information can be understood more intuitively, further improving the efficiency and effectiveness of the management personnel in making optimization decisions for each business sub-interface.

[0121] In a specific embodiment, the business data processing method proposed in this application can be applied to the management platform corresponding to the interface business system to count the interface calls of the target business based on the large language model in the business system. Figure 6 As shown in Figure 1, it includes identity authentication module, visualization module, application module and big data cluster. The business data processing method is as follows: Figure 7 As shown, the following steps are included:

[0122] 1. Data returned by the collection interface

[0123] The application module in the management platform obtains the question text entered by the user. The backend of the application module calls the large language model through the corresponding business sub-interface, receives and stores the returned interface return data and the interface consumption and interface response time corresponding to the interface return data.

[0124] 2. Calculate aggregation

[0125] The management platform obtains the interface cost, text usage, number of interface requests and interface response time corresponding to the multiple interface return data corresponding to the target business from the big data cluster. The interface cost, text usage, number of interface requests and interface response time corresponding to the same business sub-interface are counted to obtain the statistical data corresponding to each business sub-interface corresponding to the target business, including the total interface cost, total text usage, interface call volume and comprehensive interface response time. Then, based on the statistical data corresponding to each business sub-interface, the task allocation weight corresponding to each business sub-interface is determined.

[0126] 3. Display visual charts

[0127] The identity authentication module in the management platform responds to the identity authentication operation triggered by the manager to authenticate the identity information submitted by the manager. After the authentication is passed, the visualization module in the management platform responds to the statistical data viewing operation for the target statistical indicators triggered by the manager to display the statistical charts of the target statistical indicators for each business sub-interface in each statistical period.

[0128] In the above embodiment, multiple statistical dimensions can help managers understand the interface call situation more carefully, so as to carry out more effective cost control and service optimization. In addition, through visual display, statistical data can be understood and used more intuitively, thereby improving the efficiency and effectiveness of decision-making, thereby improving the efficiency of business data processing.

[0129] 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.

[0130] Based on the same inventive concept, the embodiment of the present application also provides a business data processing device for implementing the business data 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 the one or more business data processing device embodiments provided below can refer to the limitations on the business data processing method above, and will not be repeated here.

[0131] In an exemplary embodiment, Figure 8 As shown, a business data processing device is provided, including: an acquisition module, a first statistical module, an interface determination module, a second statistical module, a weight determination module and a request distribution module, wherein:

[0132] The acquisition module is used to obtain the interface consumption and interface response time corresponding to the multiple interface return data corresponding to the target business; the target business is a business that calls a third-party service through a business interface to process requests received locally, and the interface return data exists in the corresponding business sub-interface;

[0133] The first statistical module is used to count the consumption of each interface corresponding to the same service sub-interface, and obtain the comprehensive interface consumption corresponding to each service sub-interface corresponding to the target service;

[0134] An interface determination module, used to determine the sub-interface to be adjusted from various business sub-interfaces;

[0135] The second statistical module is used to count the response time of each interface corresponding to the same sub-interface to be adjusted, and obtain the comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0136] The weight determination module determines the task allocation weights corresponding to each business sub-interface based on the comprehensive interface consumption and the comprehensive interface response time corresponding to each sub-interface to be adjusted;

[0137] The request distribution module is used to distribute interface call requests to each business sub-interface based on the task allocation weight corresponding to each business sub-interface.

[0138] In one embodiment, the first statistics module is further used for:

[0139] Count the interface costs in the interface consumption corresponding to the same business sub-interface, and get the total interface costs corresponding to each business sub-interface; count the text usage in the interface consumption corresponding to the same business sub-interface, and get the total text usage corresponding to each business sub-interface; count the interface call volume corresponding to each business sub-interface; integrate the total interface cost, total text usage and interface call volume corresponding to the same business sub-interface, and get the comprehensive interface consumption corresponding to each business sub-interface.

[0140] In one embodiment, the interface determination module is further configured to:

[0141] Based on the comprehensive interface consumptions corresponding to the respective service sub-interfaces, the sub-interfaces to be adjusted are determined in each service sub-interface.

[0142] In one embodiment, the weight determination module is further configured to:

[0143] Based on the comprehensive interface consumption corresponding to each business sub-interface, the estimated interface cost corresponding to each business sub-interface is obtained; based on the estimated interface cost and comprehensive interface response time corresponding to the same business sub-interface, the task allocation weight corresponding to each business sub-interface is determined respectively; the task allocation weight is negatively correlated with the estimated interface cost and comprehensive interface response time.

[0144] In one embodiment, the service data processing device further includes:

[0145] The first warning module is used to obtain the historical average statistical value of each business sub-interface for each statistical indicator; each statistical indicator includes interface consumption and interface response time; based on the business type corresponding to the target business, determine the warning level corresponding to the target business; adjust the historical average statistical value corresponding to each statistical indicator according to the warning level to obtain the warning value of each statistical indicator for the target business; when the current statistical value of the business sub-interface for the statistical indicator is greater than the warning value corresponding to the statistical indicator, trigger an abnormal warning for the corresponding business sub-interface.

[0146] In one embodiment, the service data processing device further includes:

[0147] The second early warning module is used to count the interface consumption and interface response time of the business object for each business sub-interface, and obtain the object statistical value of the business object for each statistical indicator; based on the object statistical value of each business object for each statistical indicator, determine the target object with abnormal operation behavior in each business object; according to the object statistical value of the target object for each statistical indicator, generate an abnormal behavior report corresponding to the target object.

[0148] In one embodiment, the service data processing device further includes:

[0149] A visualization module is used to display various statistical indicators corresponding to the target business on the management platform when accessing the management platform of the target business with an administrator identity; each statistical indicator includes interface consumption and interface response time; in response to a statistical data viewing operation for at least one target statistical indicator among the statistical indicators, a statistical chart of each business sub-interface for the target statistical indicator is displayed.

[0150] Each module in the above-mentioned business data 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 the operations corresponding to each module above.

[0151] 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. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as interface consumption and interface response time. 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 business data processing method is implemented.

[0152] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. 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 in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a business data processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0153] Those skilled in the art will understand that Fig. 9 , 10The 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.

[0154] In one embodiment, a computer device is further 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 method embodiments when executing the computer program.

[0155] 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.

[0156] 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.

[0157] 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.

[0158] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic 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, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0159] 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 application.

[0160] 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 business data processing method, characterized in that: The method comprises: Obtain the interface consumption and interface response time corresponding to the multiple interface return data corresponding to the target business; the target business is a business that processes requests received locally by calling a third-party service through a business interface, and the interface return data has a corresponding business sub-interface; Counting the interface costs in the interface consumption corresponding to the same service sub-interface, and obtaining the total interface costs corresponding to each service sub-interface; Counting the text usage in the interface consumption corresponding to the same service sub-interface, and obtaining the total text usage corresponding to each service sub-interface; Counting the interface call volumes corresponding to each of the service sub-interfaces; The total interface cost, the total text usage and the interface call volume corresponding to the same business sub-interface are integrated to obtain the comprehensive interface consumption corresponding to each business sub-interface; Based on the comprehensive interface consumptions respectively corresponding to the service sub-interfaces, determining the sub-interface to be adjusted in each of the service sub-interfaces; Counting the interface response time corresponding to the same sub-interface to be adjusted, and obtaining the comprehensive interface response time corresponding to each sub-interface to be adjusted; Based on the comprehensive interface consumptions respectively corresponding to the service sub-interfaces, the estimated interface costs respectively corresponding to the service sub-interfaces are obtained; Based on the estimated interface cost and the comprehensive interface response time corresponding to the same business sub-interface, respectively determine the task allocation weight corresponding to each business sub-interface; the task allocation weight is negatively correlated with the estimated interface cost and the comprehensive interface response time; Based on the task allocation weights respectively corresponding to the service sub-interfaces, the interface call requests are distributed to the service sub-interfaces.

2. The method according to claim 1, characterized in that The counting of the interface response times corresponding to the same sub-interface to be adjusted to obtain the comprehensive interface response times corresponding to the sub-interfaces to be adjusted includes: Randomly sampling the response time of each interface corresponding to the same sub-interface to be adjusted in the current cycle; The average of the randomly collected interface response times is calculated to obtain a comprehensive interface response time.

3. The method according to claim 1, characterized in that The obtaining of the estimated interface costs corresponding to each of the service sub-interfaces based on the comprehensive interface consumption corresponding to each of the service sub-interfaces includes: The ratio between the comprehensive interface consumption and the interface call volume corresponding to the same business sub-interface is used as the estimated interface cost corresponding to the business sub-interface.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining the historical average statistical value of each of the business sub-interfaces for each statistical indicator; each of the statistical indicators includes the interface consumption and the interface response time; Determining a warning level corresponding to the target business based on the business type corresponding to the target business; Adjusting the historical average statistical values ​​corresponding to the statistical indicators according to the warning level to obtain the warning value of the target business for each statistical indicator; When the current statistical value of the service sub-interface for the statistical indicator is greater than the warning value corresponding to the statistical indicator, an abnormal warning for the corresponding service sub-interface is triggered.

5. The method according to claim 4, characterized in that The obtaining of the historical average statistical value of each statistical indicator of each service sub-interface includes: The statistical values ​​of the same statistical indicator for each of the service sub-interfaces in multiple historical periods are obtained and averaged to obtain the historical average statistical value of the target service for each of the statistical indicators.

6. The method according to claim 1, characterized in that The method further comprises: Counting the interface consumption and interface response time of the business object for each of the business sub-interfaces, and obtaining the object statistical value of the business object for each statistical indicator; Based on the object statistical values ​​of each of the business objects for each of the statistical indicators, determining a target object having abnormal operation behavior in each of the business objects; An abnormal behavior report corresponding to the target object is generated according to the object statistical value of the target object for each of the statistical indicators.

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: When accessing the management platform of the target business with an administrator identity, various statistical indicators corresponding to the target business are displayed on the management platform; each of the statistical indicators includes the interface consumption and the interface response time; In response to a statistical data viewing operation for at least one target statistical indicator among the statistical indicators, a statistical chart of each of the business sub-interfaces for the target statistical indicator is displayed.

8. A business data processing device, characterized in that: The device comprises: An acquisition module is used to acquire the interface consumption and interface response time respectively corresponding to the multiple interface return data corresponding to the target business; the target business is a business that processes requests received locally by calling a third-party service through a business interface, and the interface return data has a corresponding business sub-interface; The first statistical module is used to count the interface costs in the interface consumption corresponding to the same business sub-interface, and obtain the total interface costs corresponding to each business sub-interface; count the text usage in the interface consumption corresponding to the same business sub-interface, and obtain the total text usage corresponding to each business sub-interface; count the interface call volume corresponding to each business sub-interface; integrate the total interface cost, the total text usage and the interface call volume corresponding to the same business sub-interface, and obtain the comprehensive interface consumption corresponding to each business sub-interface; An interface determination module, configured to determine a sub-interface to be adjusted in each of the service sub-interfaces based on the comprehensive interface consumption corresponding to each of the service sub-interfaces; The second statistical module is used to count the interface response time corresponding to the same sub-interface to be adjusted, and obtain the comprehensive interface response time corresponding to each sub-interface to be adjusted; A weight determination module is used to obtain the estimated interface costs corresponding to each of the business sub-interfaces based on the integrated interface consumption corresponding to each of the business sub-interfaces; based on the estimated interface costs and the integrated interface response time corresponding to the same business sub-interface, determine the task allocation weights corresponding to each of the business sub-interfaces; the task allocation weights are negatively correlated with the estimated interface costs and the integrated interface response time; The request distribution module is used to distribute the interface call request to each of the business sub-interfaces based on the task allocation weight corresponding to each of the business sub-interfaces.

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.