Resource request feedback methods, devices, readable storage media, and electronic devices

By merging and sorting the material resources and dependent resources of the browser page, the problem of poor loading performance caused by improper handling of dependencies in the existing technology is solved, and more efficient resource requests and loading are achieved.

CN113407339BActive Publication Date: 2026-05-05BEIKE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIKE TECH CO LTD
Filing Date
2021-06-15
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing technologies cannot effectively handle file resources with dependencies in browser pages, resulting in poor loading performance and the inability to load large file resource packages on demand, thus failing to meet the requirements for deduplication and dependency management.

Method used

By acquiring the request information and dependency information of the material resource identifier, the requesting material resources and dependent material resources are merged to generate a set of material resources to be sent, and the sending order is determined according to the dependency relationship, thus realizing a flexible, customizable and self-expanding request scheme for resources.

Benefits of technology

It improves the flexibility and efficiency of resource requests, reduces resource sending time, and optimizes browser page loading performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113407339B_ABST
    Figure CN113407339B_ABST
Patent Text Reader

Abstract

This disclosure provides a resource request feedback method, apparatus, computer-readable storage medium, and electronic device. The method includes: acquiring material resource request information including at least one material resource identifier; acquiring requested material resources and resource dependency information corresponding to each of the at least one material resource identifier; acquiring dependent material resources corresponding to each of the at least one material resource identifier based on the resource dependency information; merging the acquired at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent; and sending the set of material resources to be sent to the resource requesting end. This disclosure enables the one-time merging of material resources and dependent resources from multiple requests according to business needs, improving the flexibility and efficiency of resource requests. Since the resource dependency information can be flexibly configured, a more flexible, customizable, and self-expanding resource request scheme can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a resource request feedback method, apparatus, computer-readable storage medium, and electronic device. Background Technology

[0002] In browser-based page request scenarios, the front-end page needs to send numerous requests to the back-end to retrieve necessary data. If this data isn't available, certain sections of the page cannot be rendered; therefore, the speed of data retrieval determines the page rendering speed. To accelerate the request process, current browser technologies often merge these requests and send them to the server all at once. The server then combines the requested files into a single file and returns it to the browser. For example, existing combo technologies utilize the open-source Nginx plugin nginx_concat_module to merge multiple files into a single request, reducing the number of requests and improving performance. Summary of the Invention

[0003] Embodiments of this disclosure provide a resource request feedback method, apparatus, computer-readable storage medium, and electronic device.

[0004] Embodiments of this disclosure provide a resource request feedback method, the method comprising: obtaining material resource request information including at least one material resource identifier; obtaining request material resources and resource dependency information corresponding to the at least one material resource identifier respectively; obtaining dependent material resources corresponding to the at least one material resource identifier respectively based on the resource dependency information; merging the at least one request material resource and the at least one dependent material resource to obtain a set of material resources to be sent; and sending the set of material resources to be sent to the resource requesting end.

[0005] In some embodiments, merging at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent includes: performing deduplication processing on each of the obtained requested material resources and dependent material resources; and merging the deduplicated requested material resources and dependent material resources into a set of material resources to be sent.

[0006] In some embodiments, sending a set of materials to be sent to a resource requester includes: determining the order of the materials to be sent in the set of materials to be sent based on resource dependency information; and sending the set of materials to be sent to a resource requester based on the order of the orders.

[0007] In some embodiments, after merging at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent, the method further includes: associating and storing the material resource request information and the set of material resources to be sent in a preset storage area.

[0008] In some embodiments, before obtaining material resource request information including at least one material resource identifier, the method further includes: receiving initial material resource request information including at least one material resource identifier; determining whether a preset storage area includes a pre-cached set of material resources corresponding to the initial material resource request information; if not, determining whether the parameters of the initial material resource request information are valid; if valid, determining that the initial material resource request information is material resource request information.

[0009] In some embodiments, after determining whether the preset storage area includes a set of material resources corresponding to the pre-cached initial material resource request information, the method further includes: if it includes, sending the set of material resources to the resource requesting end.

