Resource request processing method and device, equipment and storage medium

By establishing a corresponding relationship between network service nodes and resource information, it is ensured that the same resource information is transmitted through the same network service node, which solves the problem of low resource utilization of network resource service nodes and realizes efficient utilization of resources.

CN120730102APending Publication Date: 2025-09-30BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410382080.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2025-09-30

AI Technical Summary

Technical Problem

In the prior art, the resource utilization rate of network resource service nodes during video file transmission is low, resulting in resource waste.

Method used

By obtaining the transmission ratio information of the network service node and the resource identifier of the resource information, a corresponding relationship between the network service node and the resource information is established to ensure that the same resource information is transmitted through the same network service node, reducing cache and bandwidth usage.

Benefits of technology

It improves the resource utilization of network service nodes, reduces the occupation of resource information, and enhances the service capabilities of network service nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120730102A_ABST
    Figure CN120730102A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a resource request processing method and device, equipment and a storage medium. The method comprises the steps that transmission proportion information corresponding to multiple network service nodes corresponding to a background server of a target application and resource identifiers corresponding to multiple pieces of resource information stored in the background server are acquired; for each piece of resource information, determining a network service node for transmitting the resource information from the plurality of network service nodes according to a resource identifier corresponding to the resource information and transmission proportion information corresponding to each network service node, and establishing a corresponding relationship between each network service node and at least one piece of resource information; and in response to the received resource request for the target resource information, determining a target network service node corresponding to the target resource information from the corresponding relationship between each network service node and the at least one piece of resource information, and transmitting the target resource information through the target network service node. The resource utilization rate of the network service node can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of Internet technology, and in particular to a resource request processing method, apparatus, device, and storage medium. Background Art

[0002] With the development of Internet technology, more and more users upload video files or watch video files through Internet platforms. Among them, Internet platforms generally select multiple network resource service nodes to transmit video files.

[0003] In the related art, for each video file transmission request, a network resource service node is randomly selected from multiple network resource service nodes, and the transmission request is processed by the randomly selected network resource service node to transmit the video file.

[0004] However, the inventors have discovered that the prior art has at least the following technical problems: for the same video file, the video file may be transmitted through multiple network resource service nodes, resulting in low resource utilization of the network resource service nodes. Summary of the Invention

[0005] The embodiments of the present disclosure provide a resource request processing method, apparatus, device, and storage medium, which can independently publish and manage respective object information according to publishing areas, thereby improving user experience.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for processing a resource request, including:

[0007] Obtaining transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application and resource identifiers corresponding to each of multiple resource information stored by the backend server, wherein the network service node is used to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period;

[0008] For each piece of resource information, determining, from the plurality of network service nodes, a network service node that transmits the resource information based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establishing a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information;

[0009] In response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information is determined from the correspondence between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node.

[0010] In a second aspect, an embodiment of the present disclosure provides a resource request processing device, including:

[0011] an acquisition module, configured to acquire transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application, and resource identifiers corresponding to each of multiple resource information stored in the backend server, wherein the network service nodes are configured to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period;

[0012] a determination module configured to determine, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establish a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information;

[0013] The processing module is used to determine, in response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information from the corresponding relationship between each network service node and at least one resource information, and transmit the target resource information through the target network service node.

[0014] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0015] a processor, and a memory communicatively connected to the processor;

[0016] The memory stores computer-executable instructions;

[0017] The processor executes the computer-executable instructions stored in the memory to implement the resource request processing method as described in the first aspect above.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the resource request processing method described in the first aspect above is implemented.

[0019] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the resource request processing method described in the first aspect above.

[0020] The resource request processing method, apparatus, device and storage medium provided in this embodiment include: obtaining transmission ratio information corresponding to each of multiple network service nodes corresponding to the background server of the target application and resource identifiers corresponding to each of multiple resource information stored in the background server, the network service node is used to transmit the resource information stored in the background server, and the transmission ratio information is determined based on the number of resource information transmitted by the multiple network service nodes within a historical preset time period; for each resource information, according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from the multiple network service nodes, and a corresponding relationship is established between each network service node and at least one resource information, wherein the number of at least one resource information matches the transmission ratio information; in response to receiving a resource request for the target resource information, the target network service node corresponding to the target resource information is determined from the corresponding relationship between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node. In the present embodiment, a corresponding network service node is determined from the dimension of each resource information through the resource identifier and the transmission ratio information of each network service node. That is, a transmission request for the same resource information corresponds to the same network service node, thereby avoiding multiple network service nodes transmitting the same resource information, reducing the cache and bandwidth occupied by the resource information, and effectively increasing the amount of resource information that the network service node can serve, thereby improving the resource utilization of the network service node. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A schematic diagram of an application scenario of a resource request processing method provided by an embodiment of the present disclosure;

[0023] Figure 2 A flowchart of a resource request processing method provided by an embodiment of the present disclosure;

[0024] Figure 3 A flowchart of another resource request processing method provided by an embodiment of the present disclosure;

[0025] Figure 4 A flowchart of another resource request processing method provided by an embodiment of the present disclosure;

