Resource processing method, device and equipment and computer readable storage medium
By analyzing the historical resource access sequence to form an optimized resource collection, the problem of low resource loading efficiency in mobile Internet applications is solved, and the effect of reducing the number of connections and improving user experience is achieved.
Patent Information
- Application Number
- CN202411225151.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-12-27
AI Technical Summary
With the complexity of mobile Internet application functions, clients and servers repeatedly establish connections to obtain resources in a short period of time, resulting in low resource loading efficiency.
By analyzing the historical resource access sequence, determining the correlation between resources, forming an optimized resource collection, and downloading multiple related resources during a single connection, reducing the number of subsequent requests.
Improve resource loading efficiency, reduce the number of connections between clients and servers, and improve user experience.
Smart Images

Figure CN119211361A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a resource processing method, device, equipment and computer-readable storage medium. Background Art
[0002] With the development of mobile Internet applications, the functions of applications are becoming more and more complex, and the resources that applications need to access during operation are also increasing and becoming more and more complex. At present, when an application needs to access some resources, it often sends a resource acquisition request to the server through the client where the application is located. The server usually responds to the resource acquisition request and sends the resource corresponding to the resource acquisition request to the client.
[0003] However, as the functions of applications become more and more complex, applications may need to access a large number of resources in a short period of time, which requires the client where the application is located to repeatedly establish connections with the server in a short period of time, send resource acquisition requests and download resources, resulting in a large amount of time being spent on establishing connections between the client and the server, which in turn leads to low resource loading efficiency. Summary of the invention
[0004] The embodiments of the present application provide a resource processing method, apparatus, device, computer-readable storage medium, and computer program product, which can improve resource loading efficiency.
[0005] In a first aspect, an embodiment of the present application provides a resource processing method, which is applied to a server, and the method includes:
[0006] Receive a first resource acquisition request sent by a client, where the first resource acquisition request is used to request to acquire a first resource;
[0007] In response to the first resource acquisition request, a first resource set corresponding to the first resource is determined from multiple resource sets, the first resource set including the first resource and a first follow-up resource of the first resource, the first follow-up resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource;
[0008] The first resource set is sent to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
[0009] In a possible implementation manner, before determining a first resource set corresponding to the first resource from multiple resource sets, the method further includes:
[0010] Obtaining a historical resource access sequence within the preset time period;
[0011] Performing access probability statistics on resources in the historical resource access sequence to generate a plurality of first resource access probability paths;
[0012] For any target resource in the historical resource access sequence, the following operations are performed:
[0013] Determine, according to the access probability of each resource in each of the first resource access probability paths, a first total probability of accessing a target sequence segment and then accessing a following resource, and a second total probability of accessing the target sequence segment, wherein the first position of the target sequence segment is the target resource;
[0014] determining the follow-up access probability according to a ratio of the first total probability to the second total probability;
[0015] Filter out a target follow-up access resource whose follow-up access probability is greater than the first preset probability from all the follow-up resources;
[0016] The target follow-up access resource is added to the resource collection of the target resource.
[0017] In a possible implementation manner, adding the target follow-up access resource to the resource set of the target resource includes:
[0018] When the sum of the volumes of the resource set and the target follow-up access resource is less than a preset volume, the target follow-up access resource is added to the resource set of the target resource.
[0019] In a possible implementation manner, sending the first resource set to the client includes:
[0020] When the network condition indicates that the download speed of the first resource set by the client is less than a first preset speed, a second resource set and target notification information matching the network condition are sent to the client, wherein the second resource set includes at least the first resource, and the target notification information is used to instruct the client to continue requesting the remaining resources in the first resource set except the second resource set.
[0021] In a possible implementation, there are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets;
[0022] The sending the first resource set to the client includes:
[0023] In a case where the target resource set includes all of the first resources in the first resource sets, the target resource set is sent to the client.
[0024] In a possible implementation, the historical resource access sequence within the preset time period is a historical resource access sequence obtained by a user who logs into the client and accesses resources within the preset time period.
[0025] In a possible implementation manner, after sending the first resource set to the client, the method further includes:
[0026] receiving a third resource acquisition request sent by the client, where the third resource acquisition request is used to request acquisition of a third resource;
[0027] In response to the third resource acquisition request, acquiring a third resource set corresponding to the third resource;
[0028] In a case where the third resource set includes the first follower resource in the first resource set, deleting the first follower resource in the third resource set to obtain a fourth resource set;
[0029] Send the fourth resource set to the client.
[0030] In a possible implementation, there are multiple first resource sets, each of which includes a second resource access probability path, the first of which is the first resource, and the second resource access probability path includes at least an access order between multiple first follow-up resources and the follow-up access probability of the second follow-up resource, and the second follow-up resource is a first follow-up resource adjacent to the first resource in the second resource access probability path;
[0031] The sending the first resource set to the client includes:
[0032] Determining a target probability of accessing the second follow-up resource after accessing the first resource among a plurality of the first resource sets;
[0033] The first resource set corresponding to the maximum value of the multiple target probabilities is sent to the client.
[0034] In a possible implementation, the first resource acquisition request includes at least one target resource access probability path corresponding to a target user, the target user is a user who logs in to the client, the target resource access probability path is a resource access path obtained by performing access probability statistics on resources in a target historical resource access sequence, and the target historical resource access sequence is a historical resource access path of the target user within the preset time period;
[0035] The sending the first resource set to the client includes:
[0036] Determine, according to the access probability of each resource in each of the target resource access probability paths, a third total probability of accessing the first resource and then accessing a third follow-up resource, wherein the third follow-up resource is a resource located after the first resource and adjacent to the first resource in the target resource access probability path;
[0037] When the third total probability is greater than the second preset probability, the third follower resource corresponding to the third total probability is matched with the second follower resources of the plurality of first resource sets respectively in descending order of the third total probability;
[0038] In the case that the second follower resource identical to the third follower resource exists in the plurality of first resource sets, the first resource set corresponding to the second follower resource identical to the third follower resource is sent to the client.
[0039] In a second aspect, an embodiment of the present application provides a resource processing method, which is applied to a client, and the method includes:
[0040] Sending a first resource acquisition request to a server, where the first resource acquisition request is used to request to acquire a first resource;
[0041] Receive a first resource set sent by the server, the first resource set including the first resource and a first following resource of the first resource, the first following resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource;
[0042] Acquire the first resource from the first resource set;
[0043] When it is determined that the first follower resource needs to be accessed, the first follower resource is acquired from the first resource set.
[0044] In a possible implementation, there are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets;
[0045] The receiving a first resource set sent by the server includes:
[0046] receiving a target resource set sent by the server, wherein the target resource set includes all the first resources in each of the first resource sets;
[0047] The acquiring the first resource from the first resource set includes:
[0048] The first resources respectively corresponding to the plurality of first resource acquisition requests are acquired from the target resource set.
[0049] In a possible implementation, before sending the first resource acquisition request to the server, the method further includes:
[0050] Acquire a target historical resource access sequence of a target user within the preset time period, wherein the target user is a user who logs in to the client;
[0051] Performing access probability statistics on resources in the target historical resource access sequence to generate at least one target resource access probability path;
[0052] The sending a first resource acquisition request to the server includes:
[0053] A first resource acquisition request including the at least one target resource access probability path is sent to the server.
[0054] In a third aspect, an embodiment of the present application provides a resource processing device, the device comprising:
[0055] A first receiving module, configured to receive a first resource acquisition request sent by a client, wherein the first resource acquisition request is used to request to acquire a first resource;
[0056] a determination module, configured to determine, in response to the first resource acquisition request, a first resource set corresponding to the first resource from a plurality of resource sets, the first resource set including the first resource and a first follow-up resource of the first resource, the first follow-up resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource;
[0057] The first sending module is configured to send the first resource set to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
[0058] In a fourth aspect, an embodiment of the present application provides a resource processing device, the device comprising:
[0059] A second sending module, used for sending a first resource acquisition request to the server, where the first resource acquisition request is used for requesting to acquire a first resource;
[0060] a second receiving module, configured to receive a first resource set sent by the server, wherein the first resource set includes the first resource and a first following resource of the first resource, wherein the first following resource is a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and whose following access probability is greater than a first preset probability, wherein the following access probability is a probability of accessing the following resource after accessing the first sequence segment, and the first position of the first sequence segment is the first resource;
[0061] A first acquisition module, configured to acquire the first resource from the first resource set;
[0062] The second acquisition module is configured to acquire the first follow-up resource from the first resource set when it is determined that the first follow-up resource needs to be accessed.
[0063] In a fifth aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0064] When the processor executes the computer program instructions, the processor implements any possible implementation method of the first aspect described above.
[0065] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implements a method in any possible implementation method of the first aspect described above.
[0066] In a seventh aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a method as any possible implementation method in the first aspect above.
[0067] In an embodiment of the present application, the follow-up access probability is the probability of accessing the follow-up resource after accessing the first sequence segment, and the first resource in the first sequence segment is the first resource. If a certain resource and the first resource belong to the same historical resource access sequence within a preset time period, and are located after the first resource, and the follow-up access probability is greater than the first preset probability, it means that after the preset time period, the application corresponding to the client is likely to access the resource again after accessing the first resource. Therefore, the resource can be determined as the first follow-up resource of the first resource and added to the first resource set corresponding to the first resource. In this way, when receiving the first resource request sent by the client, not only the first resource corresponding to the first resource request is sent to the client, but also the first follow-up resource of the first resource is sent to the client, which not only meets the resource request demand at the time, but also can be directly obtained from the first resource set when accessing the first follow-up resource in the subsequent access, without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0069] Figure 1 It is a structural diagram of a resource processing system provided in an embodiment of the present application;
[0070] Figure 2 is a structural diagram of another resource processing system provided in an embodiment of the present application;
[0071] Figure 3 It is a flowchart of a resource processing method applied to a server provided in an embodiment of the present application;
[0072] Figure 4 is a schematic diagram of a historical resource access sequence provided by an embodiment of the present application;
[0073] Figure 5 is a schematic diagram of a first resource access probability path provided by an embodiment of the present application;
[0074] Figure 6 is a schematic diagram of a resource set provided in an embodiment of the present application;
[0075] Figure 7 It is a flowchart of the first resource processing method provided in the embodiment of the present application;
[0076] Figure 8It is a flowchart of a second resource processing method provided in an embodiment of the present application;
[0077] Fig. 9 It is a flowchart of a third resource processing method provided in an embodiment of the present application;
[0078] Fig.10 It is a flowchart of a resource processing method applied to a client provided in an embodiment of the present application;
[0079] Fig.11 is a structural diagram of a resource processing device provided in an embodiment of the present application;
[0080] Fig.12 is a structural diagram of another resource processing device provided in an embodiment of the present application;
[0081] Fig.13 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0083] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0084] With the development of mobile Internet applications, the functions of applications are becoming more and more complex. The increasing complexity of application functions is accompanied by the increasing size of application packages, and the speed of business recording is becoming slower and slower. The size of the package volume and the speed of business loading are largely determined by the resources accessed by the application, such as pictures, videos, scripts, configuration files, multilingual resources, etc. From the perspective of optimizing resource loading speed, optimizing business loading speed is less invasive to the business and has a more obvious optimization effect than other optimizations. Therefore, the embodiment of the present application proposes a method for improving resource loading efficiency, so as to increase business loading speed, reduce package size, and improve user experience.
[0085] At present, when an application needs to access some resources, it often sends a resource acquisition request to the server through the client where the application is located. The server usually responds to the resource acquisition request and sends the resource corresponding to the resource acquisition request to the client.
[0086] However, as the functions of applications become more and more complex, applications may need to access a large number of resources in a short period of time, which requires the client where the application is located to repeatedly establish connections with the server in a short period of time, send resource acquisition requests and download resources, resulting in a large amount of time being spent on establishing connections between the client and the server, which in turn leads to low resource loading efficiency.
[0087] With the popularization of mobile Internet and the development of network bandwidth, network download speed has been greatly improved. Therefore, if we can use the network bandwidth advantage to download as many resources as possible in one connection process, we can improve resource loading efficiency. Therefore, it is very important to use historical statistical information to find the correlation between resources and form an optimized resource set to use the network bandwidth advantage to download as many resources as possible in one connection process.
[0088] Thus, in order to solve the existing technical problems, the embodiment of the present application proposes an intelligent resource distribution strategy. The resources are reasonably aggregated into resource sets based on historical resource usage, and an intelligent distribution strategy is used to reduce the number of requests and data transmission between the client and the server, thereby improving resource loading efficiency.
[0089] Specifically, the embodiments of the present application provide a resource processing method, apparatus, device, computer-readable storage medium, and computer program product. The resource processing method can be applied to a scenario where a client requests a resource from a server.
[0090] The following first introduces the resource processing system provided in the embodiment of the present application.
[0091] like Figure 1As shown, the resource processing system provided in the embodiment of the present application may include a client 11 and a server 12. Among them, the client 11 may include a native application (Native application) 111, a small program application 112, a native mobile application (ReactNative application, RN application) 113, a web application (H5 application) 114 and a client resource management module 115. Since Native applications, RN applications, H5 applications and small program applications have limitations in managing resources alone, it is not conducive to aggregating resources into resource sets. Therefore, in order to break the above limitations, the client resource management module 115 can be implemented at the bottom layer through Native technology. The client resource management module 115 can classify and manage resources such as image resources, video resources, script resources, and multilingual resources. Native applications, RN applications, H5 applications and small program applications can access resources uniformly through the client resource management module 115 in a plug-in manner to ensure that resources are shared between different businesses and different technical architectures. In addition, the client resource management module 115 can also comprehensively count resource usage and provide accurate resource information for the server.
[0092] The server 12 may include a server resource management module 121, a server resource analysis module 122, a client resource access point storage module 123, a server resource access log storage module 124 and a resource entry module 125. Among them, the client resource access point storage module 123 can store client resource access points. Client resource access points usually refer to code snippets embedded in client applications (such as mobile applications or web pages) to track and record user interactions with applications. The server resource access log storage module 124 can store server resource access logs. The server resource access log records all access requests to server resources and the resource sets issued. Resources such as picture resources, video resources, script resources, and multilingual resources can be entered into the resource entry module 125. The resources entered in the resource entry module 125 may carry business information and scenario information.
[0093] The server resource analysis module 122 can analyze the resource access situation within the preset time period based on the client resource access points, server resource access logs, and the business and scenario information that comes with the resource entry, and determine the resource access frequency, resource access timing, access order between resources, and other information. After determining the resource access frequency and resource access timing, the resources with the access timing of "start" can be determined as client preset resources according to demand, and cached in the client resource management module 115, and the resources with high access frequency can be determined as business pre-download resources, and cached in the client resource management module 115. In addition, after determining the resource access frequency, resource access timing, access order between resources, and other information, the association relationship between multiple resources can also be determined based on the above information, and the resources can be clustered into resource sets through business relevance and resource request relevance statistical analysis to obtain multiple resource sets, and the multiple resource sets are stored in the server resource management module 121. Specifically, multiple resources can be first classified according to business categories and scenario categories to obtain business resource sets and scenario resource sets, and then the association relationship between multiple resources in the resource sets can be determined for the business resource sets and scenario resource sets, respectively, to obtain multiple resource sets corresponding to the business resource sets and scenario resource sets. In addition, multiple resources can be first classified according to resource types into resource sets such as picture resources, video resources, script resources, and multilingual resources, and then the association relationship between multiple resources in the resource sets can be determined for each type of resource set, to obtain multiple resource sets corresponding to each type of resource set.
[0094] For example, the client 11 may send a resource acquisition request to the server 12 to request a single resource. After receiving the resource acquisition request, the server 12 may send a resource set corresponding to the requested resource to the client 11, which not only meets the resource request requirements at the time, but also directly returns other related resources, reducing subsequent requests and improving resource loading efficiency.
[0095] If the server resource management module 121 manages resource sets such as picture resources, video resources, script resources, and multi-language resources that are subdivided according to resource categories, the system architecture in the embodiment of the present application can be as follows: Figure 2 shown.
[0096] The embodiment of the present application aims at the current complex application resource management needs, and introduces the resource set intelligent production and distribution strategy proposed in this case through the cooperation of the client and the server. The client independently generates a module dedicated to managing unified resources of different technical architectures and business modules, namely the client resource management module; the server analyzes the client resource access points and server resource access logs, and comprehensively considers the business and scenario resources brought by the resource entry, so as to reasonably organize resources, optimize the scheduling strategy, and achieve the purpose of efficient resource management.
[0097] In addition, resource collections are not formed blindly or arbitrarily, but are calculated through statistical analysis of historical requests, the probability and timing of each resource request, and factors such as the volume of the resource set to ensure that the resource collection can meet user needs.
[0098] The following is an introduction to the resource processing method applied to the server provided in the embodiment of the present application.
[0099] Figure 3 FIG. 1 is a flow chart of a resource processing method provided in an embodiment of the present application. The resource processing method may be executed by a server. Figure 3 As shown, the resource processing method provided in the embodiment of the present application includes the following steps:
[0100] S310: Receive a first resource acquisition request sent by a client, where the first resource acquisition request is used to request to acquire a first resource;
[0101] S320, in response to the first resource acquisition request, determining a first resource set corresponding to the first resource from multiple resource sets, the first resource set including the first resource and a first follower resource of the first resource, the first follower resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follower access probability greater than a first preset probability, the follower access probability being a probability of accessing the follower resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource;
[0102] S330: Send the first resource set to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
[0103] In an embodiment of the present application, the follow-up access probability is the probability of accessing the follow-up resource after accessing the first sequence segment, and the first resource in the first sequence segment is the first resource. If a certain resource and the first resource belong to the same historical resource access sequence within a preset time period, and are located after the first resource, and the follow-up access probability is greater than the first preset probability, it means that after the preset time period, the application corresponding to the client is likely to access the resource again after accessing the first resource. Therefore, the resource can be determined as the first follow-up resource of the first resource and added to the first resource set corresponding to the first resource. In this way, when receiving the first resource request sent by the client, not only the first resource corresponding to the first resource request is sent to the client, but also the first follow-up resource of the first resource is sent to the client, which not only meets the resource request demand at the time, but also can be directly obtained from the first resource set when accessing the first follow-up resource in the subsequent access, without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency.
[0104] The specific implementation methods of the above steps are introduced below.
[0105] In some embodiments, in S310, the first resource acquisition request may be used to request the acquisition of the first resource, wherein the resource type of the first resource may be any one of multiple resource types such as picture resources, video resources, script resources, multi-language resources, and configuration file resources.
[0106] In some embodiments, in S320, a plurality of resource sets may be pre-stored in the server. Each resource set may include a plurality of resources. The plurality of resources may belong to the same resource type or to different resource types, which is not limited here. In addition, the plurality of resources may have an association relationship related to the resource access order.
[0107] As an example, by collecting statistics on historical resource access from a user's single startup to closing of an application within a preset period, a historical resource access sequence can be obtained. The preset period can be half a month, one month, two months, etc., which is not limited here.
[0108] Assuming that the resources in the server include A resources, B resources, C resources, D resources, E resources, F resources, G resources, H resources, I resources, J resources, H resources and M resources, a schematic diagram of a historical resource access sequence provided in an embodiment of the present application can be as follows: Figure 4 As shown. Figure 4In the example, if resource A is regarded as the first resource and the reliability of the first resource set is temporarily not considered, the first resource set corresponding to resource A may include resource A, resource C, resource D, resource H and resource M. Among them, resource C, resource D, resource H and resource M may be the first follower resource of resource A.
[0109] In actual situations, resource access is accidental and it is possible that the resource is accessed only once within a preset period of time. Therefore, if the resource is added to the first resource set, the reliability of the first resource set will be reduced. Therefore, in the first resource set, the follow-up access probability of the first follow-up resource can be greater than the first preset probability. The follow-up access probability can be the probability of accessing the follow-up resource after accessing the first sequence segment, and the first preset probability can be a pre-set probability threshold for determining whether to add the follow-up resource to the resource set. The first position of the first sequence segment can be the first resource. In Figure 4 In the example, if resource A is regarded as the first resource, the first sequence segment may include {A}, {A,C}, {A,D}, {A,D,H} and {A,D,H,M}.
[0110] As an example, for a first resource (eg Figure 4 For the first resource set corresponding to the A resource in the first resource set (i.e., the A resource in the first resource set), if the probability of accessing the C resource after accessing the A resource is less than the first preset probability, based on the historical resource access sequence, the C resource may not be added to the first resource set. If the probability of accessing the D resource after accessing the A resource is greater than the first preset probability, based on the historical resource access sequence, the D resource may be added to the first resource set. If the probability of accessing the H resource after accessing the A resource and the D resource (i.e., the first sequence segment {A,D}) is greater than the first preset probability, based on the historical resource access sequence, the H resource may continue to be added to the first resource set. If the probability of accessing the M resource after accessing the A resource, the D resource, and the H resource (i.e., the first sequence segment {A,D,H}) is less than the first preset probability, based on the historical resource access sequence, the M resource may not be added to the first resource set. In this way, the first resource set may include the A resource, the D resource, and the H resource. Among them, the D resource and the H resource may be the first follower resource of the A resource.
[0111] On this basis, as an example, each resource set can carry a set tag. The set tag can be a resource name or a resource identifier, indicating that the resource set is a resource set generated with the resource corresponding to the resource name or resource identifier as the first access. That is, the first resource set can be a resource set generated with the first resource as the first access (see the above example). In the first resource set, except for the first resource, the remaining resources can all be the first follower resources of the first resource.
[0112] Therefore, after receiving the first resource acquisition request from the client for acquiring the first resource, the server can first search for the target resource name or target resource identifier corresponding to the first resource in the collection tags corresponding to multiple resource collections, and then determine the resource collection corresponding to the target resource name or target resource identifier as the first resource collection.
[0113] In addition, there may be multiple first resource sets corresponding to the first resource. Each first resource set may include a second resource access probability path, the first position of the second resource access probability path is the first resource, the second resource access probability path at least includes the access order between multiple first follow-up resources, and the follow-up access probability of the second follow-up resource, and the second follow-up resource is the first follow-up resource adjacent to the first resource in the second resource access probability path.
[0114] As an example, for a first resource (eg Figure 4 For example, if we consider resource A in the example, we can determine that after accessing resource A, we may access resource C, resource D, and resource E. Therefore, there may be three or fewer resource sets corresponding to resource A.
[0115] Specifically, if the probability of accessing resource A and then resource C is greater than a first preset probability based on the historical resource access sequence, a first resource set may be determined based on resource A and resource C, and recorded as resource set X. If the probability of accessing resource A and then resource D is greater than a first preset probability based on the historical resource access sequence, a first resource set may be determined based on resource A and resource D, and recorded as resource set Y. If the probability of accessing resource A and then resource E is less than a first preset probability based on the historical resource access sequence, the first resource set of resource A and resource E may not be generated.
[0116] For the Y resource set, if the probability of accessing the H resource after accessing the A resource and the D resource (i.e., the first sequence segment {A, D}) is greater than the first preset probability based on the historical resource access sequence, the H resource can continue to be added to the Y resource set. If the probability of accessing the M resource after accessing the A resource, the D resource, and the H resource (i.e., the first sequence segment {A, D, H}) is greater than the first preset probability based on the historical resource access sequence, the M resource can continue to be added to the Y resource set. In this way, the Y resource set may include the second resource access probability path {A, D, H, M}, and the second resource access probability path may include the probability of accessing the D resource after accessing the A resource, the probability of accessing the H resource after accessing the A resource and the D resource, and the probability of accessing the M resource after accessing the A resource, the D resource, and the H resource. Among them, the D resource can be the second follow-up access resource of the A resource, and the H resource and the M resource can be the first follow-up access resource of the A resource.
[0117] On this basis, as an example, the collection tag carried by the resource collection may include a resource identifier and a follow-up access probability of a second follow-up access resource. Therefore, after receiving a first resource acquisition request from a client for acquiring a first resource, the server may first search for a target resource identifier corresponding to the first resource in the collection tags corresponding to a plurality of resource collections, determine the resource collection corresponding to the target resource identifier as the first resource collection, and then search for the target first resource collection with the highest follow-up access probability of the second follow-up access resource in the plurality of first resource collections when there are multiple first resource collections.
[0118] Based on this, for any target resource (including the first resource), in order to ensure that the resource set of the target resource is all resources that the application may access after accessing the target resource, so as to achieve the purpose of issuing all resources according to one request, reduce the number of subsequent requests, and improve resource loading efficiency, in some embodiments, before the above S320, the resource processing method may also include the step of generating a resource set, which is specifically as follows:
[0119] Obtain the historical resource access sequence within a preset period;
[0120] Performing access probability statistics on resources in the historical resource access sequence to generate multiple first resource access probability paths;
[0121] For any target resource in the historical resource access sequence, perform the following operations:
[0122] According to the access probability of each resource in each first resource access probability path, determine a first total probability of accessing the target sequence segment and then accessing the following resource, and a second total probability of accessing the target sequence segment, the first position of the target sequence segment being the target resource;
[0123] Determine the follow-up visit probability according to the ratio of the first total probability to the second total probability;
[0124] Filter out a target follow-up access resource whose follow-up access probability is greater than a first preset probability from all follow-up resources;
[0125] Add the target follow-up access resource to the resource collection of the target resource.
[0126] Here, as mentioned above, the preset period can be half a month, one month, two months, etc., which is not limited here. The schematic diagram of the historical resource access sequence can be as follows: Figure 4 As shown. Figure 4As shown, after the application is started, it may access resource A, may access resource B, and may access resource C. Assume that within a preset period of time, the application is started a total of 100 times, of which resource A is accessed 40 times, resource B is accessed 35 times, and resource C is accessed 25 times after startup. It can be determined that the probability of accessing resource A after startup is 40%, the probability of accessing resource B is 35%, and the probability of accessing resource C is 25%. After accessing resource A, if the application accesses resource D 6 times and resource E 4 times, and does not access other resources, it can be determined that after accessing resource A, the probability of accessing resource D is 60%, and the probability of accessing resource E is 40%. Similarly, by performing access probability statistics on resources in the historical resource access sequence, multiple first resource access probability paths can be generated. Figure 4 Based on this, the schematic diagrams corresponding to the multiple first resource access probability paths can be as follows Figure 5 shown.
[0127] For any target resource in the historical resource access sequence, the follow-up access probability of the follow-up resource accessing the target resource can be determined based on multiple first resource access probability paths, and then whether to add the follow-up resource corresponding to the follow-up access probability to the resource set of the target resource is determined based on the size relationship between the follow-up access probability and the first preset probability. Among them, the follow-up access probability can be a conditional probability, which represents the probability of accessing the follow-up resource under the condition of accessing the target sequence segment. Among them, the target sequence segment can be the sequence segment with the target resource as the first in the historical resource access sequence. Figure 5 In , if the target resource is A resource, the target sequence segment may include {A}, {A,C}, {A,D}, {A,D,H} and {A,D,H,M}. When the target sequence segment is {A}, the follower resources may include C resource and D resource; when the target sequence segment is {A,D}, the follower resource may be H resource; when the target sequence segment is {A,D,H}, the follower resource may be M resource; when the target sequence segment is {A,C} and {A,D,H,M}, Figure 5 There is no follower resource for the target sequence segment.
[0128] If the target sequence segment is recorded as X and the follow-up resource is recorded as Y, then the probability of accessing the follow-up resource after accessing the target sequence segment can be recorded as P(Y|X). The probability of the follow-up resource can be calculated by the following formula:
[0129] P(Y|X)=P(XY) / P(X)
[0130] In the above formula, P(XY) may represent the first total probability of accessing the target sequence segment and then accessing the follow-up resource, and P(X) may represent the second total probability of accessing the target sequence segment. The first total probability and the second total probability may be calculated based on multiple first resource access probability paths.
[0131] As an example, the method for calculating the second total probability based on multiple first resource access probability paths may be: first, from the multiple first resource access probability paths, find multiple first path segments with the target sequence segment as the access end point, calculate the first probability of each first path segment, and then sum the first probabilities corresponding to the multiple first path segments to obtain the second total probability. The first probability of the first path segment may be the product of the access probabilities corresponding to multiple resources in the first path segment.
[0132] For example, Figure 5 As shown, if the target sequence segment is {A}, the multiple first path segments with {A} as the access end point may include: start->A, start->B->F->A, and start->B->G->A. Among them, the first probability of start->A is 40%; the first probability of start->B->F->A is 35%×60%×70%=14.7%; the first probability of start->B->G->A is 35%×40%×100%=14%. Therefore, the second total probability can be 40%+14.7%+14%=68.7%.
[0133] In addition, the method for calculating the first total probability based on multiple first resource access probability paths can be: first search for multiple second path segments with the second sequence segment as the access end point from the multiple first resource access probability paths, calculate the second probability of each second path segment, and then sum the second probabilities corresponding to the multiple second path segments to obtain the first total probability. Among them, the second probability of the second path segment can be the product of the access probabilities corresponding to multiple resources in the second path segment. In addition, the first position of the second sequence segment can be the target sequence segment, and the last position can be the following resource.
[0134] For example, Figure 5 As shown, if the target sequence segment is {A}, the follow-up resources may include resource C and resource D. That is, the second sequence segment may include {A, C} and {A, D}. Taking the second sequence segment {A, D} as an example, the multiple second path segments with {A, D} as the access end point may include: start->A->D and start->B->F->A->D. Among them, the second probability of start->A->D is 40%×60%=24%; the second probability of start->B->F->A->D is 35%×60%×70%×80%=11.76%. Therefore, the first total probability can be 24%+11.76%=35.76%.
[0135] Based on the above example, when the target sequence segment is {A} and the follow-up resource is D resource, the follow-up resource probability P(D|A) can be P(AD) / P(A)=35.76% / 68.7%=52.05%. If the first preset probability is 40%, the follow-up access probability is greater than the first preset probability, so that D resource can be determined as the target follow-up access resource and added to the resource set of A resource.
[0136] As a more specific example, in Figure 5 Based on this, the generation process of the resource collection corresponding to resource A can be as follows.
[0137] First, the resource set of resource A can include resource A. Then, with resource A as the target sequence segment, Figure 5 The following resources C and D of resource A are determined. When the following resource is resource D, the following resource probability P(D|A) can be calculated by the above example, which will not be repeated here. Similarly, when the following resource is resource C, the following resource probability P(C|A) can be calculated by the above method, which will not be repeated here. If both P(D|A) and P(C|A) are greater than the first preset probability, both resource C and resource D can be added to the resource set of resource A. At this time, the resource set of resource A can include resource A, resource C and resource D.
[0138] In order to ensure that the server can bring as many subsequent resources as possible each time it sends a resource set to the client, the target sequence segments {A, C} and {A, D} can be determined in the resource set of resource A, and then continue to Figure 5 Determine the follower resources of {A,C} and {A,D} respectively. Figure 5 As shown, there is no follow-up resource for the target sequence segment {A, C}. The follow-up resource of the target sequence segment {A, D} is the H resource. Therefore, when the target sequence segment is {A, D} and the follow-up resource is the H resource, the follow-up resource probability P(H|AD) can be calculated by the above method, which will not be repeated here. If P(H|AD) is greater than the first preset probability, the H resource can be added to the resource set of the A resource. At this time, the resource set of the A resource can include A resources, C resources, D resources and H resources. Repeat the above steps until there is no follow-up resource for the target sequence segment in the historical resource access sequence.
[0139] As another more specific example, in Figure 5 Based on this, the generation process of the resource collection corresponding to resource A can be as follows.
[0140] First, there can be multiple resource sets of resource A. Each resource set of resource A can include resource A. Then, taking resource A as the target sequence segment, Figure 5The following resources C, D and E of resource A are determined. When the following resource is resource D, the following resource probability P(D|A) can be calculated by the above example, which will not be repeated here. Similarly, when the following resource is resource C, the following resource probability P(C|A) can be calculated by the above method, which will not be repeated here. When the following resource is resource E, the following resource probability P(E|A) can be calculated by the above method, which will not be repeated here. If P(D|A) and P(C|A) are both greater than the first preset probability, and P(E|A) is less than the first preset probability, resource C can be added to a resource set of resource A to obtain resource set X; resource D can be added to a resource set of resource A to obtain resource set Y. At this time, resource set X can include resource A and resource C, the access order between resource A and resource C, and the follow-up access probability of accessing resource C after accessing resource A. Resource set Y can include resource A and resource D, the access order between resource A and resource D, and the follow-up access probability of accessing resource D after accessing resource A.
[0141] In order to ensure that the server can bring as many subsequent resources as possible each time it sends a resource set to the client, the target sequence segments {A, C} and {A, D} can be determined in the X resource set and the Y resource set respectively, and then Figure 5 Determine the follower resources of {A,C} and {A,D} respectively. Figure 5 As shown, the target sequence segment {A, C} has no following resources. Therefore, the X resource set is determined to end.
[0142] For the Y resource set, the follower resource of the target sequence segment {A, D} is the H resource. Therefore, when the target sequence segment is {A, D} and the follower resource is the H resource, the follower resource probability P(H|AD) can be calculated by the above method, which will not be repeated here. If P(H|AD) is greater than the first preset probability, the H resource can be added to the Y resource set. At this time, the Y resource set may include A resources, D resources, H resources, the access order between A resources, D resources and H resources, as well as the follower access probability of accessing D resources after accessing A resources, and the follower access probability of accessing H resources after accessing A resources and D resources. Repeat the above steps until there is no follower resource of the target sequence segment in the historical resource access sequence.
[0143] In this way, for any target resource in the historical resource access sequence, the follow-up access probability of accessing the follow-up resource after accessing the target sequence segment is determined according to the access probability of each resource in each first resource access probability path, and the target follow-up access resource is determined according to the size relationship between the follow-up access probability and the first preset probability, and then the target follow-up access resource is added to the resource set of the target resource. That is, by utilizing historical statistical information to find the correlation between resources, it can be ensured that the resource set of the target resource contains resources that may be accessed by the application after accessing the target resource, thereby achieving the purpose of issuing all resources according to one request, reducing the number of subsequent requests, and improving resource loading efficiency.
[0144] In actual situations, if the size of the resource collection is large, it may take a long time for the client to download the resource collection, thereby affecting the user experience. Therefore, in order to ensure the rationality of the resource collection size, achieve the purpose of not affecting the user experience and bringing as many subsequent resources as possible in one download, in some embodiments, the above-mentioned adding the target follow-up access resource to the resource collection of the target resource may specifically include:
[0145] When the sum of the volumes of the resource set and the target follow-up access resource is less than a preset volume, the target follow-up access resource is added to the resource set of the target resource.
[0146] Here, the volume of the resource set may be the sum of the volumes of multiple resources in the resource set. The preset volume may be a volume threshold at which downloading the resource set does not affect the user experience under preset network conditions. Downloading the resource set does not affect the user experience may be that the download time when downloading the resource set is less than the preset time, and / or the speed when downloading the resource set is greater than a second preset speed.
[0147] As an example, based on the above example, if the resource set of resource A includes resource A, resource C, and resource D, and the target sequence segment {A, D} has a follow-up resource that is resource H, and P(H|AD) is greater than the first preset probability, then before adding resource H to the resource set of resource A, the relationship between the volume of the resource set and the preset volume after adding resource H to the resource set of resource A can be determined. If adding resource H to the resource set of resource A causes the volume of the resource set to be greater than the preset volume, it will affect the download speed of the resource set, so that the addition of resources to the resource set of resource A can be stopped. If the volume of the resource set is less than or equal to the preset volume after adding resource H to the resource set of resource A, resource H can be added to the resource set of resource A, and {A, D, H} can be used as the target sequence segment to repeat the above steps until the sum of the volume of the resource set and the target follow-up access resource is greater than the preset volume.
[0148] exist Figure 5On the basis of this, assuming that P(C|A) is less than the first preset probability; P(D|A) is greater than the first preset probability; P(H|AD) is greater than the first preset probability; P(M|ADH) is greater than the first preset probability, but the sum of the volumes of A resources, D resources, H resources, and M resources is greater than the preset volume, then the resource set of A resources can include A resources, D resources, and H resources.
[0149] Based on this, a schematic diagram of a resource set provided in an embodiment of the present application can be as follows: Figure 6 As shown. Figure 6 As shown, M resources, C resources and E resources may not belong to any resource set.
[0150] In addition, it should be noted that this embodiment does not limit the order of calculating the follow-up access probability and calculating the volume.
[0151] In this way, by judging whether to continue adding resources to the resource collection according to the preset volume, the rationality of the resource collection volume can be ensured, so as to achieve the purpose of not affecting the user experience and bringing as many subsequent resources as possible in one download.
[0152] In addition, in order to further improve the accuracy of the resource collection, the server resource access log and the client resource tracking information can be periodically analyzed to further adjust and optimize the first preset probability, preset volume and resource collection.
[0153] In some embodiments, in S330, after determining the first resource set, the server may return the first resource set to the client. Specifically, the client resource management module in the client may receive the first resource set. After receiving the first resource set, the client resource management module may, on the one hand, return the first resource to the business requesting the first resource; on the other hand, the first resource set may be temporarily stored in the client resource management module. If there is a subsequent business requesting resources, and the requested resources are in the first resource set, the client may directly provide the requested resources for the business from the first resource set without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency.
[0154] As an example, Figure 7 As shown, a resource processing method provided in an embodiment of the present application may include the following steps:
[0155] S71. The client sends a first resource acquisition request to the server through the client resource management module to request to acquire a first resource;
[0156] S72. The server sends a first resource set to the client resource management module.
[0157] Based on this, in order to increase the download speed of the first resource set downloaded by the client, in some embodiments, the above S330 may specifically include:
[0158] Determining a target probability of accessing a second follow-up resource after accessing a first resource among a plurality of first resource sets;
[0159] A first resource set corresponding to a maximum value of multiple target probabilities is sent to the client.
[0160] Here, the target probability may be the follow-up access probability corresponding to the second follow-up resource in the first resource set. Since the first resource set may include the target probability, after determining multiple first resource sets, the size relationship of the target probabilities corresponding to the multiple first resource sets may be compared, and the first resource set corresponding to the target probability with the largest value may be determined as the target first resource set, and the target first resource set may be sent to the client.
[0161] In this way, by generating a first resource set for each second resource access probability path, and sending the first resource set corresponding to the maximum value of multiple target probabilities to the client, the size of the first resource set sent to the client can be reduced and the download speed of the first resource set by the client can be increased.
[0162] In addition, in actual situations, the actual network conditions of different clients may be different. If the actual download speed of the client is slow and the resource collection is large, it may cause the resource collection to download slowly, resulting in a slow service opening speed, affecting the user experience.
[0163] Based on this, in order to satisfy the client's current resource request requirements, ensure the client's subsequent resource download requirements, and ensure user experience, in some embodiments, the above S330 may specifically include:
[0164] When the network condition indicates that the download speed of the first resource set by the client is less than a first preset speed, a second resource set and target notification information matching the network condition are sent to the client, where the second resource set includes at least the first resource, and the target notification information is used to instruct the client to continue requesting the remaining resources in the first resource set except the second resource set.
[0165] Here, the first preset speed may be a download speed that can satisfy user experience. The first preset speed may be the same as or different from the second preset speed, which is not limited here.
[0166] As an example, the server can monitor the network status of the client. Moreover, before sending the first resource set to the client, the server can predict the download speed of the first resource set based on the network status and the volume of the first resource set. If the server determines that the download speed of the first resource set downloaded by the client is less than the first preset speed, it can send part of the resources in the first resource set, that is, the second resource set, to the client, so that the download speed of the client when downloading the second resource set can be greater than or equal to the first preset speed. Among them, the second resource set can include at least the first resource to meet the client's current resource request requirements.
[0167] When the server sends the second resource set to the client, it can also send target notification information to instruct the client to continue to request the remaining resources in the first resource set except the second resource set, so as to ensure the client's download demand for subsequent resources.
[0168] As an example, Figure 8 As shown, a resource processing method provided in an embodiment of the present application may include the following steps:
[0169] S81, a service request in a client requests a first resource from a client resource management module;
[0170] S82, the client resource management module requests a first resource from the server;
[0171] S83, the server sends the second resource set and target notification information to the client resource management module;
[0172] S84, the client resource management module returns the first resource to the service request;
[0173] S85. The client resource management module requests the server for the remaining resources in the first resource set except the second resource set.
[0174] S86. The server sends the remaining resources to the client resource management module;
[0175] S87: The service request in the client requests the second resource from the client resource management module;
[0176] S88. When determining that the second resource is located in the first resource set, the client resource management module returns the second resource in the first resource set to the service request.
[0177] Among them, S84 and S85 can be performed simultaneously, S84 can be performed first and then S85, or S85 can be performed first and then S84, which is not limited here.
[0178] In this way, by sending the second resource set and target notification information matching the network situation to the client through the server, it can not only meet the client's current resource request needs, but also ensure the client's download needs for subsequent resources, while improving the service opening speed and ensuring user experience.
[0179] In addition, a page in the client can request multiple resources at the same time. That is, there can be multiple first resource acquisition requests. The multiple first resource acquisition requests can be used to request different first resources, and the first resource sets corresponding to the multiple first resources can be different.
[0180] Based on this, in order to reasonably utilize network bandwidth and avoid wasting network resources, in some embodiments, the above S330 may specifically include:
[0181] In the case where the target resource set includes all the first resources in each first resource set, the target resource set is sent to the client.
[0182] Here, the target resource set may be any one of multiple first resource sets.
[0183] As an example, assuming that a page sends two first resource acquisition requests to the server at the same time, requesting resource A and resource B respectively, and the resource set of resource A includes resource B, the server can return the resource set of resource A to the client to reasonably utilize network bandwidth and avoid wasting network resources.
[0184] As an example, Fig. 9 As shown, a resource processing method provided in an embodiment of the present application may include the following steps:
[0185] S91, service request 1 requests resource A from the server through the client resource management module;
[0186] S92, service request 2 requests resource B from the server through the client resource management module;
[0187] S93, the server obtains a resource set including resource A and resource set including resource B respectively, determines a resource set including both resource A and resource B as a target resource set, and sends the target resource set to a resource management module of the client;
[0188] S94, the client resource management module returns resource A to the service request 1;
[0189] S95. The client resource management module returns resource B to service request 2.
[0190] Among them, S91 and S92 can be performed at the same time, and S94 and S95 can be performed at the same time.
[0191] In this way, when a page requests multiple resources at the same time, if the resources requested subsequently are already in the resource set returned by the previous request, the server will merge the returns of the resource requests and distribute them to the resource demanders after the client obtains the resources. This can make rational use of network bandwidth and avoid wasting network resources.
[0192] Based on this, in order to reasonably utilize network bandwidth and avoid wasting network resources, in some embodiments, after the above S330, the method may further include:
[0193] Receive a third resource acquisition request sent by a client, where the third resource acquisition request is used to request to acquire a third resource;
[0194] In response to the third resource acquisition request, acquiring a third resource set corresponding to the third resource;
[0195] In the case where the third resource set includes the first follower resource in the first resource set, deleting the first follower resource in the third resource set to obtain a fourth resource set;
[0196] A fourth resource set is sent to the client.
[0197] Here, the third resource acquisition request may be different from the first resource acquisition request, the third resource may be different from the first resource, the third resource set may be different from the first resource set, and the third resource set may include the first follow-up resource in the first resource set.
[0198] As an example, the client may report local resource information to the server. That is, after the server sends at least one resource set to the client, the server may know the resources already in the client to avoid repeated sending.
[0199] As an example, assume that the server has three resource sets {A, D}, {B, D}, and {C, D}. The client requests four resources in order: A, B, C, and D. When the client requests A, the server has already sent the {A, D} resource set to the client. When the client requests B, the client sends the local resource information to the server. At this time, the server knows that the client already has D, and will send B alone instead of the {B, D} resource set.
[0200] In this way, by exchanging resource information between the server and the client, it is possible to avoid repeated resource distribution, rationally utilize network bandwidth, and avoid wasting network resources.
[0201] In addition, it should be noted that the above historical resource access sequence within the preset period can be a historical resource access sequence obtained by a user who logs into the client and accesses resources within the preset period. That is, the historical resource access sequence can have user attributes. In this way, the resource set determined based on the historical resource access sequence can have a user tag.
[0202] As an example, assume that there are resource sets {A, D} and {A, E} on the server, and resource set {A, D} carries user tag A, and resource set {A, E} carries user tag B. Therefore, when user A requests resource A through the client, resource set {A, D} can be sent; when user B requests resource A through the client, resource set {A, E} can be sent. In addition, if user C logs in to the client for the first time and there is no resource set carrying user tag C on the server, then when user C requests resource A through the client, a resource set with a higher target probability (such as {A, D}) can be sent among multiple resource sets of resource A.
[0203] In this way, by optimizing the distributed resources based on the user's usage habits, the user experience can be further improved.
[0204] In addition, in some embodiments, the first resource acquisition request may include at least one target resource access probability path corresponding to the target user. The target user may be a user who logs in to the client, the target resource access probability path may be a resource access path obtained by performing access probability statistics on resources in a target historical resource access sequence, and the target historical resource access sequence may be a historical resource access path of the target user within a preset period of time.
[0205] The target resource access probability path can be generated by the client based on the target historical resource access sequence of the target user within a preset period. The process of the client generating the target resource access probability path based on the target historical resource access sequence can refer to the process of the server generating the resource access probability path based on the historical resource access sequence, which will not be repeated here.
[0206] Based on this, in order to further improve the user experience, in some embodiments, the above S330 may specifically include:
[0207] Determine, according to the access probability of each resource in each target resource access probability path, a third total probability of accessing a third follow-up resource after accessing the first resource, where the third follow-up resource is a resource located after the first resource and adjacent to the first resource in the target resource access probability path;
[0208] When the third total probability is greater than the second preset probability, the third follower resources corresponding to the third total probability are matched with the second follower resources of the plurality of first resource sets respectively in descending order of the third total probability;
[0209] In the case that there is a second follower resource identical to the third follower resource in the plurality of first resource sets, a first resource set corresponding to the second follower resource identical to the third follower resource is sent to the client.
[0210] Here, it is assumed that multiple target resource access probability paths are as follows Figure 5 As shown, if the first resource is resource A, the third follow-up resource may include resource C, resource D, and resource E. The third total probability can be calculated based on at least one target resource access probability path. The method of calculating the third total probability based on at least one target resource access probability path is the same as the method of calculating the first total probability and the second total probability based on multiple first resource access probability paths described above, and will not be described in detail here.
[0211] The second preset probability may be a pre-set probability threshold related to user habits. If the third total probability is greater than the second preset probability, it can be determined that the target user frequently visits the third follow-up resource after visiting the first resource. If the third total probability is less than or equal to the second preset probability, it can be determined that the target user occasionally visits the third follow-up resource after visiting the first resource. If the target user frequently visits a third follow-up resource after visiting the first resource, the server may preferentially send the third follow-up resource to the client.
[0212] If there is a third total probability greater than the second preset probability, the third follow-up resource corresponding to the third total probability can be matched with the second follow-up resources of multiple first resource sets respectively. If the third follow-up resource is the same as a second follow-up resource in the first resource set, the first resource set corresponding to the second follow-up resource that is the same as the third follow-up resource can be sent to the client. If there is no second follow-up resource that is the same as the third follow-up resource in multiple first resource sets, the first resource set with a larger target probability in multiple first resource sets can be sent to the client.
[0213] If there are multiple third total probabilities greater than the second preset probability, the following steps can be performed in descending order of the third total probabilities: the third follow-up resources corresponding to the third total probability are matched with the second follow-up resources of multiple first resource sets respectively; if the third follow-up resource is the same as a second follow-up resource in the first resource set, the first resource set corresponding to the second follow-up resource that is the same as the third follow-up resource can be sent to the client. If there is no second follow-up resource that is the same as the third follow-up resource in multiple first resource sets, the first resource set with a larger target probability in multiple first resource sets can be sent to the client.
[0214] In this way, by optimizing the distributed resources based on the user's usage habits, the user experience can be further improved.
[0215] The following is an introduction to the resource processing method applied to the client provided in the embodiment of the present application.
[0216] Fig.10 FIG. 1 is a flow chart of a resource processing method provided in an embodiment of the present application. The resource processing method can be executed by a client. Fig.10 As shown, the resource processing method provided in the embodiment of the present application includes steps S1010 to S1040.
[0217] S1010: Send a first resource acquisition request to a server, where the first resource acquisition request is used to request to acquire a first resource.
[0218] S1020, receiving a first resource set sent by the server, the first resource set including a first resource and a first follow-up resource of the first resource, the first follow-up resource being a resource that follows the first resource in a historical resource access sequence of the first resource within a preset time period and whose follow-up access probability is greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment is the first resource.
[0219] S1030: Acquire a first resource from a first resource set.
[0220] S1040: When it is determined that the first follower resource needs to be accessed, obtain the first follower resource from the first resource set.
[0221] Specifically, when the client receives a service request for accessing resource A, it can first determine whether resource A exists in the first resource set. If resource A exists in the first resource set, resource A can be obtained from the first resource set without requesting the server.
[0222] In some embodiments, there may be multiple first resource acquisition requests, the multiple first resource acquisition requests may be used to request different first resources, and the multiple first resources may correspond to different first resource sets.
[0223] Based on this, in order to reasonably utilize network bandwidth and avoid wasting network resources, in some embodiments, the above S1020 may specifically include:
[0224] A target resource set sent by a server is received, where the target resource set includes all first resources in each first resource set.
[0225] Based on this, the above S1030 may specifically include:
[0226] First resources corresponding to the plurality of first resource acquisition requests are acquired from the target resource set.
[0227] In this way, by first receiving the target resource set including all the first resources in each first resource set sent by the server and then uniformly distributing it to the resource demander, the network bandwidth can be reasonably utilized and the waste of network resources can be avoided.
[0228] Based on this, in order to further improve user experience, in some embodiments, before the above S1010, the method may further include:
[0229] Obtain the target historical resource access sequence of the target user within a preset period of time, where the target user is the user who logs into the client;
[0230] Perform access probability statistics on resources in the target historical resource access sequence to generate at least one target resource access probability path;
[0231] Sending a first resource acquisition request to the server includes:
[0232] A first resource acquisition request including at least one target resource access probability path is sent to a server.
[0233] In this way, by sending a first resource acquisition request including at least one target resource access probability path to the server, the client can determine the user's usage habits based on at least one target resource access probability path, and then optimize the distributed resources based on the user's usage habits, thereby further improving the user experience.
[0234] Other steps of the method in the embodiment of the present application can be found above Figure 3 The relevant description of the illustrated embodiment will not be repeated here.
[0235] In an embodiment of the present application, the follow-up access probability is the probability of accessing the follow-up resource after accessing the first sequence segment, and the first resource in the first sequence segment is the first resource. If a certain resource and the first resource belong to the same historical resource access sequence within a preset time period, and are located after the first resource, and the follow-up access probability is greater than the first preset probability, it means that after the preset time period, the application corresponding to the client is likely to access the resource again after accessing the first resource. Therefore, the resource can be determined as the first follow-up resource of the first resource and added to the first resource set corresponding to the first resource. In this way, when receiving the first resource request sent by the client, not only the first resource corresponding to the first resource request is sent to the client, but also the first follow-up resource of the first resource is sent to the client, which not only meets the resource request demand at the time, but also can be directly obtained from the first resource set when accessing the first follow-up resource in the subsequent access, without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency.
[0236] Based on the resource processing method provided in the above embodiment, the present application also provides a specific implementation of a resource processing device. Please refer to the following embodiment.
[0237] like Fig.11 As shown, the resource processing device 1100 provided in this embodiment of the present application includes the following modules:
[0238] The first receiving module 1110 is used to receive a first resource acquisition request sent by a client, where the first resource acquisition request is used to request to acquire a first resource;
[0239] The determination module 1120 is used to determine, in response to the first resource acquisition request, a first resource set corresponding to the first resource from multiple resource sets, wherein the first resource set includes the first resource and a first follow-up resource of the first resource, wherein the first follow-up resource is a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and whose follow-up access probability is greater than a first preset probability, wherein the follow-up access probability is a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment is the first resource;
[0240] The first sending module 1130 is configured to send the first resource set to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
[0241] The resource processing device 1100 is described in detail below, as follows:
[0242] In some embodiments, the resource processing device 1100 may further include:
[0243] A third acquisition module is used to acquire a historical resource access sequence within a preset period of time;
[0244] A first statistical module, used to perform access probability statistics on resources in a historical resource access sequence to generate a plurality of first resource access probability paths;
[0245] The execution module is used to perform the following operations on any target resource in the historical resource access sequence:
[0246] According to the access probability of each resource in each first resource access probability path, determine a first total probability of accessing the target sequence segment and then accessing the following resource, and a second total probability of accessing the target sequence segment, the first position of the target sequence segment being the target resource;
[0247] Determine the follow-up visit probability according to the ratio of the first total probability to the second total probability;
[0248] Filter out a target follow-up access resource whose follow-up access probability is greater than a first preset probability from all follow-up resources;
[0249] Add the target follow-up access resource to the resource collection of the target resource.
[0250] In some embodiments, the execution module is specifically used to:
[0251] When the sum of the volumes of the resource set and the target follow-up access resource is less than a preset volume, the target follow-up access resource is added to the resource set of the target resource.
[0252] In some embodiments, the first sending module 1130 may specifically include:
[0253] The first sending submodule is used to send a second resource set and target notification information matching the network situation to the client when the network situation indicates that the download speed of the client for downloading the first resource set is less than a first preset speed, wherein the second resource set includes at least the first resource, and the target notification information is used to instruct the client to continue requesting the remaining resources in the first resource set except the second resource set.
[0254] In some embodiments, there are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets.
[0255] Based on this, the first sending module 1130 may specifically include:
[0256] The second sending submodule is configured to send the target resource set to the client when the target resource set includes all the first resources in each of the first resource sets.
[0257] In some embodiments, the resource processing device 1100 may further include:
[0258] A third receiving module, configured to receive a third resource acquisition request sent by the client after sending the first resource set to the client, where the third resource acquisition request is used to request to acquire a third resource;
[0259] A fourth acquisition module, configured to acquire a third resource set corresponding to the third resource in response to the third resource acquisition request;
[0260] a deleting module, configured to, when the third resource set includes the first follower resource in the first resource set, delete the first follower resource in the third resource set to obtain a fourth resource set;
[0261] The third sending module is used to send a fourth resource set to the client.
[0262] In some embodiments, there are multiple first resource sets, each of which includes a second resource access probability path, the first head of the second resource access probability path is the first resource, the second resource access probability path includes at least an access order between multiple first follow-up resources, and the follow-up access probability of the second follow-up resource, and the second follow-up resource is the first follow-up resource adjacent to the first resource in the second resource access probability path.
[0263] Based on this, the first sending module 1130 may specifically include:
[0264] A first determination submodule, used to determine a target probability of accessing a second follow-up resource after accessing a first resource in a plurality of first resource sets;
[0265] The third sending submodule is used to send a first resource set corresponding to a maximum value of multiple target probabilities to the client.
[0266] In some of the embodiments, the first resource acquisition request includes at least one target resource access probability path corresponding to the target user, the target user is the user logging into the client, the target resource access probability path is a resource access path obtained by performing access probability statistics on resources in a target historical resource access sequence, and the target historical resource access sequence is a historical resource access path of the target user within a preset time period.
[0267] Based on this, the first sending module 1130 may specifically include:
[0268] A second determination submodule is used to determine a third total probability of accessing a third follow-up resource after accessing the first resource according to the access probability of each resource in each target resource access probability path, where the third follow-up resource is a resource located after the first resource and adjacent to the first resource in the target resource access probability path;
[0269] A matching submodule, for matching the third follower resources corresponding to the third total probability with the second follower resources of the plurality of first resource sets respectively in descending order of the third total probability when the third total probability is greater than the second preset probability;
[0270] The fourth sending submodule is configured to send, to the client, a first resource set corresponding to the second follower resource identical to the third follower resource when there is a second follower resource identical to the third follower resource in the plurality of first resource sets.
[0271] In an embodiment of the present application, the follow-up access probability is the probability of accessing the follow-up resource after accessing the first sequence segment, and the first resource in the first sequence segment is the first resource. If a certain resource and the first resource belong to the same historical resource access sequence within a preset time period, and are located after the first resource, and the follow-up access probability is greater than the first preset probability, it means that after the preset time period, the application corresponding to the client is likely to access the resource again after accessing the first resource. Therefore, the resource can be determined as the first follow-up resource of the first resource and added to the first resource set corresponding to the first resource. In this way, when receiving the first resource request sent by the client, not only the first resource corresponding to the first resource request is sent to the client, but also the first follow-up resource of the first resource is sent to the client, which not only meets the resource request demand at the time, but also can be directly obtained from the first resource set when accessing the first follow-up resource in the subsequent access, without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency.
[0272] like Fig.12 As shown, the resource processing device 1200 provided in this embodiment of the present application includes the following modules:
[0273] The second sending module 1210 is used to send a first resource acquisition request to the server, where the first resource acquisition request is used to request to acquire a first resource;
[0274] The second receiving module 1220 is used to receive a first resource set sent by the server, wherein the first resource set includes a first resource and a first following resource of the first resource, wherein the first following resource is a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset period of time and whose following access probability is greater than a first preset probability, wherein the following access probability is a probability of accessing the following resource after accessing the first sequence segment, and the first position of the first sequence segment is the first resource;
[0275] A first acquisition module 1230, configured to acquire a first resource from a first resource set;
[0276] The second acquisition module 1240 is configured to acquire the first follower resource from the first resource set when it is determined that the first follower resource needs to be accessed.
[0277] The resource processing device 1200 is described in detail below, as follows:
[0278] In some embodiments, there are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets.
[0279] Based on this, the second receiving module 1220 may specifically include:
[0280] The receiving submodule is used to receive a target resource set sent by the server, where the target resource set includes all the first resources in each first resource set.
[0281] The first acquisition module 1230 may specifically include:
[0282] The acquisition submodule is used to acquire first resources corresponding to multiple first resource acquisition requests respectively from the target resource set.
[0283] In some embodiments, the resource processing device 1200 may further include:
[0284] A fifth acquisition module is used to acquire a target historical resource access sequence of a target user within a preset period of time, where the target user is a user who logs into the client;
[0285] The second statistical module is used to perform access probability statistics on resources in the target historical resource access sequence to generate at least one target resource access probability path.
[0286] Based on this, the second sending module 1210 may specifically include:
[0287] The fifth sending submodule is used to send a first resource acquisition request including at least one target resource access probability path to the server.
[0288] In an embodiment of the present application, the follow-up access probability is the probability of accessing the follow-up resource after accessing the first sequence segment, and the first resource in the first sequence segment is the first resource. If a certain resource and the first resource belong to the same historical resource access sequence within a preset time period, and are located after the first resource, and the follow-up access probability is greater than the first preset probability, it means that after the preset time period, the application corresponding to the client is likely to access the resource again after accessing the first resource. Therefore, the resource can be determined as the first follow-up resource of the first resource and added to the first resource set corresponding to the first resource. In this way, when receiving the first resource request sent by the client, not only the first resource corresponding to the first resource request is sent to the client, but also the first follow-up resource of the first resource is sent to the client, which not only meets the resource request demand at the time, but also can be directly obtained from the first resource set when accessing the first follow-up resource in the subsequent access, without requesting the server again, thereby reducing the number of connections between the client and the server, reducing resource acquisition requests, and improving resource loading efficiency.
[0289] Based on the resource processing method provided in the above embodiment, the embodiment of the present application also provides a specific implementation of the electronic device. Fig.13 A schematic diagram of an electronic device 1300 provided in an embodiment of the present application is shown.
[0290] The electronic device 1300 may include a processor 1310 and a memory 1320 storing computer program instructions.
[0291] Specifically, the processor 1310 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0292] The memory 1320 may include a bulk memory for data or instructions. By way of example and not limitation, the memory 1320 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 1320 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 1320 may be inside or outside the electronic device 1300. In a particular embodiment, the memory 1320 is a non-volatile solid-state memory.
[0293] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to the first aspect of the present application.
[0294] The processor 1310 implements any one of the resource processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 1320 .
[0295] In one example, the electronic device 1300 may further include a communication interface 1330 and a bus 1340. Fig.13 As shown, the processor 1310, the memory 1320, and the communication interface 1330 are connected via a bus 1340 and communicate with each other.
[0296] The communication interface 1330 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0297] Bus 1340 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1340 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0298] Exemplarily, the electronic device 1300 may be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA).
[0299] The electronic device can execute the resource processing method in the embodiment of the present application, thereby realizing the combination Figures 1 to 12 Described resource processing method and device.
[0300] In addition, in combination with the resource processing method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the resource processing methods in the above embodiment is implemented.
[0301] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0302] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0303] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0304] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.
[0305] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A resource processing method, characterized in that: Applied to a server, the method comprises: Receive a first resource acquisition request sent by a client, where the first resource acquisition request is used to request to acquire a first resource; In response to the first resource acquisition request, a first resource set corresponding to the first resource is determined from multiple resource sets, the first resource set including the first resource and a first follow-up resource of the first resource, the first follow-up resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource; The first resource set is sent to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
2. The method according to claim 1, characterized in that Before determining a first resource set corresponding to the first resource from a plurality of resource sets, the method further includes: Obtaining a historical resource access sequence within the preset time period; Performing access probability statistics on resources in the historical resource access sequence to generate a plurality of first resource access probability paths; For any target resource in the historical resource access sequence, the following operations are performed: Determine, according to the access probability of each resource in each of the first resource access probability paths, a first total probability of accessing a target sequence segment and then accessing a following resource, and a second total probability of accessing the target sequence segment, wherein the first position of the target sequence segment is the target resource; determining the follow-up access probability according to a ratio of the first total probability to the second total probability; Filter out a target follow-up access resource whose follow-up access probability is greater than the first preset probability from all the follow-up resources; The target follow-up access resource is added to the resource collection of the target resource.
3. The method according to claim 2, characterized in that The step of adding the target follow-up access resource to the resource set of the target resource includes: When the sum of the volumes of the resource set and the target follow-up access resource is less than a preset volume, the target follow-up access resource is added to the resource set of the target resource.
4. The method according to claim 1, characterized in that The sending the first resource set to the client includes: When the network condition indicates that the download speed of the first resource set by the client is less than a first preset speed, a second resource set and target notification information matching the network condition are sent to the client, wherein the second resource set includes at least the first resource, and the target notification information is used to instruct the client to continue requesting the remaining resources in the first resource set except the second resource set.
5. The method according to claim 1, characterized in that There are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets; The sending the first resource set to the client includes: In a case where the target resource set includes all of the first resources in the first resource sets, the target resource set is sent to the client.
6. The method according to claim 1, characterized in that After sending the first resource set to the client, the method further includes: receiving a third resource acquisition request sent by the client, where the third resource acquisition request is used to request acquisition of a third resource; In response to the third resource acquisition request, acquiring a third resource set corresponding to the third resource; In a case where the third resource set includes the first follower resource in the first resource set, deleting the first follower resource in the third resource set to obtain a fourth resource set; Send the fourth resource set to the client.
7. The method according to any one of claims 1 to 6, characterized in that: There are multiple first resource sets, each of which includes a second resource access probability path, the first of which is the first resource, and the second resource access probability path includes at least an access order between multiple first follower resources and the follower access probability of the second follower resource, and the second follower resource is a first follower resource adjacent to the first resource in the second resource access probability path; The sending the first resource set to the client includes: Determining a target probability of accessing the second follow-up resource after accessing the first resource among a plurality of the first resource sets; The first resource set corresponding to the maximum value of the multiple target probabilities is sent to the client.
8. The method according to claim 7, characterized in that The first resource acquisition request includes at least one target resource access probability path corresponding to a target user, the target user being a user logging into the client, the target resource access probability path being a resource access path obtained by performing access probability statistics on resources in a target historical resource access sequence, the target historical resource access sequence being a historical resource access path of the target user within the preset time period; The sending the first resource set to the client includes: Determine, according to the access probability of each resource in each of the target resource access probability paths, a third total probability of accessing the first resource and then accessing a third follow-up resource, wherein the third follow-up resource is a resource located after the first resource and adjacent to the first resource in the target resource access probability path; When the third total probability is greater than the second preset probability, the third follower resources corresponding to the third total probability are matched with the second follower resources of the plurality of first resource sets respectively in descending order of the third total probability; In the case that the second follower resource identical to the third follower resource exists in the plurality of first resource sets, the first resource set corresponding to the second follower resource identical to the third follower resource is sent to the client.
9. A resource processing method, characterized in that: Applied to a client, the method comprises: Sending a first resource acquisition request to a server, where the first resource acquisition request is used to request to acquire a first resource; Receive a first resource set sent by the server, the first resource set including the first resource and a first following resource of the first resource, the first following resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource; Acquire the first resource from the first resource set; When it is determined that the first follower resource needs to be accessed, the first follower resource is acquired from the first resource set.
10. The method according to claim 9, characterized in that There are multiple first resource acquisition requests, the multiple first resource acquisition requests are used to request different first resources, and the multiple first resources correspond to different first resource sets; The receiving a first resource set sent by the server includes: receiving a target resource set sent by the server, wherein the target resource set includes all the first resources in each of the first resource sets; The acquiring the first resource from the first resource set includes: The first resources respectively corresponding to the plurality of first resource acquisition requests are acquired from the target resource set.
11. The method according to claim 9, characterized in that Before sending the first resource acquisition request to the server, the method further includes: Acquire a target historical resource access sequence of a target user within the preset time period, wherein the target user is a user who logs in to the client; Performing access probability statistics on resources in the target historical resource access sequence to generate at least one target resource access probability path; The sending a first resource acquisition request to the server includes: A first resource acquisition request including the at least one target resource access probability path is sent to the server.
12. A resource processing device, characterized in that: The device comprises: A first receiving module, configured to receive a first resource acquisition request sent by a client, wherein the first resource acquisition request is used to request to acquire a first resource; a determination module, configured to determine, in response to the first resource acquisition request, a first resource set corresponding to the first resource from a plurality of resource sets, the first resource set including the first resource and a first follow-up resource of the first resource, the first follow-up resource being a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and has a follow-up access probability greater than a first preset probability, the follow-up access probability being a probability of accessing the follow-up resource after accessing the first sequence segment, and the first position of the first sequence segment being the first resource; The first sending module is configured to send the first resource set to the client, so that the client obtains the first resource and the first follow-up resource from the first resource set.
13. A resource processing device, characterized in that: The device comprises: A second sending module, used for sending a first resource acquisition request to the server, where the first resource acquisition request is used for requesting to acquire a first resource; a second receiving module, configured to receive a first resource set sent by the server, wherein the first resource set includes the first resource and a first following resource of the first resource, wherein the first following resource is a resource that is located after the first resource in a historical resource access sequence of the first resource within a preset time period and whose following access probability is greater than a first preset probability, wherein the following access probability is a probability of accessing the following resource after accessing the first sequence segment, and the first position of the first sequence segment is the first resource; A first acquisition module, configured to acquire the first resource from the first resource set; The second acquisition module is configured to acquire the first follow-up resource from the first resource set when it is determined that the first follow-up resource needs to be accessed.
14. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the resource processing method as described in any one of claims 1-8 or 9-11 is implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the resource processing method according to any one of claims 1-8 or 9-11 is implemented.
16. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the resource processing method as described in any one of claims 1-8 or 9-11.
