Time delay optimization method and device for multi-module aggregation request, and storage medium

By predicting whether the server performs pre-issuance operations and sends pre-issuance data to the client, the time-consuming interface rendering caused by real-time requests in multi-module request scenarios is solved, and more efficient interface rendering is achieved.

CN119690540APending Publication Date: 2025-03-25GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411847061.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the multi-module request scenario, real-time request of module data in the prior art causes the client to consume a lot of time from initiating a request to interface rendering.

Method used

By obtaining the real-time loading information and historical loading information of the client, the prediction server shall perform the pre-issuance operation, and upon indicating the prediction result, the pre-issuance data for displaying the first display interface is sent to the client asynchronously, so that the client can directly render the interface according to the pre-issuance data.

Benefits of technology

It reduces the delay of multimedia aggregation requests, improves the rendering efficiency of the client loading interface, and avoids the overall time-consuming increase caused by real-time requests to obtain interface data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690540A_ABST
    Figure CN119690540A_ABST
Patent Text Reader

Abstract

The invention discloses a time delay optimization method and device for a multi-module aggregation request and a storage medium, and relates to the technical field of computers. The method comprises the following steps: according to an interface loading operation received by a client, obtaining real-time loading information corresponding to the interface loading operation; obtaining historical loading information in a historical time period; according to the real-time loading information and the historical loading information, a prediction result of the first display interface is obtained, and the prediction result is used for indicating whether the server executes pre-issuing operation or not; under the condition that the prediction result is used for indicating the server to execute the pre-issuing operation, acquiring pre-issuing data of the first display interface; and sending pre-issued data to the client, wherein the pre-issued data is used for rendering the first display interface according to the pre-issued data when the client receives the interface loading operation again. According to the application, the pre-issued data is acquired in advance and sent to the client, so that the time delay of the multimedia aggregation request is reduced, and the rendering efficiency of the loading interface of the client is improved.
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 method, device and storage medium for optimizing latency of multi-module aggregation requests. Background Art

[0002] Currently, in a scenario where multiple module requests need to be made on an interface, an aggregation solution is required for the multiple module requests, that is, multiple module requests are merged into one request.

[0003] In the related technology, when an aggregation scheme has been made for the interface, the gateway is mainly used to aggregate multiple separate requests into one request. The request process is synchronous, that is, after the client is triggered by the user behavior, the server will process the logic of each module in real time. After the request data of each module is prepared, it is aggregated into one request data and sent to the client. The client renders the interface according to the request data, which can reduce the number of interactions between the client and the server, thereby reducing the loss of network transmission delay.

[0004] However, since the above solution requests module data in real time, it is easy to cause the client to spend a long time from initiating the request to completing the interface rendering. Summary of the invention

[0005] The embodiment of the present application provides a method, device and storage medium for optimizing the latency of multi-module aggregation requests. The technical solution provided by the embodiment of the present application is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for optimizing latency of multi-module aggregation requests is provided, the method comprising:

[0007] According to an interface loading operation received by the client, acquiring real-time loading information corresponding to the interface loading operation, wherein the interface loading operation is used to request the client to load a first display interface, and the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation;

[0008] Acquire historical loading information within a historical time period, where the historical loading information is used to indicate a loading status of the first display interface within the historical time period;

[0009] Obtaining a prediction result of the first display interface according to the real-time loading information and the historical loading information, wherein the prediction result is used to indicate whether the server performs a pre-issuance operation;

[0010] In a case where the prediction result is used to instruct the server to perform the pre-issuance operation, obtaining pre-issuance data of the first display interface, where the pre-issuance data is data of at least one display module for displaying the first display interface that is sent in advance to the client, and each display module is used to indicate a function displayed in the first display interface;

[0011] The pre-issued data is sent to the client, where the pre-issued data is used for rendering the first display interface according to the pre-issued data when the client receives the interface loading operation again.

[0012] According to one aspect of an embodiment of the present application, a method for optimizing latency of multi-module aggregation requests is provided, the method comprising:

[0013] In response to an interface loading operation on a first display interface, obtaining real-time loading information corresponding to the interface loading operation, wherein the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation;

[0014] Sending the real-time loading information to the server, the real-time loading information is used by the server to obtain a prediction result of the first display interface in combination with historical loading information in a historical time period, the historical loading information is used to indicate the loading status of the first display interface in the historical time period, and the prediction result is used to indicate whether the server performs a pre-issuance operation;

[0015] In a case where the prediction result is used to instruct the server to perform the pre-issuance operation, receiving pre-issuance data of the first display interface, the pre-issuance data being data of at least one display module sent in advance by the server for displaying the first display interface, each display module being used to indicate a function displayed in the first display interface;

[0016] The pre-issued data is cached, and the pre-issued data is used to render the first display interface according to the pre-issued data when the interface loading operation is received again.

[0017] According to one aspect of an embodiment of the present application, a delay optimization device for multi-module aggregation requests is provided, the device comprising:

[0018] A real-time acquisition module, configured to acquire real-time loading information corresponding to an interface loading operation received by a client, wherein the interface loading operation is used to request the client to load a first display interface, and the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation;

[0019] A history acquisition module, used to acquire historical loading information within a historical time period, wherein the historical loading information is used to indicate the loading status of the first display interface within the historical time period;

[0020] A result prediction module, used to obtain a prediction result of the first display interface according to the real-time loading information and the historical loading information, wherein the prediction result is used to indicate whether the server performs a pre-issuance operation;

[0021] a data acquisition module, configured to acquire pre-issuance data of the first display interface when the prediction result is used to instruct the server to perform the pre-issuance operation, wherein the pre-issuance data is data of at least one display module for displaying the first display interface that is sent in advance to the client, and each display module is used to indicate a function displayed in the first display interface;

[0022] A data sending module is used to send the pre-issued data to the client, and the pre-issued data is used for rendering the first display interface according to the pre-issued data when the client receives the interface loading operation again.

[0023] According to one aspect of an embodiment of the present application, a delay optimization device for multi-module aggregation requests is provided, the device comprising:

[0024] an information acquisition module, configured to obtain, in response to an interface loading operation on a first display interface, real-time loading information corresponding to the interface loading operation, wherein the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation;

[0025] an information sending module, configured to send the real-time loading information to a server, wherein the real-time loading information is used by the server to obtain a prediction result of the first display interface in combination with historical loading information in a historical time period, wherein the historical loading information is used to indicate a loading status of the first display interface in the historical time period, and the prediction result is used to indicate whether the server performs a pre-issuance operation;

[0026] a data receiving module, configured to receive pre-issuing data of the first display interface when the prediction result is used to instruct the server to perform the pre-issuing operation, wherein the pre-issuing data is data of at least one display module for displaying the first display interface sent in advance by the server, and each display module is used to indicate a function displayed in the first display interface;

[0027] A data cache module is used to cache the pre-issued data, and the pre-issued data is used to render the first display interface according to the pre-issued data when the interface loading operation is received again.

[0028] According to one aspect of an embodiment of the present application, a computer device is provided, comprising a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-mentioned latency optimization method for multi-module aggregation requests.

[0029] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned latency optimization method for multi-module aggregation requests.

[0030] According to one aspect of an embodiment of the present application, a computer program product is provided, wherein the computer program product includes a computer program, and the computer program is loaded and executed by a processor to implement the above-mentioned latency optimization method of multi-module aggregation requests.

[0031] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0032] By obtaining the real-time loading information corresponding to the interface loading operation received by the client in real time and the historical loading information in the historical time period, it is predicted whether the server will perform the pre-issuing operation, and the pre-issuing operation is triggered when the frequency of use of the first display interface is high, so that the delay optimization method provided by the present application can be fully utilized when the user frequently uses the first display interface, avoiding the data not being used after being issued, and improving the utilization efficiency of the method of the present application. And in the case where the prediction result is used to instruct the server to perform the pre-issuing operation, the data of at least one display module used to display the first display interface is asynchronously loaded as pre-issuing data and sent to the client, so that when the client receives the interface loading operation again, it can directly render the first display interface according to the pre-issuing data, avoiding the problem of overall time consumption caused by real-time request to obtain interface data in the related technology, reducing the delay of multimedia aggregation requests, and improving the rendering efficiency of the client loading interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0034] Figure 2 It is a flowchart of a method for optimizing the latency of multi-module aggregation requests provided by an embodiment of the present application;

