A method and device for resource allocation

By matching the appropriate business resource pool based on the user's historical business data and execution records, the problem of low computing resource allocation efficiency in the prior art is solved, and business processing efficiency is improved and resource waste is reduced.

CN112579292BActive Publication Date: 2025-02-25BEIJING SANKUAI ONLINE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011537231.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-23
Publication Date
2025-02-25
Estimated Expiration
2040-12-23

AI Technical Summary

Technical Problem

In the prior art, it is difficult to effectively allocate computing resources when users’ business processing, resulting in low service processing efficiency and waste of resources.

Method used

By determining the services and additional services currently performed by the user, the appropriate business resource pool is matched according to the user's historical business data and execution records, and resource allocation is performed.

Benefits of technology

Improve business processing efficiency, reduce resource waste, and ensure that users get the right computing resources for business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579292B_ABST
    Figure CN112579292B_ABST
Patent Text Reader

Abstract

This specification discloses a method and device for resource allocation, wherein a service platform can determine the service currently executed by a user as a target service, and determine the additional service corresponding to the target service, and then determine the resource pool matching rules corresponding to each service resource pool for executing the additional service. Based on at least one of the historical service data of the user executing each service, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, the service platform can determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each service resource pool as the target matching rule, and use the service resource pool corresponding to the target matching rule as the target service resource pool. Based on the service resources contained in the target service resource pool, resources are allocated to the user, so that the user performs service processing through the allocated service resources, thereby improving service processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for resource allocation. Background Art

[0002] Currently, when a user performs business processing on a business platform, the business platform usually needs to consume certain computing resources to perform business processing for the user.

[0003] In actual applications, the business platform usually includes many servers, and the performance of each server may be different. The business platform can randomly select a part of the computing resources in a server to process the user's business. If the business processed by a user has high performance requirements for the computing resources to be consumed, and the computing resources allocated to the user have poor performance, it will take a long time to process the business for the user. If the business processed by the user has low performance requirements for the computing resources to be consumed, and the computing resources allocated to the user have good performance, it may cause a waste of business platform resources.

[0004] Therefore, how to improve business processing efficiency and reduce resource waste to a certain extent is an issue that needs to be addressed urgently. Summary of the invention

[0005] The present specification provides a method and apparatus for allocating resources, which are used to allocate service resources to users for executing services.

[0006] This manual adopts the following technical solutions:

[0007] This specification provides a method for resource allocation, including:

[0008] Determine the service currently being executed by the user as the target service, and determine the additional service corresponding to the target service;

[0009] Determining a resource pool matching rule corresponding to each service resource pool for executing the additional service;

[0010] According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the various service resource pools as a target matching rule, and the service resource pool corresponding to the target matching rule is used as a target service resource pool;

[0011] Resources are allocated to the user based on each service resource included in the target service resource pool, so that the user performs service processing through the allocated service resources.

[0012] Optionally, determining a resource pool matching rule corresponding to each service resource pool for executing the additional service specifically includes:

[0013] If it is monitored that the user executes the target service in a set execution mode, a resource pool matching rule corresponding to each service resource pool set for the set execution mode by the additional service is determined.

[0014] Optionally, the method further comprises:

[0015] If it is determined that there is no resource pool matching rule matching the user among the resource pool matching rules corresponding to the various service resource pools, resources are allocated to the user based on various service resources in a preset default service resource pool.

[0016] Optionally, according to at least one of historical service data of the user executing various services, historical execution records of the user for the additional service, and relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from resource pool matching rules corresponding to each service resource pool as a target matching rule, specifically including:

[0017] Determining, based on the historical service data, the number of times the user has historically performed service processing through the historical service resources allocated by the additional service;

[0018] Determining the user group to which the user belongs according to the number of times;

[0019] According to the user group, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

[0020] Optionally, according to at least one of historical service data of the user executing various services, historical execution records of the user for the additional service, and relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from resource pool matching rules corresponding to each service resource pool as a target matching rule, specifically including:

[0021] determining, according to relevant service data when the user executes the target service, the amount of service resources consumed by the user in the target service;

[0022] According to the amount of service resources consumed by the user in the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