[0010] According to another aspect of the present disclosure, a resource request apparatus is provided, comprising: a first acquisition module, configured to acquire material resource request information including at least one material resource identifier; a second acquisition module, configured to acquire request material resources and resource dependency information corresponding to the at least one material resource identifier; a third acquisition module, configured to acquire dependent material resources corresponding to the at least one material resource identifier based on the resource dependency information; a merging module, configured to merge the acquired at least one request material resource and at least one dependent material resource to obtain a set of material resources to be sent; and a first sending module, configured to send the set of material resources to be sent to a resource requesting end.

[0011] In some embodiments, the merging module includes: a deduplication unit, configured to deduplicate each of the acquired request material resources and dependent material resources; and a merging unit, configured to merge the deduplicated request material resources and dependent material resources into a set of material resources to be sent.

[0012] In some embodiments, the first sending module includes: a determining unit, configured to determine the order of material resources to be sent in the set of material resources to be sent based on resource dependency information; and a sending unit, configured to send the set of material resources to be sent to the resource requesting end based on the order of arrangement.

[0013] In some embodiments, the device further includes a storage module for associating and storing material resource request information and a set of material resources to be sent in a preset storage area.

[0014] In some embodiments, the apparatus further includes: a receiving module, configured to receive initial material resource request information including at least one material resource identifier; a first determining module, configured to determine whether a preset storage area includes a set of material resources corresponding to the pre-cached initial material resource request information; a second determining module, configured to determine whether the parameters of the initial material resource request information are valid if not included; and a third determining module, configured to determine that the initial material resource request information is material resource request information if valid.

[0015] In some embodiments, the apparatus further includes a second sending module, configured to send a set of material resources to a resource requesting end if the set of material resources includes a pre-cached set of initial material resource request information.

[0016] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which stores a computer program for performing the resource request feedback method described above.

[0017] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; and a processor for reading executable instructions from the memory and executing the instructions to implement the resource request feedback method described above.

[0018] Based on the resource request feedback method, apparatus, computer-readable storage medium, and electronic device provided in the above embodiments of this disclosure, by receiving a material resource request, obtaining at least one requested material resource, obtaining at least one dependent material resource according to resource dependency information, merging the at least one requested material resource and the at least one dependent material resource to obtain a set of material resources to be sent, and finally sending the set of material resources to be sent to the resource requesting end, it is possible to merge the material resources and dependent resources of multiple requests at once according to business needs, thereby improving the flexibility and efficiency of resource requests. Since the resource dependency information can be flexibly configured, a more flexible, customizable, and self-expanding resource request scheme can be realized.

[0019] The technical solutions of this disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description

[0020] The above and other objects, features, and advantages of this disclosure will become more apparent from the more detailed description of the embodiments thereof in conjunction with the accompanying drawings. The drawings are provided to further illustrate the embodiments of this disclosure and form part of the specification. They are used together with the embodiments of this disclosure to explain the disclosure and do not constitute a limitation thereof. In the drawings, the same reference numerals generally represent the same components or steps.

[0021] Figure 1 This is the system diagram to which this disclosure applies.

[0022] Figure 2 This is a flowchart illustrating a resource request feedback method provided in an exemplary embodiment of this disclosure.

[0023] Figure 3 This is a flowchart illustrating a resource request feedback method provided in another exemplary embodiment of this disclosure.

[0024] Figure 4 This is a flowchart illustrating a resource request feedback method provided in another exemplary embodiment of this disclosure.

[0025] Figure 5 This is a schematic diagram illustrating an application scenario of the resource request feedback method according to an embodiment of this disclosure.

[0026] Figure 6 This is a schematic diagram of the structure of a resource request device provided in an exemplary embodiment of the present disclosure.

[0027] Figure 7 This is a schematic diagram of the structure of a resource request apparatus provided in another exemplary embodiment of the present disclosure.