[0035] Figure 3 is a schematic diagram of a first display interface provided by an embodiment of the present application;

[0036] Figure 4 It is a schematic diagram of a process for obtaining pre-sent data provided by an embodiment of the present application;

[0037] Figure 5 This is an overall flow chart of a method for optimizing the latency of multi-module aggregation requests provided by an embodiment of the present application;

[0038] Figure 6 It is a flowchart of a method for optimizing the latency of multi-module aggregation requests provided by an embodiment of the present application;

[0039] Figure 7 It is a schematic diagram of the interaction process between the client and the server provided by an embodiment of the present application;

[0040] Figure 8 It is a block diagram of a delay optimization device for multi-module aggregation requests provided by an embodiment of the present application;

[0041] Fig. 9 It is a block diagram of a delay optimization device for multi-module aggregation requests provided by an embodiment of the present application;

[0042] Fig.10 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0044] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment can be implemented as a multi-module request aggregation system. The solution implementation environment may include: a terminal device 10 and a server 20.

[0045] The number of terminal devices 10 can be one or more. The terminal device 10 can be an electronic device such as a mobile phone, a tablet computer, a laptop computer, a desktop computer, a game console, an e-book reader, a multimedia player, a wearable device, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc.

[0046] The terminal device 10 may be installed with a client of a target application, and the present application does not limit the type of the target application, including but not limited to music applications, video applications, game applications, social applications, etc. Optionally, the target application may be an application that needs to be downloaded and installed, or an application that can be used instantly, and the present application does not limit this.

[0047] The user can perform an interface loading operation in the target application, and the interface loading operation is used to request the client to load the display interface corresponding to the interface loading operation. The client renders the display interface according to the data of at least one display module required to display the display interface. In the related art, the data of at least one display module is the data obtained by the client in real time requesting from the server after receiving the interface loading operation performed by the user, while in the embodiment of the present application, the data of at least one display module is the data obtained by the client from the server in advance.

[0048] The server 20 is used to provide background services for the client of the target application installed and running in the terminal device 10. For example, the server 20 can be the background server of the above-mentioned target application. The server 20 can be an independent physical server, or a server cluster composed of multiple servers, or a cloud computing service center. Optionally, the server 20 provides background services for the target applications in multiple terminal devices 10 at the same time. The terminal device 10 and the server 20 can communicate with each other through the network.

[0049] In an embodiment of the present application, a user performs an interface loading operation in a target application, and the client responds to the interface loading operation, obtains the pre-issued data previously cached by the client, and renders the first display interface according to the pre-issued data previously cached. At the same time, the client obtains the real-time loading information corresponding to the interface loading operation and sends it to the server. The server receives the real-time loading information according to the interface loading operation received by the client, and obtains the prediction result of the first display interface in combination with the historical loading information. When the prediction result is used to instruct the server to perform the pre-issued operation, the pre-issued data of the first display interface corresponding to this interface loading operation is obtained. The pre-issued data is data of at least one display module for displaying the first display interface that is pre-sent to the client. The server sends the pre-issued data to the client so that when the client receives the interface loading operation again, it can render the first display interface according to the pre-issued data issued this time.

[0050] Please refer to Figure 2 , which shows a flowchart of a method for optimizing the latency of multi-module aggregation requests provided by an embodiment of the present application. The execution subject of each step of the method may be a server. The method may include at least one of the following steps 210 to 250:

[0051] Step 210, according to the interface loading operation received by the client, obtain real-time loading information corresponding to the interface loading operation, the interface loading operation is used to request the client to load the first display interface, and the real-time loading information is used to indicate the loading status of the first display interface in response to the interface loading operation.

[0052] The user performs an interface loading operation in the target application, and the interface loading operation is used to request the client to load the first display interface corresponding to the interface loading operation. In an embodiment of the present application, the first display interface corresponding to the interface loading operation is rendered by the client based on the pre-dispatched data previously cached. After receiving the interface loading operation, the client sends real-time loading information corresponding to the interface loading operation to the server. The real-time loading information corresponding to this interface loading operation is used to pre-acquire the pre-dispatched data required for the next interface loading operation, so that each time the client receives an interface loading operation, the first display interface can be rendered according to the pre-dispatched data pre-stored in the client, thereby avoiding real-time acquisition of data and increasing the time required to render the first display interface, thereby reducing the latency of multimodal aggregation requests.

[0053] The interface loading operation is an operation performed by a user to request loading of the first display interface, and the real-time loading information corresponding to the interface loading operation is used to indicate the loading status of the first display interface in response to the interface loading operation.

[0054] In some embodiments, the interface loading operation includes at least one of the following: a start operation, a refresh operation, and a load operation.

[0055] Optionally, the startup operation may be an operation performed by the user to request the startup of the first display interface. For example, the startup operation may be an operation in which the user clicks on a first loading control in the display interface of the target application. After the user clicks on the first loading control, the first display interface is displayed in the target application. Optionally, the startup operation may also be an operation for requesting the startup of the target application. For example, the startup operation may be an operation in which the user clicks on a display icon of the target application displayed on the terminal device. After the user clicks on the display icon of the target application, the first display interface is displayed in the target application. The first display interface is the display interface displayed after the target application is started.

[0056] The refresh operation is an operation performed by the user to request a refresh of the first display interface. Optionally, the refresh operation may be an operation in which the user clicks a refresh control in the first display interface. After the user clicks the refresh control, the target application updates and displays the first display interface. Optionally, the refresh operation may be a swiping refresh operation of the user on the first display interface. The swiping refresh operation refers to an operation in which the user presses and slides the screen of the first display interface downward. After the user performs a swiping refresh operation on the first display interface, the target application updates and displays the first display interface.

[0057] The loading operation is an operation performed by the user to request the loading of display modules in the first display interface, and each display module is used to indicate a function displayed in the first display interface. Optionally, the loading operation can be an operation in which the user clicks the loading control in the first display interface. After the user clicks the loading control, the target application displays the display module of the next screen after the current screen in the first display interface. Optionally, the loading operation can be an upward sliding loading operation of the user on the first display interface. The upward sliding loading operation refers to an operation in which the user presses and holds the screen of the first display interface and slides upward. After the user performs the upward sliding loading operation on the first display interface, the target application displays the display module of the next screen after the current screen in the first display interface.

[0058] In some embodiments, the real-time loading information includes at least one of the following: the timestamp of the refresh operation of the first display interface based on the interface loading operation, the timestamp of the load operation of the first display interface based on the interface loading operation, the timestamp of the start operation of the client based on the interface loading operation, and the cumulative number of operations corresponding to at least one display module in the first display interface.

[0059] In response to the startup operation for the first display interface, the client obtains the timestamp of the startup operation of the first display interface based on the interface loading operation, and the client sends the timestamp of the startup operation of the first display interface based on the interface loading operation to the server. That is, every time the user performs a startup operation for the first display interface, the client will send the timestamp of the startup operation to the server. In response to the refresh operation in the first display interface, the client obtains the timestamp of the refresh operation of the first display interface based on the interface loading operation, and the client sends the timestamp of the refresh operation of the first display interface based on the interface loading operation to the server. That is, every time the user performs a refresh operation for the first display interface, the client will send the timestamp of the refresh operation to the server. In response to the loading operation for the first display interface, the client obtains the timestamp of the loading operation of the first display interface based on the interface loading operation, and the client sends the timestamp of the loading operation of the first display interface based on the interface loading operation to the server. That is, every time the user performs a loading operation for the first display interface, the client will send the timestamp of the loading operation to the server.

[0060] In response to the interface loading operation for the first display interface, the target application starts to display the first display interface, or updates and displays the first display interface. At least one display module is displayed in the first display interface. After each display of the first display interface, the client obtains the latest cumulative operation times corresponding to at least one display module and sends it to the server. The cumulative operation times corresponding to the display module refer to the number of operations corresponding to the module function performed on the display module after the user starts to use the target application. If the module click operation is not performed on the display module after the first display interface is displayed this time, the cumulative operation times corresponding to the display module include the sum of the number of operations corresponding to the display module by the historical module click operation after the user starts to use the target application. If the module click operation is performed on the display module after the first display interface is displayed this time, the number of operations corresponding to the module click operation for at least one display module is obtained in response to the module click operation for the first display interface, thereby obtaining the cumulative operation times corresponding to at least one display module. The cumulative operation times corresponding to the display module include the number of operations corresponding to the display module by the current module click operation and the sum of the number of operations corresponding to the display module by the historical module click operation after the user starts to use the target application. And the cumulative operation times corresponding to different display modules can be the same or different.