[0023] Optionally, according to at least one of historical service data of the user executing various services, historical execution records of the user for the additional service, and relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from resource pool matching rules corresponding to each service resource pool as a target matching rule, specifically including:

[0024] Determining, according to the historical execution record of the user for the additional service, historical service resources that have been allocated to the user in the additional service in the past, and determining a historical service resource pool to which the historical service resources belong;

[0025] Determining the priority of the resource pool matching rule corresponding to the historical service resource pool according to the preset priorities of the resource pool matching rules corresponding to the additional service;

[0026] According to the priority of the resource pool matching rule corresponding to the historical service resource pool, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

[0027] Optionally, according to at least one of historical service data of the user executing various services, historical execution records of the user for the additional service, and relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from resource pool matching rules corresponding to each service resource pool as a target matching rule, specifically including:

[0028] Determine the number of times the user has executed the service in history according to the historical service data of the user executing the service;

[0029] According to the number of service executions of the user in history, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

[0030] Optionally, the additional service includes: equity resource allocation service.

[0031] This specification provides a resource allocation device, including:

[0032] A first determination module is used to determine the service currently executed by the user as a target service, and determine an additional service corresponding to the target service;

[0033] A second determination module, used to determine a resource pool matching rule corresponding to each service resource pool for executing the additional service;

[0034] a matching module, configured to determine, based on at least one of the historical business data of the user executing various businesses, the historical execution record of the user for the additional business, and the relevant business data when the user executes the target business, a resource pool matching rule that matches the user from the resource pool matching rules corresponding to the business resource pools as a target matching rule, and use the business resource pool corresponding to the target matching rule as a target business resource pool;

[0035] The allocation module is used to allocate resources to the user based on the service resources included in the target service resource pool, so that the user performs service processing through the allocated service resources.

[0036] This specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned resource allocation method is implemented.

[0037] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned resource allocation method when executing the program.

[0038] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0039] In the resource allocation method provided in this specification, the service platform can determine the service currently executed by the user as the target service, and determine the additional service corresponding to the target service, and then determine the resource pool matching rules corresponding to each service resource pool for executing the additional service. Based on at least one of the historical service data of the user executing each service, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, the service platform can determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each service resource pool as the target matching rule, and use the service resource pool corresponding to the target matching rule as the target service resource pool. Based on the service resources contained in the target service resource pool, resources are allocated to the user so that the user can perform service processing through the allocated service resources.

[0040] It can be seen from the above method that the method includes multiple different business resource pools, each business resource pool corresponds to the resource pool matching rule of the business resource pool, and the business platform can match the user with a suitable business resource pool through the user's execution record of various businesses, so that subsequent users can perform business processing through the business resources in the matched business resource pool. Compared with the method of directly and randomly allocating various computing resources to users in the prior art, it can improve business processing efficiency and reduce resource waste to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0042] Figure 1 A schematic diagram of a resource allocation method in this specification;

[0043] Figure 2 A flowchart of determining a target matching rule in a scenario where the additional service is a lottery service provided in this specification;

[0044] Figure 3 A schematic diagram of each equity resource pool provided in this specification;

[0045] Figure 4 A schematic diagram of a resource allocation device in this specification;

[0046] Figure 5 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0048] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0049] Figure 1 This is a flow chart of a resource allocation method in this specification, which specifically includes the following steps:

[0050] S101: Determine a service currently being executed by a user as a target service, and determine an additional service corresponding to the target service.

[0051] S102: Determine a resource pool matching rule corresponding to each service resource pool for executing the additional service.

[0052] In actual applications, the business platform can provide users with a variety of services. The business platform needs to consume a certain amount of its own computing resources to process services for users. Based on this, the business platform can determine the service currently executed by the user as the target service, and determine the additional service corresponding to the target service. Then the business platform can determine the resource pool matching rules corresponding to each service resource pool used to execute the additional service. The additional service mentioned here can refer to the service used to allocate service resources (such as computing resources) to users. The target service can refer to any service that the business platform can provide.

[0053] Each of the business resource pools mentioned above may contain a number of computing resources, and the business resources may refer to computing resources, wherein the performance of the computing resources contained in different business resource pools may be different. For example, business resource pool A may contain computing resources with a higher processing speed, and business resource pool B may contain computing resources with a lower processing speed. The resource pool matching rules corresponding to the business resource pools are used to determine whether the business resource pools match the user, and the resource pool matching rules corresponding to different business resource pools may be different.