[0028] Figure 8 This is a structural diagram of an electronic device provided in an exemplary embodiment of this disclosure. Detailed Implementation

[0029] Hereinafter, exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present disclosure, and not all embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.

[0030] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this disclosure.

[0031] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of this disclosure are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.

[0032] It should also be understood that in the embodiments of this disclosure, "a plurality of" can refer to two or more, and "at least one" can refer to one, two or more.

[0033] It should also be understood that any component, data or structure mentioned in the embodiments of this disclosure can generally be understood as one or more unless expressly defined or given to the contrary in the context.

[0034] Furthermore, the term "and / or" in this disclosure is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this disclosure generally indicates that the preceding and following related objects have an "or" relationship.

[0035] It should also be understood that the description of the various embodiments in this disclosure emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.

[0036] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0037] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.

[0038] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0039] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0040] The embodiments disclosed herein can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate together with a wide range of other general-purpose or special-purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.

[0041] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.

[0042] Application Overview

[0043] The drawback of existing technologies lies in their reliance on the Nginx plugin system and Nginx configuration, and they can only simply download and merge multiple requested resources. They are helpless when dealing with file resources with dependencies, and cannot meet the requirements for deduplication and on-demand loading of dependent files. Although they can solve the problem of too many requests when requesting multiple resources, the file resource packages that need to be loaded for business requests are too large, and there are too many files to load after splitting. In addition, they cannot load files with dependencies on demand, resulting in low loading performance.

[0044] Exemplary System

[0045] Figure 1 An exemplary system architecture 100 is shown for a resource request feedback method or resource request apparatus to which embodiments of the present disclosure may be applied.

[0046] like Figure 1 As shown, system architecture 100 may include terminal device 101, network 102, and server 103. Network 102 is used as a medium to provide a communication link between terminal device 101 and server 103. Network 102 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.

[0047] Users can use terminal device 101 to interact with server 103 via network 102 to receive or send messages, etc. Various communication client applications can be installed on terminal device 101, such as search applications, web browser applications, shopping applications, instant messaging tools, etc.

[0048] Terminal device 101 can be various electronic devices, including but not limited to mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers.

[0049] Server 103 can be a server that provides various services, such as a background resource server that analyzes the material resource request information sent by terminal device 101. The background resource server can obtain the set of material resources to be sent based on the received material resource server, and send the set of material resources to be sent to the resource requesting end (e.g., terminal device 101).

[0050] It should be noted that the resource request feedback method provided in the embodiments of this disclosure can be executed by server 103 or by terminal device 101. Correspondingly, the resource request device can be set in server 103 or terminal device 101. Server 103 can consist of a single server or a server cluster consisting of multiple servers. When server 103 is a server cluster consisting of multiple servers, the servers in the server cluster can be configured with different functions to cooperate in executing the above-described resource request feedback method or setting up the above-described resource request device. For example, the server cluster may include a CDN (Content Delivery Network) server for distributing requests, and a server with Combo instances for extracting material resources, processing dependent material resources, and sending material resources.

[0051] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0052] Exemplary methods

[0053] Figure 2 This is a flowchart illustrating a resource request feedback method provided in an exemplary embodiment of this disclosure. This embodiment can be applied to electronic devices (such as...). Figure 1 On server 103 shown, as Figure 2 As shown, the method includes the following steps:

[0054] Step 201: Obtain material resource request information including at least one material resource identifier.

[0055] In this embodiment, the electronic device can acquire material resource request information including at least one material resource identifier. The material resource request information can be information used to request various material resources.

[0056] As an example, a material resource request can be a URL (Uniform Resource Locator) address " / api / package / ${id} / ${version} / index.js?I=page,button,table,form&e=CommonDefault". This includes the parameter "I=page,button,table,form&e=CommonDefault", where page, button, table, and form are four material resource identifiers, each corresponding to a component-type material resource.

[0057] Step 202: Obtain the request material resources and resource dependency information corresponding to at least one material resource identifier.