[0061] The setting of the display module is related to the program function of the target application. Therefore, the module function of the display module is also related to the program function of the target application. Each display module is used to indicate a function displayed in the first display interface, and the module function of each display module is used to indicate a program function of the target application. Exemplarily, if the target application is a music application, then at least one display module includes but is not limited to a song recommendation module, a song playback module, a song collection module, a song introduction module, etc. Then the cumulative number of operations corresponding to the song recommendation module refers to the total number of songs recommended by the song recommendation module played by the user, the cumulative number of operations corresponding to the song playback module refers to the total number of songs played by the user, the cumulative number of operations corresponding to the song collection module refers to the total number of songs collected by the user, and the cumulative number of operations corresponding to the song introduction module refers to the total number of songs introduced by the song introduction module that the user clicks to watch.

[0062] It should be noted that, optionally, the real-time loading information corresponding to the interface loading operation obtained above can be the loading information corresponding to each interface loading operation received by the client, and the real-time loading information is used to indicate the loading status of the first display interface in response to the latest interface loading operation. For example, if the user performs a refresh operation on the first display interface, then for this refresh operation, the real-time loading information sent by the client to the server includes the timestamp of the first display interface based on the refresh operation and the cumulative number of operations corresponding to at least one display module in the first display interface.

[0063] Optionally, the real-time loading information corresponding to the interface loading operation obtained above may also be the loading information corresponding to at least one interface loading operation received within the first time range, and the real-time loading information is used to indicate the loading status of the first display interface in response to at least one interface loading operation within the first time range. Optionally, the first time range is related to the frequency with which the user performs the interface loading operation. The higher the frequency with which the user performs the interface loading operation, the smaller the first time range, and the lower the frequency with which the user performs the interface loading operation, the larger the first time range. Optionally, the first time range may be the time range when the number of times the user performs the interface loading operation reaches a first number threshold. This application does not limit the first number threshold. For example, the first time range may be the time range when the number of times the user performs the interface loading operation reaches 5 times.

[0064] Exemplarily, if the first time range is 5 minutes, the real-time loading information includes the loading information obtained from at least one interface loading operation received within the last 5 minutes. For example, if the user has performed a refresh operation on the first display interface and two loading operations on the first display interface within the last 5 minutes, the real-time loading information sent by the client to the server includes the timestamp of the first display interface based on the refresh operation, the timestamps corresponding to the two loading operations of the first display interface, and the cumulative number of operations corresponding to at least one display module in the first display interface.

[0065] Step 220 , obtaining historical loading information within a historical time period, where the historical loading information is used to indicate a loading status of the first display interface within the historical time period.

[0066] Optionally, the length of the historical time period is related to the frequency with which the user performs the interface loading operation. The higher the frequency with which the user performs the interface loading operation, the shorter the length of the historical time period. The lower the frequency with which the user performs the interface loading operation, the longer the length of the historical time period. Optionally, the historical time period may be a time period when the number of times the user performs the interface loading operation reaches a second number threshold. This application does not limit the second number threshold. For example, the historical time period may be a time period when the number of times the user performs the interface loading operation reaches 20 times.

[0067] The historical loading information is the loading information obtained by the first display interface in response to at least one interface loading operation within the historical time period. The at least one interface loading operation responded by the first display interface within the historical time period is an operation for requesting to load the first display interface. That is to say, the historical loading information is the summary information obtained by synthesizing the loading information obtained by the first display interface in response to at least one interface loading operation within the historical time period.

[0068] In some embodiments, the historical loading information includes at least one of the following: a timestamp of a refresh operation on the first display interface within the historical time period, a number of refresh operations on the first display interface within the historical time period, a timestamp of a load operation on the first display interface within the historical time period, a number of load operations on the first display interface within the historical time period, a timestamp of a startup operation on the first display interface within the historical time period, and a number of startup operations on the first display interface within the historical time period.

[0069] In the case where the user has performed at least one refresh operation on the first display interface in the historical time period, the historical loading information includes the timestamp of the at least one refresh operation on the first display interface in the historical time period and the number of refresh operations on the first display interface in the historical time period. In the case where the user has performed at least one load operation on the first display interface in the historical time period, the historical loading information includes the timestamp of the at least one load operation on the first display interface in the historical time period and the number of load operations on the first display interface in the historical time period. In the case where the user has performed at least one startup operation on the first display interface in the historical time period, the historical loading information includes the timestamp of the at least one startup operation on the first display interface in the historical time period and the number of startup operations on the first display interface in the historical time period.

[0070] The historical loading information is loading information acquired by the client after the user performs at least one interface loading operation on the first display interface within a historical time period, and the server synchronously receives the historical loading information of the client.

[0071] By obtaining historical loading information within a historical time period, the user's usage habits for the first display interface can be analyzed more carefully in combination with the historical loading information, so that when the prediction results of the first display interface are obtained based on the real-time loading information and the historical loading information, the accuracy of the prediction results can be improved.

[0072] Step 230, obtaining a prediction result of the first display interface according to the real-time loading information and the historical loading information, wherein the prediction result is used to indicate whether the server performs a pre-issuance operation.

[0073] Based on the real-time loading information and historical loading information, the user's usage habits for the first display interface are analyzed, including whether the user frequently performs various operations on the first display interface, whether the cumulative number of operations corresponding to each display module in the first display interface reaches a set threshold, whether the user performs various operations on the first display interface with regularity, etc., to obtain a prediction result for the first display interface.

[0074] In some embodiments, when the real-time loading information and the historical loading information meet the prediction conditions, the prediction result is determined to instruct the server to perform a pre-issuance operation.

[0075] The prediction condition is a judgment condition set based on the real-time loading information and the historical loading information. When the real-time loading information and the historical loading information meet the prediction condition, the prediction result is determined to instruct the server to perform the pre-issuance operation. When the real-time loading information and the historical loading information do not meet the prediction condition, the prediction result is determined to instruct the server not to perform the pre-issuance operation. The pre-issuance operation refers to the operation of step 250, that is, the operation of the server sending the pre-issuance data to the client.

[0076] In some embodiments, the prediction conditions include at least one of the following: the frequency of the refresh operation of the first display interface is greater than or equal to the first frequency threshold; the frequency of the loading operation of the first display interface is greater than or equal to the second frequency threshold; the frequency of the startup operation of the first display interface is greater than or equal to the third frequency threshold; the cumulative number of operations corresponding to the display module is greater than or equal to the quantity threshold.

[0077] According to the timestamp of the refresh operation of the first display interface based on the interface loading operation in the real-time loading information, the number of refresh operations of the first display interface based on the interface loading operation in the real-time loading information is obtained, and according to the number of refresh operations on the first display interface in the historical time period in the historical loading information, the frequency of the refresh operation of the first display interface is obtained. The frequency of the refresh operation of the first display interface = the total number of refresh operations / the length of the historical time period. When the frequency of the refresh operation of the first display interface is greater than or equal to the first frequency threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. The specific value of the first frequency threshold is related to the length of the historical time period, and is not limited in this application. The larger the length of the historical time period, the smaller the first frequency threshold, and the smaller the length of the historical time period, the larger the first frequency threshold.

[0078] According to the timestamp of the loading operation based on the interface loading operation of the first display interface in the real-time loading information, the number of loading operations based on the interface loading operation of the first display interface in the real-time loading information is obtained, and according to the number of loading operations for the first display interface in the historical time period in the historical loading information, the frequency of the loading operation of the first display interface is obtained. The frequency of the loading operation of the first display interface = the total number of loading operations / the length of the historical time period. When the frequency of the loading operation of the first display interface is greater than or equal to the second frequency threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. The specific value of the second frequency threshold is related to the length of the historical time period, and is not limited in this application. The larger the length of the historical time period, the smaller the second frequency threshold, and the smaller the length of the historical time period, the larger the second frequency threshold.