[0026] Figure 5 A flowchart of another resource request processing method provided by an embodiment of the present disclosure;

[0027] Figure 6 A structural block diagram of a resource request processing device provided in an embodiment of the present disclosure;

[0028] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.

[0030] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0031] With the development of Internet technology, more and more users upload video files or watch video files through Internet platforms. Among them, Internet platforms generally select multiple network resource service nodes to transmit video files.

[0032] In related technologies, for each video file transfer request, a network resource service node is randomly selected from multiple network resource service nodes. This randomly selected network resource service node processes the transfer request and transfers the video file. However, the same video file may be transferred through multiple network resource service nodes, resulting in low resource utilization of the network resource service nodes.

[0033] It can be seen that how to improve the resource utilization of network resource service nodes is a technical problem that needs to be solved urgently.

[0034] To address the above issues, this embodiment proposes the following technical concept: Based on resource information, the network service node corresponding to each piece of resource information is determined. Each resource information transmission request is processed by the same network service node. This reduces the cache and bandwidth occupied by resource information and improves resource utilization at the network service node.

[0035] Accordingly, the specific method may include: first, obtaining transmission ratio information corresponding to each of the multiple network service nodes corresponding to the background server of the target application and the resource identifier corresponding to each of the multiple resource information stored in the background server, the network service node is used to transmit the resource information stored in the background server, and the transmission ratio information is determined based on the number of resource information transmitted by the multiple network service nodes within a historical preset time period. Then, for each resource information, based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from the multiple network service nodes, and a corresponding relationship is established between each network service node and at least one resource information, wherein the number of at least one resource information matches the transmission ratio information. Finally, in response to receiving a resource request for the target resource information, the target network service node corresponding to the target resource information is determined from the corresponding relationship between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node.

[0036] In this case, due to the resource identification and the transmission ratio information of each network service node, a corresponding network service node is determined from the dimension of each resource information. That is, the transmission request for the same resource information corresponds to the same network service node, thereby avoiding multiple network service nodes transmitting the same resource information, reducing the cache and bandwidth occupied by the resource information, and effectively increasing the amount of resource information that the network service node can serve, thereby improving the resource utilization of the network service node.

[0037] The following explains the application scenarios of the embodiments of the present disclosure:

[0038] The resource request processing method provided by the embodiments of the present disclosure can be applied to various resource request processing application scenarios. Figure 1 Schematic diagram of an application scenario of a resource request processing method provided by an embodiment of the present disclosure. Figure 1As shown, it can be applied to the scenario of processing video playback requests. Among them, multiple video files are stored on the background server 102 of the video application. The background server 101 can correspond to multiple network service nodes 102 (three network service nodes are used as an example for illustration in the figure). When a playback request for video file A is received from the terminal 103, a target network service node 102 can be determined from the three network service nodes 102 through the resource request processing method provided by this embodiment, and the video file A is transmitted through the one target network service node 102. Among them, the transmission requests for video file A are all transmitted through the same target network service node 102, thereby avoiding the situation where multiple network service nodes 102 transmit video file A, reducing the cache and bandwidth occupied by video file A, and effectively improving the number of video files that can be transmitted by the network service node 102, thereby improving the resource utilization of the network service node 102.

[0039] The resource request processing method provided by the embodiment of the present disclosure is described in detail below using a detailed embodiment.

[0040] Figure 2 This is a flowchart of a resource request processing method provided by an embodiment of the present disclosure. In this embodiment, the resource request processing method is described by taking the execution subject being an electronic device as an example. Figure 2 , the method comprising:

[0041] S201. Obtain transmission ratio information corresponding to each of the multiple network service nodes corresponding to the background server of the target application and resource identifiers corresponding to each of the multiple resource information stored in the background server. The network service node is used to transmit the resource information stored in the background server. The transmission ratio information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period.

[0042] In the disclosed embodiment, the target application's backend server is used to provide resource information to the user's terminal. For example, the backend server of a video application can provide video file A to the terminal. The network service node is used to transmit the resource information stored in the backend server to the user's terminal.

[0043] The resource identifier is used to distinguish different resource information. Optionally, the resource identifier can include one or more of words, numbers, and characters. For example, the resource information is a video, and the resource identifier is the video name: video file A.

[0044] Optionally, the transmission percentage information corresponding to each network service node is the ratio of the amount of resource information transmitted by the network service node to the total amount of resource information transmitted by multiple network service nodes. It should be noted that the transmission percentage is related to the load capacity of the network service node. The greater the load capacity of the network service node, the greater the amount of resource information transmitted by the network service node within a preset historical period, and the greater the transmission percentage.

[0045] In the implementation of the present disclosure, there is no specific limitation on the value of the historical preset time length, which can be 12 hours, 24 hours, or 48 hours.

[0046] For example, the preset historical duration is 24 hours, and the multiple network service nodes include network service node A and network service node B. Network service node A transmitted 60 pieces of resource information in the past 24 hours, and network service node B transmitted 40 pieces of resource information in the past 24 hours. The total amount of resource information transmitted by the multiple network service nodes is 100. In this case, the transmission percentage information corresponding to network service node A is 60%, and the transmission percentage information corresponding to network service node B is 40%.