[0054] The service platform can determine how to allocate service resources (such as computing resources) to users in the additional service when the user executes the target service. Of course, the service platform can also determine how to allocate service resources to users in the additional service after the user completes the target service. After the service platform allocates service resources to the user, the user can execute the service through the service resources. Furthermore, when the service platform detects that the user executes the target service through the set execution mode, it can determine the resource pool matching rules corresponding to each service resource pool set by the additional service for the set execution mode, so as to determine what service resources to allocate to the user in the future.

[0055] It should be noted that in different business scenarios, the execution mode may be set differently. In the scenario of allocating computing resources to users, the user executes the target business by setting the execution mode, which may mean that the user executes the target business through a designated third-party client. If the business platform detects that the user executes the target business through the designated third-party client, the method may be used to allocate appropriate business resources to the user to execute the business for the user. The setting time mentioned here may be set according to actual needs.

[0056] S103: Based on at least one of the historical business data of the user executing various businesses, the historical execution records of the user for the additional business, and the relevant business data of the user when executing the target business, determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to the various business resource pools as the target matching rule, and use the business resource pool corresponding to the target matching rule as the target business resource pool.

[0057] After the business platform determines the resource pool matching rules corresponding to each business resource pool, it can determine the resource pool matching rules that match the user from the resource pool matching rules corresponding to each business resource pool based on at least one of the user's historical business data for executing various businesses, the user's historical execution records for additional businesses, and the user's relevant business data when executing the target business, as the target matching rule, and use the business resource pool corresponding to the target matching rule as the target business resource pool.

[0058] Among them, the business platform can determine the number of times the user has historically processed business through historical business resources allocated for additional business based on the historical business data of the user performing various businesses, and determine the user group to which the user belongs based on the number of times the user has historically processed business through historical business resources allocated for additional business, and based on the user group to which the user belongs, determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each business resource pool as the target matching rule.

[0059] That is to say, in history, the business platform may have allocated historical business resources to the user, but the user did not necessarily execute the business through the allocated historical business resources. If a user executes the business through the allocated historical business resources multiple times, it means that the user group to which the user belongs is a user group that often uses the historical business resources allocated by the business platform. If the resource pool matching rule corresponding to a certain business resource pool stipulates that the user group to which the user belongs should be a user group that often uses the historical business resources allocated by the business platform, then the resource pool matching rule corresponding to this business resource pool matches the user, and this business resource pool is the target business resource pool.

[0060] In addition to being able to directly determine the user group to which the user belongs based on the number of times the user has processed business through the historical business resources allocated by the additional business in the past, the business platform can also determine the frequency of the user's historical business processing through the historical business resources allocated by the additional business based on the number of times the user has processed business through the historical business resources allocated by the additional business in the past, and thus determine the user group to which the user belongs based on the frequency. If the frequency is high, it means that the user group to which the user belongs is a user group that will use the historical business resources allocated by the business platform. Therefore, the target matching rules are determined based on the user group to which the user belongs, and then the target business resource pool is determined, so that the allocated business resources are effectively used by the user.

[0061] In this specification, the business platform can also determine the amount of business resources consumed by the user in the target business based on the relevant business data when the user executes the target business. Based on the amount of business resources, the business platform can determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each business resource pool as the target matching rule.

[0062] In a scenario where additional services are used to allocate computing resources to users, the service platform can determine the resource pool matching rule that matches the user after the user completes the target service, thereby determining the service resources allocated to the user. The service platform can then determine the target matching rule based on the computing resources that the user has consumed in the target service. For example, if the resource pool matching rule corresponding to service resource pool A stipulates that the amount of service resources consumed by the user in the target service is not less than the set amount of service resources, and the resource pool matching rule corresponding to service resource pool B stipulates that the amount of service resources consumed by the user in the target service is less than the set amount of service resources, and the amount of service resources consumed by user A in the target service is not less than the set amount of service resources, the service platform can determine that the resource pool matching rule corresponding to service resource pool A is the target matching rule, and can use service resource pool A as the target resource pool.