[0079] According to the timestamp of the startup operation of the first display interface based on the interface loading operation in the real-time loading information, the number of startup operations of the first display interface based on the interface loading operation in the real-time loading information is obtained, and according to the number of startup operations for the first display interface in the historical time period in the historical loading information, the frequency of the startup operation of the first display interface is obtained. The frequency of the startup operation of the first display interface = the total number of startup operations / the length of the historical time period. When the frequency of the startup operation of the first display interface is greater than or equal to the third frequency threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. The specific value of the third frequency threshold is related to the length of the historical time period, and is not limited in this application. The larger the length of the historical time period, the smaller the third frequency threshold, and the smaller the length of the historical time period, the larger the third frequency threshold.

[0080] According to the real-time loading information, the cumulative number of operations corresponding to at least one display module in the first display interface is obtained. When the cumulative number of operations corresponding to a display module in at least one display module is greater than or equal to the quantity threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. The quantity threshold in the prediction condition for the cumulative number of operations corresponding to each display module may be the same or different. Exemplarily, if the target application is a music application, the at least one display module includes a song recommendation module and a song playing module, then when the cumulative number of operations corresponding to the song recommendation module is greater than or equal to the first quantity threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. When the cumulative number of operations corresponding to the song recommendation module is greater than or equal to the second quantity threshold, it is determined that the real-time loading information and the historical loading information meet the prediction condition. The first quantity threshold and the second quantity threshold may be the same or different.

[0081] By setting the above-mentioned prediction conditions, the user's usage frequency of the first display interface is mainly considered. When the usage frequency is high, the server is triggered to perform a pre-dispatch operation, so that when the user performs the interface loading operation again, the data required to load the first display interface can be obtained from the client in time, thereby reducing the time required for multimodal aggregation and improving the rendering efficiency of interface loading.

[0082] Step 240, when the prediction result is used to instruct the server to perform a pre-issuance operation, obtain the pre-issuance data of the first display interface, the pre-issuance data is data of at least one display module for displaying the first display interface sent in advance to the client, and each display module is used to indicate a function displayed in the first display interface.

[0083] According to the interface loading operation received by the client, the client obtains the exposure data of the first display interface after the user performs the interface loading operation, and the client sends the exposure data of the first display interface corresponding to the interface loading operation to the server. After the client displays the first display interface, according to the module clicking operation received by the client, the client obtains the module conversion data of the first display interface corresponding to the module clicking operation, and the client sends the module conversion data of the first display interface corresponding to the module clicking operation to the server.

[0084] The exposure data is used to indicate each display module that has been displayed in the first display interface. The module click operation is an operation performed by the user to click a display module in the first display interface. The module click operation is an operation performed after the first display interface is displayed. There are multiple display modules displayed in the first display interface. The user can click any display module in the current screen of the first display interface. After the user clicks a display module, the target application will jump to display the display interface corresponding to the display module. Therefore, the module conversion data is used to indicate the display module that was clicked in the first display interface.

[0085] The server obtains pre-sent data of the first display interface according to the exposure data of the first display interface corresponding to the interface loading operation and the module conversion data of the first display interface corresponding to the module click operation, as well as the exposure data and module click data of the first display interface in a historical time period.

[0086] The pre-delivered data is data of at least one display module for displaying the first display interface that is sent to the client in advance. In some embodiments, the pre-delivered data includes the module sequence of at least one display module and the content data corresponding to at least one display module.

[0087] The module order of at least one display module refers to the order in which at least one display module is displayed on the first display interface, and the content data corresponding to at least one display module refers to the data required for at least one display module to be displayed on the first display interface. According to the module order of at least one display module, the content data corresponding to at least one display module are stored in sequence to obtain pre-issued data. The pre-issued data is the overall data obtained by asynchronously loading the content data corresponding to multiple modules.

[0088] Exemplarily, the target application is a music application, and at least one display module is, in module order, a song recommendation module, a song playing module, a song collection module, and a song introduction module. The pre-issued data includes, in order, content data corresponding to the song recommendation module, content data corresponding to the song playing module, content data corresponding to the song collection module, and content data corresponding to the song introduction module.

[0089] Step 250 , sending pre-sent data to the client, where the pre-sent data is used for rendering the first display interface according to the pre-sent data when the client receives an interface loading operation again.

[0090] The server sends the pre-issued data to the client, and the client stores the pre-issued data. When the client receives the interface loading operation again, the client does not need to request data from the server, and can directly render the first display interface according to the pre-issued data stored by the client. At the same time, the client sends the loading information and exposure data corresponding to the interface loading operation received again to the server, so as to pre-acquire the pre-issued data required for the next interface loading operation.

[0091] The prediction result of the first display interface obtained in step 230 is used to indicate that when the server does not perform the pre-dispatch operation, the server will not send the pre-dispatch data to the client. Therefore, when the client receives the interface loading operation again, the client sends an interface loading request to the server in real time to request the server to obtain the display data of the first display interface. The server returns the display data of the first display interface to the client in real time, and the client renders the first display interface according to the display data of the first display interface.

[0092] The technical solution provided by the embodiment of the present application predicts whether the server will perform a pre-issuance operation by obtaining the real-time loading information corresponding to the interface loading operation received by the client in real time and the historical loading information in the historical time period, and triggers the execution of the pre-issuance operation when the frequency of use of the first display interface is high, so that the delay optimization method provided by the present application can be fully utilized when the user frequently uses the first display interface, avoiding the data not being used after being issued, and improving the utilization efficiency of the method of the present application. And when the prediction result is used to instruct the server to perform the pre-issuance operation, the data of at least one display module used to display the first display interface is asynchronously loaded as pre-issuance data and sent to the client, so that when the client receives the interface loading operation again, it can directly render the first display interface according to the pre-issuance data, avoiding the problem of overall time consumption caused by real-time request to obtain interface data in the related technology, reducing the delay of multimedia aggregation requests, and improving the rendering efficiency of the client loading interface.

[0093] In some embodiments, step 240 includes at least one of sub-steps 241 - 244 .

[0094] Sub-step 241, obtaining the exposure data and module conversion data of the first display interface corresponding to the interface loading operation, and obtaining the exposure data and module conversion data of the first display interface in a historical time period, wherein the exposure data is used to indicate each display module that has been displayed in the first display interface, and the module conversion data is used to indicate the display module that has been clicked in the first display interface.

[0095] The exposure data of the first display interface corresponding to the interface loading operation refers to the interface exposure data of the user browsing the first display interface after the user performs the interface loading operation. It is used to indicate the various display modules that have been displayed in the first display interface browsed by the user after the user performs the interface loading operation, that is, the various display modules in the first display interface displayed on the screen of the terminal device. The module conversion data of the first display interface corresponding to the interface loading operation refers to the module conversion data of the first display interface corresponding to the module click operation. After the client displays the first display interface, the user performs a module click operation on the display module in the first display interface, and obtains the module conversion data of the first display interface corresponding to the module click operation. It is used to indicate the display module clicked by the user in the first display interface.

[0096] The exposure data of the first display interface in the historical time period refers to the interface exposure data of the user browsing the first display interface after the user performs the interface loading operation each time in the historical time period. It is used to indicate the various display modules that have been displayed in the first display interface browsed by the user after the user performs the interface loading operation each time in the historical time period. The module conversion data of the first display interface in the historical time period refers to the module conversion data of the first display interface corresponding to the module click operation in the historical time period. It is used to indicate the module conversion data obtained by the user performing the module click operation on the display module in the first display interface after the client displays the first display interface in the historical time period.

[0097] Sub-step 242, obtaining the number of at least one display module according to the exposure data of the first display interface corresponding to the interface loading operation and the exposure data of the first display interface in a historical time period.

[0098] In some embodiments, sub-step 242 includes at least one of sub-steps 2421 - 2424 .

[0099] Sub-step 2421, based on the exposure data of the first display interface corresponding to the interface loading operation, obtain the number of screen displays corresponding to the interface loading operation. The number of screen displays is the number of single-screen interfaces of the first display interface displayed by the client. Different single-screen interfaces display different display modules in the first display interface.

[0100] The exposure data of the first display interface corresponding to the interface loading operation is used to indicate the various display modules that have been displayed in the first display interface that the user browses after executing the interface loading operation. The number of screen displays corresponding to the interface loading operation is obtained according to the number of single-screen interfaces corresponding to the various display modules that have been displayed in the first display interface.