[0047] S202. For each piece of resource information, determine the network service node that transmits the resource information from multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, and establish a corresponding relationship between each network service node and at least one piece of resource information, wherein the number of at least one piece of resource information matches the transmission ratio information.

[0048] In this step, the process of establishing a mapping relationship between each network service node and at least one piece of resource information is also the process of determining the network service node to which each piece of resource information is transmitted.

[0049] Optionally, the at least one resource information corresponding to each network service node may be determined based on the transmission ratio information corresponding to the network service node. Optionally, the higher the transmission ratio information corresponding to the network service node, the greater the number of the at least one resource information corresponding to the network service node.

[0050] In some embodiments, the network service node corresponding to the resource information can be determined by the hash parameter corresponding to the resource identifier of the resource information. Accordingly, based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from multiple network service nodes, including: determining the hash parameter of the resource identifier corresponding to each resource information, and, based on the transmission ratio information corresponding to each network service node, determining the hash parameter interval corresponding to each network service node, wherein the interval range of the hash parameter interval matches the transmission ratio information; determining the target hash parameter interval where the hash parameter is located, and determining the network service node corresponding to the target hash parameter interval as the network service node that transmits the resource information.

[0051] In some embodiments, for each piece of resource information, the hash parameter of the resource identifier corresponding to the resource information is determined. The resource identifier can be hashed first to obtain a first hash value, and then the first hash value is modulo processed according to a preset hash parameter interval, and the remainder obtained is determined as the hash parameter of the resource identifier.

[0052] In the embodiments of the present disclosure, the range of the preset hash parameter interval is not specifically limited. For example, the resource identifier is hashed to obtain a first hash value of 99. The preset hash parameter interval is 1-10, and the modulo processing of the first hash value based on the preset hash parameter interval yields a remainder of 9, thus determining that the hash parameter of the resource identifier is 9.

[0053] In some embodiments, determining the hash parameter interval corresponding to each network service node based on the transmission proportion information corresponding to each network service node includes: determining the hash parameter interval corresponding to each network service node from a preset hash parameter interval based on the transmission proportion information corresponding to each network service node.

[0054] For example, the preset hash parameter range is 1-10, and the corresponding transmission ratio information of network service node A is 60%. The corresponding transmission ratio information of network service node B is 40%. In this case, the hash parameter range of network service node A can be set to 1-6, and the hash parameter range of network service node B can be set to 7-10.

[0055] When the hash parameter corresponding to the resource identifier is 1-6, it corresponds to the hash parameter interval of network service node A; when the hash parameter corresponding to the resource identifier is 7-10, it corresponds to the hash parameter interval of network service node B.

[0056] It should be noted that for each piece of resource information, after determining the network service node that transmits the resource information from multiple network service nodes, a mapping relationship can be established between each network service node and at least one piece of resource information. Exemplarily, the multiple network service nodes include k nodes, namely: node 1, node 2, node 3, ..., node k. The at least one piece of resource information corresponding to node 1 forms a set S1, the at least one piece of resource information corresponding to node 2 forms a set S2, the at least one piece of resource information corresponding to node 3 forms a set S3, ..., and the at least one piece of resource information corresponding to node k forms a set Sk.

[0057] S203 : In response to receiving a resource request for target resource information, determine a target network service node corresponding to the target resource information from a correspondence between each network service node and at least one resource information, and transmit the target resource information through the target network service node.

[0058] Exemplarily, a resource request for video file A is received, and from the mapping relationship between each network service node and at least one resource information, the target network service node corresponding to video file A is determined to be: node 1. At this time, video file A is transmitted through node 1.

[0059] The embodiment of the present disclosure provides a resource request processing method: first, the transmission ratio information corresponding to each of the multiple network service nodes corresponding to the background server of the target application and the resource identifier corresponding to each of the multiple resource information stored in the background server are obtained, the network service node is used to transmit the resource information stored in the background server, and the transmission ratio information is determined based on the number of resource information transmitted by the multiple network service nodes within a historical preset time period. Then, for each resource information, according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from the multiple network service nodes, and a corresponding relationship is established between each network service node and at least one resource information, wherein the number of at least one resource information matches the transmission ratio information. Finally, in response to receiving a resource request for the target resource information, the target network service node corresponding to the target resource information is determined from the corresponding relationship between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node. In the present embodiment, a corresponding network service node is determined from the dimension of each resource information through the resource identifier and the transmission ratio information of each network service node. That is, a transmission request for the same resource information corresponds to the same network service node, thereby avoiding multiple network service nodes transmitting the same resource information, reducing the cache and bandwidth occupied by the resource information, and effectively increasing the amount of resource information that the network service node can serve, thereby improving the resource utilization of the network service node.