[0063] In this method, the dimension in the resource pool matching rule is the amount of business resources consumed by the user in the target business. After processing the target business, the user may be about to process the next business, and the computing resources allocated to the user can be used in the user's next business. Therefore, the amount of computing resources consumed in the target business may be related to the computing resources that will be consumed by the next business. Therefore, by determining the target matching rule based on the amount of business resources consumed by the user in the target business, computing resources suitable for the user can be allocated to the user to a certain extent.

[0064] In addition, the business platform can also determine the number of business executions of the user in history based on the historical business data of the user executing various businesses, and determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each business resource pool based on the number of business executions of the user in history as the target matching rule. The number of business executions mentioned here can refer to the number of times the user has executed various businesses in the business platform in history.

[0065] For example, in the scenario where the additional service is used to allocate computing resources, the computing resources in service resource pool A have good performance, so service resource pool A can be allocated to users who often perform services on the service platform. The resource pool matching rule corresponding to service resource pool A is set to stipulate that the number of service executions by the user in a week is not less than 10 times. If the number of service executions by user A in a week is 15 times, the target matching rule of the user is the resource pool matching rule corresponding to service resource pool A. The number of service executions here is set as the number of times within a certain period of time. Of course, the number of service executions can also be set as the total number of times the user executes services on the service platform.

[0066] In this specification, the business platform can also determine the historical business resources that have been historically allocated to the user in the additional business based on the user's historical execution records for the additional business, and determine the historical business resource pool to which the historical business resources belong. Then, based on the preset priority of each resource pool matching rule corresponding to the additional business, the priority of the resource pool matching rule corresponding to the historical business resource pool can be determined. Based on the priority, the resource pool matching rule that matches the user can be determined from the resource pool matching rules corresponding to each business resource pool as the target matching rule.

[0067] The historical execution records of the additional services mentioned here may include historical business resources that have been historically allocated to the user in the additional services. In the scenario where the additional services are used to allocate computing resources to the user, the higher the preset priority of each resource pool matching rule corresponding to the additional services, the better the computing resource performance in the business resource pool corresponding to the resource pool matching rule. For example, the resource pool matching rule of business resource pool A stipulates that the priority of the business resource pool to which the business resources that have been historically allocated to the user belong (since the business resource pool corresponds to the resource pool matching rule one-to-one, the priority of the resource pool matching rule is the priority of the business resource pool of the resource pool matching rule) is lower than the set priority, and if the priority of the business resource pool described by the business resources that have been historically allocated to user A is lower than the set priority, it can be determined that the target matching rule of user A is the resource pool matching rule of the business resource pool.

[0068] It should be noted that, in addition to being used as a condition for determining whether a resource pool matching rule is a target matching rule, the priority of a resource pool matching rule can also be used as the order for determining the target matching rule from among the resource pool matching rules. That is to say, the business platform can start from the resource pool matching rule with the highest priority to determine whether the resource pool matching rule matches the user. If the resource pool matching rule matches the user, the resource pool matching rule can be directly used as the target resource pool matching rule. If the resource pool matching rule does not match the user, the business platform can determine which resource pool matching rule matches the user in order of priority of each resource pool matching rule from high to low.

[0069] If the business platform determines that there is no resource pool matching rule that matches the user in the resource pool matching rules corresponding to each business resource pool, it can allocate resources to the user based on the business resources in the preset default business resource pool. The default business resource pool can be different from the above-mentioned business resource pools, that is, it can be a separately created business resource pool. Of course, the default business resource pool can also be the business resource pool with the lowest priority among all the business resource pools.

[0070] S104: Allocate resources to the user based on the service resources included in the target service resource pool, so that the user performs service processing through the allocated service resources.

[0071] In this specification, the service platform determines a target service resource pool for a user, and can allocate resources to the user based on the service resources contained in the target service resource pool, so that the user can perform service processing through the allocated service resources. For example, in a scenario where an additional service is used to allocate computing resources to a user, the target service resource pool may contain multiple computing resources, and the service platform can allocate computing resources to the user through the target service resource pool.