[0058] In this embodiment, the electronic device can obtain, either locally or remotely, at least one material resource identifier corresponding to a requested material resource and resource dependency information. The requested material resource is the user terminal (e.g., ...). Figure 1 The terminal device 101 shown requests material resources through the aforementioned material resource request information. Resource dependency information is used to characterize the material resources that the corresponding material resource depends on. For example, if a requested material resource is a page component, its corresponding resource dependency information can be in the form of a list, which includes the names of other components (such as button components, remark components, etc.) that the page component depends on.

[0059] Typically, electronic devices can locate detailed resource information in a data storage area (which can be local or remote) based on at least one of the aforementioned material resource identifiers. The detailed resource information may include a resource dependency table (i.e., resource dependency information), as well as the resource download address, basic resource description information, etc.

[0060] Step 203: Based on resource dependency information, obtain the dependent material resources corresponding to at least one material resource identifier.

[0061] In this embodiment, the electronic device can obtain at least one dependent material resource corresponding to a material resource identifier from either local or remote sources, based on resource dependency information. For example, assuming the requested material resources are A, C, and E, and the resource dependency information determines that resource A depends on resources B and D, resource C depends on resource D, and resource E has no dependency, then the obtained dependent material resources include resources B and D.

[0062] Step 204: Merge at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent.

[0063] In this embodiment, the electronic device can merge at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent.

[0064] Specifically, electronic devices can directly merge each requested material resource and its corresponding dependent material resources to obtain a set of material resources to be sent.

[0065] In some alternative implementations, step 204 can be performed as follows:

[0066] First, the obtained request material resources and dependent material resources are deduplicated.

[0067] Specifically, if different requested material resources correspond to the same dependent material resources, then one of the multiple identical dependent material resources obtained is retained.

[0068] Then, the deduplicated request material resources and dependent material resources are merged into a set of material resources to be sent.

[0069] By deduplicating data, the amount of data in the set of materials to be sent can be reduced, thereby helping to reduce the time required to send materials.

[0070] Step 205: Send the set of materials to be sent to the resource requester.

[0071] In this embodiment, the electronic device can send a set of materials to be sent to a resource requesting end. The resource requesting end can be, for example,... Figure 1 The terminal device 101 shown is an example. When the material resources in the set of materials to be sent are components required to display a webpage, the resource requesting end receives the component set, and the browser installed on the resource requesting end can display the received component set on the webpage. Typically, the electronic device can send each material resource in the set of materials to be sent sequentially to the resource requesting end in a data stream manner, and the sending order can be set as needed. For example, it can send the materials sequentially according to the order in which the resource requesting end requests them.

[0072] The method provided by the above embodiments of this disclosure receives a material resource request, obtains at least one requested material resource, obtains at least one dependent material resource according to resource dependency information, merges the at least one requested material resource and the at least one dependent material resource to obtain a set of material resources to be sent, and finally sends the set of material resources to be sent to the resource requesting end. This realizes the one-time merging of material resources and dependent resources of multiple requests according to business needs, improving the flexibility and efficiency of resource requests. Since the resource dependency information can be flexibly configured, a more flexible, customizable and self-expanding resource request scheme can be realized.

[0073] In some alternative implementations, such as Figure 3 As shown, step 205 includes the following sub-steps:

[0074] Step 2051: Based on resource dependency information, determine the order of material resources to be sent in the set of material resources to be sent.

[0075] Typically, for a given dependent material resource, its dependency weight can be determined by the number of times it is depended on by other material resources. A higher dependency weight results in a higher ranking and is sent first. For example, suppose the requested material resources are A, C, and E. Based on resource dependency information, resource A depends on resources B and D, resource C depends on resource D, and resource E has no dependencies. The order of these material resources could be D, B, A, C, E. D is depended on twice by A and C, giving it the highest dependency weight, followed by B. A, C, and E are then ordered according to the order in the material resource request information.

[0076] Step 2052: Based on the order of arrangement, send the set of materials to be sent to the resource requester.