[0060] Furthermore, the present application considers the stability of the network service node. If a network service node cannot provide normal service for some reason, it will cause at least one resource information corresponding to the network service node to be unable to provide service. Therefore, for stability reasons, the above processing can be performed only on cold resource information with a small amount of playback, while hot resource information with a large amount of playback, that is, it is transmitted through multiple network service nodes. The transmission volume of each network service node is also large, which has a small impact on resource utilization. Therefore, only performing the above processing on cold resource information with a small amount of playback will only affect cold files with a small amount of playback, which can improve the overall stability of the system without affecting the improvement of coverage.

[0061] Accordingly, if Figure 3 As shown, for each piece of resource information, before determining the network service node that transmits the resource information from multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission proportion information corresponding to each network service node, the method further includes:

[0062] S301: For each piece of resource information, obtain the popularity information of the resource information.

[0063] In the embodiment of the present disclosure, the popularity information of the resource information is used to indicate the popularity of the resource information. Optionally, the popularity information can be determined by the number of plays, play frequency, number of likes, and number of reposts of the resource information.

[0064] S302: If the popularity information of the resource information meets the preset conditions, the step of determining the network service node that transmits the resource information from multiple network service nodes is executed for each resource information according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node.

[0065] In the embodiment of the present disclosure, the preset condition is satisfied when the resource information is resource information with relatively low popularity.

[0066] Optionally, the popularity information includes the number of views of the resource information, and the preset condition is that the number of views is less than a preset threshold. The value of the preset threshold is not specifically limited. Exemplarily, the preset threshold is 200. If the number of views of video file A is 100 and less than the preset threshold, then the step of determining, for each piece of resource information, the network service node that transmits the resource information from a plurality of network service nodes based on the resource identifier corresponding to the resource information and the transmission share information corresponding to each network service node is executed.

[0067] Optionally, the popularity information includes the playback frequency of the resource information, and the preset condition is that the playback frequency is less than a preset frequency, wherein the playback frequency is determined based on the playback volume within a preset duration.

[0068] The value of the preset frequency is not specifically limited. For example, the preset frequency is 100 times per hour. If the playback frequency of video file A is 50 times per hour, which is less than the preset frequency, then a network service node for transmitting video file A is determined from multiple network service nodes based on the resource identifier corresponding to video file A and the transmission ratio information corresponding to each network service node.

[0069] S303: If the popularity information of the resource information does not meet the preset condition, in response to receiving a resource request for the resource information, randomly select a network service node for transmitting the resource information from multiple network service nodes, and transmit the resource information through the randomly selected network service node.

[0070] In the embodiment of the present disclosure, since the above processing is only performed on the cold resource information with a small number of playbacks, it will only affect the cold files with a small number of playbacks, which can improve the overall stability of the system without affecting the improvement of coverage.

[0071] It's important to note that as the number of network service nodes changes, their transmission share information also changes. Consequently, the hash parameter intervals for these network service nodes also change. In this case, the network service node corresponding to each piece of resource information needs to be redefined. Therefore, to further improve the stability of resource information processing, a hash parameter ring can be used to fix the hash parameter interval corresponding to each network service node.

[0072] Accordingly, if Figure 4 As shown, in step S202, determining the network service node that transmits the resource information from multiple network service nodes according to the resource identifier corresponding to the resource information and the transmission proportion information corresponding to each network service node may include the following steps S401 to S404:

[0073] S401: Establish a hash parameter ring of a preset parameter area, and determine a node hash parameter of each network service node on the hash parameter ring.

[0074] Exemplarily, the preset parameter range is 0-1000. The network service nodes include: network service node A, network service node B, and network service node C. The node hash parameters of network service node A on the hash parameter ring are 200. The node hash parameters of network service node B on the hash parameter ring are 500. The node hash parameters of network service node C on the hash parameter ring are 700.

[0075] S402: For each piece of resource information, determine the resource hash parameter of the resource identifier corresponding to the resource information in the hash parameter ring.

[0076] For example, the node hash parameter of resource information A on the hash parameter ring is 600, and the node hash parameter of resource information B on the hash parameter ring is 300.

[0077] S403: Determine a network service node for transmitting resource information from a plurality of network service nodes according to the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring.

[0078] Optionally, this step may include: according to the node hash parameter of each network service node on the hash parameter ring, judging the size of the node hash parameter and the resource hash parameter in order from small to large; if the node hash parameter is smaller than the resource hash parameter, then continue to judge the size of the next node hash parameter and the resource hash parameter; if the node hash parameter is larger than the resource hash parameter, then determine the network service node corresponding to the node hash parameter as the network service node for transmitting resource information.

[0079] For example, the resource hash parameter of resource information A on the hash parameter ring is 600, and the node hash parameters of network service node A on the hash parameter ring are 200. The node hash parameters of network service node B on the hash parameter ring are 500. The node hash parameters of network service node C on the hash parameter ring are 700. If the resource hash parameter corresponding to resource information A is greater than the node hash parameters of network service node A and network service node B, but less than the node hash parameter of network service node C, network service node C is determined to be the network service node that transmits resource information A.

[0080] It should be noted that, when the resource hash parameter of the resource information is greater than the maximum node hash parameter, the network service node corresponding to the minimum node hash parameter is determined as the network service node for transmitting the resource information.

