Method, device, readable medium and equipment for processing advertisement request
By identifying and prioritizing the categories of ad requests and setting response rate thresholds based on the yield factor and request rate, the problem that the ad serving server may reject high-yield requests is solved, improving ad revenue and server stability.
Patent Information
- Application Number
- CN202011347042.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-26
AI Technical Summary
When the existing ad serving server processes ad requests, in order to prevent overload, it may randomly reject some higher-yield ad requests, resulting in low ad revenue and being unable to meet users' high-yield needs.
By identifying the categories of ad requests, setting response rate thresholds based on the yield factor and request rate of each category, and giving priority to ad requests with large yield factors and high request rates, ensuring that the server can maintain stable operation while increasing advertising revenue.
It is possible to prioritize advertising requests with high yields without damaging the stability of the server, increase advertising revenue, and meet users' high-profit needs.
Smart Images

Figure CN112486680B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, readable medium and device for processing an advertisement request. Background Art
[0002] In the prior art, when processing ad requests sent by clients, ad delivery servers usually estimate the service capacity of the server for ad requests in advance in order to prevent the server from crashing due to overload, and then set the service consumption threshold of the server according to the estimated service capacity of the server, such as setting the threshold of the number of requests that the server responds to per second. When the number of requests received by the server per second exceeds the threshold of the number of requests that the server responds to per second, the server will limit the flow, that is, it will not respond to requests that exceed the threshold of the number of requests that the server responds to, so as to maintain the stable operation of the server.
[0003] However, in the process of processing advertising requests, existing advertising servers randomly respond to service requests received in each cycle. As a result, when the server needs to limit the flow, the advertising server may randomly refuse to respond to advertising requests of some higher-yield advertising types, resulting in low advertising revenue generated by the advertising server and failing to meet users' high-yield demands. Summary of the invention
[0004] Based on the above-mentioned deficiencies of the prior art, the present application provides a method, apparatus, readable medium and device for processing advertisement requests, so as to improve the revenue brought by processing advertisement requests while maintaining the stable operation of the server, and meet the high-revenue demands of users.
[0005] The first aspect of the present application discloses a method for processing an advertisement request, comprising:
[0006] In the current advertising request processing cycle, multiple advertising delivery requests are received;
[0007] Identify the advertisement category to which each of the received advertisement delivery requests belongs;
[0008] For each of the advertisement categories, each advertisement delivery request identified as belonging to the advertisement category is responded to and processed according to the response rate threshold of the advertisement category in the current advertisement request processing cycle, wherein the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category and the total target value of service consumption of the server, the total target value of service consumption is set according to the service capacity of the server, the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the yield factor corresponding to the advertisement category is the revenue corresponding to the server responding to and processing a single advertisement delivery request under the advertisement category in unit time, the response rate threshold corresponding to the advertisement category is the maximum value of the number of advertisement delivery requests under the advertisement category processed by the server in unit time; the request rate of the advertisement category is the number of advertisement delivery requests of the advertisement category received by the server in unit time.
[0009] Optionally, in the above-mentioned method for processing advertisement requests, a method for setting a response rate threshold corresponding to each advertisement category includes:
[0010] At the initialization setting time of the current advertisement request processing cycle, marking the processing status of each advertisement category as unprocessed, and clearing the total service consumption value of the current advertisement request processing cycle to zero;
[0011] From each category of advertisements marked as unprocessed, select the advertisement category with the highest yield factor in the last advertisement request processing cycle; wherein the yield factor of the advertisement category in the last advertisement request processing cycle is the ratio of the average yield to the average time consumed in responding to and processing a single advertisement delivery request under the advertisement category in the last advertisement request processing cycle;
[0012] The processing status of the selected advertisement category is marked as processed, and the estimated service consumption value corresponding to the selected advertisement category is determined according to the request rate of the selected advertisement category in the last advertisement request processing cycle; wherein the estimated service consumption value corresponding to the advertisement category is used to illustrate the service capacity required to be consumed when the server responds to each advertisement delivery request under the advertisement category according to the request rate of the advertisement category in the last advertisement request processing cycle; the request rate of the advertisement category in the last advertisement request processing cycle is the total number of advertisement delivery requests of the advertisement category received by the server per unit time in the last advertisement request processing cycle;
[0013] Determine whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value;
[0014] If the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the target total service consumption value, the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, and the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is used as the updated total service consumption value corresponding to the current advertising request processing cycle, and the process returns to the step of selecting the advertising category with the highest yield factor from each type of advertising category marked as unprocessed, until the processing status of each type of advertising category is marked as processed;
[0015] If the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is not less than or equal to the service consumption target total value, then according to the difference between the service consumption target total value and the total service consumption value corresponding to the current advertising request processing cycle, the response rate threshold of the selected advertising category in the current advertising request processing cycle is set, and the response rate threshold of each advertising category marked as unprocessed in the current advertising request processing cycle is set to zero.
[0016] Optionally, in the above-mentioned method for processing advertisement requests, determining the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle includes:
[0017] The request rate of the selected advertisement category in the last advertisement request processing cycle is multiplied by the consumption factor of the advertisement category in the last advertisement request processing cycle to calculate the estimated service consumption value corresponding to the selected advertisement category; wherein the consumption factor of the advertisement category in the last advertisement request processing cycle is the average response processing time of the server to a single advertisement delivery request of the advertisement category in the last advertisement request processing cycle;
[0018] The step of setting a response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to a difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle includes:
[0019] The difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle is divided by the consumption factor of the selected advertising category in the previous advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0020] Optionally, in the above-mentioned method for processing an advertisement request, the method for setting the target total value of service consumption includes:
[0021] At the initialization setting time of the current advertisement request processing cycle, obtaining the initial load occupancy value of the server;
[0022] The target total value of service consumption is set according to the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server.
[0023] Optionally, in the above-mentioned method for processing advertisement requests, setting the target total service consumption value according to the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server includes:
[0024] According to the ratio of the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server, the actual total service consumption of the server in the previous advertisement request processing cycle is adjusted to obtain the target total service consumption value; wherein the actual total service consumption value of the previous advertisement request processing cycle is obtained by summing the product of the response rate of each type of advertisement category in the previous advertisement request processing cycle and the consumption factor of the previous advertisement request processing cycle; the target total service consumption value is positively correlated with the target load occupancy value.
[0025] Optionally, in the above-mentioned method for processing advertisement requests, determining the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle includes:
[0026] Using the request rate of the selected advertisement category in the last advertisement request processing cycle as the estimated service consumption value corresponding to the selected advertisement category;
[0027] The step of setting a response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to a difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle includes:
[0028] The response rate threshold of the selected advertisement category in the current advertisement request processing cycle is set as the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle.
[0029] The second aspect of the present application discloses a device for processing an advertisement request, comprising:
[0030] A receiving unit, configured to receive multiple advertisement delivery requests within a current advertisement request processing cycle;
[0031] An identification unit, configured to identify the advertisement category to which each of the received advertisement delivery requests belongs;
[0032] A processing unit is used to respond to and process each advertisement delivery request identified as belonging to each advertisement category according to a response rate threshold of the advertisement category in the current advertisement request processing cycle, wherein the response rate threshold corresponding to the advertisement category is set according to a yield factor corresponding to the advertisement category, a request rate of the advertisement category and a total target value of service consumption of the server, the total target value of service consumption is set according to the service capacity of the server, the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the yield factor corresponding to the advertisement category is the revenue corresponding to the server responding to and processing a single advertisement delivery request under the advertisement category in unit time, the response rate threshold corresponding to the advertisement category is the maximum value of the number of advertisement delivery requests under the advertisement category processed by the server in unit time, and the request rate of the advertisement category is the number of advertisement delivery requests of the advertisement category received by the server in unit time.
[0033] Optionally, the above-mentioned advertisement request processing device further includes:
[0034] an initialization unit, configured to mark the processing status of each type of the advertisement category as an unprocessed status and clear the total service consumption value of the current advertisement request processing cycle to zero at the initialization setting time of the current advertisement request processing cycle;
[0035] A selection unit is used to select, from each category of advertisements marked as unprocessed, an advertisement category with the highest rate of return factor in the last advertisement request processing cycle; wherein the rate of return factor of the advertisement category in the last advertisement request processing cycle is a ratio of an average rate of return to an average time consumption of responding to and processing a single advertisement delivery request under the advertisement category in the last advertisement request processing cycle;
[0036] A determination unit is used to mark the processing status of the selected advertisement category as a processed status, and determine the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle; wherein the estimated service consumption value corresponding to the advertisement category is used to illustrate the service capacity required to be consumed when the server responds to each advertisement delivery request under the advertisement category according to the request rate of the advertisement category in the previous advertisement request processing cycle; the request rate of the advertisement category in the previous advertisement request processing cycle is the total number of advertisement delivery requests of the advertisement category received by the server per unit time in the previous advertisement request processing cycle;
[0037] A judging unit, configured to judge whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value;
[0038] A first setting unit is used for setting the response rate threshold of the selected advertising category in the current advertising request processing cycle to the value of the request rate of the selected advertising category in the previous advertising request processing cycle if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the target total service consumption value, and returning the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle as the updated total service consumption value corresponding to the current advertising request processing cycle to the selection unit to select the advertising category with the highest yield factor from each category of advertising categories marked as unprocessed, until the processing status of each category of advertising categories is marked as processed;
[0039] The second setting unit is used to set the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle, if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is not less than or equal to the service consumption target total value, and to set the response rate threshold of each type of advertising category marked as unprocessed in the current advertising request processing cycle to zero.
[0040] Optionally, in the above-mentioned advertisement request processing device, the determining unit includes:
[0041] The first calculation subunit is used to calculate the estimated service consumption value corresponding to the selected advertising category by multiplying the request rate of the selected advertising category in the previous advertising request processing cycle by the consumption factor of the advertising category in the previous advertising request processing cycle; wherein the consumption factor of the advertising category in the previous advertising request processing cycle is the average response processing time of the server to a single advertising delivery request of the advertising category in the previous advertising request processing cycle;
[0042] Wherein, when the second setting unit sets the response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle, it is used to:
[0043] The difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle is divided by the consumption factor of the selected advertising category in the previous advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0044] Optionally, the above-mentioned advertisement request processing device further includes:
[0045] An adjustment unit is used to adjust the actual total service consumption of the server in the previous advertising request processing cycle according to the ratio of the difference between the target load occupancy value of the server in the current advertising request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server, so as to obtain the target total service consumption value; wherein the actual total service consumption value of the previous advertising request processing cycle is obtained by summing the product of the response rate of each type of the advertisement category in the previous advertising request processing cycle and the consumption factor of the previous advertising request processing cycle; the target total service consumption value is positively correlated with the target load occupancy value.
[0046] Optionally, in the above-mentioned advertisement request processing device, the determining unit includes:
[0047] A determination subunit, configured to use a request rate of the selected advertisement category in the last advertisement request processing cycle as an estimated service consumption value corresponding to the selected advertisement category;
[0048] When the second setting unit sets the response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle, it is used to:
[0049] The response rate threshold of the selected advertisement category in the current advertisement request processing cycle is set as the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle.
[0050] A third aspect of the present application discloses a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any one of the first aspects above is implemented.
[0051] A fourth aspect of the present application discloses a device, comprising:
[0052] one or more processors;
[0053] a storage device having one or more programs stored thereon;
[0054] When the one or more programs are executed by the one or more processors, the one or more processors implement any method described in the first aspect.
[0055] It can be seen from the above technical scheme that the processing method of the advertisement request proposed in the embodiment of the present application receives multiple advertisement delivery requests in the current advertisement request processing cycle, and then identifies the advertisement category to which each received advertisement delivery request belongs. Then, for each type of advertisement category, according to the response rate threshold of the advertisement category in the current advertisement request processing cycle, each advertisement delivery request that is identified as belonging to the advertisement category is responded to and processed. Since in the embodiment of the present application, the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service consumption target value of the server, and the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the total service consumption target value is set according to the consumption capacity of the server. Therefore, under the requirement of meeting the total service target consumption value, the larger the yield factor corresponding to the advertisement category, the larger the request rate of the advertisement category, and the larger the response rate threshold of the advertisement category in the current advertisement request processing cycle, and then under the condition of maintaining the normal operation of the server, the advertisement delivery request under the advertisement category with a large yield factor and a high request rate is preferentially processed, which meets the high-yield demand of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0057] Figure 1 A flowchart of a method for processing an advertisement request proposed in an embodiment of the present application;
[0058] Figure 2 A flowchart of a method for setting a response rate threshold corresponding to each type of advertisement category proposed in an embodiment of the present application;
[0059] Figure 3 A flowchart of a method for setting a total target value of service consumption proposed in an embodiment of the present application;
[0060] Figure 4 A schematic diagram of the structure of an advertisement request processing device proposed in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] See also Figure 1 The embodiment of the present application proposes a method for processing an advertisement request, which is applied to a server and specifically includes the following steps:
[0063] S101. In a current advertisement request processing cycle, multiple advertisement delivery requests are received.
[0064] The server presets an ad request processing cycle, and then processes the received ad delivery request within the ad request processing cycle. The ad delivery request carries the requested ad category. The ad categories can be boot category ads, patch category ads, pause category ads, etc. Ad delivery requests can be sent by various clients to the server, and the ad delivery request is used to request the server to deliver ads belonging to the requested ad category to the client.
[0065] S102: Identify the advertisement category to which each received advertisement delivery request belongs.
[0066] After receiving multiple advertisement delivery requests, the server identifies each advertisement delivery request and determines the advertisement category to which each advertisement delivery request belongs. Since the revenues brought by different advertisement categories are different, advertisement delivery requests need to be processed according to different advertisement categories.
[0067] Optionally, all received advertisement delivery requests may be classified according to advertisement categories, so as to process the advertisement delivery requests according to the categories.
[0068] S103. For each type of advertisement category, respond to and process each advertisement delivery request that is identified as belonging to the advertisement category according to the response rate threshold of the advertisement category in the current advertisement request processing cycle, wherein the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service target consumption of the server, and the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively.
[0069] Among them, the yield factor corresponding to the advertising category is the revenue corresponding to the server's response to and processing of a single advertising delivery request under the advertising category within a unit time. For example, the average revenue of a single advertising delivery request under a certain advertising category that is responded to and processed within the historical advertising request processing cycle can be divided by the average time consumed to respond to and process a single advertising delivery request under a certain advertising category, and the revenue corresponding to the server's response to and processing of a single advertising delivery request under the advertising category within a unit time can be obtained. The yield factor corresponding to the advertising category can also be obtained by dividing the total revenue of all advertising delivery requests under a certain advertising category that are responded to and processed within the historical advertising request processing cycle by the total time consumed to respond to and process all advertising delivery requests under a certain advertising category within the historical advertising request processing cycle. It should be noted that there are many ways to obtain the yield factor corresponding to the advertising category, including but not limited to the contents proposed in the embodiments of the present application. The higher the yield factor corresponding to the advertising category, the higher the revenue that the server can obtain with the same processing time.
[0070] The response rate threshold corresponding to an advertising category is the maximum value of the number of advertising delivery requests under the advertising category processed by the server in a unit time. The request rate of an advertising category is the number of advertising delivery requests of the advertising category received by the server in a unit time. The request rate of an advertising category can be obtained by dividing the number of all advertising delivery requests under the advertising category received in the historical advertising request processing cycle by the duration of the historical advertising request processing cycle. The higher the request rate of an advertising category, the greater the demand for the advertising category.
[0071] The response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service consumption target value of the server. The total service consumption target value is set according to the service capacity of the server, and the service capacity of the server refers to the ability of the server to process advertisement delivery requests. For example, it can be the total processor load occupancy target value. When the processor load exceeds 80%, the server is prone to crash, so 80% can be used as the total processor load occupancy target value. The total processor load occupancy value brought by the response rate threshold corresponding to each advertisement category set does not exceed the total processor load occupancy target value. In addition, the total service consumption target value can also be the total response rate target value, that is, according to the processing capacity of the server, it is found that the server is prone to crash after the response rate exceeds a certain value, then the total response rate target value can be set to this value. The sum of the response rate thresholds corresponding to each advertisement category set does not exceed the total response rate target value.
[0072] The total service consumption target value of the server is positively correlated with the sum of the response rate thresholds corresponding to each advertisement category. That is, the higher the total service consumption target value, the higher the sum of the response rate thresholds corresponding to each advertisement category.
[0073] The response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, which means that when the yield factors corresponding to the advertisement categories are the same, the higher the request rate of the advertisement category, the larger the response rate threshold corresponding to the advertisement category. When the request rates of the advertisement categories are the same, the higher the yield factor corresponding to the advertisement category, the larger the response rate threshold corresponding to the advertisement category. The larger the response rate threshold of the advertisement category, the more it means that when the server receives multiple advertisement delivery requests, it will use a larger part of the total service consumption target value to allocate and process the requests under the advertisement category with a higher response rate threshold, and use a smaller part to allocate and process the advertisement delivery requests under the advertisement category with a lower response rate threshold. That is, the allocation of the total service consumption target value is set according to the response rate threshold corresponding to the advertisement category. For example, if the yield factor of category A advertisement is higher than that of category B advertisement, and the request rate of category A advertisement is the same as that of category B advertisement, then under the limitation of the total service consumption target value, the server sets the response rate threshold of category A advertisement to 300 responses per second, and the response rate threshold of category B advertisement to 200 responses per second.
[0074] In the prior art, the response rate threshold of the server is set according to the processing capacity of the server. The received advertising delivery requests are randomly responded to or processed in the order in which they are received. When the number of advertising delivery requests received is too high and exceeds the response rate threshold of the server, the server will randomly reject the advertising delivery requests to maintain the response rate of the server below the response rate threshold. This will cause the server to spend more time processing some advertising delivery requests with low returns, resulting in no extra service capacity to process advertising delivery requests with higher returns.
[0075] In the embodiment of the present application, for each type of advertisement category, each advertisement delivery request that is identified as belonging to the advertisement category will be responded to and processed according to the response rate threshold of the advertisement category in the current advertisement request processing cycle. That is, each type of advertisement category will have a corresponding response rate threshold. The response rate threshold is not set for any advertisement. And the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service consumption target of the server. And the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, and the total service consumption target of the server is set according to the service capacity of the server. Therefore, for advertisement categories with higher request rates and higher yield factors, under the limitation of the total service consumption target, they will be processed according to a higher response rate threshold, and for advertisement categories with lower request rates and lower yield factors, they will be processed according to a lower response rate threshold. Therefore, in the embodiment of the present application, under the limitation of the total service consumption target, while maintaining the function of the normal operation of the server, priority processing of advertisement delivery requests under advertisement categories with large yield factors and high request rates is achieved, meeting the high-yield needs of users.
[0076] It should be noted that the response rate threshold corresponding to each advertisement category may be preset, or may be preset at the initial moment of each advertisement request processing cycle.
[0077] Optionally, see Figure 2 In a specific embodiment of the present application, a method for setting a response rate threshold corresponding to each type of advertisement category includes:
[0078] S201. At the initialization setting time of the current advertisement request processing cycle, the processing status of each advertisement category is marked as unprocessed, and the total service consumption value of the current advertisement request processing cycle is cleared.
[0079] Figure 2The process shown is actually a process of setting the response rate threshold corresponding to each advertisement category according to the yield factor corresponding to each advertisement category, the request rate of each advertisement category, and the total target value of service consumption of the server.
[0080] Specifically, the yield factor and request rate may be constantly changing. For example, the yield factor brought by processing the ad placement request of this ad category in the current stage is not high, but it does not mean that the yield factor of this ad category in the subsequent stage will not change. The request rate is the same. There may be a stage where the request rate of this ad category is higher, but another stage where the ad request rate of this ad category is lower. Therefore, in order to ensure that the response rate threshold corresponding to each ad category can accurately reflect the yield factor and request rate of the current stage, it is necessary to set the response rate threshold corresponding to each ad category at the initialization time of each ad processing cycle.
[0081] Specifically, at the initialization setting moment of the current advertising request processing cycle, the processing status of each type of advertising category is marked as unprocessed, which means that the response rate threshold setting process has not been performed. The total service consumption value of the current advertising request processing cycle refers to the total service consumption brought to the server by the sum of the response rate thresholds corresponding to each type of advertising category set in the current advertising processing cycle. Since the response rate threshold corresponding to each type of advertising category has not been set at the initialization setting moment, the total service consumption value of the current advertising request processing cycle needs to be cleared.
[0082] S202: From each category of advertisements marked as unprocessed, select the advertisement category with the highest rate of return factor in the last advertisement request processing cycle.
[0083] Among them, the yield factor of the advertising category in the last advertising request processing cycle is the ratio of the average revenue to the average time consumed in responding to and processing a single advertising request under the advertising category in the last advertising request processing cycle. That is, the advertising category with the highest yield factor in the last advertising request processing cycle is selected first for setting. Since the total value of the service consumption target is limited, it is limitedly allocated to the advertising category with the highest yield factor.
[0084] S203: Mark the processing status of the selected advertisement category as a processed status, and determine an estimated service consumption value corresponding to the selected advertisement category according to a request rate of the selected advertisement category in a previous advertisement request processing cycle.
[0085] The estimated service consumption value corresponding to an advertisement category is used to illustrate the service capacity required when the server responds to each advertisement delivery request under the advertisement category at the request rate of the advertisement category in the previous advertisement request processing cycle. That is, the service capacity required when the server responds to each advertisement delivery request under the advertisement category at a response rate consistent with the request rate of the advertisement category in the previous advertisement request processing cycle. The request rate of an advertisement category in the previous advertisement request processing cycle is the total number of advertisement delivery requests of the advertisement category received by the server per unit time in the previous advertisement request processing cycle.
[0086] The request rate of an ad category in the last ad request processing cycle actually represents the current demand rate of the ad category. Since the selected ad category has the highest rate of return factor, when setting the response rate threshold corresponding to each ad category, the demand of the ad category is given priority. Therefore, it is first assumed that the response rate threshold corresponding to the ad category is equal to the request rate of the ad category in the last ad request processing cycle. Then, it is estimated that when the server responds to each ad delivery request under the ad category at a response rate consistent with the request rate of the ad category in the last ad request processing cycle, the service capacity required is the estimated service consumption value corresponding to the selected ad category.
[0087] Optionally, in a specific embodiment of the present application, an implementation of step S203 includes:
[0088] The request rate of the selected advertisement category in the previous advertisement request processing cycle is multiplied by the consumption factor of the advertisement category in the previous advertisement request processing cycle to calculate the estimated service consumption value corresponding to the selected advertisement category.
[0089] Among them, the consumption factor of the advertisement category in the last advertisement request processing cycle is the average response processing time of the server to a single advertisement delivery request of the advertisement category in the last advertisement request processing cycle. The request rate of the selected advertisement category in the last advertisement request processing cycle is multiplied by the consumption factor of the advertisement category in the last advertisement request processing cycle to calculate the estimated service consumption value corresponding to the selected advertisement category, which represents the total time required to respond to and process all advertisement delivery requests received under the advertisement category within a unit time. That is, the total time required to respond to and process all advertisement delivery requests received under the advertisement category within a unit time can be selected to represent the service capacity required when the server responds to and processes each advertisement delivery request under the advertisement category at a response rate consistent with the request rate of the advertisement category in the last advertisement request processing cycle. The total target service consumption value at this time can be correspondingly defined as the target total time required to respond to and process each advertisement delivery request received under the advertisement category within a unit time within the current advertisement request processing cycle.
[0090] Optionally, in a specific embodiment of the present application, an implementation of step S203 includes:
[0091] The request rate of the selected advertisement category in the last advertisement request processing cycle is used as the estimated service consumption value corresponding to the selected advertisement category.
[0092] Since the estimated service consumption value corresponding to the selected advertising category is used to illustrate the service capacity consumed when the server responds to each advertising delivery request under the advertising category at a response rate consistent with the request rate of the advertising category in the previous advertising request processing cycle. The service capacity can be expressed as the response rate of the server, and the estimated service capacity is obtained under the condition of a response rate consistent with the request rate of the advertising category in the previous advertising request processing cycle, the request rate of the selected advertising category in the previous advertising request processing cycle can be directly used as the estimated service consumption value corresponding to the selected advertising category. Accordingly, the total service consumption target value can be set as the target sum of the response rate thresholds corresponding to each advertising category.
[0093] S204: Determine whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value.
[0094] Due to the limitation of the total service consumption target value, when giving priority to satisfying the request requirements of the selected advertising category, it is also necessary to see whether the sum of the estimated service consumption value corresponding to the currently selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the total service consumption target value. If it is less than or equal to the total service consumption target value, it means that when the response rate threshold of the selected advertising category is set to the request rate of the advertising category in the previous advertising request processing cycle, it will not exceed the limitation of the total service consumption target value. Therefore, the response rate threshold of the selected advertising category in the current advertising request processing cycle can be set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, that is, step S205 is executed. If the sum of the estimated service consumption value corresponding to the currently selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is not less than or equal to the total service consumption target value, it means that when the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, the total service consumption target value will be exceeded, that is, the target service capacity that the server needs to provide will be exceeded. Therefore, the response rate threshold of the selected advertising category in the current advertising request processing cycle cannot be directly set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, and needs to be adjusted to a value smaller than the value of the request rate of the current selected advertising category in the previous advertising request processing cycle, which is specifically achieved through step 206.
[0095] S205. Set the response rate threshold of the selected advertising category in the current advertising request processing cycle to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, and use the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle as the updated total service consumption value corresponding to the current advertising request processing cycle, and return to step S203 until the processing status of each type of advertising category is marked as processed.
[0096] Since the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, the restriction requirement of the total service consumption target value can be met, so the response rate threshold of the selected advertising category in the current advertising request processing cycle can be directly set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle. After the setting is completed, it is necessary to update the total service consumption value corresponding to the current advertising request processing cycle, that is, the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is used as the updated total service consumption value corresponding to the current advertising request processing cycle. Then return to step S203, continue to process the remaining advertising categories that have not completed the response rate threshold setting, that is, the advertising categories that are still marked as unprocessed, until the processing status of each type of advertising category is marked as processed, and no longer return to step S203.
[0097] S206. According to the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle, the response rate threshold of the selected advertising category in the current advertising request processing cycle is set, and the response rate threshold of each advertising category marked as unprocessed in the current advertising request processing cycle is set to zero.
[0098] Since the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, it will exceed the limit requirement of the total service consumption target value. Therefore, it is necessary to re-set the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle, that is, according to the difference between the total service consumption values corresponding to the current advertising request processing cycle, determine how much the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to, so that the limit requirement of the total service consumption target value can be just met. Since the total service consumption target value has been reached after the response rate threshold of the selected advertising category in the current advertising request processing cycle is set according to the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle, there is no excess service consumption to be allocated to other advertising categories to set the response rate threshold, so it is necessary to set the response rate threshold of each advertising category marked as unprocessed in the current advertising request processing cycle to zero, complete the setting of the remaining unprocessed advertising categories, and end the process.
[0099] In the embodiment of the present application, when the total service consumption target value is low, it may happen that only the response rate thresholds of several advertising categories with the highest yield factor are not zero, while the response rate thresholds of the remaining advertising categories are zero. In this way, the server is mainly used to respond to and process several advertising categories with the highest yield factor in the current operation process, without exceeding the total service consumption target value and ensuring the stable operation of the server, so as to meet the demand for high returns. However, due to the limitation of the total service consumption target value, in order to ensure the stable operation of the server, the service capacity is no longer consumed for several advertising categories with lower yield factors.
[0100] In the setting method of the response rate threshold corresponding to each type of advertisement category proposed by the embodiment of the present application, the allocation is carried out in the order of the yield factor of each advertisement category in the previous advertisement request processing cycle under the limitation of the total value of the service consumption target, and the request rate of the advertisement category with a high yield factor is preferentially satisfied. Therefore, in the embodiment of the present application, the response rate threshold of the advertisement category with a larger yield factor will be closer to or equal to its request rate, which meets the high yield demand of the user.
[0101] Optionally, in a specific embodiment of the present application, if the implementation method of executing step S203 is: multiplying the request rate of the selected advertising category in the previous advertising request processing cycle by the consumption factor of the advertising category in the previous advertising request processing cycle to calculate the estimated service consumption value corresponding to the selected advertising category, then in the process of setting the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle in executing step S206, it includes:
[0102] The difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle is divided by the consumption factor of the selected advertising category in the previous advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0103] Since the consumption factor of an advertising category in the last advertising request processing cycle is the average response processing time of the server to a single advertising delivery request of the advertising category in the last advertising request processing cycle, and the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle is used as the total response processing time that can be allocated to the selected advertising category for the received advertising processing requests per unit time in this application. Therefore, the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle is divided by the consumption factor of the selected advertising category in the last advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0104] Optionally, in a specific embodiment of the present application, if, when executing step S203, the request rate of the selected advertisement category in the previous advertisement request processing cycle is used as the estimated service consumption value corresponding to the selected advertisement category, then in executing step S206, the process of setting the response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle may include:
[0105] The response rate threshold of the selected advertisement category in the current advertisement request processing cycle is set to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle.
[0106] When executing step S203, the request rate of the selected advertising category in the previous advertising request processing cycle is used as the estimated service consumption value corresponding to the selected advertising category, and the total service consumption target value is the sum of the response rate thresholds corresponding to each advertising category. Therefore, the difference between the total service consumption target value and the total service consumption value corresponding to the current advertising request processing cycle can be directly set as the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0107] Optionally, see Figure 3 In a specific embodiment of the present application, the method for setting the total target value of service consumption mentioned in the above embodiments may include the following steps:
[0108] S301. At the initialization setting time of the current advertisement request processing cycle, an initial load occupancy value of the server is obtained.
[0109] That is, the total service consumption target value is set according to the initial server load occupancy value at the time of initialization. If the initial server load occupancy value at the time of initialization is low, a higher total service consumption target value can be set; if the initial server load occupancy value at the time of initialization is high, a lower total service consumption target value needs to be set. The total service consumption target value can be either the target sum of the response rates corresponding to each advertising category or the sum of the server target processing time required for the response rates corresponding to each advertising category.
[0110] S302: Set a target total service consumption value according to a difference between a target load occupancy value of the server in the current advertisement request processing cycle and an initial load occupancy value of the server.
[0111] Specifically, the target load occupancy value of the server in the current advertising request processing cycle can be set, and the target load occupancy value of the current advertising request processing cycle can be a pre-set fixed value, which is a value that can maintain the normal operation of the server. It can also be a target load occupancy value set according to the size of the initial load occupancy value. For example, if the initial load occupancy value of the current server is 60%, and the load occupancy value does not exceed 80% to maintain stable operation of the server, but in order not to increase the load occupancy value by 20% in the current advertising request processing cycle, and avoid the situation where the load occupancy increases too quickly, the target load occupancy value of the current cycle can be set to 70%, that is, only increase by 10%.
[0112] The target total value of service consumption is a value that is positively correlated with the target load occupancy value of the current advertising request processing cycle. Therefore, if the server wants to increase the current advertising request processing cycle from the initial load occupancy value to the target load occupancy value, the actual total service consumption value of the server in the previous advertising request processing cycle can be obtained by the difference between the target load occupancy value of the server in the current advertising request processing cycle and the initial load occupancy value of the server. The target total value of service consumption after the increase can then be obtained. That is, the initial load occupancy value at the initialization setting time of the current advertising request processing cycle can be understood as the load occupancy value at the end of the previous advertising request processing cycle, which corresponds to the actual total service consumption value of the server in the previous advertising request processing cycle, and the target load occupancy value of the server in the current advertising request processing cycle corresponds to the target total value of service consumption of the server in the current advertising request processing cycle. Therefore, according to the difference between the target load occupancy value of the server in the current advertising request processing cycle and the initial load occupancy value of the server, the actual total service consumption value of the server in the previous advertising request processing cycle can be adjusted to obtain the target total value of service consumption of the current advertising request processing cycle.
[0113] Optionally, in a specific embodiment of the present application, an implementation of step S302 includes:
[0114] According to the ratio of the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server, the actual total service consumption value of the server in the previous advertisement request processing cycle is adjusted to obtain the target total service consumption value.
[0115] Among them, the total actual service consumption of the previous advertising request processing cycle is obtained by summing the product of the response rate of each advertising category in the previous advertising request processing cycle and the consumption factor of the previous advertising request processing cycle, and the target total service consumption value is positively correlated with the target load occupancy value.
[0116] Specifically, the actual total service consumption of the server in the last advertisement request processing cycle can be obtained by substituting the response rate of each advertisement category in the last advertisement request processing cycle and the consumption factor of the last advertisement request processing cycle into the first formula.
[0117] The first formula is: Where C is the actual service consumption of the server in the previous advertising request processing cycle, n is the total number of advertising categories, QPS i is the response rate of the i-th advertising category in the previous advertising request processing cycle, H i is the consumption factor of the i-th advertising category in the previous advertising request processing cycle.
[0118] Since the service consumption value is positively correlated with the load occupancy value, the ratio of the difference between the target load occupancy value of the server in the current ad request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server is the ratio of the actual service consumption total value of the previous ad request processing cycle that the server needs to adjust. For example, if the difference between the target load occupancy value of the server in the current ad request processing cycle and the initial load occupancy value of the server accounts for 10% of the initial load occupancy value of the server, then the actual service consumption total value of the previous ad request processing cycle can be increased by 10% to obtain the target total service consumption value.
[0119] The processing method of the advertisement request proposed in the embodiment of the present application receives multiple advertisement delivery requests in the current advertisement request processing cycle, and then identifies the advertisement category to which each advertisement delivery request received belongs. Then, for each type of advertisement category, according to the response rate threshold of the advertisement category in the current advertisement request processing cycle, each advertisement delivery request that is identified as belonging to the advertisement category is responded to and processed. Since in the embodiment of the present application, the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service consumption target value of the server, and the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the total service consumption target value is set according to the consumption capacity of the server. Therefore, under the requirement of meeting the total service target consumption value, the larger the yield factor corresponding to the advertisement category, the larger the request rate of the advertisement category, and the larger the response rate threshold of the advertisement category in the current advertisement request processing cycle, and then, under the condition of maintaining the normal operation of the server, the advertisement delivery request under the advertisement category with a large yield factor and a high request rate is preferentially processed, meeting the high-yield demand of the user.
[0120] See also Figure 4Based on the method for processing advertisement requests proposed in the above-mentioned embodiment of the present application, the embodiment of the present application correspondingly discloses a device for processing advertisement requests, including: a receiving unit 401, an identification unit 402 and a processing unit 403.
[0121] The receiving unit 401 is configured to receive multiple advertisement delivery requests in a current advertisement request processing cycle.
[0122] The identification unit 402 is used to identify the advertisement category to which each received advertisement delivery request belongs.
[0123] The processing unit 403 is used to respond to and process each advertisement delivery request that is identified as belonging to the advertisement category according to the response rate threshold of the advertisement category in the current advertisement request processing cycle for each advertisement category. The response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total target value of the service consumption of the server. The total target value of the service consumption is set according to the service capacity of the server. The response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category. The yield factor corresponding to the advertisement category is the revenue corresponding to the server responding to and processing a single advertisement delivery request under the advertisement category in a unit time. The response rate threshold corresponding to the advertisement category is the maximum value of the number of advertisement delivery requests under the advertisement category processed by the server in a unit time. The request rate of the advertisement category is the number of advertisement delivery requests of the advertisement category received by the server in a unit time.
[0124] Optionally, in a specific embodiment of the present application, the device for processing advertisement requests further includes: an initialization unit, a selection unit, a determination unit, a judgment unit, a first setting unit, and a second setting unit.
[0125] The initialization unit is used to mark the processing status of each type of advertisement category as unprocessed at the initialization setting time of the current advertisement request processing cycle, and clear the total service consumption value of the current advertisement request processing cycle to zero.
[0126] The selection unit is used to select the advertisement category with the highest yield factor in the last advertisement request processing cycle from each advertisement category marked as unprocessed. The yield factor of the advertisement category in the last advertisement request processing cycle is the ratio of the average yield to the average time consumed for responding to and processing a single advertisement delivery request under the advertisement category in the last advertisement request processing cycle.
[0127] The determination unit is used to mark the processing status of the selected advertising category as a processed status, and determine the estimated service consumption value corresponding to the selected advertising category according to the request rate of the selected advertising category in the previous advertising request processing cycle. The estimated service consumption value corresponding to the advertising category is used to illustrate the service capacity required to be consumed when the server responds to each advertising delivery request under the advertising category according to the request rate of the advertising category in the previous advertising request processing cycle. The request rate of the advertising category in the previous advertising request processing cycle is the total number of advertising delivery requests of the advertising category received by the server per unit time in the previous advertising request processing cycle.
[0128] Optionally, in a specific embodiment of the present application, the determining unit includes:
[0129] The first calculation subunit is used to multiply the request rate of the selected advertising category in the previous advertising request processing cycle by the consumption factor of the advertising category in the previous advertising request processing cycle to calculate the estimated service consumption value corresponding to the selected advertising category; wherein the consumption factor of the advertising category in the previous advertising request processing cycle is the average response processing time of the server to a single advertising delivery request of the advertising category in the previous advertising request processing cycle. Wherein, when the second setting unit sets the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle, it is used to: divide the difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle by the consumption factor of the selected advertising category in the previous advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
[0130] Optionally, in a specific embodiment of the present application, the determining unit includes:
[0131] The determination subunit is used to use the request rate of the selected advertisement category in the last advertisement request processing cycle as the estimated service consumption value corresponding to the selected advertisement category.
[0132] Among them, when the second setting unit executes setting of the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the total service consumption corresponding to the current advertising request processing cycle, it is used to: set the response rate threshold of the selected advertising category in the current advertising request processing cycle to the difference between the service consumption target total value and the total service consumption corresponding to the current advertising request processing cycle.
[0133] The judgment unit is used to judge whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value.
[0134] The first setting unit is used to set the response rate threshold of the selected advertising category in the current advertising request processing cycle to the value of the request rate of the selected advertising category in the previous advertising request processing cycle if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the target total service consumption value, and return the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle as the updated total service consumption value corresponding to the current advertising request processing cycle to the selection unit to select the advertising category with the highest yield factor from each type of advertising category marked as unprocessed, until the processing status of each type of the advertising category is marked as processed.
[0135] The second setting unit is used to set the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle, if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is not less than or equal to the service consumption target total value, and to set the response rate threshold of each advertising category marked as unprocessed in the current advertising request processing cycle to zero.
[0136] Optionally, in a specific embodiment of the present application, the advertisement request processing device further includes:
[0137] The adjustment unit is used to adjust the actual service consumption total value of the server in the previous advertisement request processing cycle according to the ratio of the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server, so as to obtain the target total value of service consumption. The actual service consumption total value of the previous advertisement request processing cycle is obtained by summing the product of the response rate of each type of advertisement in the previous advertisement request processing cycle and the consumption factor of the previous advertisement request processing cycle, and the target total value of service consumption is positively correlated with the target load occupancy value.
[0138] The specific principles and execution processes of each unit in the advertising request processing device disclosed in the above-mentioned embodiment of the present application are the same as the advertising request processing method disclosed in the above-mentioned embodiment of the present application. Please refer to the corresponding parts of the advertising request processing method disclosed in the above-mentioned embodiment of the present application, and will not be repeated here.
[0139] In the processing device for advertisement request proposed in the embodiment of the present application, the receiving unit 401 receives multiple advertisement delivery requests in the current advertisement request processing cycle, and then the identification unit 402 identifies the advertisement category to which each received advertisement delivery request belongs. Then, the processing unit 403 responds to each advertisement delivery request that is identified as belonging to the advertisement category according to the response rate threshold of the advertisement category in the current advertisement request processing cycle for each advertisement category. In the embodiment of the present application, the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category, and the total service consumption target value of the server, and the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, and the total service consumption target value is set according to the consumption capacity of the server. Therefore, under the requirement of meeting the total service target consumption value, the larger the yield factor corresponding to the advertisement category, the larger the request rate of the advertisement category, and the larger the response rate threshold of the advertisement category in the current advertisement request processing cycle, and then, under the condition of maintaining the normal operation of the server, the advertisement delivery request under the advertisement category with a large yield factor and a high request rate is preferentially processed, thereby meeting the high-yield demand of the user.
[0140] An embodiment of the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for processing an advertisement request provided by the above method embodiments is implemented.
[0141] An embodiment of the present application provides a device, including: one or more processors, and a storage device on which one or more programs are stored. When the one or more programs are executed by one or more processors, the one or more processors implement the processing method of the advertisement request provided by the above method embodiments.
[0142] The present invention is capable of being implemented or used by those skilled in the art. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
[0143] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for processing an advertisement request, It is characterized in that include: In the current advertising request processing cycle, multiple advertising delivery requests are received; Identify the advertisement category to which each of the received advertisement delivery requests belongs; For each type of the advertisement category, according to the response rate threshold of the advertisement category in the current advertisement request processing cycle, each advertisement delivery request identified as belonging to the advertisement category is responded to and processed, wherein the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category and the total target value of service consumption of the server, the total target value of service consumption is set according to the service capacity of the server, the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the yield factor corresponding to the advertisement category is the revenue corresponding to the server responding to and processing a single advertisement delivery request under the advertisement category in unit time, the response rate threshold corresponding to the advertisement category is the maximum value of the number of advertisement delivery requests under the advertisement category processed by the server in unit time; the request rate of the advertisement category is the number of advertisement delivery requests of the advertisement category received by the server in unit time; The method for setting the response rate threshold corresponding to each advertisement category includes: At the initialization setting time of the current advertisement request processing cycle, marking the processing status of each advertisement category as unprocessed, and clearing the total service consumption value of the current advertisement request processing cycle to zero; From each category of advertisements marked as unprocessed, select the advertisement category with the highest yield factor in the last advertisement request processing cycle; wherein the yield factor of the advertisement category in the last advertisement request processing cycle is the ratio of the average yield to the average time consumed in responding to and processing a single advertisement delivery request under the advertisement category in the last advertisement request processing cycle; The processing status of the selected advertisement category is marked as processed, and the estimated service consumption value corresponding to the selected advertisement category is determined according to the request rate of the selected advertisement category in the last advertisement request processing cycle; wherein the estimated service consumption value corresponding to the advertisement category is used to illustrate the service capacity required to be consumed when the server responds to each advertisement delivery request under the advertisement category according to the request rate of the advertisement category in the last advertisement request processing cycle; the request rate of the advertisement category in the last advertisement request processing cycle is the total number of advertisement delivery requests of the advertisement category received by the server per unit time in the last advertisement request processing cycle; Determine whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value; If the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the target total service consumption value, the response rate threshold of the selected advertising category in the current advertising request processing cycle is set to the value of the request rate of the selected advertising category in the previous advertising request processing cycle, and the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is used as the updated total service consumption value corresponding to the current advertising request processing cycle, and the process returns to the step of selecting the advertising category with the highest yield factor from each type of advertising category marked as unprocessed, until the processing status of each type of advertising category is marked as processed; If the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is greater than the target service consumption total value, then the response rate threshold of the selected advertising category in the current advertising request processing cycle is set according to the difference between the target service consumption total value and the total service consumption value corresponding to the current advertising request processing cycle, and the response rate threshold of each advertising category marked as unprocessed in the current advertising request processing cycle is set to zero.
2. The method according to claim 1, It is characterized in that The step of determining the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle includes: The request rate of the selected advertisement category in the last advertisement request processing cycle is multiplied by the consumption factor of the advertisement category in the last advertisement request processing cycle to calculate the estimated service consumption value corresponding to the selected advertisement category; wherein the consumption factor of the advertisement category in the last advertisement request processing cycle is the average response processing time of the server to a single advertisement delivery request of the advertisement category in the last advertisement request processing cycle; The step of setting a response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to a difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle includes: The difference between the service consumption target total value and the service consumption total value corresponding to the current advertising request processing cycle is divided by the consumption factor of the selected advertising category in the previous advertising request processing cycle to obtain the response rate threshold of the selected advertising category in the current advertising request processing cycle.
3. The method according to claim 2, It is characterized in that The method for setting the total target value of service consumption includes: At the initialization setting time of the current advertisement request processing cycle, obtaining the initial load occupancy value of the server; The target total value of service consumption is set according to the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server.
4. The method according to claim 3, It is characterized in that The setting of the service consumption target total value according to the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server comprises: According to the ratio of the difference between the target load occupancy value of the server in the current advertisement request processing cycle and the initial load occupancy value of the server to the initial load occupancy value of the server, the actual total service consumption of the server in the previous advertisement request processing cycle is adjusted to obtain the target total service consumption value; wherein the actual total service consumption value of the previous advertisement request processing cycle is obtained by summing the product of the response rate of each type of advertisement category in the previous advertisement request processing cycle and the consumption factor of the previous advertisement request processing cycle; the target total service consumption value is positively correlated with the target load occupancy value.
5. The method according to claim 1, It is characterized in that The step of determining the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle includes: Using the request rate of the selected advertisement category in the last advertisement request processing cycle as the estimated service consumption value corresponding to the selected advertisement category; The step of setting a response rate threshold of the selected advertisement category in the current advertisement request processing cycle according to a difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle includes: The response rate threshold of the selected advertisement category in the current advertisement request processing cycle is set as the difference between the service consumption target total value and the service consumption total value corresponding to the current advertisement request processing cycle.
6. A device for processing an advertisement request, It is characterized in that include: A receiving unit, configured to receive multiple advertisement delivery requests within a current advertisement request processing cycle; An identification unit, configured to identify the advertisement category to which each of the received advertisement delivery requests belongs; A processing unit is used to respond to and process each advertisement delivery request that is identified as belonging to the advertisement category according to the response rate threshold of the advertisement category in the current advertisement request processing cycle for each type of the advertisement category, wherein the response rate threshold corresponding to the advertisement category is set according to the yield factor corresponding to the advertisement category, the request rate of the advertisement category and the total target value of service consumption of the server, the total target value of service consumption is set according to the service capacity of the server, the response rate threshold corresponding to the advertisement category is positively correlated with the yield factor corresponding to the advertisement category and the request rate of the advertisement category, respectively, the yield factor corresponding to the advertisement category is the revenue corresponding to the server responding to and processing a single advertisement delivery request under the advertisement category in unit time, the response rate threshold corresponding to the advertisement category is the maximum value of the number of advertisement delivery requests under the advertisement category processed by the server in unit time; the request rate of the advertisement category is the number of advertisement delivery requests of the advertisement category received by the server in unit time; an initialization unit, configured to mark the processing status of each type of the advertisement category as an unprocessed status and clear the total service consumption value of the current advertisement request processing cycle to zero at the initialization setting time of the current advertisement request processing cycle; A selection unit is used to select, from each category of advertisements marked as unprocessed, an advertisement category with the highest rate of return factor in the last advertisement request processing cycle; wherein the rate of return factor of the advertisement category in the last advertisement request processing cycle is a ratio of an average rate of return to an average time consumption of responding to and processing a single advertisement delivery request under the advertisement category in the last advertisement request processing cycle; A determination unit is used to mark the processing status of the selected advertisement category as a processed status, and determine the estimated service consumption value corresponding to the selected advertisement category according to the request rate of the selected advertisement category in the previous advertisement request processing cycle; wherein the estimated service consumption value corresponding to the advertisement category is used to illustrate the service capacity required to be consumed when the server responds to each advertisement delivery request under the advertisement category according to the request rate of the advertisement category in the previous advertisement request processing cycle; the request rate of the advertisement category in the previous advertisement request processing cycle is the total number of advertisement delivery requests of the advertisement category received by the server per unit time in the previous advertisement request processing cycle; A judging unit, configured to judge whether the sum of the estimated service consumption value corresponding to the selected advertisement category and the total service consumption value corresponding to the current advertisement request processing cycle is less than or equal to the target total service consumption value; A first setting unit is used for setting the response rate threshold of the selected advertising category in the current advertising request processing cycle to the value of the request rate of the selected advertising category in the previous advertising request processing cycle if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is less than or equal to the target total service consumption value, and returning the sum of the estimated service capacity consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle as the updated total service consumption value corresponding to the current advertising request processing cycle to the selection unit to select the advertising category with the highest yield factor from each category of advertising categories marked as unprocessed, until the processing status of each category of advertising categories is marked as processed; The second setting unit is used to set the response rate threshold of the selected advertising category in the current advertising request processing cycle according to the difference between the service consumption target total value and the total service consumption value corresponding to the current advertising request processing cycle, if the sum of the estimated service consumption value corresponding to the selected advertising category and the total service consumption value corresponding to the current advertising request processing cycle is greater than the service consumption target total value, and to set the response rate threshold of each type of advertising category marked as unprocessed in the current advertising request processing cycle to zero.
7. A computer readable medium, It is characterized in that A computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
8. A device, It is characterized in that include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 5.