[0077] Continuing with the example above, send each material resource to the resource requester in the order of D, B, A, C, and E.

[0078] Figure 3 In the illustrated embodiment, by determining the sending order based on the dependencies of each material resource, the resource requester can prioritize receiving material resources with higher weights that are depended upon. Based on the order of receiving material resources, the resource requester can load the requested material resources into applications such as browsers more efficiently, reducing the time spent waiting for dependent material resources during loading caused by disordered sending of material resources, thereby improving the efficiency of resource requests.

[0079] In some alternative implementations, after step 204, the electronic device may also perform the following steps:

[0080] The material resource request information and the set of material resources to be sent are associated and stored in a preset storage area. This preset storage area can be located locally on the aforementioned electronic device or on another electronic device communicatively connected to it. As an example, the preset storage area can be set up as a cache on a CDN server. When the same material resource request information is received again subsequently, the corresponding set of material resources to be sent can be directly retrieved from the cache and sent to the resource requesting end.

[0081] This implementation associates and stores material resource request information with the set of material resources to be sent. This makes it easier to retrieve the cached set of material resources to be sent directly when requesting the same set of material resources again, without having to perform dependency resource analysis and material resource merging operations again. This helps to further improve the efficiency of resource requests.

[0082] In some alternative implementations, such as Figure 4 As shown, prior to step 201, the method may further include the following steps:

[0083] Step 401: Receive initial material resource request information including at least one material resource identifier.