[0081] For example, the resource hash parameter of video file B is 900, which is greater than the node hash parameter of network service node C. At this time, the network service node A corresponding to the smallest node hash parameter is determined as the network service node number for transmitting video file B.

[0082] S404: If any network service node is deleted, the node hash parameter of the network service node on the hash parameter ring is deleted; if any network service node is added, the node hash parameter of the network service node on the hash parameter ring is determined and added according to the preset parameter area.

[0083] In this step, if any network service node is deleted, the node hash parameter of the network service node in the hash parameter ring is deleted. In this case, there is no need to determine the size of the node hash parameter and the resource hash parameter in step S403, and the hash parameter of the next node can be directly compared. In this case, only the number of resource requests of the next network service node is affected, and the number of resource requests of other network service nodes is not affected.

[0084] Accordingly, if any network service node is added, the node hash parameter of the network service node is determined and added to the hash parameter ring according to the preset parameter area. At this time, when the size of the node hash parameter and the resource hash parameter is determined in step S403, part of the resource request of the next network service node will be diverted to the added network service node, but the number of resource requests of other network service nodes will not be affected.

[0085] In the embodiment of the present disclosure, the hash parameter interval corresponding to each network service node is fixed through the hash parameter ring, thereby improving the stability of processing resource requests.

[0086] It should be noted that in order to determine the impact of the above method on the resource utilization of the network resource service node, this application also proposes a verification method. Figure 5 As shown, the verification method includes:

[0087] S501. Select a preset number of test resource information, and divide the preset number of test resource information into a first test resource information group and a second test resource information group according to the hash parameter of the test resource identifier corresponding to each test resource information. The first test resource information group includes a plurality of first test resource information whose hash parameters are greater than a preset hash value, and the second test resource information group includes a plurality of second test resource information whose hash parameters are less than a preset hash value.

[0088] Among them, the first test resource information is a test sample of a network service node used to transmit the first test resource information, which is randomly determined from multiple network service nodes; the second test resource information is a test sample of a network service node used to transmit the second test resource information, which is determined from multiple network service nodes based on the test resource identifier corresponding to the second test resource information.

[0089] S502 : In response to receiving a resource request for any first test resource information, randomly determine a network service node that transmits the first test resource information from a plurality of network service nodes.

[0090] S503 : In response to receiving a resource request for any second test resource information, determine, from a plurality of network service nodes, a network service node that transmits the second test resource information according to a test resource identifier corresponding to the second test resource information.

[0091] Exemplarily, the first test resource information group is a control group, and the second test resource information group is an experimental group. Through the control group and the experimental group, the resource utilization of the network service nodes corresponding to the two network service node calling modes can be determined.

[0092] In the embodiment of the present disclosure, a preset number of test resource information are divided into a first test resource information group and a second test resource information group according to the hash parameters of the test resource identifier corresponding to each test resource information, thereby avoiding interference between the two groups of test resource information, thereby improving the accuracy of the experimental method.

[0093] Figure 6 This is a structural block diagram of a resource request processing device provided by an embodiment of the present disclosure. Figure 6 The device includes: an acquisition module 601, a determination module 602 and a processing module 603.

[0094] Acquisition module 601 is used to obtain transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application, and resource identifiers corresponding to each of multiple resource information stored in the backend server. The network service nodes are used to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period;

[0095] a determination module 602 configured to determine, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establish a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information;

[0096] The processing module 603 is used to determine the target network service node corresponding to the target resource information from the corresponding relationship between each network service node and at least one resource information in response to receiving a resource request for the target resource information, and transmit the target resource information through the target network service node.

[0097] According to one or more embodiments of the present disclosure, the determination module 602 determines, for each piece of resource information, a network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, specifically including: for each piece of resource information, determining a hash parameter of the resource identifier corresponding to the resource information, and, based on the transmission ratio information corresponding to each network service node, determining a hash parameter interval corresponding to each network service node, wherein the interval range of the hash parameter interval matches the transmission ratio information; determining a target hash parameter interval where the hash parameter is located, and determining the network service node corresponding to the target hash parameter interval as the network service node that transmits the resource information.

[0098] According to one or more embodiments of the present disclosure, the determination module 602 determines, for each piece of resource information, a network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, specifically including: establishing a hash parameter ring of a preset parameter area, and determining the node hash parameter of each network service node on the hash parameter ring; for each piece of resource information, determining the resource hash parameter of the resource identifier corresponding to the resource information on the hash parameter ring; and determining the network service node that transmits the resource information from the multiple network service nodes based on the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring.

[0099] According to one or more embodiments of the present disclosure, the determination module 602 determines the network service node that transmits the resource information from the multiple network service nodes based on the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring, specifically including: judging the size of the node hash parameter and the resource hash parameter in ascending order according to the node hash parameter of each network service node on the hash parameter ring; if the node hash parameter is smaller than the resource hash parameter, continuing to judge the size of the next node hash parameter and the resource hash parameter; if the node hash parameter is larger than the resource hash parameter, determining the network service node corresponding to the node hash parameter as the network service node that transmits the resource information.