[0101] The screen interface displayed by the client on the terminal device is a single-screen interface. When the user slides to browse the first display interface, the next screen interface of the current single-screen interface will be displayed. When the next screen interface is fully displayed on the terminal device, it is the next single-screen interface. The display modules in the first display interface displayed by each single-screen interface are different. Therefore, according to the exposure data of the first display interface corresponding to the interface loading operation, the various display modules that have been displayed in the first display interface corresponding to the interface loading operation are obtained, and according to the distribution of each display module on the single-screen interface, the number of screen displays corresponding to the interface loading operation is obtained.

[0102] It should be noted that the number of screen displays corresponding to the interface loading operation can be an integer value or not. And because the interface loading operation opens the first display interface, the client displays at least one single-screen interface, that is, the number of screen displays corresponding to the interface loading operation is greater than or equal to 1. For example, after the client has displayed a single-screen interface, the user slides to browse the first display interface. If the user only slides to browse to half of the next screen interface, the next screen interface does not display the complete single-screen interface, but only displays half of the complete single-screen interface. In this case, the number of screen displays corresponding to the interface loading operation is 1.5.

[0103] For example, the first display interface may refer to Figure 3 As shown, the first display interface 300 that the user has browsed includes several display modules, and the presentation forms of different display modules may be different, for example, the presentation forms of display module 301 and display module 302 are different. And the first display interface 300 that the user has browsed can be divided into the first screen, the second screen and the third screen, wherein the first screen and the second screen are complete single-screen interfaces, the third screen is an incomplete single-screen interface, and the third screen is three-quarters of a complete single-screen interface. Therefore, the number of screen displays corresponding to the first display interface 300 that the user has browsed is 2.75.

[0104] Sub-step 2422, based on the exposure data of the first display interface in the historical time period, obtain the average display quantity corresponding to each interface loading operation in the historical time period.

[0105] According to the exposure data of the first display interface in the historical time period, the exposure data of the first display interface corresponding to each interface loading operation in the historical time period is obtained, and according to the exposure data of the first display interface corresponding to each interface loading operation in the historical time period, the number of screen displays corresponding to each interface loading operation in the historical time period is obtained. The average value of the number of screen displays corresponding to each interface loading operation in the historical time period is calculated to obtain the average number of displays corresponding to each interface loading operation in the historical time period.

[0106] Sub-step 2423, obtaining the screen display number of the first display interface according to the screen display number corresponding to the interface loading operation and the average display number corresponding to the historical time period.

[0107] The average of the number of screen displays corresponding to the interface loading operation and the average number of displays corresponding to the historical time period is calculated to obtain the number of screen displays of the first display interface. The number of screen displays of the first display interface is used to indicate the number of single-screen interfaces that the user will browse each time when browsing the first display interface, which can reflect the browsing habits of the user when browsing the first display interface.

[0108] Sub-step 2424, obtaining the number of at least one display module according to the screen display number of the first display interface and the screen data of the client, wherein the screen data of the client is used to indicate the number of modules displayed on each single-screen interface on the client.

[0109] The screen data of the client is used to indicate the screen size of the terminal device. Clients with different screen data can display different numbers of display modules in each single-screen interface. The larger the screen of the terminal device, the more display modules can be displayed in the corresponding single-screen interface. Therefore, according to the screen display number of the first display interface and the screen data of the client, the number of at least one display module is obtained. The number of at least one display module refers to the number of display modules that can be displayed under the screen display number of the first display interface.

[0110] By determining the number of at least one display module based on exposure data, the number of at least one display module is made to conform to the browsing habits of the user, thereby avoiding data waste caused by pre-issuing too much content data of display modules and data shortage caused by pre-issuing too little content data of display modules, thereby effectively ensuring the efficient use of pre-issued data.

[0111] In some embodiments, a default screen display number can also be set, and the number of at least one display module is obtained according to the default screen display number and the screen data of the client. The default screen display number is not limited in this application, for example, the default screen display number can be set to 2.

[0112] In some embodiments, the default number of at least one display module may also be set. For example, the default number of at least one display module may be set to 20, which is not limited in the present application.

[0113] Sub-step 243, obtains at least one display module and the module order of at least one display module according to the number of at least one display module, the module conversion data of the first display interface corresponding to the interface loading operation, and the module conversion data of the first display interface corresponding to the historical time period.

[0114] In some embodiments, sub-step 243 includes at least one of sub-steps 2431 - 2432 .

[0115] Sub-step 2431, obtaining the conversion counts corresponding to each display module in the first display interface according to the module conversion data of the first display interface corresponding to the interface loading operation and the module conversion data of the first display interface corresponding to the historical time period.

[0116] The module conversion data of the first display interface corresponding to the interface loading operation is used to indicate the display module clicked in the first display interface after the interface loading operation, and the module conversion data of the first display interface corresponding to the historical time period is used to indicate the display module clicked in the first display interface after each interface loading operation in the historical time period. According to the display module clicked in the first display interface after this interface loading operation, and the display module clicked in the first display interface after each interface loading operation in the historical time period, the number of conversions corresponding to each display module in the first display interface is obtained. The number of conversions corresponding to each display module refers to the total number of times each display module is clicked in the historical time period and after this interface loading operation. The number of conversions corresponding to a display module can reflect the user's interest in the display module.

[0117] Sub-step 2432, in descending order of the number of conversions and according to the number of at least one display module, obtain at least one display module ranked top among the display modules, wherein the module order of at least one display module refers to the descending order of the number of conversions corresponding to at least one display module.

[0118] The display modules in the first display interface are sorted in descending order of the number of conversions to obtain sorted display modules, and at least one display module with a top ranking is obtained according to the number of at least one display module.

[0119] By determining at least one display module and the module order of at least one display module based on the module conversion data, the determined at least one display module is made to conform to the user's conversion habits, and the display modules clicked by the user are sorted forward, thereby increasing the user's interest in the first display interface and improving the conversion rate of each displayed display module.

[0120] Sub-step 244: acquiring content data respectively corresponding to at least one display module according to the module sequence of at least one display module.

[0121] After determining at least one display module, the content data corresponding to at least one display module cached most recently in the server is obtained, and the content data corresponding to each display module is used to display the display module on the first display interface. The content data corresponding to at least one display module is asynchronously loaded as pre-distributed data according to the module order of at least one display module.

[0122] The pre-sent data is obtained by the above method, so that the pre-sent data is data obtained based on the user's browsing habits and conversion habits, which ensures as much as possible that the user is interested in each display module after opening the first display interface, increases the number of user conversions for each display module, and improves the efficiency of using the pre-sent data.

[0123] In some embodiments, it is necessary to consider the popularity of each display module in the first display interface in big data, and obtain the ranking scores corresponding to each module in the first display interface according to the display popularity of each display module in the first display interface and the number of conversions corresponding to each module in the first display interface. According to the order of the ranking scores from high to low and based on the number of at least one display module, obtain at least one display module with a top ranking among each module. The module order of at least one display module refers to the order of the ranking scores corresponding to at least one display module from high to low.

[0124] Figure 4 A schematic diagram of the acquisition process of pre-issued data is shown. First, the real-time screen display number is obtained according to the real-time exposure data, and the average screen display number is obtained according to the historical exposure data. The average of the real-time screen display number and the average screen display number is calculated to obtain the screen display number of the first display interface, thereby combining the screen data of the client to obtain the display number of at least one display module. In addition, according to the real-time module conversion data and the historical module conversion data, the number of conversions corresponding to each module in the first display interface is obtained, and according to the display number of at least one display module, at least one display module is obtained, and the content data corresponding to at least one display module is obtained. The content data corresponding to at least one display module is asynchronously loaded in sequence to obtain pre-issued data.

[0125] In some embodiments, the pre-sent data also includes a pre-loading interval duration, which is the predicted duration for the client to receive the interface loading operation again. Step 250 is followed by step 260, which includes at least one of sub-steps 261-262.

[0126] Sub-step 261, when the client does not receive the interface loading operation again within the preloading interval, after the preloading interval has passed, the step of obtaining the pre-issued data of the first display interface is re-executed to obtain updated pre-issued data.

[0127] According to the timestamp of the start operation in the real-time loading information and the timestamp of each start operation in the historical loading information, the time interval of at least one adjacent start operation is obtained, and the average time interval of at least one adjacent start operation is calculated to obtain the preloading interval duration. The preloading interval duration is used to predict the interval duration of receiving the interface loading operation again after the current interface loading operation.

