CN-122001825-A - Resource distribution method, device, equipment and storage medium
Abstract
The application relates to a resource issuing method, a device, equipment and a storage medium. The resource issuing method comprises the steps of receiving a plurality of resource issuing requests through a resource issuing interface, determining concurrency of a resource issuing queue according to the success rate of resource issuing of the resource issuing interface, determining the number of target resource issuing requests entering the resource issuing queue from the plurality of resource issuing requests based on the concurrency, and sequentially issuing the target resource issuing requests based on priority information of the target resource issuing requests. By adopting the method, the efficiency of resource distribution can be improved.
Inventors
- DING PENG
- LIN SHIFU
- AN JUNHUI
Assignees
- 华夏基金管理有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260210
Claims (10)
- 1. A resource distribution method, the method comprising: Receiving a plurality of resource release requests through a resource release interface; Determining the concurrency of a resource issuing queue according to the success rate of the resource issuing interface for issuing the resource; Determining the number of target resource release requests entering the resource release queue from the plurality of resource release requests based on the concurrency; And sequentially issuing the target resource issuing requests based on the priority information of the target resource issuing requests.
- 2. The resource allocation method according to claim 1, wherein before the step of determining the concurrency of the resource allocation queue according to the success rate of allocating resources by the resource allocation interface, the method comprises: Determining the current time corresponding to the resource issuing requests received by the resource issuing interface; Determining a first quantity of preset resource release requests received in a preset time period before the current time and a second quantity of preset resource release requests successfully requested to be released by taking the current time as the deadline; and determining the success rate of the resource issuing interface according to the first number and the second number.
- 3. The resource provisioning method of claim 2, wherein after determining the current time step corresponding to the plurality of resource provisioning requests received by the resource provisioning interface, further comprising: Determining historical time according to the current time and the preset time length, wherein the difference value between the current time and the historical time is the preset time length; And clearing record information of the resource issuing interface receiving the resource issuing request before the historical time.
- 4. The resource allocation method according to claim 1, wherein the step of determining the concurrency of the resource allocation queue according to the success rate of allocating resources by the resource allocation interface comprises: Determining whether the success rate is greater than a first preset success rate; Responsive to determining that the success rate is greater than the first preset success rate, increasing concurrency of the resource issue queue; In response to determining that the success rate is less than or equal to the first preset success rate, judging whether the success rate is greater than a second preset success rate, wherein the second preset success rate is less than the first preset success rate; Responsive to determining that the success rate is greater than the second preset success rate, maintaining the concurrency of the resource issue queue unchanged; And responding to the fact that the success rate is smaller than or equal to the second preset success rate, and reducing concurrency of the resource issuing queue.
- 5. The resource issuing method according to claim 1, wherein before sequentially performing the resource issuing steps on the target resource issuing request based on the priority information of the target resource issuing request, further comprising: Acquiring the type of the resource requested by each target resource issuing request; And determining the priority of each target resource issuing request according to the type of the resource so as to obtain the priority information.
- 6. The resource issuing method according to claim 1, wherein the step of sequentially issuing the target resource issuing requests based on priority information of the target resource issuing requests includes: according to the priority information, sequencing the target resource release requests in the resource release queue to obtain target resource release requests after sequencing; and sequentially carrying out resource distribution on the target resource distribution requests after the arrangement sequence.
- 7. The resource issuing method according to claim 1, wherein the step of determining the number of target resource issuing requests entered into the resource issuing queue from among the plurality of resource issuing requests based on the concurrency comprises: determining the number of existing resource release requests in the resource release queue; And determining the number of target resource release requests entering the resource release queue according to the number of the existing resource release requests and the concurrency.
- 8. A resource issuing apparatus, characterized in that the apparatus comprises: the request receiving module is used for receiving a plurality of resource issuing requests through the resource issuing interface; The concurrency determination module is used for determining the concurrency of the resource issuing queue according to the success rate of the resource issuing interface for issuing the resource; A number determining module configured to determine, based on the concurrency, a number of target resource issuance requests that enter the resource issuance queue from the plurality of resource issuance requests; and the resource issuing module is used for sequentially issuing the target resource issuing requests based on the priority information of the target resource issuing requests.
- 9. A computer device, comprising: Memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
- 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Description
Resource distribution method, device, equipment and storage medium Technical Field The present application relates to the field of software technologies, and in particular, to a method, an apparatus, a device, and a storage medium for resource allocation. Background With the rapid popularity of online marketing campaigns, social redpackages, and e-commerce subsidy scenarios, high-throughput redpackage delivery systems have become a trend. The existing red packet issuing system generally adopts a static flow control strategy, and the problem of low resource utilization rate is easy to occur. Disclosure of Invention Based on the above, the application provides a resource issuing method, a device, equipment and a storage medium, so as to improve the efficiency of resource issuing. In a first aspect, there is provided a resource issuing method, the method including: Receiving a plurality of resource release requests through a resource release interface; determining concurrency of a resource issuing queue according to the success rate of the resource issuing interface for issuing the resource; Determining the number of target resource release requests entering a resource release queue from a plurality of resource release requests based on the concurrency; and sequentially issuing the target resource issuing requests based on the priority information of the target resource issuing requests. In a second aspect, there is provided a resource issuing apparatus comprising: the request receiving module is used for receiving a plurality of resource issuing requests through the resource issuing interface; The concurrency determination module is used for determining the concurrency of the resource issuing queue according to the success rate of the resource issuing interface for issuing the resource; A number determination module for determining the number of target resource release requests entering the resource release queue from a plurality of resource release requests based on the concurrency; the resource issuing module is used for sequentially issuing the target resource issuing requests based on the priority information of the target resource issuing requests. In some embodiments, the apparatus further comprises: the current time determining module is used for determining the current time corresponding to the plurality of resource release requests received by the resource release interface; The quantity determining module is used for determining a first quantity of preset resource release requests received in a preset time before the current time and a second quantity of preset resource release requests successfully requested to be released by taking the current time as the deadline; And the success rate determining module is used for determining the success rate of the resource issuing interface according to the first number and the second number. In some embodiments, the apparatus further comprises: The historical time determining module is used for determining historical time according to the current time and the preset time length, and the difference value between the current time and the historical time is the preset time length; and the clearing module is used for clearing record information of the resource issuing request received by the resource issuing interface before the history time. In some embodiments, the concurrency determination module includes: the first determining submodule is used for determining whether the success rate is greater than a first preset success rate or not; The improving sub-module is used for improving the concurrency of the resource issuing queue in response to the fact that the success rate is determined to be greater than the first preset success rate; The second determining submodule is used for judging whether the success rate is larger than a second preset success rate or not in response to the fact that the success rate is smaller than or equal to the first preset success rate, wherein the second preset success rate is smaller than the first preset success rate; The maintaining sub-module is used for maintaining the concurrency of the resource issuing queue unchanged in response to determining that the success rate is greater than a second preset success rate; and the reduction submodule is used for reducing the concurrency of the resource issuing queue in response to the fact that the success rate is smaller than or equal to the second preset success rate. In some embodiments, the apparatus further comprises: The type acquisition module is used for acquiring the type of the resource requested by each target resource issuing request; and the priority determining module is used for determining the priority of each target resource issuing request according to the type of the resource so as to obtain priority information. In some embodiments, the resource issuance module includes: the sequencing sub-module is used for sequencing the target resource release requests in the res