[0100] According to one or more embodiments of the present disclosure, the device also includes: an adjustment module; the adjustment module is used to delete the node hash parameters of the network service node on the hash parameter ring if any network service node is deleted; if any network service node is added, determine and add the node hash parameters of the network service node on the hash parameter ring according to the preset parameter area.

[0101] According to one or more embodiments of the present disclosure, the device also includes: a setting module; the setting module is used to obtain the popularity information of the resource information for each resource information; if the popularity information of the resource information meets the preset conditions, the step of determining the network service node that transmits the resource information from the multiple network service nodes according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node is performed for each resource information; if the popularity information of the resource information does not meet the preset conditions, in response to receiving a resource request for the resource information, the network service node that transmits the resource information is randomly selected from the multiple network service nodes, and the resource information is transmitted through the randomly selected network service node.

[0102] According to one or more embodiments of the present disclosure, the popularity information includes the playback volume of the resource information, and the preset condition is that the playback volume is less than a preset threshold; and / or, the popularity information includes the playback frequency of the resource information, and the preset condition is that the playback frequency is less than a preset frequency, wherein the playback frequency is determined based on the playback volume within a preset duration.

[0103] According to one or more embodiments of the present disclosure, the device also includes: a testing module; the testing module is used to select a preset number of test resource information, and divide the preset number of test resource information into a first test resource information group and a second test resource information group according to the hash parameter of the test resource identifier corresponding to each test resource information, the first test resource information group includes a plurality of first test resource information whose hash parameters are greater than the preset hash value, and the second test resource information group includes a plurality of second test resource information whose hash parameters are less than the preset hash value; wherein the first test resource information is a test sample of a network service node for transmitting the first test resource information determined randomly from the multiple network service nodes; the second test resource information is a test sample of a network service node for transmitting the second test resource information determined from the multiple network service nodes according to the test resource identifier corresponding to the second test resource information.

[0104] refer to Figure 7, which shows a schematic structural diagram of an electronic device 700 suitable for implementing the embodiments of the present disclosure. The electronic device 700 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.

[0105] like Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 are also stored in the RAM 703. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0106] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.

[0107] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0108] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0109] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0110] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0111] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0112] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0113] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0114] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0115] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0116] In a first aspect, according to one or more embodiments of the present disclosure, a method for processing a resource request is provided, comprising:

[0117] Obtaining transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application and resource identifiers corresponding to each of multiple resource information stored by the backend server, wherein the network service node is used to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period;

[0118] For each piece of resource information, determining, from the plurality of network service nodes, a network service node that transmits the resource information based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establishing a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information;

[0119] In response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information is determined from the correspondence between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node.

[0120] According to one or more embodiments of the present disclosure, for each piece of resource information, according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from the multiple network service nodes, including: for each piece of resource information, determining the hash parameter of the resource identifier corresponding to the resource information, and, according to the transmission ratio information corresponding to each network service node, determining the hash parameter interval corresponding to each network service node, wherein the interval range of the hash parameter interval matches the transmission ratio information; determining the target hash parameter interval where the hash parameter is located, and determining the network service node corresponding to the target hash parameter interval as the network service node that transmits the resource information.

[0121] According to one or more embodiments of the present disclosure, for each piece of resource information, according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the network service node that transmits the resource information is determined from the multiple network service nodes, including: establishing a hash parameter ring of a preset parameter area, and determining the node hash parameter of each network service node on the hash parameter ring; for each piece of resource information, determining the resource hash parameter of the resource identifier corresponding to the resource information on the hash parameter ring; according to the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring, determining the network service node that transmits the resource information from the multiple network service nodes.

[0122] According to one or more embodiments of the present disclosure, determining the network service node that transmits the resource information from the multiple network service nodes based on the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring includes: judging the size of the node hash parameter and the resource hash parameter in ascending order according to the node hash parameter of each network service node on the hash parameter ring; if the node hash parameter is smaller than the resource hash parameter, continuing to judge the size of the next node hash parameter and the resource hash parameter; if the node hash parameter is larger than the resource hash parameter, determining the network service node corresponding to the node hash parameter as the network service node that transmits the resource information.

[0123] According to one or more embodiments of the present disclosure, it also includes: if any network service node is deleted, the node hash parameter of the network service node on the hash parameter ring is deleted; if any network service node is added, the node hash parameter of the network service node on the hash parameter ring is determined and added according to the preset parameter area.

[0124] According to one or more embodiments of the present disclosure, for each piece of resource information, before determining the network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the method further includes: for each piece of resource information, obtaining the popularity information of the resource information; if the popularity information of the resource information meets the preset condition, executing the step of determining the network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node for each piece of resource information; if the popularity information of the resource information does not meet the preset condition, in response to receiving a resource request for the resource information, randomly selecting the network service node that transmits the resource information from the multiple network service nodes, and transmitting the resource information through the randomly selected network service node.

[0125] According to one or more embodiments of the present disclosure, the popularity information includes the playback volume of the resource information, and the preset condition is that the playback volume is less than a preset threshold; and / or, the popularity information includes the playback frequency of the resource information, and the preset condition is that the playback frequency is less than a preset frequency, wherein the playback frequency is determined based on the playback volume within a preset duration.