[0128] If the client does not receive the interface loading operation again within the preloading interval, the pre-sent data cached by the client needs to be updated. The content data of each display module in the server may be updated within the preloading interval. Therefore, according to at least one display module, the content data corresponding to the at least one updated display module is obtained according to the module order of at least one display module, and the content data corresponding to the at least one updated display module is asynchronously loaded as the updated pre-sent data according to the module order of at least one display module.

[0129] In some embodiments, if the popularity of each display module in the first display interface in the big data needs to be considered, then the updated ranking scores corresponding to each module in the first display interface are obtained according to the updated display popularity of each display module in the first display interface and the number of conversions corresponding to each module in the first display interface, and at least one updated display module with a top ranking in each module is obtained according to the order of the updated ranking scores from high to low and according to the number of at least one display module. The content data corresponding to the at least one updated display module is obtained according to the module order of the at least one updated display module to obtain the updated pre-distributed data.

[0130] Sub-step 262: sending the updated pre-delivery data to the client.

[0131] The updated pre-issued data is sent to the client, and the updated pre-issued data is used to render the first display interface according to the pre-issued data when the client receives an interface loading operation again.

[0132] By setting the preloading interval, it is possible to prevent users from performing interface loading operations beyond the preloading interval, which would cause changes in the content data of the display module, thereby resulting in inaccurate data in the rendered first display interface. If the client does not receive an interface loading operation again within the preloading interval, the pre-sent data will be updated, thereby ensuring the accuracy and timeliness of the data in the rendered first display interface.

[0133] Figure 5The overall flow chart of the delay optimization method for multi-module aggregation request is shown. First, the user performs an interface loading operation on the client and initiates an interface loading request to the client to request to load the first display interface. The client can respond to the interface loading request according to the previously cached pre-issued data. At the same time, the client obtains the data generated by the interface loading operation, including startup operation data, loading operation data, refresh operation data and module click operation data, wherein the startup operation data includes the timestamp of the startup operation and the exposure data after the startup operation, the loading operation data includes the timestamp of the loading operation and the exposure data after the loading operation, the refresh operation data includes the timestamp of the refresh operation and the exposure data after the refresh operation, and the module click operation data includes the display module indicated by the module click operation. The client sends the data generated by the interface loading operation to the server, and the server obtains the real-time loading information from it, and evaluates whether the server performs the pre-issue operation in combination with the historical loading information. When the real-time loading information and the historical loading information meet the prediction conditions, it is determined that the server performs the pre-issue operation. The server obtains the pre-issued data according to the real-time exposure data and the historical exposure data, including obtaining the module order of the display module, the content data of the display module and the preloading interval. The server sends the pre-sent data to the client, and the client caches the pre-sent data. When the client receives an interface loading operation again within the preloading interval, the client renders the first display interface according to the pre-sent data.

[0134] Please refer to Figure 6 , which shows a flowchart of a method for optimizing the latency of multi-module aggregation requests provided by an embodiment of the present application. The execution subject of each step of the method may be a terminal device. The method may include at least one of the following steps 610 to 640:

[0135] Step 610, in response to an interface loading operation on the first display interface, obtain real-time loading information corresponding to the interface loading operation, the real-time loading information is used to indicate the loading status of the first display interface in response to the interface loading operation.

[0136] In some embodiments, the interface loading operation includes at least one of the following: a start operation, a refresh operation, and a load operation.

[0137] In response to a startup operation on the first display interface, a timestamp of the startup operation is obtained. In response to a refresh operation on the first display interface, a timestamp of the refresh operation is obtained. In response to a load operation on the first display interface, a timestamp of the load operation is obtained.

[0138] In some embodiments, in response to an interface loading operation on the first display interface, exposure data of the first display interface corresponding to the interface loading operation is obtained, and the exposure data is used to indicate each display module that has been displayed in the first display interface.

[0139] In response to a startup operation on the first display interface, exposure data of the first display interface after the startup operation is obtained. In response to a refresh operation on the first display interface, exposure data of the first display interface after the refresh operation is obtained. In response to a load operation on the first display interface, exposure data of the first display interface after the load operation is obtained.

[0140] In some embodiments, in response to a module click operation on the first display interface, module conversion data of the first display interface corresponding to the module click operation is obtained. The module click operation is an operation performed after the first display interface is displayed, and the module conversion data is used to indicate the display module clicked in the first display interface.

[0141] Step 620, sending real-time loading information to the server. The real-time loading information is used by the server to combine the historical loading information within the historical time period to obtain the prediction result of the first display interface. The historical loading information is used to indicate the loading status of the first display interface within the historical time period. The prediction result is used to indicate whether the server performs a pre-issuance operation.

[0142] In some embodiments, exposure data and module conversion data are sent to a server, and the exposure data and module conversion data are used by the server to generate pre-sent data in combination with the exposure data and module conversion data of the first display interface within a historical time period.

[0143] Step 630, when the prediction result is used to instruct the server to perform a pre-sending operation, receive pre-sending data of the first display interface, the pre-sending data is data of at least one display module sent in advance by the server for displaying the first display interface, and each display module is used to indicate a function displayed in the first display interface.

[0144] Step 640: cache the pre-sent data, where the pre-sent data is used to render the first display interface according to the pre-sent data when an interface loading operation is received again.

[0145] In some embodiments, the pre-sent data includes a pre-loading interval duration, where the pre-loading interval duration is the duration predicted by the server to receive an interface loading operation again.

[0146] In some embodiments, when an interface loading operation is received again within the preloading interval, the first display interface is rendered according to the pre-sent data.

[0147] In some embodiments, when no interface loading operation is received again within the preloading interval, updated pre-sent data is received and the updated pre-sent data is cached. The updated pre-sent data is used to render the first display interface according to the updated pre-sent data when an interface loading operation is received again within the updated preloading interval.

[0148] For the introduction of each content in steps 610 to 640 , reference may be made to the above embodiments, which will not be described in detail here.

[0149] By sending the real-time loading information and exposure data to the server in real time on the client side, the server can timely predict whether the server will perform the pre-issuance operation based on the real-time loading information and the historical loading information in the historical time period, and trigger the server to perform the pre-issuance operation when the frequency of use of the first display interface is high, so that the delay optimization method provided by the present application can be fully utilized when the user frequently uses the first display interface, avoiding the data not being used after being issued, and improving the utilization efficiency of the method of the present application. By performing the pre-issuance operation, the client can directly render the first display interface according to the pre-issuance data when it receives the interface loading operation again, reducing the delay of the multimedia aggregation request and improving the rendering efficiency of the client loading interface.

[0150] Figure 7A schematic diagram of the interaction process between the client and the server is shown. The user performs a start operation, and the client obtains the timestamp of the start operation and the exposure data of the first display interface after the start operation, and sends the timestamp of the start operation and the exposure data of the first display interface after the start operation to the server. The user performs a refresh operation, and the client obtains the timestamp of the refresh operation and the exposure data of the first display interface after the refresh operation, and sends the timestamp of the refresh operation and the exposure data of the first display interface after the refresh operation to the server. The user performs a load operation, and the client obtains the timestamp of the load operation and the exposure data of the first display interface after the load operation, and sends the timestamp of the load operation and the exposure data of the first display interface after the load operation to the server. The user performs a module click operation, and the client obtains the cumulative number of operations and module conversion data corresponding to each display module after the module click operation, and the module conversion data is used to indicate the display module indicated by the module click operation, and the client sends the cumulative number of operations and module conversion data corresponding to each display module to the server. The server obtains the pre-issued data according to the data sent by the client and the data sent by the client in the historical time period, and sends the pre-issued data to the client. The client caches the pre-sent data. If the client receives an interface loading operation again within the preloading interval, the first display interface is rendered according to the pre-sent data. If the client does not receive an interface loading operation again within the preloading interval, the server obtains the updated pre-sent data and sends the updated pre-sent data to the client.

[0151] The latency optimization method for multi-module aggregation request executed by the server and the latency optimization method for multi-module aggregation request executed by the client provided in the embodiment of the present application are methods executed by different corresponding execution devices. For details not described in detail on one side, please refer to the introduction on the other side.