[0072] The above are all explanations of this method from the perspective of the scenario where the additional service is to allocate computing resources for users. This method can also be applied to other business scenarios. For example, the additional service can be an equity resource allocation service. The following takes the equity resource allocation service as an example to explain this method. If the additional service is an equity resource allocation service, the business platform can determine the target matching rule that matches the user after the user completes the target service (such as completing a shopping order, completing a takeaway order, etc.), and use the business resource pool corresponding to the target matching rule as the target business resource pool. In the equity resource allocation service, the business resource pool can refer to the equity resource pool, and the equity resource pool can contain various equity resources, such as discount rights, physical rights, etc.

[0073] In the equity resource allocation business, the execution mode can be set to refer to a credit card. That is to say, if the business platform detects that the user has made a purchase through a credit card, it can determine the resource pool matching rules corresponding to each equity resource pool set for the credit card in the additional business, so as to subsequently determine which equity resource pool to match the user to allocate equity resources to the user through the determined equity resource pool. Different equity resource pools can correspond to different resource pool matching rules. Similar to the above-mentioned scenario of allocating computing resources, the resource pool matching rules corresponding to an equity resource pool define what kind of user can match the equity resource pool. The business platform can determine the target business resource pool for the user, that is, the target equity resource pool, and then allocate equity resources to the user through the target equity resource pool.

[0074] The business platform can determine the resource pool matching rules that match the user from the resource pool matching rules of each business resource pool based on the user's own data (i.e. the historical business data mentioned above, the historical execution records for the additional business, and the relevant business data when executing the target business, etc.), as the target resource pool matching rules. The resource pool matching rules of a business resource pool can include rules of multiple dimensions. For example, the resource pool matching rules corresponding to equity resource pool C can be: the user is allocated equity resources for the first time, the payment channel for the target business is a third-party payment channel, and the amount consumed by the user in the target business is greater than 100 yuan (it can be seen that this resource pool matching rule contains rules of 3 dimensions). If the business platform determines that the resource pool matching rule corresponding to the equity resource pool C matches a certain user, it can be determined that the target equity resource pool corresponding to the user is equity resource pool C.

[0075] The resource pool matching rules corresponding to each equity resource pool can be set according to actual needs, and the resource pool matching rules corresponding to each equity resource pool can set rules of multiple dimensions, or only set rules of one dimension. The following describes the rules of each dimension in the resource pool matching rules in the scenario of equity resource allocation business.

[0076] In actual applications, the business platform can determine the number of times a user has historically processed business (such as purchasing goods, paying for takeout orders, etc.) through the equity resources obtained based on the historical business data of the user's execution of various businesses. Based on this number, the business platform can determine whether the user group to which the user belongs is an equity-sensitive user. The equity-sensitive users mentioned here may refer to users who frequently use the equity resources obtained from additional services to perform business. Therefore, the more times a user has historically processed business through the equity resources obtained, the more likely the user is to be an equity-sensitive user, and the business platform can determine whether the user is an equity-sensitive user based on this number. If the resource pool matching rule corresponding to a certain business resource pool stipulates that the user should be an equity-sensitive user, then if the business platform determines that a user is an equity-sensitive user, it can be determined that the user meets this requirement.

[0077] The business platform can determine the amount of business resources consumed by the user in the target business based on the relevant business data when the user executes the target business. The amount of business resources consumed by the user in the target business can also be used as a dimension in the resource pool matching rules. For example, the resource pool matching rules of a certain equity resource pool can stipulate that the amount of money that the user should consume in the target business is not less than 10 yuan. If the amount consumed by the user in the target business is 20 yuan, the business platform can determine that the user meets this requirement.

[0078] The business platform can also determine the historical equity resources that have been allocated to users in additional services based on the user's historical execution records for additional services. Under this dimension, the resource pool matching rules of the equity resource pool can be set as follows: for example, the value of the equity resources that the user has historically obtained is less than the set value, the user has not historically obtained equity resources of a certain value, etc. In other words, the resource pool matching rules can specify what kind of equity resources the user has obtained.

[0079] Among them, if the priority of the equity resource pool is higher, the equity resources contained in the equity resource pool are better, that is, the value of the equity resources is higher, then the business platform can determine the equity resource pool where the equity resource is located based on the equity resources that the user has historically obtained in additional services, and determine the priority of the resource pool matching rule corresponding to the equity resource pool, and determine whether the user matches the resource pool matching rule based on the priority. For example, the resource pool matching rule corresponding to the business resource pool can be set: for example, the priority of the equity resource pool where the equity resources obtained by the user in the past should not be greater than the set priority, or should not be less than the set priority, etc. Among them, the set priority mentioned here can be set according to actual needs.