[0084] The initial material resource request information can be from the resource requesting end (e.g., Figure 1 The terminal device 101 shown sends the request. As an example, the user uses a browser on the resource request end to send initial material resource request information to the aforementioned electronic device to request components on a webpage.

[0085] Step 402: Determine whether the preset storage area includes the set of material resources corresponding to the pre-cached initial material resource request information.

[0086] The preset storage area can be located locally on the aforementioned electronic device or on another electronic device that is communicatively connected to the aforementioned electronic device. As an example, the preset storage area can be set up as a cache on a CDN server.

[0087] Step 403, if not included, determines whether the parameters of the initial material resource request information are valid.

[0088] The methods for determining the validity of parameters in an initial material resource request can include various approaches. For example, if at least one searchable material resource identifier is included among the multiple material resource identifiers in the parameters of the initial material resource request, then the parameters of the initial material resource request are deemed valid. As another example, if the initial material resource request requests multiple material resources, including expired material resources, then the parameters of the initial material resource request are deemed invalid.

[0089] In some optional implementations, if it is determined that the preset storage area contains a set of material resources corresponding to the initial material resource request information, the set of material resources is sent to the resource requesting end. By directly sending the set of material resources to the resource requesting end when a pre-cached set of material resources exists in the preset storage area, subsequent requests for the same material resources do not require dependency resource analysis or material resource merging; the cached set of material resources can be retrieved directly, further improving the efficiency of resource requests.

[0090] Step 404: If valid, determine the initial material resource request information as material resource request information.

[0091] The material resource request information determined in this step is as described above. Figure 2 Material resource request information as described in the corresponding embodiment.

[0092] Optionally, if the parameters of the initial material resource request information are invalid, the electronic device can return a prompt message indicating that the parameters are invalid to the resource requesting end.

[0093] Figure 4 The method provided in the corresponding embodiment does not include the material resource set corresponding to the pre-cached initial material resource request information in the preset storage area, and if the parameters of the initial material resource request information are determined to be valid, the resource request feedback method is executed based on the initial material resource request information, thereby effectively filtering the initial material resource request information sent by the resource requesting end, avoiding processing errors and wasted computing resources caused by the electronic device processing illegal material resource request information.

[0094] See Figure 5 , Figure 5 This is a schematic diagram illustrating an application scenario of the resource request feedback method according to this embodiment. Figure 5In the process, terminal device 501 first sends a URL (i.e., material resource request information) to CDN server 502. Then, CDN server 502 determines whether the resource requested by this URL is cached. If it exists, it directly responds to the request, returning the cached set of material resources to terminal device 501; otherwise, it enters load balancing, distributing the request to the designated origin service instance (i.e., Combo service instance 503). Combo service instance 503 checks whether the parameters of the URL request are valid. If invalid, it returns a message indicating invalid parameters to terminal device 501; if valid, it obtains dependent material resources through the resource dependency table, then checks whether the requested and dependent material resources include duplicate dependencies. If so, it deduplicates each obtained requested and dependent material resource to obtain a set of material resources to be sent; otherwise, it directly obtains the material resources to be sent. Finally, it sorts the set of material resources to be sent according to the dependency weights of the dependent resources and sends the set of material resources to be sent to terminal device 501 based on this sorting.

[0095] Exemplary device

[0096] Figure 6 This is a schematic diagram of a resource request device provided in an exemplary embodiment of this disclosure. This embodiment can be applied to electronic devices, such as... Figure 6 As shown, the resource request device includes: a first acquisition module 601, used to acquire material resource request information including at least one material resource identifier; a second acquisition module 602, used to acquire the requested material resources and resource dependency information corresponding to the at least one material resource identifier; a third acquisition module 603, used to acquire the dependent material resources corresponding to the at least one material resource identifier based on the resource dependency information; a merging module 604, used to merge the acquired at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent; and a first sending module 605, used to send the set of material resources to be sent to the resource requesting end.

[0097] In this embodiment, the first acquisition module 601 can acquire material resource request information including at least one material resource identifier. The material resource request information can be information used to request various material resources. For example, the material resource request information can be a URL (Uniform Resource Locator) address " / api / package / ${id} / ${version} / index.js?I=page,button,table,form&e=CommonDefault". This includes the parameter "I=page,button,table,form&e=CommonDefault", where page,button,table, andform are four material resource identifiers, each corresponding to a component-type material resource.

[0098] In this embodiment, the second acquisition module 602 can acquire, either locally or remotely, the requested material resource and resource dependency information corresponding to at least one material resource identifier. The requested material resource is the material resource requested by the user through the aforementioned material resource request information. The resource dependency information is used to characterize the material resources that the corresponding material resource depends on. For example, if a requested material resource is a page component, its corresponding resource dependency information can be in the form of a list, including the names of other components (e.g., button components, remark components, etc.) that the page component depends on.

[0099] Typically, the second acquisition module 602 can search for detailed resource information in the data storage area (which can be local or remote) based on at least one material resource identifier. The detailed resource information may include a resource dependency table (i.e., resource dependency information), as well as the resource download address, basic resource description information, etc.

[0100] In this embodiment, the third acquisition module 603 can acquire at least one dependent material resource corresponding to a material resource identifier from local or remote sources based on resource dependency information. For example, assuming the requested material resources are A, C, and E, and the resource dependency information determines that resource A depends on resources B and D, resource C depends on resource D, and resource E has no dependency, then the acquired dependent material resources include resources B and D.

[0101] In this embodiment, the merging module 604 can merge at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent.

[0102] Specifically, the merging module 604 can directly merge each requested material resource and its corresponding dependent material resources to obtain a set of material resources to be sent.

[0103] In this embodiment, the first sending module 605 can send the set of materials to be sent to the resource requesting end. The resource requesting end can be, for example,... Figure 1 The terminal device 101 shown is an example. When the material resources in the set of materials to be sent are components required to display a webpage, after the resource requesting end receives the component set, the browser installed on the resource requesting end can display the received component set on the webpage.

[0104] Reference Figure 7 , Figure 7 This is a schematic diagram of the structure of a resource request apparatus provided in another exemplary embodiment of the present disclosure.

[0105] In some optional implementations, the merging module 604 includes: a deduplication unit 6041, used to deduplicate the acquired request material resources and dependent material resources; and a merging unit 6042, used to merge the deduplicated request material resources and dependent material resources into a set of material resources to be sent.

[0106] In some optional implementations, the first sending module 605 includes: a determining unit 6051, used to determine the order of the materials to be sent in the set of materials to be sent based on resource dependency information; and a sending unit 6052, used to send the set of materials to be sent to the resource requesting end based on the order of arrangement.

[0107] In some alternative implementations, the device further includes a storage module 606 for associating and storing material resource request information and a set of material resources to be sent in a preset storage area.

[0108] In some optional implementations, the device further includes: a receiving module 607, configured to receive initial material resource request information including at least one material resource identifier; a first determining module 608, configured to determine whether a preset storage area includes a pre-cached set of material resources corresponding to the initial material resource request information; a second determining module 609, configured to determine whether the parameters of the initial material resource request information are valid if not included; and a third determining module 610, configured to determine that the initial material resource request information is material resource request information if valid.

[0109] In some alternative implementations, the apparatus further includes a second sending module 611, configured to send a set of material resources to a resource requesting end if the set of material resources includes a pre-cached set of initial material resource request information.

[0110] The resource request apparatus provided in the above embodiments of this disclosure receives a material resource request, obtains at least one requested material resource, obtains at least one dependent material resource according to resource dependency information, merges the at least one requested material resource and the at least one dependent material resource to obtain a set of material resources to be sent, and finally sends the set of material resources to be sent to the resource requesting end. This realizes the one-time merging of material resources and dependent resources of multiple requests according to business needs, improving the flexibility and efficiency of resource requests. Since the resource dependency information can be flexibly configured, a more flexible, customizable and self-expanding resource request scheme can be realized.

[0111] Exemplary electronic devices

[0112] Below, for reference Figure 8 To describe an electronic device according to embodiments of the present disclosure. The electronic device may be as follows: Figure 1 The terminal device 101 and server 103 shown, or either one or both, or a standalone device independent of them, can communicate with the terminal device 101 and server 103 to receive the collected input signals from them.

[0113] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0114] like Figure 8 As shown, the electronic device 800 includes one or more processors 801 and memory 802.