[0152] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0153] Please refer to Figure 8 , which shows a block diagram of a delay optimization device for multi-module aggregation requests provided by an embodiment of the present application. The device has the function of implementing the delay optimization method for multi-module aggregation requests, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the server introduced above, or it can be set in the server. Figure 8 As shown, the device 800 may include: a real-time acquisition module 810 , a history acquisition module 820 , a result prediction module 830 , a data acquisition module 840 and a data sending module 850 .

[0154] The real-time acquisition module 810 is used to obtain real-time loading information corresponding to the interface loading operation according to the interface loading operation received by the client. The interface loading operation is used to request the client to load the first display interface, and the real-time loading information is used to indicate the loading status of the first display interface in response to the interface loading operation.

[0155] The history acquisition module 820 is used to acquire the history loading information within the history time period, where the history loading information is used to indicate the loading status of the first display interface within the history time period.

[0156] The result prediction module 830 is used to obtain a prediction result of the first display interface according to the real-time loading information and the historical loading information, and the prediction result is used to indicate whether the server performs a pre-issuance operation.

[0157] The data acquisition module 840 is used to obtain the pre-dispatching data of the first display interface when the prediction result is used to instruct the server to perform the pre-dispatching operation. The pre-dispatching data is data of at least one display module for displaying the first display interface that is sent in advance to the client, and each display module is used to indicate a function displayed in the first display interface.

[0158] The data sending module 850 is used to send the pre-issued data to the client, and the pre-issued data is used for the client to render the first display interface according to the pre-issued data when receiving the interface loading operation again.

[0159] In some embodiments, the pre-delivered data includes the module sequence of the at least one display module and the content data corresponding to the at least one display module; the data acquisition module 840 is used to:

[0160] Acquiring exposure data and module conversion data of the first display interface corresponding to the interface loading operation, and acquiring exposure data and module conversion data of the first display interface in the historical time period, wherein the exposure data is used to indicate each display module that has been displayed in the first display interface, and the module conversion data is used to indicate a display module that has been clicked in the first display interface;

[0161] Obtaining the number of the at least one display module according to the exposure data of the first display interface corresponding to the interface loading operation and the exposure data of the first display interface in the historical time period;

[0162] Obtaining the at least one display module and the module order of the at least one display module according to the number of the at least one display module, the module conversion data of the first display interface corresponding to the interface loading operation, and the module conversion data of the first display interface corresponding to the historical time period;

[0163] According to the at least one display module, content data respectively corresponding to the at least one display module is acquired according to the module sequence of the at least one display module.

[0164] In some embodiments, the data acquisition module 840 is used to:

[0165] Obtaining, according to the exposure data of the first display interface corresponding to the interface loading operation, the number of screen displays corresponding to the interface loading operation, where the number of screen displays is the number of single-screen interfaces of the first display interface displayed by the client, and different single-screen interfaces display different display modules in the first display interface;

[0166] According to the exposure data of the first display interface in the historical time period, an average display quantity corresponding to each interface loading operation in the historical time period is obtained;

[0167] Obtaining the number of screen displays of the first display interface according to the number of screen displays corresponding to the interface loading operation and the average number of displays corresponding to the historical time period;

[0168] The number of the at least one display module is obtained according to the screen display number of the first display interface and the screen data of the client, and the screen data of the client is used to indicate the number of modules displayed on each single-screen interface on the client.

[0169] In some embodiments, the data acquisition module 840 is used to:

[0170] Obtaining the conversion times corresponding to each display module in the first display interface according to the module conversion data of the first display interface corresponding to the interface loading operation and the module conversion data of the first display interface corresponding to the historical time period;

[0171] According to the order of the conversion times from large to small and based on the number of the at least one display module, obtain the at least one display module that is ranked first among the display modules, and the module order of the at least one display module refers to the order of the conversion times corresponding to the at least one display module from large to small.

[0172] In some embodiments, the real-time loading information includes at least one of the following: a timestamp of a refresh operation of the first display interface based on the interface loading operation, a timestamp of a load operation of the first display interface based on the interface loading operation, a timestamp of a start operation of the client based on the interface loading operation, and a cumulative number of operations corresponding to at least one display module in the first display interface;

[0173] The historical loading information includes at least one of the following: the timestamp of the refresh operation on the first display interface within the historical time period, the number of refresh operations on the first display interface within the historical time period, the timestamp of the load operation on the first display interface within the historical time period, the number of load operations on the first display interface within the historical time period, the timestamp of the startup operation on the first display interface within the historical time period, and the number of startup operations on the first display interface within the historical time period.

[0174] In some embodiments, the result prediction module 830 is used to:

[0175] In a case where the real-time loading information and the historical loading information meet the prediction condition, the prediction result is determined to instruct the server to perform the pre-issuance operation.

[0176] In some embodiments, the prediction condition includes at least one of the following:

[0177] The frequency of the refresh operation of the first display interface is greater than or equal to a first frequency threshold;

[0178] The frequency of the loading operation of the first display interface is greater than or equal to a second frequency threshold;

[0179] The frequency of the startup operation of the first display interface is greater than or equal to a third frequency threshold;

[0180] The cumulative number of operations corresponding to the display module is greater than or equal to a quantity threshold.

[0181] In some embodiments, the pre-issued data further includes a pre-loading interval duration, where the pre-loading interval duration is a predicted duration for the client to receive the interface loading operation again; the device 800 further includes a data updating module, where the data updating module is used to:

[0182] If the client does not receive the interface loading operation again within the preloading interval, after the preloading interval has elapsed, the step of obtaining the pre-issued data of the first display interface is re-executed to obtain updated pre-issued data;

[0183] Send the updated pre-delivery data to the client.

[0184] Please refer to Fig. 9 , which shows a block diagram of a delay optimization device for multi-module aggregation request provided by an embodiment of the present application. The device has the function of implementing the delay optimization method for multi-module aggregation request, and the function can be implemented by hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be set in the terminal device. Fig. 9 As shown, the device 900 may include: an information acquisition module 910 , an information sending module 920 , a data receiving module 930 and a data caching module 940 .

[0185] The information acquisition module 910 is used to obtain real-time loading information corresponding to the interface loading operation for the first display interface in response to the interface loading operation, and the real-time loading information is used to indicate the loading status of the first display interface in response to the interface loading operation.

[0186] The information sending module 920 is used to send the real-time loading information to the server. The real-time loading information is used by the server to obtain the prediction result of the first display interface in combination with the historical loading information within the historical time period. The historical loading information is used to indicate the loading status of the first display interface within the historical time period. The prediction result is used to indicate whether the server performs a pre-issuance operation.

[0187] The data receiving module 930 is used to receive pre-sending data of the first display interface when the prediction result is used to instruct the server to perform the pre-sending operation. The pre-sending data is data of at least one display module for displaying the first display interface sent in advance by the server, and each display module is used to indicate a function displayed in the first display interface.

[0188] The data cache module 940 is used to cache the pre-issued data, and the pre-issued data is used to render the first display interface according to the pre-issued data when the interface loading operation is received again.

[0189] In some embodiments, the interface loading operation includes at least one of the following: a start operation, a refresh operation, and a load operation; the method further includes:

[0190] In response to an interface loading operation on the first display interface, obtaining exposure data of the first display interface corresponding to the interface loading operation, wherein the exposure data is used to indicate each display module that has been displayed in the first display interface;

[0191] In response to a module click operation on the first display interface, obtaining module conversion data of the first display interface corresponding to the module click operation, wherein the module click operation is an operation performed after the first display interface is displayed, and the module conversion data is used to indicate the clicked display module in the first display interface;

[0192] The exposure data and the module conversion data are sent to the server, where the exposure data and the module conversion data are used by the server to generate the pre-delivered data in combination with the exposure data and the module conversion data of the first display interface within a historical time period.

[0193] In some embodiments, the pre-issued data includes a pre-loading interval duration, and the pre-loading interval duration is the duration predicted by the server to receive the interface loading operation again; the device 900 also includes a data updating module, and the data updating module is used to:

[0194] When the interface loading operation is received again within the preloading interval, rendering the first display interface according to the pre-issued data;

[0195] When the interface loading operation is not received again within the preloading interval, updated pre-sent data is received and cached. The updated pre-sent data is used to render the first display interface according to the updated pre-sent data when the interface loading operation is received again within the updated preloading interval.