[0080] The business platform can also determine the number of business executions in the user's history based on the historical business data of the user's execution of various businesses. Among them, the number of business executions mentioned here may refer to the number of times the user purchases goods, purchases takeout, and other business executions on the business platform. For example, in the resource pool matching rules corresponding to the business resource pool, the number of business executions corresponding to the user can be set to be no less than 50 times. It should be noted that if the business platform determines the equity resource pool for the user after the user executes the target business through a credit card, the number of business executions mentioned here may also refer to the number of times the user consumes through a credit card. The number of business executions does not need to be the number of times the user consumes through a credit card on the business platform, but may also refer to the number of times the user consumes through a credit card on all platforms.

[0081] In the scenario where the target business is executed by the user through a credit card, the business platform can also determine the time when the user activated the credit card based on the historical business data of the user executing various businesses, and determine the target matching rule that matches the user based on the time when the user activated the credit card. For example, in the resource pool matching rule of a certain business resource pool, a rule can be set that the time interval from the time when the user activated the credit card to the current time does not exceed 7 days. If the time interval from the time when the user activated the credit card to the current time is 4 days, it is determined that the user matches the resource pool matching rule.

[0082] In addition, the business platform can also determine the number of times a user has performed business through credit card installments based on historical business data, and determine the resource pool matching rules that match the user based on the number of times. For example, in the resource pool matching rules of a certain equity resource pool, a rule can be set that the number of times a user has performed business through credit card installments is not less than 5 times. For another example, in the resource pool matching rules of a certain equity resource pool, a rule can be set that the number of times a user has performed business through credit card installments within 30 days is not less than 1 time.

[0083] The business platform can also determine the number of times the user has drawn a lottery in history based on the user's historical execution records for additional services, and determine the resource pool matching rules that match the user based on the number of times. For example, the resource pool matching rules of a certain equity resource pool can be set up with rules such as: the user has not drawn a lottery in the additional service in history, or the number of times the user has drawn a lottery in the additional service in history is less than 5 times.

[0084] In this specification, the dimensions in the resource pool matching rules may also include the user's age, region, etc. For example, the resource pool matching rules may include the user's age between 20 and 30 years old, the user's region is region W, etc. The dimensions in the resource pool matching rules may also include the payment channels mentioned above for the user to pay for the target business, etc. The business platform may determine the payment channel through the relevant business data when the user executes the target business.

[0085] There can be many types of equity resource allocation services mentioned above. For example, the equity resource allocation service can be a service that directly allocates discount coupons to users, in which the equity resource pool is a discount coupon resource pool. For another example, the equity resource allocation service can be a lottery service, in which the equity resource pool is a prize pool, and the equity resources can include cash red envelopes, coupons, physical gifts, etc. The following takes the lottery service as an example to fully explain the implementation process of this method. Figure 2 shown.

[0086] Figure 2 This is a flow chart of determining target matching rules in a scenario where the additional service is a lottery service, provided in this specification.

[0087] from Figure 2It can be seen that after the business platform determines the resource pool matching rules of each equity resource pool (i.e., prize pool), it can determine the priority of the resource pool matching rules of each equity resource pool, and sort the resource pool matching rules according to the priority. The business platform can sort the resource pool matching rules in order from high to low priority. Then, starting from the first resource pool matching rule, determine whether the user matches the resource pool matching rule. If it is determined that the user matches the resource pool matching rule, the resource pool matching rule can be used as the target matching rule, and the equity resource pool corresponding to the target matching rule can be used as the target equity resource pool (i.e., target prize pool) to allocate equity resources to the user (i.e., draw a lottery for the user). If the resource pool matching rule does not match the user, it can be determined whether the next resource pool matching rule matches the user, and so on. However, if the target matching rule is not determined in each resource pool matching rule, the business platform needs to allocate equity resources to the user through the default equity resource pool (i.e., default prize pool). In actual applications, the equity resources contained in different equity resource pools and the corresponding issuance probabilities of equity resources can be different, such as Figure 3 shown.