[0115] The processor 801 may be a central processing unit (CPU) or other form of processing unit with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 800 to perform desired functions.

[0116] The memory 802 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 801 may execute the program instructions to implement the resource request feedback methods of the various embodiments of this disclosure described above and / or other desired functions. Various contents, such as dependent material resources, may also be stored in the computer-readable storage medium.

[0117] In one example, the electronic device 800 may also include an input device 803 and an output device 804, which are interconnected via a bus system and / or other forms of connection mechanism (not shown).

[0118] For example, when the electronic device is a terminal device 101 or a server 103, the input device 803 can be a mouse, keyboard, touch screen, or other similar device used to input material resource request information. When the electronic device is a standalone device, the input device 803 can be a communication network connector used to receive the input material resource request information from the terminal device 101 and the server 103.

[0119] The output device 804 can output various information to the outside, including a identified set of material resources to be sent. The output device 804 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0120] Of course, for the sake of simplicity, Figure 8 Only some of the components of the electronic device 800 relevant to this disclosure are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device 800 may include any other suitable components depending on the specific application.

[0121] Exemplary computer program products and computer-readable storage media

[0122] In addition to the methods and apparatus described above, embodiments of this disclosure may also be computer program products comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps of the resource request feedback methods according to various embodiments of this disclosure as described in the "Exemplary Methods" section of this specification.

[0123] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of this disclosure. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0124] Furthermore, embodiments of this disclosure may also be computer-readable storage media storing computer program instructions that, when executed by a processor, cause the processor to perform the steps in the resource request feedback methods according to various embodiments of this disclosure as described in the "Exemplary Methods" section above.

[0125] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may, for example, include, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0126] The basic principles of this disclosure have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this disclosure are merely examples and not limitations, and should not be considered as essential features of each embodiment of this disclosure. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the scope of this disclosure to the necessity of employing the aforementioned specific details for implementation.