[0196] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0197] Please refer to Fig.10 , which shows a block diagram of a computer device 1000 provided in one embodiment of the present application. The computer device 1000 may be any electronic device with data computing, processing and storage functions. The computer device 1000 may be used to implement the delay optimization method for multi-module aggregation requests provided in the above embodiment.

[0198] Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .

[0199] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0200] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned delay optimization method for multi-module aggregation requests.

[0201] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the computer device 1000, and the computer device 1000 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0202] In an illustrative embodiment, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is executed by a processor of a computer device, the delay optimization method of the multi-module aggregation request is implemented. Optionally, the computer-readable storage medium can be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0203] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned delay optimization method for multi-module aggregation requests.

[0204] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0205] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for optimizing latency of multi-module aggregation requests, characterized in that: The method comprises: According to an interface loading operation received by the client, acquiring real-time loading information corresponding to the interface loading operation, wherein the interface loading operation is used to request the client to load a first display interface, and the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation; Acquire historical loading information within a historical time period, where the historical loading information is used to indicate a loading status of the first display interface within the historical time period; Obtaining a prediction result of the first display interface according to the real-time loading information and the historical loading information, wherein the prediction result is used to indicate whether the server performs a pre-issuance operation; In a case where the prediction result is used to instruct the server to perform the pre-issuance operation, obtaining pre-issuance data of the first display interface, where the pre-issuance data is data of at least one display module for displaying the first display interface that is sent in advance to the client, and each display module is used to indicate a function displayed in the first display interface; The pre-issued data is sent to the client, where the pre-issued data is used for rendering the first display interface according to the pre-issued data when the client receives the interface loading operation again.

2. The method according to claim 1, characterized in that The pre-delivered data includes a module sequence of the at least one display module and content data corresponding to the at least one display module; The obtaining of pre-issued data of the first display interface includes: Acquiring exposure data and module conversion data of the first display interface corresponding to the interface loading operation, and acquiring exposure data and module conversion data of the first display interface in the historical time period, wherein the exposure data is used to indicate each display module that has been displayed in the first display interface, and the module conversion data is used to indicate a display module that has been clicked in the first display interface; Obtaining the number of the at least one display module according to the exposure data of the first display interface corresponding to the interface loading operation and the exposure data of the first display interface in the historical time period; Obtaining the at least one display module and the module order of the at least one display module according to the number of the at least one display module, the module conversion data of the first display interface corresponding to the interface loading operation, and the module conversion data of the first display interface corresponding to the historical time period; According to the at least one display module, content data respectively corresponding to the at least one display module is acquired according to the module sequence of the at least one display module.

3. The method according to claim 2, characterized in that The obtaining the number of the at least one display module according to the exposure data of the first display interface corresponding to the interface loading operation and the exposure data of the first display interface in the historical time period includes: Obtaining, according to the exposure data of the first display interface corresponding to the interface loading operation, the number of screen displays corresponding to the interface loading operation, where the number of screen displays is the number of single-screen interfaces of the first display interface displayed by the client, and different single-screen interfaces display different display modules in the first display interface; According to the exposure data of the first display interface in the historical time period, an average display quantity corresponding to each interface loading operation in the historical time period is obtained; Obtaining the number of screen displays of the first display interface according to the number of screen displays corresponding to the interface loading operation and the average number of displays corresponding to the historical time period; The number of the at least one display module is obtained according to the screen display number of the first display interface and the screen data of the client, and the screen data of the client is used to indicate the number of modules displayed on each single-screen interface on the client.

4. The method according to claim 2, characterized in that: The obtaining, according to the number of the at least one display module, the module conversion data of the first display interface corresponding to the interface loading operation, and the module conversion data of the first display interface corresponding to the historical time period, the at least one display module and the module order of the at least one display module comprises: Obtaining the conversion times corresponding to each display module in the first display interface according to the module conversion data of the first display interface corresponding to the interface loading operation and the module conversion data of the first display interface corresponding to the historical time period; According to the order of the conversion times from large to small and based on the number of the at least one display module, obtain the at least one display module that is ranked first among the display modules, and the module order of the at least one display module refers to the order of the conversion times corresponding to the at least one display module from large to small.

5. The method according to claim 1, characterized in that The real-time loading information includes at least one of the following: a timestamp of a refresh operation of the first display interface based on the interface loading operation, a timestamp of a load operation of the first display interface based on the interface loading operation, a timestamp of a start operation of the client based on the interface loading operation, and a cumulative number of operations corresponding to at least one display module in the first display interface; The historical loading information includes at least one of the following: the timestamp of the refresh operation on the first display interface within the historical time period, the number of refresh operations on the first display interface within the historical time period, the timestamp of the load operation on the first display interface within the historical time period, the number of load operations on the first display interface within the historical time period, the timestamp of the startup operation on the first display interface within the historical time period, and the number of startup operations on the first display interface within the historical time period.

6. The method according to claim 5, characterized in that The obtaining, according to the real-time loading information and the historical loading information, a prediction result of the first display interface includes: In a case where the real-time loading information and the historical loading information meet the prediction condition, the prediction result is determined to instruct the server to perform the pre-issuance operation.

7. The method according to claim 6, characterized in that The prediction condition includes at least one of the following: The frequency of the refresh operation of the first display interface is greater than or equal to a first frequency threshold; The frequency of the loading operation of the first display interface is greater than or equal to a second frequency threshold; The frequency of the startup operation of the first display interface is greater than or equal to a third frequency threshold; The cumulative number of operations corresponding to the display module is greater than or equal to a quantity threshold.

8. The method according to claim 1, characterized in that The pre-issued data also includes a pre-loading interval duration, where the pre-loading interval duration is a predicted duration for the client to receive the interface loading operation again; After sending the pre-sent data to the client, the method further includes: If the client does not receive the interface loading operation again within the preloading interval, after the preloading interval has elapsed, the step of obtaining the pre-issued data of the first display interface is re-executed to obtain updated pre-issued data; Send the updated pre-delivery data to the client.

9. A method for optimizing latency of multi-module aggregation requests, characterized in that: The method comprises: In response to an interface loading operation on a first display interface, obtaining real-time loading information corresponding to the interface loading operation, wherein the real-time loading information is used to indicate a loading status of the first display interface in response to the interface loading operation; Sending the real-time loading information to the server, the real-time loading information is used by the server to obtain a prediction result of the first display interface in combination with historical loading information in a historical time period, the historical loading information is used to indicate the loading status of the first display interface in the historical time period, and the prediction result is used to indicate whether the server performs a pre-issuance operation; In a case where the prediction result is used to instruct the server to perform the pre-issuance operation, receiving pre-issuance data of the first display interface, the pre-issuance data being data of at least one display module sent in advance by the server for displaying the first display interface, each display module being used to indicate a function displayed in the first display interface; The pre-issued data is cached, and the pre-issued data is used to render the first display interface according to the pre-issued data when the interface loading operation is received again.

10. The method according to claim 9, characterized in that The interface loading operation includes at least one of the following: a startup operation, a refresh operation, and a loading operation; the method further includes: In response to an interface loading operation on the first display interface, obtaining exposure data of the first display interface corresponding to the interface loading operation, wherein the exposure data is used to indicate each display module that has been displayed in the first display interface; In response to a module click operation on the first display interface, obtaining module conversion data of the first display interface corresponding to the module click operation, wherein the module click operation is an operation performed after the first display interface is displayed, and the module conversion data is used to indicate the clicked display module in the first display interface; The exposure data and the module conversion data are sent to the server, where the exposure data and the module conversion data are used by the server to generate the pre-delivered data in combination with the exposure data and the module conversion data of the first display interface within a historical time period.

11. The method according to claim 9, characterized in that The pre-issued data includes a pre-loading interval duration, where the pre-loading interval duration is the duration predicted by the server to receive the interface loading operation again; After the pre-sent data is cached, the method further includes: When the interface loading operation is received again within the preloading interval, rendering the first display interface according to the pre-issued data; When the interface loading operation is not received again within the preloading interval, updated pre-sent data is received and cached. The updated pre-sent data is used to render the first display interface according to the updated pre-sent data when the interface loading operation is received again within the updated preloading interval.

12. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 1 to 8, or to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 9 to 11.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 1 to 8, or to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 9 to 11.

14. A computer program product, characterized in that The computer program product includes a computer program, which is loaded and executed by a processor to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 1 to 8, or to implement the latency optimization method for multi-module aggregation requests as described in any one of claims 9 to 11.