[0088] Figure 3 A schematic diagram of each equity resource pool provided in this specification.

[0089] from Figure 3 It can be seen that equity resource pool 1, equity resource pool 2 and equity resource pool 3 are three different business resource pools. The equity resources contained in equity resource pool 1 include one-yuan coupons, two-yuan coupons and three-yuan coupons, and the issuance probabilities of these coupons are 30%, 40% and 30% respectively. The equity resources contained in equity resource pool 2 include three-yuan coupons, four-yuan coupons and five-yuan coupons, and the issuance probabilities of these coupons are 50%, 25% and 25% respectively. The equity resources contained in equity resource pool 3 include ten-yuan coupons, twenty-yuan coupons and thirty-yuan coupons, and the issuance probabilities of these coupons are 60%, 20% and 20% respectively. When the user draws the lottery, after the business platform determines the target equity resource pool for the user, it can draw the lottery for the user according to the issuance probability of each equity resource in the target equity resource pool.

[0090] It can be seen from the above method that in the scenario of allocating computing resources to users, the resource allocation method provided in this specification can allocate appropriate computing resources to users according to the user's own situation, so that users can use computing resources to process business, thereby improving business processing efficiency. In addition, the business platform can preliminarily judge whether the user will use the allocated computing resources for business processing and whether the user's subsequent business requires computing resources with better performance based on data such as the number of times the user uses the allocated computing resources for business processing and the computing resources consumed by the user in the target business, thereby determining the target business resource pool for the user based on these data to reduce the waste of computing resources. In the scenario of equity resource allocation business, the business platform can also match the user with a suitable equity resource pool according to this method, so that the user can obtain suitable equity resources, thereby saving the cost required in the equity resource allocation business.

[0091] The above is a resource allocation method provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding resource allocation device, such as Figure 4 shown.

[0092] Figure 4 A schematic diagram of a resource allocation device provided in this specification specifically includes:

[0093] The first determination module 401 is used to determine the service currently executed by the user as the target service, and determine the additional service corresponding to the target service;

[0094] A second determination module 402 is used to determine a resource pool matching rule corresponding to each service resource pool for executing the additional service;

[0095] A matching module 403 is used to determine a resource pool matching rule that matches the user from the resource pool matching rules corresponding to the various service resource pools as a target matching rule, and use the service resource pool corresponding to the target matching rule as a target service resource pool, based on at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service;

[0096] The first allocation module 404 is configured to allocate resources to the user based on the service resources included in the target service resource pool, so that the user performs service processing through the allocated service resources.

[0097] Optionally, the second determining module 402 is specifically configured to, if it is monitored that the user executes the target service in a set execution mode, determine a resource pool matching rule corresponding to each service resource pool set for the additional service in the set execution mode.

[0098] Optionally, the device further comprises:

[0099] The second allocation module 405 is configured to allocate resources to the user based on each business resource in a preset default business resource pool if it is determined that there is no resource pool matching rule matching the user among the resource pool matching rules corresponding to each business resource pool.

[0100] Optionally, the matching module 403 is specifically used to determine, based on the historical business data, the number of times the user has historically performed business processing through the historical business resources allocated by the additional business; based on the number of times, determine the user group to which the user belongs; based on the user group, determine a resource pool matching rule that matches the user from the resource pool matching rules corresponding to each business resource pool as a target matching rule.

[0101] Optionally, the matching module 403 is specifically used to determine the amount of business resources consumed by the user in the target business based on relevant business data when the user executes the target business; and determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to each business resource pool based on the amount of business resources consumed by the user in the target business, as the target matching rule.

[0102] Optionally, the matching module 403 is specifically used to determine, based on the historical execution record of the user for the additional service, the historical service resources that have been historically allocated to the user in the additional service, and determine the historical service resource pool to which the historical service resources belong; determine the priority of the resource pool matching rule corresponding to the historical service resource pool according to the preset priority of each resource pool matching rule corresponding to the additional service; and determine, based on the priority of the resource pool matching rule corresponding to the historical service resource pool, a resource pool matching rule that matches the user from the resource pool matching rules corresponding to each service resource pool as the target matching rule.