[0126] According to one or more embodiments of the present disclosure, the method further includes: selecting a preset number of test resource information, and dividing the preset number of test resource information into a first test resource information group and a second test resource information group according to the hash parameter of the test resource identifier corresponding to each test resource information, the first test resource information group including a plurality of first test resource information whose hash parameters are greater than a preset hash value, and the second test resource information group including a plurality of second test resource information whose hash parameters are less than the preset hash value; wherein the first test resource information is a test sample of a network service node for transmitting the first test resource information determined randomly from the plurality of network service nodes; and the second test resource information is a test sample of a network service node for transmitting the second test resource information determined from the plurality of network service nodes according to the test resource identifier corresponding to the second test resource information.

[0127] In a second aspect, according to one or more embodiments of the present disclosure, a resource request processing apparatus is provided, comprising:

[0128] an acquisition module, configured to acquire transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application, and resource identifiers corresponding to each of multiple resource information stored in the backend server, wherein the network service nodes are configured to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period;

[0129] a determination module configured to determine, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establish a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information;

[0130] The processing module is used to determine, in response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information from the corresponding relationship between each network service node and at least one resource information, and transmit the target resource information through the target network service node.

[0131] According to one or more embodiments of the present disclosure, the determination module determines, for each piece of resource information, a network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, specifically including: for each piece of resource information, determining a hash parameter of the resource identifier corresponding to the resource information, and, based on the transmission ratio information corresponding to each network service node, determining a hash parameter interval corresponding to each network service node, wherein the interval range of the hash parameter interval matches the transmission ratio information; determining a target hash parameter interval where the hash parameter is located, and determining the network service node corresponding to the target hash parameter interval as the network service node that transmits the resource information.

[0132] According to one or more embodiments of the present disclosure, the determination module determines, for each piece of resource information, the network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, specifically including: establishing a hash parameter ring of a preset parameter area, and determining the node hash parameter of each network service node on the hash parameter ring; for each piece of resource information, determining the resource hash parameter of the resource identifier corresponding to the resource information on the hash parameter ring; and determining the network service node that transmits the resource information from the multiple network service nodes based on the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring.

[0133] According to one or more embodiments of the present disclosure, the determination module determines the network service node that transmits the resource information from the multiple network service nodes based on the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring, specifically including: judging the size of the node hash parameter and the resource hash parameter in order from small to large according to the node hash parameter of each network service node on the hash parameter ring; if the node hash parameter is smaller than the resource hash parameter, continuing to judge the size of the next node hash parameter and the resource hash parameter; if the node hash parameter is larger than the resource hash parameter, determining the network service node corresponding to the node hash parameter as the network service node that transmits the resource information.

[0134] According to one or more embodiments of the present disclosure, the device also includes: an adjustment module; the adjustment module is used to delete the node hash parameters of the network service node on the hash parameter ring if any network service node is deleted; if any network service node is added, determine and add the node hash parameters of the network service node on the hash parameter ring according to the preset parameter area.

[0135] According to one or more embodiments of the present disclosure, the device also includes: a setting module; the setting module is used to obtain the popularity information of the resource information for each resource information; if the popularity information of the resource information meets the preset conditions, the step of determining the network service node that transmits the resource information from the multiple network service nodes according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node is performed for each resource information; if the popularity information of the resource information does not meet the preset conditions, in response to receiving a resource request for the resource information, the network service node that transmits the resource information is randomly selected from the multiple network service nodes, and the resource information is transmitted through the randomly selected network service node.

[0136] According to one or more embodiments of the present disclosure, the popularity information includes the playback volume of the resource information, and the preset condition is that the playback volume is less than a preset threshold; and / or, the popularity information includes the playback frequency of the resource information, and the preset condition is that the playback frequency is less than a preset frequency, wherein the playback frequency is determined based on the playback volume within a preset duration.

[0137] According to one or more embodiments of the present disclosure, the device also includes: a testing module; the testing module is used to select a preset number of test resource information, and divide the preset number of test resource information into a first test resource information group and a second test resource information group according to the hash parameter of the test resource identifier corresponding to each test resource information, the first test resource information group includes a plurality of first test resource information whose hash parameters are greater than the preset hash value, and the second test resource information group includes a plurality of second test resource information whose hash parameters are less than the preset hash value; wherein the first test resource information is a test sample of a network service node for transmitting the first test resource information determined randomly from the multiple network service nodes; the second test resource information is a test sample of a network service node for transmitting the second test resource information determined from the multiple network service nodes according to the test resource identifier corresponding to the second test resource information.

[0138] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0139] The memory stores computer-executable instructions;

[0140] The processor executes the computer-executable instructions stored in the memory to implement the resource request processing method described in the first aspect and various possible designs of the first aspect.

[0141] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When the processor executes the computer execution instructions, the resource request processing method described in the first aspect and various possible designs of the first aspect is implemented.

[0142] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the resource request processing method described in the first aspect and various possible designs of the first aspect.