[0127] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0128] The block diagrams of devices, apparatuses, devices, and systems disclosed herein are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0129] The methods and apparatus of this disclosure may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of this disclosure are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, this disclosure may also be implemented as a program recorded on a recording medium, the program including machine-readable instructions for implementing the methods according to this disclosure. Thus, this disclosure also covers recording media storing programs for performing the methods according to this disclosure.

[0130] It should also be noted that in the apparatus, devices, and methods of this disclosure, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions to this disclosure.

[0131] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.

[0132] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of this disclosure to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.

Claims

1. A resource request feedback method, comprising: Obtain material resource request information including at least one material resource identifier; Obtain the requested material resource and resource dependency information corresponding to the at least one material resource identifier, wherein the requested material resource is the material resource requested by the material resource request information, and the resource dependency information is used to characterize the dependent material resources on which the requested material resource depends; Based on the resource dependency information, obtain the dependent material resources corresponding to the at least one material resource identifier; Combine at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent; Send the set of materials to be sent to the resource requester. Sending the set of materials to be sent to the resource requester includes: Based on the resource dependency information, the order of the materials to be sent in the set of materials to be sent is determined, wherein the order is determined based on the dependency weight of each dependent material resource in the set of materials to be sent, and the dependency weight is obtained based on the number of times the dependent material resource is depended on by other material resources; Based on the arrangement order, the set of materials to be sent is sent to the resource requesting end.

2. The method according to claim 1, wherein, The step of merging at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent includes: The obtained request material resources and dependent material resources are deduplicated. The deduplicated request material resources and dependent material resources are merged into a set of material resources to be sent.

3. The method according to claim 1, wherein, After merging the acquired at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent, the method further includes: The material resource request information and the set of material resources to be sent are associated and stored in a preset storage area.

4. The method according to any one of claims 1-3, wherein, Before obtaining the material resource request information including at least one material resource identifier, the method further includes: Receive initial material resource request information including at least one material resource identifier; Determine whether the preset storage area includes the set of material resources corresponding to the pre-cached initial material resource request information; If not, determine whether the parameters of the initial material resource request information are valid; If valid, the initial material resource request information is identified as the material resource request information.

5. The method according to claim 4, wherein, After determining whether the preset storage area includes the set of material resources corresponding to the pre-cached initial material resource request information, the method further includes: If included, the set of material resources is sent to the resource requesting end.

6. A resource request feedback device, comprising: The first acquisition module is used to acquire material resource request information including at least one material resource identifier; The second acquisition module is used to acquire the requested material resources and resource dependency information corresponding to the at least one material resource identifier, wherein the requested material resource is the material resource requested by the material resource request information, and the resource dependency information is used to characterize the dependent material resources on which the requested material resource depends. The third acquisition module is used to acquire the dependent material resources corresponding to the at least one material resource identifier based on the resource dependency information. The merging module is used to merge at least one requested material resource and at least one dependent material resource to obtain a set of material resources to be sent. The first sending module is used to send the set of materials resources to be sent to the resource requesting end; The first sending module includes: The determining unit is configured to determine the arrangement order of the material resources to be sent in the set of material resources to be sent based on the resource dependency information, wherein the arrangement order is determined based on the dependency weight corresponding to each dependent material resource in the set of material resources to be sent, and the dependency weight is obtained based on the number of times the dependent material resource is depended on by other material resources; The sending unit is used to send the set of materials to be sent to the resource requesting end based on the arrangement order.

7. The apparatus according to claim 6, wherein, The merging module includes: The deduplication unit is used to deduplicatize each requested material resource and dependent material resource. The merging unit is used to merge the deduplicated request material resources and dependent material resources into a set of material resources to be sent.

8. A computer-readable storage medium storing a computer program for performing the method according to any one of claims 1-5.

9. An electronic device, the electronic device comprising: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-5.

Citation Information

Patent Citations

  • Construction method and device of game resources

    CN110152299A

  • Resource packaging method and device, server and storage medium

    CN110908697A