[0103] Optionally, the matching module 403 is specifically used to determine the number of business executions in the user's history based on the historical business data of the user executing various businesses; and to determine the resource pool matching rule that matches the user from the resource pool matching rules corresponding to the various business resource pools based on the number of business executions in the user's history as the target matching rule.

[0104] Optionally, the additional service includes: equity resource allocation service.

[0105] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1The resource allocation method shown.

[0106] This manual also provides Figure 5 The schematic structure diagram of the electronic device shown in FIG. Figure 5 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0107] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0108] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0109] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0110] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0111] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0112] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0113] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0114] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0115] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0116] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0117] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0118] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0119] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0120] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0121] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0122] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for resource allocation, characterized in that: include: Determine a service currently being executed by the user as a target service, and determine an additional service corresponding to the target service, wherein the additional service refers to a service used to allocate service resources to the user; Determining a resource pool matching rule corresponding to each service resource pool for executing the additional service; According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the various service resource pools as a target matching rule, and the service resource pool corresponding to the target matching rule is used as a target service resource pool; Allocating resources to the user based on the service resources included in the target service resource pool, so that the user performs service processing through the allocated service resources; Determining a resource pool matching rule corresponding to each service resource pool for executing the additional service specifically includes: If it is monitored that the user executes the target service in the set execution mode, a resource pool matching rule corresponding to each service resource pool set for the set execution mode by the additional service is determined.

2. The method according to claim 1, characterized in that The method further comprises: If it is determined that there is no resource pool matching rule matching the user among the resource pool matching rules corresponding to the various service resource pools, resources are allocated to the user based on various service resources in a preset default service resource pool.

3. The method according to claim 1, characterized in that According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the service resource pools as the target matching rule, specifically including: Determining, based on the historical service data, the number of times the user has historically performed service processing through the historical service resources allocated by the additional service; Determining the user group to which the user belongs according to the number of times; According to the user group, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

4. The method according to claim 1, characterized in that According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the service resource pools as the target matching rule, specifically including: determining, according to relevant service data when the user executes the target service, the amount of service resources consumed by the user in the target service; According to the amount of service resources consumed by the user in the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

5. The method according to claim 1, characterized in that According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the service resource pools as the target matching rule, specifically including: Determining, according to the historical execution record of the user for the additional service, historical service resources that have been allocated to the user in the additional service in the past, and determining a historical service resource pool to which the historical service resources belong; Determining the priority of the resource pool matching rule corresponding to the historical service resource pool according to the preset priorities of the resource pool matching rules corresponding to the additional service; According to the priority of the resource pool matching rule corresponding to the historical service resource pool, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

6. The method according to claim 1, characterized in that According to at least one of the historical service data of the user executing various services, the historical execution record of the user for the additional service, and the relevant service data when the user executes the target service, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to the service resource pools as the target matching rule, specifically including: Determine the number of times the user has executed the service in history according to the historical service data of the user executing the service; According to the number of service executions of the user in history, a resource pool matching rule matching the user is determined from the resource pool matching rules corresponding to each service resource pool as a target matching rule.

7. The method according to any one of claims 1 to 6, characterized in that: The additional services include: equity resource allocation services.

8. A resource allocation device, characterized in that: include: A first determination module is used to determine the service currently executed by the user as a target service, and determine an additional service corresponding to the target service, wherein the additional service refers to a service used to allocate service resources to the user; The second determination module is used to determine the resource pool matching rules corresponding to each service resource pool used to execute the additional service, specifically including: if it is monitored that the user executes the target service through the set execution mode, determining the resource pool matching rules corresponding to each service resource pool set for the additional service according to the set execution mode; a matching module, configured to determine, based on at least one of the historical business data of the user executing various businesses, the historical execution record of the user for the additional business, and the relevant business data when the user executes the target business, a resource pool matching rule that matches the user from the resource pool matching rules corresponding to the business resource pools as a target matching rule, and use the business resource pool corresponding to the target matching rule as a target business resource pool; The first allocation module is used to allocate resources to the user based on each service resource included in the target service resource pool, so that the user performs service processing through the allocated service resources.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for allocating computing resources

    CN103324535A

  • Resource allocation method and device, storage medium and electronic device

    CN111080342A