[0143] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0144] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0145] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A resource request processing method, characterized in that: include: Obtaining transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application and resource identifiers corresponding to each of multiple resource information stored by the backend server, wherein the network service node is used to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period; For each piece of resource information, determining, from the plurality of network service nodes, a network service node that transmits the resource information based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establishing a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information; In response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information is determined from the correspondence between each network service node and at least one resource information, and the target resource information is transmitted through the target network service node.

2. The method according to claim 1, characterized in that The step of determining, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes according to a resource identifier corresponding to the resource information and transmission proportion information corresponding to each network service node, includes: For each piece of resource information, determine a hash parameter of a resource identifier corresponding to the resource information, and, based on the transmission ratio information corresponding to each network service node, determine a hash parameter interval corresponding to each network service node, wherein the interval range of the hash parameter interval matches the transmission ratio information; A target hash parameter interval in which the hash parameter is located is determined, and a network service node corresponding to the target hash parameter interval is determined as the network service node for transmitting the resource information.

3. The method according to claim 1, characterized in that The step of determining, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes according to a resource identifier corresponding to the resource information and transmission proportion information corresponding to each network service node, includes: Establishing a hash parameter ring of a preset parameter area, and determining a node hash parameter of each network service node on the hash parameter ring; For each piece of resource information, determining a resource hash parameter of a resource identifier corresponding to the resource information on the hash parameter ring; A network service node for transmitting the resource information is determined from the multiple network service nodes according to the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring.

4. The method according to claim 3, characterized in that The determining, from the plurality of network service nodes, a network service node for transmitting the resource information according to the resource hash parameter and the node hash parameter of each network service node on the hash parameter ring includes: According to the node hash parameter of each network service node on the hash parameter ring, in ascending order of the node hash parameters, sequentially determining the size of the node hash parameter and the resource hash parameter; If the node hash parameter is smaller than the resource hash parameter, continue to judge the size of the next node hash parameter and the resource hash parameter; if the node hash parameter is larger than the resource hash parameter, determine the network service node corresponding to the node hash parameter as the network service node for transmitting the resource information.

5. The method according to claim 4, characterized in that Also includes: If any network service node is deleted, the node hash parameter of the network service node on the hash parameter ring is deleted; If any network service node is added, the node hash parameter of the network service node on the hash parameter ring is determined and added according to the preset parameter area.

6. The method according to claim 1, characterized in that For each piece of resource information, before determining the network service node that transmits the resource information from the multiple network service nodes based on the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node, the method further includes: For each piece of resource information, obtain the popularity information of the resource information; If the popularity information of the resource information meets the preset conditions, the step of determining, for each resource information, the network service node that transmits the resource information from the multiple network service nodes according to the resource identifier corresponding to the resource information and the transmission ratio information corresponding to each network service node is executed; if the popularity information of the resource information does not meet the preset conditions, in response to receiving a resource request for the resource information, the network service node that transmits the resource information is randomly selected from the multiple network service nodes, and the resource information is transmitted through the randomly selected network service node.

7. The method according to claim 6, characterized in that The popularity information includes the playback volume of resource information, and the preset condition is that the playback volume is less than a preset threshold; and / or, The popularity information includes the playback frequency of the resource information, and the preset condition is that the playback frequency is less than a preset frequency, wherein the playback frequency is determined based on the playback volume within a preset duration.

8. The method according to any one of claims 1 to 7, characterized in that Also includes: Selecting a preset number of test resource information, and dividing the preset number of test resource information into a first test resource information group and a second test resource information group according to a hash parameter of a test resource identifier corresponding to each piece of test resource information, wherein the first test resource information group includes a plurality of first test resource information with a hash parameter greater than a preset hash value, and the second test resource information group includes a plurality of second test resource information with a hash parameter less than the preset hash value; The first test resource information is a test sample of a network service node randomly determined from the plurality of network service nodes for transmitting the first test resource information; The second test resource information is a test sample of a network service node that transmits the second test resource information, determined from among the multiple network service nodes according to a test resource identifier corresponding to the second test resource information.

9. A resource request processing device, characterized in that: include: an acquisition module, configured to acquire transmission share information corresponding to each of multiple network service nodes corresponding to a backend server of a target application, and resource identifiers corresponding to each of multiple resource information stored in the backend server, wherein the network service nodes are configured to transmit the resource information stored in the backend server, and the transmission share information is determined based on the amount of resource information transmitted by the multiple network service nodes within a historical preset time period; a determination module configured to determine, for each piece of resource information, a network service node that transmits the resource information from the plurality of network service nodes based on a resource identifier corresponding to the resource information and transmission ratio information corresponding to each network service node, and establish a correspondence between each network service node and at least one piece of resource information, wherein the number of the at least one piece of resource information matches the transmission ratio information; The processing module is used to determine, in response to receiving a resource request for target resource information, a target network service node corresponding to the target resource information from the corresponding relationship between each network service node and at least one resource information, and transmit the target resource information through the target network service node.

10. An electronic device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the resource request processing method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the resource request processing method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the resource request processing method according to any one of claims 1 to 8.