Request processing method and device, storage medium and electronic equipment
The resource quota sharing and allocation of resource quota at each scenario entrance is achieved through the resource quota sharing pool, which solves the problem that it is difficult to accurately reflect the user's credit status under multiple scenario entrances, and improves the security of resource call request processing and resource utilization efficiency.
Patent Information
- Application Number
- CN202411414050.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-02-14
AI Technical Summary
In the case of multiple scenario entrances, the prior art is difficult to accurately reflect the user's credit status, resulting in uncontrollable risks in processing resource call requests.
Through the resource quota sharing pool, the resource quota sharing and provisioning of each scenario entrance are realized, and the available resource quota of the resource quota sharing pool is dynamically determined, and the resource call request is responded to.
The security of resource quota sharing pool for resource call request processing is improved, the risks caused by multiple quota assessments are avoided, and the flexible and efficient use of resources is achieved.
Smart Images

Figure CN119440807A_ABST
Abstract
Description
Technical Field
[0001] The present specification relates to the field of computer technology, and more specifically, to a request processing method, device, storage medium and electronic device in the field of computer technology. Background Art
[0002] For some consumer finance products based on user credit, users may initiate resource call requests through different scene entrances to call corresponding resources. In related technologies, the total resource quota of each scene entrance is determined based on the quota assessment of user credit data, and a corresponding total resource quota needs to be configured for each scene entrance separately. However, as transaction needs change, new scene entrances are constantly introduced into consumer finance products. If related technologies are used, it is necessary to conduct multiple quota assessments based on user credit to obtain the total resource quota corresponding to the new scene entrance.
[0003] Obviously, with the increase of scene entrances, the credit limit assessment process may be affected by various factors (such as data fluctuations, imperfections in the assessment model, etc.), making it difficult for the total resource limit to accurately reflect the user's credit status. In other words, in the case of multiple scene entrances, applying the total resource limit corresponding to different scene entrances to process resource call requests will bring uncontrollable risks to the publisher of consumer financial products. Summary of the invention
[0004] This specification provides a request processing method, device, storage medium and electronic device. The method realizes resource quota sharing and allocation of each scene entrance through a resource quota sharing pool, thereby improving the security of processing resource call requests using the resource quota sharing pool.
[0005] In a first aspect, a request processing method is provided, the method comprising:
[0006] Receiving a resource call request of a current scene entry of a resource quota sharing pool, and determining an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool;
[0007] Obtain the resource quota to be called of the resource call request, obtain the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0008] Determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0009] Respond to the resource call request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
[0010] In combination with the first aspect, in some possible implementation methods, the total resource quota of each scene entrance of the resource quota sharing pool is lower than the total resource quota of the resource quota sharing pool; based on the resource quota to be called and the available resource quota of the resource quota sharing pool, a response is made to the resource call request, including: obtaining the total resource quota of the current scene entrance; determining the available resource quota of the current scene entrance based on the total resource quota and the used resource quota of the current scene entrance; responding to the resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance.
[0011] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a response is made to a resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool, and the available resource quota of the current scene entrance, including: comparing the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance, respectively, to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance, the resource call request is rejected; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and less than or equal to the available resource quota of the current scene entrance, then the resources corresponding to the resource quota to be called are called according to the resource call request, and the used resource quota of the current scene entrance is updated according to the resource quota to be called.
[0012] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, a response is made to a resource call request based on the resource quota to be called and the available resource quota of the resource quota sharing pool, including: comparing the resource quota to be called and the available resource quota of the resource quota sharing pool to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool, rejecting the resource call request; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, calling the resources corresponding to the resource quota to be called according to the resource call request, and updating the used resource quota of the current scene entrance according to the resource quota to be called.
[0013] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, before receiving a resource call request of the current scene entrance of the resource quota sharing pool, and determining the associated scene entrance other than the current scene entrance from multiple scene entrances of the resource quota sharing pool, it also includes: determining a first type of newly added scene entrance, obtaining the total resource quota of the initial scene entrance, wherein the total resource quota of the initial scene entrance is obtained by pre-evaluating the quota based on user credit data; creating a resource quota sharing pool, and determining the total resource quota of the resource quota sharing pool according to the total resource quota of the initial scene entrance; and respectively determining the initial scene entrance and the first type of newly added scene entrance as the scene entrances of the resource quota sharing pool.
[0014] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after the initial scene entry and the first type of newly added scene entry are respectively determined as the scene entries of the resource quota sharing pool, a resource call request of the current scene entry of the resource quota sharing pool is received, and before the associated scene entry other than the current scene entry is determined from the multiple scene entries of the resource quota sharing pool, it also includes: below the total resource quota of the resource quota sharing pool, the total resource quota of each scene entry of the resource quota sharing pool is respectively determined.
[0015] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, after the initial scene entrance and the first type of newly added scene entrance are respectively determined as the scene entrances of the resource quota sharing pool, and before the total resource quota of the resource quota sharing pool is respectively determined, it also includes: determining the second type of newly added scene entrance, and determining the second type of newly added scene entrance as the scene entrance of the resource quota sharing pool.
[0016] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the total resource quota of each scene entrance of the resource quota sharing pool is determined separately below the total resource quota of the resource quota sharing pool, including: below the total resource quota of the resource quota sharing pool, the quota of each scene entrance of the resource quota sharing pool is determined separately; according to the quota of each scene entrance of the resource quota sharing pool, the total resource quota of each scene entrance of the resource quota sharing pool is determined separately.
[0017] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, below the total resource quota of the resource quota sharing pool, the quota of each scene entrance of the resource quota sharing pool is determined separately, including: obtaining the resource call history data of each scene entrance of the resource quota sharing pool; below the total resource quota of the resource quota sharing pool, determining the quota of each scene entrance of the resource quota sharing pool according to the resource call history data of each scene entrance of the resource quota sharing pool.
[0018] In combination with the first aspect and the above-mentioned implementation methods, in some possible implementation methods, the quota includes a fixed value quota and a percentage quota; according to the quota of each scenario entrance of the resource quota sharing pool, the total resource quota of each scenario entrance of the resource quota sharing pool is determined respectively, including: if there is a first-type scenario entrance with a quota of a fixed value quota among the scenario entrances of the resource quota sharing pool, then the fixed value quota of the first-type scenario entrance of the resource quota sharing pool is determined as the total resource quota of the first-type scenario entrance of the resource quota sharing pool; if there is a second-type scenario entrance with a quota of a percentage quota among the scenario entrances of the resource quota sharing pool, then the product of the percentage quota of the second-type scenario entrance of the resource quota sharing pool and the total resource quota of the resource quota sharing pool is determined as the total resource quota of the second-type scenario entrance of the resource quota sharing pool.
[0019] In a second aspect, a request processing device is provided, the device comprising:
[0020] A receiving unit, configured to receive a resource call request of a current scene entry of a resource quota sharing pool, and determine an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool;
[0021] An acquisition unit, used to acquire the resource quota to be called of the resource call request, the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry;
[0022] A determination unit, used to determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0023] The response unit is used to respond to the resource call request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
[0024] In a third aspect, a computer-readable storage medium is provided, which stores a computer program code. When the computer program code runs on a computer, the computer executes the method in the first aspect or any possible implementation of the first aspect.
[0025] According to a fourth aspect, an electronic device is provided, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above method.
[0026] In a fifth aspect, a computer program product is provided, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0027] In the embodiments of this specification, the main proposed solutions are: first, a resource call request of the current scene entrance of the resource quota sharing pool is received, and the associated scene entrances other than the current scene entrance are determined from the multiple scene entrances of the resource quota sharing pool. Then, the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance are comprehensively considered to determine the available resource quota of the resource quota sharing pool. Based on the resource quota to be called in the resource call request and the available resource quota of the resource quota sharing pool, a response is made to the resource call request. In this way, the resource quota sharing and allocation of each scene entrance is realized through the resource quota sharing pool, without the need for multiple quota evaluations based on user credit, thereby improving the security of the resource quota sharing pool in processing resource call requests. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a schematic diagram of a request processing scenario provided by an embodiment of this specification;
[0029] Figure 2 This is a schematic diagram of a scenario for processing a request for introducing a resource quota sharing pool provided in an embodiment of this specification;
[0030] Figure 3 This is a schematic diagram of a scenario for request processing for introducing multiple resource quota sharing pools provided in an embodiment of this specification;
[0031] Figure 4 It is a flowchart of a request processing method provided by an embodiment of this specification;
[0032] Figure 5 This is a flow chart of responding to a resource call request provided by an embodiment of this specification;
[0033] Figure 6 This is a flow chart of responding to a resource call request provided by an embodiment of this specification;
[0034] Figure 7 This is a flow chart of responding to a resource call request provided by an embodiment of this specification;
[0035] Figure 8 It is a flowchart of determining the entry points of each scenario of a resource quota sharing pool provided by an embodiment of this specification;
[0036] Fig. 9 This is a flowchart of determining the total resource quota of each scene entrance provided by an embodiment of this specification;
[0037] Fig.10 This is a flowchart of determining the total resource quota of each scene entrance provided by an embodiment of this specification;
[0038] Fig.11 This is a schematic diagram of a credit consumption scenario provided by an embodiment of this specification;
[0039] Fig.12 This is a schematic diagram of a scenario for processing a request for introducing a credit line sharing pool provided in an embodiment of this specification;
[0040] Fig.13 This is a schematic diagram of a scenario for request processing for introducing multiple resource quota sharing pools provided in an embodiment of this specification;
[0041] Fig.14 is a schematic diagram of the structure of a request processing device provided in an embodiment of this specification;
[0042] Fig.15 It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION
[0043] The technical solutions in this specification will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of this specification, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this specification, "multiple" means two or more than two.
[0044] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.
[0045] For some consumer finance products based on user credit assessment, users may initiate resource call requests through various scene entrances in order to call the required resources. In the related technology, the total resource quota of each scene entrance is determined after the quota is assessed based on the user's credit status, and a corresponding total resource quota needs to be set for each scene entrance. With the continuous development and change of transaction needs, new scene entrances are constantly being introduced into consumer finance products. If the related technology is adopted, every time a new scene entrance is added, it is necessary to conduct a quota assessment based on the user's credit data again to determine the total resource quota corresponding to the new scene entrance.
[0046] like Figure 1 As shown, Figure 1It is a scenario diagram of request processing provided by an embodiment of this specification. Among them, the client can be an electronic device such as a smart phone, tablet computer, personal computer, etc. used by the user. There are scene entry 1, scene entry 2, ..., scene entry n, a total of n scene entries, and the scene entry can be defined as an entry that supports users to initiate resource call requests to call corresponding resources. Taking certain consumer financial products as an example, the scene entry can be an offline QR code payment entry, a web page payment entry, an application payment entry, etc. The user can operate the client and initiate a resource call request through these scene entries. The server responds to the resource call request based on the total resource quota corresponding to the scene entry.
[0047] Using relevant technologies, the scene entrance and the total resource quota should have a one-to-one correspondence. Figure 1 In the example, scene entry 1 corresponds to total resource quota 1, scene entry 2 corresponds to total resource quota 2, ..., scene entry n corresponds to total resource quota n. Total resource quota 1, total resource quota 2, ..., total resource quota n all need to be obtained through quota evaluation based on user data.
[0048] As the number of scene entrances increases, the credit limit assessment process may be affected by many uncontrollable factors. For example, data fluctuations may affect the accuracy of the assessment results, and the imperfection of the assessment model itself may also cause the assessment results to deviate from reality. These factors work together to make it difficult for the total resource quota of multiple scene entrances to accurately and truly reflect the user's credit status.
[0049] Therefore, if there are multiple scene entrances, if the resource call request is processed by setting a total resource quota for each scene entrance separately, it will bring uncontrollable risks to the publisher of consumer finance products. These risks may include increased default risk, decreased capital utilization, and increased operating costs.
[0050] In view of the problems existing in the related technologies, the embodiments of this specification propose to realize resource quota sharing and allocation of each scene entrance through a resource quota sharing pool.
[0051] See also Figure 2 , Figure 2 This is a schematic diagram of a scenario for processing a request to introduce a resource quota sharing pool provided by an embodiment of this specification. Among them, scenario entry 1, scenario entry 2, ..., scenario entry n all correspond to a resource quota sharing pool, that is, the scenario entry of the resource quota sharing pool includes the above-mentioned scenario entry 1, scenario entry 2, ..., scenario entry n. Since there is only one resource quota sharing pool, the total resource quota of the resource quota sharing pool can be determined by performing a quota assessment based on user credit data.
[0052] In some possible implementations, the total resource quota of each scene entrance of the resource quota sharing pool can be determined separately below the total resource quota of the resource quota sharing pool. Among them, the total resource quota of the resource quota sharing pool is the basis for determining the total resource quota of scene entrance 1, scene entrance 2, ..., scene entrance n, and the total resource quota of scene entrance 1, scene entrance 2, ..., scene entrance n will not exceed the total resource quota of the resource quota sharing pool; the sum of the total resource quotas of scene entrance 1, scene entrance 2, ..., scene entrance n may exceed the total resource quota of the resource quota sharing pool.
[0053] In some possible implementations, it is not necessary to determine the total resource quota of each scene entry of the resource quota sharing pool separately below the total resource quota of the resource quota sharing pool. The sum of the resource quotas required to be called by scene entry 1, scene entry 2, ..., scene entry n only needs to not exceed the total resource quota of the resource quota sharing pool.
[0054] based on Figure 2 The user can operate the client and initiate a resource call request through any scene entrance among scene entrance 1, scene entrance 2, ..., scene entrance n, and the server responds to the resource call request based on the resource quota sharing pool.
[0055] See also Figure 3 , Figure 3 This is a schematic diagram of a scenario for processing a request to introduce multiple resource quota sharing pools provided by an embodiment of this specification. The number of resource quota sharing pools can be multiple. The scenario entry of resource quota sharing pool 1 includes at least scenario entry 1 and scenario entry 2; the scenario entry of resource quota sharing pool m includes at least scenario entry n-1 and scenario entry n. Based on Figure 3 , the user can operate the client, initiate a resource call request through any scene entry in scene entry 1 or scene entry 2, and the server responds to the resource call request based on resource quota sharing pool 1; initiate a resource call request through any scene entry in scene entry n-1 or scene entry n, and the server responds to the resource call request based on resource quota sharing pool m. For the relationship between scene entry and corresponding resource sharing pool in terms of resource quota, please refer to Figure 2 The introduction of will not be repeated here.
[0056] based on Figure 1 - Figure 3 The following will combine Figure 4 - Fig.10 , the request processing method provided in the embodiments of this specification is introduced in detail.
[0057] See also Figure 4, which is a flowchart of a request processing method provided in the embodiment of this specification. Figure 4 As shown, the method of the embodiment of this specification may include the following steps S102 to S108.
[0058] Specifically, the following are explanations of some terms involved in this embodiment:
[0059] The total resource quota of the resource quota sharing pool: refers to the total resource quota limit set for users in consumer finance products, which is determined after a one-time quota assessment based on the user's credit status. The total resource quota of the resource quota sharing pool is the upper limit of the resource quota shared by all the scene entrances associated with it, which is used to control and allocate the resource usage of each scene entrance.
[0060] Scenario entry of resource quota sharing pool: refers to the various scenario entry that are included in the same resource quota sharing pool, such as offline QR code payment entry, web payment entry, application payment entry, etc. These scenario entry share a resource quota sharing pool, and their resource calls are limited by the total resource quota of the resource quota sharing pool.
[0061] Current scene entry: refers to the scene entry where the user is currently using or initiating a resource call request, which is used to trigger the resource call request and obtain the required resources.
[0062] Resource call request at the current scene entrance: refers to the resource call request initiated by the user through the current scene entrance. The resource call request contains the amount of resources the user wants to call and related information.
[0063] Associated scene entry: If the current scene entry is one of multiple scene entries in the resource quota sharing pool, then the associated scene entry refers to other scene entries in all scene entries in the resource quota sharing pool except the current scene entry.
[0064] The amount of resources to be called in a resource call request refers to the amount of resources that the user hopes to call in the resource call request initiated through the current scene entrance.
[0065] The used resource quota of the current scene entrance: refers to the quota of resources that have been called by the current scene entrance, reflecting the resource calling status of the current scene entrance.
[0066] The used resource quota of the associated scene entrance refers to the quota of resources that have been called by the associated scene entrance, reflecting the resource calling status of the associated scene entrance.
[0067] The available resource quota of the resource quota sharing pool refers to the amount of resources in the resource quota sharing pool that can be used by each scene entrance. Specifically, the available resource quota of the resource quota sharing pool is calculated by subtracting the used resource quota of all the scene entrances associated with it from the total resource quota of the resource quota sharing pool.
[0068] S102, receiving a resource call request of a current scene entry of a resource quota sharing pool, and determining an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool.
[0069] Specifically, the user operates the client and initiates a resource call request for the current scene entry through the current scene entry, and the resource call request is transmitted from the client to the server. When the server receives the resource call request, it first determines whether the current scene entry corresponding to the resource call request is one of the multiple scene entries of the pre-configured resource quota sharing pool.
[0070] In one possible case, the current scene entrance is not one of the multiple scene entrances of the pre-configured resource quota sharing pool. Referring to the explanation of the above-mentioned related technology, there should be a total resource quota corresponding to the current scene entrance at this time. Furthermore, the total resource quota and the used resource quota of the current scene entrance can be obtained, and the total resource quota of the current scene entrance minus the used resource quota of the current scene entrance can be used to obtain the available resource quota of the current scene entrance. Then, the resource quota to be called of the resource call request is compared with the available resource quota of the current scene entrance. If the resource quota to be called of the resource call request is greater than the available resource quota of the current scene entrance, the resource call request can be rejected; if the resource quota to be called of the resource call request is less than or equal to the available resource quota of the current scene entrance, the resources corresponding to the resource quota to be called can be called according to the resource call request, and the used resource quota of the current scene entrance can be updated according to the resource quota to be called.
[0071] In one possible case, the current scene entry is one of multiple scene entries of a pre-configured resource quota sharing pool. In this case, it is necessary to determine other scene entries other than the current scene entry as associated scene entries among all scene entries in the resource quota sharing pool. It is understandable that the number of associated scene entries is one or more.
[0072] It should be noted that if the total resource quota of each scene entrance of the resource quota sharing pool is determined separately below the total resource quota of the resource quota sharing pool, then the total resource quota of each scene entrance of the resource quota sharing pool is all below the total resource quota of the resource quota sharing pool. In other words, the total resource quota of the current scene entrance is below the total resource quota of the resource quota sharing pool, and the total resource quota of any associated scene entrance is also below the total resource quota of the resource quota sharing pool. However, the sum of the total resource quotas of each scene entrance of the resource quota sharing pool is not limited, and the sum of the total resource quotas of each scene entrance of the resource quota sharing pool may be greater than, less than, or equal to the total resource quota of the resource quota sharing pool.
[0073] S104, obtaining the resource quota to be called of the resource call request, obtaining the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry.
[0074] Specifically, the resource call request includes the amount of resources to be called in the form of data, and the amount of resources to be called indicates the amount of resources that the user wants to call. Therefore, the amount of resources to be called can be extracted from the resource call request.
[0075] Furthermore, in order to determine whether to allow the resource corresponding to the resource quota to be called, it is necessary to obtain other quotas for authentication, including the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance.
[0076] S106, determining the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry.
[0077] Specifically, in a possible implementation, the available resource quota of the resource quota sharing pool can be obtained through mathematical calculations based on the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrances. Specifically, the total resource quota of the resource quota sharing pool is subtracted from the sum of the used resource quota of the current scene entrance and the used resource quota of all associated scene entrances to obtain the available resource quota of the resource quota sharing pool. The available resource quota of the resource quota sharing pool can reflect how much resource quota is left in the resource quota sharing pool for use by each scene entrance at the current moment.
[0078] In practical applications, in order to better meet user needs and improve resource flexibility, some adjustments can be made based on direct calculation.
[0079] In a possible implementation, the reference quota for a single resource call of each scene entrance of the resource quota sharing pool can be determined based on big data. Among them, for a certain scene entrance, the reference quota for a single resource call of the scene entrance represents the quota for a single resource call made by an ordinary user at the scene entrance. For example, for an offline QR code payment entrance, the reference quota for a single resource call of the offline QR code payment entrance represents the quota for a single resource call made by an ordinary user at the offline QR code payment entrance, and the quota may correspond to the price of an ordinary daily consumer product.
[0080] The available resource quota of the resource quota sharing pool can be obtained by subtracting the sum of the used resource quota of the current scene entrance and the used resource quota of all associated scene entrances from the total resource quota of the resource quota sharing pool. Then, the available resource quota of the resource quota sharing pool is compared with the single resource call reference quota of the current scene entrance. If the available resource quota of the resource quota sharing pool is greater than or equal to the single resource call reference quota of the current scene entrance, it indicates that the available resource quota of the resource quota sharing pool may be sufficient, and the available resource quota of the resource quota sharing pool will not be adjusted; if the available resource quota of the resource quota sharing pool is less than the single resource call reference quota of the current scene entrance, it indicates that the available resource quota of the resource quota sharing pool may be insufficient, and the available resource quota of the resource quota sharing pool can be adjusted according to the single resource call reference quota of the current scene entrance so that the available resource quota of the resource quota sharing pool is equal to the single resource call reference quota of the current scene entrance. It is understandable that in order to adjust the available resource quota of the resource quota sharing pool under controllable risk conditions, multiple scenario entrances of the resource quota sharing pool can be screened, and some scenario entrances whose single resource call reference quota is lower than a preset threshold can be selected to apply the mechanism for adjusting the available resource quota of the resource quota sharing pool.
[0081] In this implementation, by determining the single resource call reference quota for each scene entrance based on big data, the actual resource needs of users at different scene entrances can be more accurately reflected. When the available resource quota of the resource quota sharing pool is less than the single resource call reference quota for the current scene entrance, the available resource quota of the resource quota sharing pool is adjusted accordingly to ensure that users get sufficient resource support at certain scene entrances, thereby improving user experience and satisfaction.
[0082] S108: respond to the resource call request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
[0083] Specifically, in a possible implementation, the resource quota to be called and the available resource quota in the resource quota sharing pool are used as the basis for responding to the resource calling request.
[0084] If the resource quota to be called is greater than the available resource quota in the resource quota sharing pool, it means that the resource that needs to be called by the resource call request exceeds the allowed range. In order to prevent excessive resource calls, the server will reject the resource call request.
[0085] If the resource quota to be called is less than or equal to the available resource quota in the resource quota sharing pool, it means that the resource to be called by the resource call request does not exceed the allowed range. The server will accept the resource call request, call the corresponding resource according to the resource call request, and update the relevant resource quota.
[0086] In a possible implementation, the resource quota to be called, the available resource quota of the current scene entrance, and the available resource quota of the resource quota sharing pool are used as the basis for responding to the resource call request.
[0087] If the resource quota to be called is greater than the available resource quota in the resource quota sharing pool or the available resource quota at the current scene entrance, it means that the resource that needs to be called by the resource call request exceeds the allowed range. In order to prevent excessive resource calls, the server will reject the resource call request.
[0088] If the resource quota to be called is less than or equal to the available resource quota in the resource quota sharing pool, and less than or equal to the available resource quota at the current scene entrance, then the resource to be called by the resource call request does not exceed the allowed range. The server will accept the resource call request, call the corresponding resource according to the resource call request, and update the relevant resource quota.
[0089] In this embodiment, a resource call request of the current scene entry of the resource quota sharing pool is first received, and the associated scene entry other than the current scene entry is determined from the multiple scene entries of the resource quota sharing pool. Then, the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry are comprehensively considered to determine the available resource quota of the resource quota sharing pool. Based on the resource quota to be called in the resource call request and the available resource quota of the resource quota sharing pool, a response is made to the resource call request. In this way, the resource quota sharing and allocation of each scene entry is realized through the resource quota sharing pool, without the need for multiple quota evaluations based on user credit, thereby improving the security of the resource quota sharing pool in processing resource call requests.
[0090] In one embodiment, Figure 2 In the illustrated embodiment, step S106 is further refined and may include the following steps:
[0091] The total resource quota of the resource quota sharing pool is subtracted from the sum of the used resource quota of the current scene entrance and the used resource quota of the associated scene entrance to obtain the available resource quota of the resource quota sharing pool.
[0092] Specifically, in order to obtain the available resource quota of the resource quota sharing pool, the total resource quota of the resource quota sharing pool can be subtracted from the sum of the used resource quota of the current scene entrance and the used resource quota of the associated scene entrance, ensuring that the available resource quota of the resource quota sharing pool can reflect the current resource usage in real time and provide an accurate basis for subsequent resource call requests.
[0093] For example, assuming that the total resource quota of the resource quota sharing pool is T, the used resource quota of the current scene entry is A, and the sum of the used resource quotas of the associated scene entries is B. Then, according to the calculation formula of step S302, the available resource quota C of the resource quota sharing pool can be expressed as:
[0094] C=T-(A+B)
[0095] If T = 1000 units (total resource quota), A = 200 units (resource quota used by the current scene entry), B = 300 units (the sum of resource quotas used by the associated scene entries), then according to the calculation in step S302, the available resource quota in the resource quota sharing pool is C = 1000-(200+300) = 500 units. That is to say, at the current moment, there are still 500 units of available resource quota in the resource quota sharing pool that can be used conditionally by each scene entry.
[0096] In this embodiment, by calculating the difference between the total resource quota of the resource quota sharing pool and the used resource quota of the current and associated scene entrances, the real-time available resource situation of the resource quota sharing pool is dynamically reflected, effectively ensuring the accuracy and timeliness of resource data.
[0097] See also Figure 5 , provides a flow chart of responding to a resource call request in an embodiment of this specification. Among them, the total resource quota of each scene entrance of the resource quota sharing pool is less than the total resource quota of the resource quota sharing pool. Figure 5 As shown, the method of the embodiment of this specification may include the following steps S202 to S206, and steps S202 to S206 may be used as Figure 4 The refinement of step S108 in the illustrated embodiment.
[0098] S202, obtaining the total resource quota of the current scene entrance;
[0099] S204, determining the available resource quota of the current scene entrance according to the total resource quota and the used resource quota of the current scene entrance;
[0100] S206: respond to the resource call request based on the resource quota to be called, the available resource quota in the resource quota sharing pool, and the available resource quota at the current scene entrance.
[0101] Specifically, first, the total resource quota of the current scene entrance is obtained, wherein the total resource quota of the current scene entrance is predetermined and is less than or equal to the total resource quota of the resource quota sharing pool.
[0102] The available resource quota of the current scene entrance can be obtained through mathematical calculation based on the total resource quota and the used resource quota of the current scene entrance. Specifically, the available resource quota of the current scene entrance can be obtained by subtracting the used resource quota of the current scene entrance from the total resource quota of the current scene entrance. The available resource quota of the current scene entrance can reflect how much resource quota is available for use at the current moment.
[0103] Furthermore, based on the resource quota to be called, the available resource quota in the resource quota sharing pool, and the available resource quota at the current scene entrance, a response is made to the resource call request.
[0104] In one possible implementation, if the amount of resources to be called is greater than the amount of available resources in the resource quota sharing pool or the amount of available resources at the current scene entrance, it means that the resources that need to be called by the resource call request exceed the permitted range. In order to prevent excessive resource calls, the server will reject the resource call request; if the amount of resources to be called is less than or equal to the amount of available resources in the resource quota sharing pool, and less than or equal to the amount of available resources at the current scene entrance, it means that the resources that need to be called by the resource call request do not exceed the permitted range. The server will accept the resource call request, call the corresponding resources according to the resource call request, and update the relevant resource quotas.
[0105] In one possible implementation, if the amount of resources to be called is greater than the amount of available resources in the resource quota sharing pool, it means that the resources that need to be called by the resource call request exceed the allowed range. In order to prevent excessive resource calls, the server will reject the resource call request; if the amount of resources to be called is greater than the amount of available resources at the current scene entrance, and is less than or equal to the amount of available resources in the resource quota sharing pool, the server can choose to reject the resource call request, or accept the resource call request, call the corresponding resources according to the resource call request, and update the relevant resource quotas; if the amount of resources to be called is less than or equal to the amount of available resources in the resource quota sharing pool, and is less than or equal to the amount of available resources at the current scene entrance, it means that the resources that need to be called by the resource call request do not exceed the allowed range. The server will accept the resource call request, call the corresponding resources according to the resource call request, and update the relevant resource quotas.
[0106] Specifically, when the resource quota to be called is greater than the available resource quota of the current scene entrance, and less than or equal to the available resource quota of the resource quota sharing pool, the server can obtain the priority of the current scene entrance. Among them, the priority of each scene entrance of the resource quota sharing pool is predetermined, and the priority of different scene entrances may be different. If the priority of the current scene entrance is lower than the preset reference priority, the server can choose to reject the resource call request; if the priority of the current scene entrance is higher than or equal to the preset reference priority, the server can accept the resource call request, call the corresponding resources according to the resource call request, and update the relevant resource quotas.
[0107] In this embodiment, the total resource quota of the current scene entrance is first obtained, and the available resource quota of the current scene entrance is determined based on the total resource quota and the used resource quota of the current scene entrance. Further, based on the resource quota to be called, the available resource quota of the resource quota sharing pool, and the available resource quota of the current scene entrance, a response is made to the resource call request. In this way, the server responds to the resource call request under the constraints of the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance, thereby improving the security of processing the resource call request.
[0108] See also Figure 6 , provides a flow chart of responding to a resource call request in the embodiment of this specification. Figure 6 As shown, the method of the embodiment of this specification may include the following steps S302 to S306, and steps S302 to S306 may be used as Figure 5 The refinement of step S206 in the illustrated embodiment.
[0109] S302, comparing the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance to obtain a comparison result;
[0110] S304: If the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance, the resource call request is rejected;
[0111] S306, if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and less than or equal to the available resource quota of the current scene entrance, then the resources corresponding to the resource quota to be called are called according to the resource call request, and the used resource quota of the current scene entrance is updated according to the resource quota to be called.
[0112] Specifically, on one hand, the resource quota to be called is compared with the available resource quota of the resource quota sharing pool; on the other hand, the resource quota to be called is compared with the available resource quota of the current scene entrance. After the above comparison, a comparison result can be obtained.
[0113] In one possible case, the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance.
[0114] In one possible case, the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and is less than or equal to the available resource quota of the current scene entrance.
[0115] Specifically, if the comparison result indicates that the resource quota to be called is greater than the available resource quota in the resource quota sharing pool or the available resource quota at the current scene entrance, the server will reject the resource call request. The server may also return a rejection request message to the client based on this, and the rejection request message is used to indicate that the resource call request is rejected, so that the user can receive relevant feedback in a timely manner.
[0116] If the comparison result indicates that the amount of resources to be called is less than or equal to the available amount of resources in the resource quota sharing pool, and at the same time less than or equal to the available amount of resources at the current scene entrance, the server will call the resources corresponding to the amount of resources to be called according to the resource call request. And, after calling the resources corresponding to the amount of resources to be called, the used amount of resources at the current scene entrance is updated according to the amount of resources to be called. Specifically, the amount of resources to be called is added to the used amount of resources at the current scene entrance to obtain the updated used amount of resources at the current scene entrance.
[0117] For example, suppose the available resource quota of the resource quota sharing pool is 300 units, the available resource quota of the current scene entrance is 200 units, and the resource quota to be called in the resource call request is 350 units. In this case, the resource quota to be called of 350 units is greater than both the available resource quota of 300 units in the resource quota sharing pool and the available resource quota of 200 units in the current scene entrance, so the server will reject the resource call request.
[0118] Assume that the available resource quota of the resource quota sharing pool is 300 units, the available resource quota of the current scene entrance is 200 units, and the pending resource quota of the resource call request is 250 units. In this case, the pending resource quota of 350 units is less than the available resource quota of 300 units in the resource quota sharing pool, but greater than the available resource quota of 200 units at the current scene entrance, so the server will also reject the resource call request.
[0119] Assume that the available resource quota of the resource quota sharing pool is 300 units, the used resource quota of the current scene entrance is 300 units, the available resource quota of the current scene entrance is 200 units, and the pending resource quota of the resource call request is 150 units. In this case, since the pending resource quota of 150 units is less than both the available resource quota of 300 units in the resource quota sharing pool and the available resource quota of 200 units at the current scene entrance, the server will call 150 units of resources according to the resource call request and update the used resource quota of the current scene entrance to 450 units (300 units plus 150 units).
[0120] In this embodiment, firstly, by comparing the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance, the situation of over-calling of resources is effectively avoided, ensuring the reasonable allocation and utilization of resources. Secondly, when the available resource quota is sufficient, it can quickly respond to the resource call request and make resource calls according to the resource call request. At the same time, the used resource quota of the current scene entrance is updated in real time to ensure the accuracy of the resource status information, providing a reliable basis for subsequent resource scheduling and management.
[0121] See also Figure 7 , provides a flow chart of responding to a resource call request in the embodiment of this specification. Figure 7 As shown, the method of the embodiment of this specification may include the following steps S402 to S406, and steps S402 to S406 may be used as Figure 4 The refinement of step S108 in the illustrated embodiment.
[0122] S402, comparing the resource quota to be called with the available resource quota in the resource quota sharing pool to obtain a comparison result;
[0123] S404, if the comparison result indicates that the resource quota to be called is greater than the available resource quota in the resource quota sharing pool, reject the resource call request;
[0124] S406, if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, the resource corresponding to the resource quota to be called is called according to the resource call request, and the used resource quota of the current scene entrance is updated according to the resource quota to be called.
[0125] Specifically, the resource quota to be called is compared with the available resource quota in the resource quota sharing pool to obtain a comparison result.
[0126] In one possible case, the comparison result indicates that the resource quota to be called is greater than the available resource quota in the resource quota sharing pool.
[0127] In a possible case, the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool.
[0128] Specifically, if the comparison result indicates that the resource quota to be called is greater than the available resource quota in the resource quota sharing pool, the server will reject the resource call request. The server may also return a rejection request message to the client based on this, and the rejection request message is used to indicate that the resource call request is rejected, so that the user can receive relevant feedback in a timely manner.
[0129] If the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, the server will call the resource corresponding to the resource quota to be called according to the resource call request. And, after calling the resource corresponding to the resource quota to be called, the used resource quota of the current scene entrance is updated according to the resource quota to be called. Specifically, the resource quota to be called is added to the used resource quota of the current scene entrance to obtain the updated used resource quota of the current scene entrance.
[0130] For example, suppose the available resource quota of the resource quota sharing pool is 300 units, and the resource quota to be called in the resource call request is 350 units. In this case, the resource quota to be called 350 units is greater than the available resource quota of 300 units in the resource quota sharing pool, so the server will reject the resource call request.
[0131] Assume that the available resource quota of the resource quota sharing pool is 300 units, the used resource quota of the current scene entrance is 300 units, and the resource quota to be called in the resource call request is 150 units. In this case, since the resource quota to be called 150 units is less than the available resource quota of 300 units in the resource quota sharing pool, the server will call 150 units of resources according to the resource call request and update the used resource quota of the current scene entrance to 450 units (300 units plus 150 units).
[0132] In this embodiment, by first comparing the resource quota to be called with the available resource quota of the resource quota sharing pool, the situation of over-calling of resources is effectively avoided, ensuring the reasonable allocation and utilization of resources. Secondly, when the available resource quota is sufficient, it can quickly respond to the resource call request and call the resource according to the resource call request. At the same time, the used resource quota of the current scene entrance is updated in real time to ensure the accuracy of the resource status information, providing a reliable basis for subsequent resource scheduling and management.
[0133] See also Figure 8 , provides a flow chart of determining the entry points of each scenario of the resource quota sharing pool for the embodiment of this specification. Figure 8 As shown, the method of the embodiment of this specification may include the following steps S502-S506, and steps S502-S506 may be Figure 4 In the illustrated embodiment, it is performed before step S102.
[0134] S502, determining a first type of newly added scene entry, and obtaining a total resource quota of an initial scene entry, wherein the total resource quota of the initial scene entry is obtained by pre-evaluating the quota based on user credit data;
[0135] S504, creating a resource quota sharing pool, and determining the total resource quota of the resource quota sharing pool according to the total resource quota of the initial scenario entrance;
[0136] S506: Determine the initial scenario entry and the first type of newly added scenario entry as scenario entries of the resource quota sharing pool respectively.
[0137] Specifically, the following are explanations of some terms involved in this embodiment:
[0138] Initial scenario entry: The initial scenario entry refers to a scenario entry pre-configured in a consumer finance product. The total resource limit of the initial scenario entry is determined based on a limit assessment based on the user's credit data, and represents the upper limit of resources that the user can call upon in the initial scenario entry.
[0139] The first type of newly added scenario entrances: refers to the scenario entrances that are added or newly developed in consumer finance products, in addition to the initial scenario entrances, and can be included in the same resource quota sharing pool. The first type of newly added scenario entrances and the initial scenario entrances use the resources in the resource quota sharing pool together, and are subject to the restrictions and allocation of the total resource quota of the resource quota sharing pool.
[0140] Since the total resource amount of the initial scene entrance is obtained by pre-evaluating the amount based on the user's credit data, when the first type of newly added scene entrance is determined, the total resource amount of the initial scene entrance can be directly obtained.
[0141] Then, a resource quota sharing pool is created, and the total resource quota of the resource quota sharing pool is determined according to the total resource quota of the initial scene entrance. In one case, the total resource quota of the initial scene entrance can be directly assigned to the total resource quota of the resource quota sharing pool, that is, the total resource quota of the initial scene entrance is equal to the total resource quota of the resource quota sharing pool; in one case, a certain amount can be added or subtracted on the basis of the total resource quota of the initial scene entrance to obtain the adjusted total resource quota of the initial scene entrance, and then the adjusted total resource quota of the initial scene entrance is assigned to the total resource quota of the resource quota sharing pool.
[0142] Furthermore, the initial scenario entry and the first type of newly added scenario entry are respectively determined as scenario entries of the resource quota sharing pool, ensuring that the above-mentioned related scenario entries are all included in the management scope of the resource quota sharing pool, thereby realizing unified management and allocation of resources. It is understandable that the association between the resource quota sharing pool and the scenario entry of the resource quota sharing pool can be recorded in a relevant configuration file or data table.
[0143] In this embodiment, the total resource quota of the initial scenario entrance is first evaluated based on the user credit data, and then the total resource quota of the resource quota sharing pool is created and determined based on the total resource quota of the initial scenario entrance. The initial scenario entrance and the newly added scenario entrance are included in the management scope of the resource quota sharing pool, thereby improving the coordination of resource use. Based on this embodiment, not only the management structure of the resource quota sharing pool is optimized, but also the convenience and efficiency of resource management are improved, providing strong support for the continuous iteration and upgrading of consumer financial products.
[0144] See also Fig. 9 , provides a flow chart of determining the total resource quota of each scene entrance for the embodiment of this specification. Fig. 9 As shown, the method of the embodiment of this specification may include the following steps S602. Step S602 may be Figure 8 After step S506 in the illustrated embodiment, Figure 4In the illustrated embodiment, it is performed before step S102.
[0145] S602: Below the total resource quota of the resource quota sharing pool, respectively determine the total resource quota of each scene entrance of the resource quota sharing pool.
[0146] Specifically, below the total resource quota of the resource quota sharing pool, the total resource quota of each scene entrance of the resource quota sharing pool is determined respectively. That is, the total resource quota of each scene entrance of the resource quota sharing pool will not exceed the total resource quota of the resource quota sharing pool individually, but the sum of the total resource quota of each scene entrance of the resource quota sharing pool may exceed the total resource quota of the resource quota sharing pool.
[0147] For example, assume that the scene entry of the resource quota sharing pool includes scene entry 1, scene entry 2, ..., scene entry n, with a total of n scene entries. Among them, the total resource quota of the resource quota sharing pool is Y, the total resource quota of scene entry 1 is X1, the total resource quota of scene entry 2 is X2, ..., and the total resource quota of scene entry n is Xn. It can be seen that the allocation of resource quotas must satisfy the following formula:
[0148] X1≤Y,X2≤Y,...,Xn≤Y
[0149] In addition, the sum of the total resource quotas of each scene entrance of the resource quota sharing pool may exceed the total resource quota of the resource quota sharing pool, that is:
[0150] X1+X2+...+Xn>Y
[0151] In addition, the sum of the total resource quotas of each scene entrance of the resource quota sharing pool may not exceed the total resource quota of the resource quota sharing pool, that is:
[0152] X1+X2+...+Xn≤Y
[0153] In this embodiment, the total resource quota of each scene entrance is determined under the total resource quota of the resource quota sharing pool, which not only ensures the upper limit control of resource use, but also realizes the dynamic balance of resource quota. The management structure of the resource quota sharing pool is effectively optimized, and the convenience and efficiency of resource management are improved.
[0154] Based on the above embodiments, in one embodiment, Figure 8 After step S506 in the illustrated embodiment, Fig. 9 In the illustrated embodiment, before step S602, the following steps may also be included:
[0155] Determine the second type of newly added scenario entrance, and determine the second type of newly added scenario entrance as the scenario entrance of the resource quota sharing pool.
[0156] Specifically, the second type of newly added scenario entry involved in this embodiment refers to the scenario entry that is subsequently added or newly developed in addition to the initial scenario entry and the first type of newly added scenario entry in consumer finance products and can be included in the same resource quota sharing pool. The second type of newly added scenario entry uses resources in the resource quota sharing pool together with the initial scenario entry and the first type of newly added scenario entry, and is subject to the restrictions and allocation of the total resource quota of the resource quota sharing pool.
[0157] After the resource quota sharing pool is created and the initial scenario entrance and the first type of newly added scenario entrance are respectively determined as the scenario entrances of the resource quota sharing pool, if the second type of newly added scenario entrance is also determined, the second type of newly added scenario entrance can be determined as the scenario entrance of the resource quota sharing pool, ensuring that the second type of newly added scenario entrance is included in the management scope of the resource quota sharing pool, thereby realizing unified management and allocation of resources.
[0158] It is understandable that if there are other scenario entrances that are subsequently added or newly developed, they can be added to the management scope of the resource quota sharing pool in a similar manner to the second type of new scenario entrance, as one of the scenario entrances of the resource quota sharing pool, without the need to create a resource quota sharing pool or conduct an assessment based on user credit data.
[0159] It should be noted that the initial scene entry, the first type of newly added scene entry, the second type of newly added scene entry, the current scene entry, and the associated scene entry involved in the above embodiments are essentially scene entries of the resource quota sharing pool. The initial scene entry, the first type of newly added scene entry, and the second type of newly added scene entry are named in the stage of creating the resource quota sharing pool, and the current scene entry and the associated scene entry are named in the stage of applying the resource quota sharing pool. The initial scene entry may be the current scene entry or the associated scene entry, the first type of newly added scene entry may also be the current scene entry or the associated scene entry, and the second type of newly added scene entry may also be the current scene entry or the associated scene entry, and there is no limitation on this.
[0160] In this embodiment, the second type of newly added scene entry is included in the resource quota sharing pool, which realizes the rapid integration of the subsequent added or newly developed scene entry, without the need to repeatedly create a resource quota sharing pool or conduct quota evaluation, which simplifies the management process and improves the scalability and adaptability of the resource quota sharing pool. Based on this embodiment, not only the management structure of the resource quota sharing pool is optimized, but also the convenience and efficiency of resource management are improved, providing strong support for the continuous iteration and upgrading of consumer financial products.
[0161] See also Fig.10 , provides a flow chart of determining the total resource quota of each scene entrance for the embodiment of this specification. Fig.10As shown, the method of the embodiment of this specification may include the following steps S702 to S704, and steps S702 to S704 may be used as Fig. 9 The refinement of step S602 in the illustrated embodiment.
[0162] S702, below the total resource quota of the resource quota sharing pool, respectively determine the quota of each scene entry of the resource quota sharing pool;
[0163] S704: According to the quota of each scene entry of the resource quota sharing pool, respectively determine the total resource quota of each scene entry of the resource quota sharing pool.
[0164] Specifically, after the total resource quota in the resource quota sharing pool is clarified, a quota needs to be determined for each scene entry. The quota represents the proportion or fixed value that the scene entry can occupy in the resource quota sharing pool. The quota is usually set based on multiple factors, such as the transaction importance of the scene entry, the historical resource usage of the user at the scene entry, and the risk control strategy.
[0165] Next, according to the quota of each scene entrance of the resource quota sharing pool, the total resource quota of each scene entrance of the resource quota sharing pool is determined respectively. This process is the concretization of quota allocation, and the quota is converted into the actual total resource quota through mathematical calculation. It should be noted that although the total resource quota of each scene entrance is determined below the total resource quota of the resource quota sharing pool, the sum of the total resource quotas of all scene entrances is not necessarily equal to the total resource quota of the resource quota sharing pool. This is because the allocation of quotas may be based on different transaction logics and risk control strategies, resulting in some resource quotas not being allocated or existing as reserved quotas.
[0166] In this embodiment, firstly, by setting the quota of each scene entrance, the accurate division of the resources in the resource quota sharing pool is achieved, ensuring that the resource allocation matches the transaction requirements and risk control strategy. Secondly, the quota is converted into the actual total resource quota, making the resource allocation more operational and practical, and facilitating the system to manage and schedule resources. In addition, the process design allows a difference between the total resource quota of the resource quota sharing pool and the total resource quota of all scene entrances, providing space for reserved quotas and future expansion, and enhancing the scalability and flexibility of the resource quota sharing pool. Based on the scheme of this embodiment, not only the resource allocation strategy is optimized, but also the accuracy and flexibility of resource management are improved, providing strong support for the stable operation and sustainable development of consumer financial products.
[0167] In one embodiment, Fig.10 In the illustrated embodiment, step S702 is further refined and may include the following steps:
[0168] Obtain resource call history data for each scene entrance of the resource quota sharing pool;
[0169] Below the total resource quota of the resource quota sharing pool, the quota of each scene entrance of the resource quota sharing pool is determined according to the resource call history data of each scene entrance of the resource quota sharing pool.
[0170] Specifically, the resource call history data of each scenario entrance of the resource quota sharing pool involved in this embodiment refers to the detailed data of resource call requests and allocation conditions of each scenario entrance of the resource quota sharing pool in the past period of time, including but not limited to the resource call requests initiated by the user at each scenario entrance, the number of resource call requests, the resource quota to be called, the resource type, the resource call request timestamp, the response status (such as whether the resource is successfully called), etc. These resource call history data are collected and stored through a log system, a database or a special system to reflect the actual demand pattern, usage efficiency and potential risk points of each scenario entrance for resources.
[0171] In order to determine the quota of each scene entrance of the resource quota sharing pool, the resource call history data of each scene entrance of the resource quota sharing pool can be obtained first. Then, according to the resource call history data of each scene entrance of the resource quota sharing pool, the quota of each scene entrance is determined separately below the total resource quota of the resource quota sharing pool. In a possible implementation method, the average usage or peak usage of each scene entrance of the resource quota sharing pool can be calculated according to the resource call history data of each scene entrance of the resource quota sharing pool, and the quota of each scene entrance of the resource quota sharing pool can be determined according to the average usage or peak usage of each scene entrance of the resource quota sharing pool. Among them, the average usage or peak usage of each scene entrance of the resource quota sharing pool is positively correlated with the quota of each scene entrance of the resource quota sharing pool.
[0172] The following numerical example is used to illustrate this process: Assume that the total resource quota of the resource quota sharing pool is 1000 units, and scenario entrance A, scenario entrance B, and scenario entrance C are all scenario entrances of the resource quota sharing pool. According to the resource call history data of each scenario entrance of the resource quota sharing pool, it can be calculated that the average resource usage of scenario entrance A in the past month is 300 units, scenario entrance B is 200 units, and scenario entrance C is 100 units. At the same time, considering the importance of the transaction and the risk control strategy, it is decided to allocate 40% of the quota to scenario entrance A, 300 units of quota to scenario entrance B, and 20% of quota to scenario entrance C (the remaining 10%, that is, 100 units, is reserved). Therefore, the quota of scenario entrance A is 40%, the quota of scenario entrance B is 300 units, and the quota of scenario entrance C is 20%. It can be understood that the quotas of the above-mentioned scenario entrances A and C are 100% quotas, and the quota of scenario entrance B is a fixed value quota.
[0173] In this embodiment, firstly, by collecting and analyzing the historical data of resource calls at the entrances of each scenario, the actual situation and demand patterns of resource use are accurately grasped, providing a basis for quota allocation. Secondly, in combination with the importance of the transaction and the risk control strategy, the quota of each scenario entrance is reasonably set to ensure the accurate matching of resource allocation and transaction demand, and improve the efficiency and benefits of resource use. In addition, the process design allows flexible adjustment of the quota allocation method, such as using percentage quotas or fixed value quotas, to meet the specific needs of different scenario entrances, thereby enhancing the flexibility and adaptability of resource management. Based on the scheme of this embodiment, the quota is determined according to the historical data of resource calls, which not only improves the accuracy and effectiveness of resource allocation, but also provides a strong guarantee for the stable operation and sustainable development of consumer finance products.
[0174] In one embodiment, the quota includes a fixed value quota and a percentage quota. Fig.10 In the illustrated embodiment, step S704 is further refined and may include the following steps:
[0175] If there is a first-category scene entry whose quota is a fixed-value quota in each scene entry of the resource quota sharing pool, the fixed-value quota of the first-category scene entry of the resource quota sharing pool is determined as the total resource quota of the first-category scene entry of the resource quota sharing pool;
[0176] If there is a second-type scenario entry with a percentage quota in each scenario entry of the resource quota sharing pool, the total resource quota of the second-type scenario entry of the resource quota sharing pool is determined as the product of the percentage quota of the second-type scenario entry of the resource quota sharing pool and the total resource quota of the resource quota sharing pool.
[0177] Specifically, the following are some explanations of terms involved in this embodiment:
[0178] Fixed value quota: refers to a fixed quota allocated to a specific scene entry in the resource quota sharing pool, which does not change with the total resource quota of the resource quota sharing pool. This type of quota is suitable for scene entries with relatively stable resource requirements and is not affected by the resource usage of other scene entries.
[0179] Percentage quota: refers to the quota allocated in the resource quota sharing pool according to the proportion of the scenario entry in the total resource quota of the resource quota sharing pool. This type of quota is more flexible and can be automatically adjusted as the total resource quota of the resource quota sharing pool is adjusted. Percentage quota is suitable for scenario entry whose resource demand varies greatly with transactions. By setting a percentage quota, it can be ensured that the resource share of the scenario entry in the resource quota sharing pool maintains a certain proportional relationship with the total resource quota of the resource quota sharing pool.
[0180] The first type of scene entry: refers to the scene entry with a fixed quota in the resource quota sharing pool. The resource demand of the first type of scene entry is relatively stable, so a fixed quota is used to allocate resource quotas.
[0181] The second type of scenario entrance: refers to the scenario entrance with a percentage quota in the resource quota sharing pool. The resource demand of the second type of scenario entrance varies greatly with the transaction, so the percentage quota is used to allocate resources to ensure that its resource share in the resource quota sharing pool maintains a certain proportional relationship with the total resource quota of the resource quota sharing pool, so as to adapt to the changes in transactions. At the same time, when the total resource quota of the resource quota sharing pool is adjusted, the total resource quota of the second type of scenario entrance will also be adjusted accordingly to maintain the stability of its resource share.
[0182] First, identify whether there is a first-category scene entry with a fixed quota in the resource quota sharing pool. If so, directly determine the fixed quota of the first-category scene entry as the total resource quota of the first-category scene entry. Identify whether there is a second-category scene entry with a 100% quota in the resource quota sharing pool. If so, multiply the percentage quota of the second-category scene entry by the total resource quota of the resource quota sharing pool, and determine the product as the total resource quota of the second-category scene entry.
[0183] In order to understand this process more intuitively, a numerical example is provided below: Assume that the total resource quota of the resource quota sharing pool is R units, and scene entry D and scene entry E are scene entries of the resource quota sharing pool. Among them, the quota of scene entry D is a fixed value quota of F units; the quota of scene entry E is a percentage quota of P%. According to steps S802 and S804, it can be determined that the total resource quota of scene entry D is F units (because its quota is a fixed value quota), and the total resource quota of scene entry E is R*P% units (because its quota is a percentage quota, it needs to be multiplied by the total resource quota of the resource quota sharing pool). In this way, the total resource quota of each scene entry in the resource quota sharing pool is determined based on multi-form quotas.
[0184] In this embodiment, for the first type of scene entry with fixed value quota, its quota is directly determined as the total resource quota, which simplifies the allocation process and ensures the stability of resource demand; for the second type of scene entry with percentage quota, the total resource quota of the second type of scene entry is determined by calculating the product of the percentage quota of the second type of scene entry and the total resource quota of the resource quota sharing pool, which realizes the dynamic allocation of resources and adapts to the needs of transaction changes. This process design fully considers the resource demand characteristics of different scene entrances, combines the advantages of fixed value quota and percentage quota, and makes resource allocation more reasonable and efficient.
[0185] See above Figure 4 - Fig.10 The method of the embodiment shown in the figure will be combined with Fig.11 - Fig.13 , provides an example of credit line consumption.
[0186] like Fig.11 As shown, Fig.11 It is a scenario diagram of a credit line consumption provided in an embodiment of this specification. Among them, the resource involved is the amount, and the scenario entrances involved include a fixed amount scenario entrance, a temporary amount scenario entrance, and a special scenario entrance. A fixed amount scenario entrance refers to a scenario entrance where the corresponding credit line is a long-term effective credit line; a temporary amount scenario entrance refers to a scenario entrance where the corresponding credit line is a short-term effective credit line; a special scenario entrance refers to a scenario entrance that can only be used for specific consumption, and the corresponding credit line may be a long-term effective credit line or a short-term effective credit line.
[0187] In the credit domain, the credit limit of the fixed-limit scenario entrance refers to the used resource limit of the fixed-limit scenario entrance, the credit limit of the temporary-limit scenario entrance refers to the used resource limit of the temporary-limit scenario entrance, and the credit limit of the special scenario entrance refers to the used resource limit of the special scenario entrance; in the credit domain, the credit limit of the fixed-limit scenario entrance refers to the total resource limit of the fixed-limit scenario entrance, the credit limit of the temporary-limit scenario entrance refers to the total resource limit of the temporary-limit scenario entrance, and the credit limit of the special scenario entrance refers to the total resource limit of the special scenario entrance. It can be understood that the credit limits corresponding to the fixed-limit scenario entrance, the temporary-limit scenario entrance, and the special scenario entrance all need to be obtained through credit limit evaluation based on user credit data, and the above-mentioned problems with related technologies exist.
[0188] like Fig.12 As shown, Fig.12 This is a schematic diagram of a scenario for processing a request for introducing a credit line sharing pool provided in an embodiment of this specification, wherein the resource involved is the amount, and the scenario entries involved include a fixed amount scenario entry 1 and a fixed amount scenario entry 2.
[0189] In the credit domain, the credit limit of fixed-quota scenario entry 1 refers to the used resource limit of fixed-quota scenario entry 1, and the credit limit of fixed-quota scenario entry 2 refers to the used resource limit of fixed-quota scenario entry 2; in the credit domain, the initial credit limit of fixed-quota scenario entry 1 refers to the initial total resource limit of fixed-quota scenario entry 1, and the initial credit limit of fixed-quota scenario entry 2 refers to the initial total resource limit of fixed-quota scenario entry 2. However, the initial credit limit of fixed-quota scenario entry 1 and the initial credit limit of fixed-quota scenario entry 2 are optional, and only one of them is required.
[0190] Between the credit domain and the credit domain, a fixed credit line sharing pool is introduced, which refers to the resource line sharing pool. It can be understood that the scenario entrances of the fixed credit line sharing pool include fixed scenario entrance 1 and fixed scenario entrance 2; the total credit line (total resource line) of the fixed credit line sharing pool is determined based on the initial credit line of fixed scenario entrance 1 or the initial credit line of fixed scenario entrance 2, that is, only one credit line assessment based on user credit data is required. Below the total credit limit of the fixed-credit-line sharing pool, the credit limit of fixed-credit scenario entrance 1 and the credit limit of fixed-credit scenario entrance 2 can be determined separately. It can be understood that the credit limit of fixed-credit scenario entrance 1 refers to the total resource limit of fixed-credit scenario entrance 1, and the credit limit of fixed-credit scenario entrance 2 refers to the total resource limit of fixed-credit scenario entrance 2. The credit limit of fixed-credit scenario entrance 1 and the credit limit of fixed-credit scenario entrance 2 are both individually less than or equal to the total credit limit of the fixed-credit-line sharing pool.
[0191] like Fig.13 As shown, Fig.13This is a schematic diagram of a scenario for processing a request for introducing multiple resource quota sharing pools provided by an embodiment of this specification. The resource involved is the amount, and the scenario entries involved include fixed amount scenario entry 1, fixed amount scenario entry 2, temporary amount scenario entry 1, and temporary amount scenario entry 2.
[0192] In the credit domain, the credit limit of fixed-limit scenario entry 1 refers to the used resource limit of fixed-limit scenario entry 1, the credit limit of fixed-limit scenario entry 2 refers to the used resource limit of fixed-limit scenario entry 2, the credit limit of temporary-limit scenario entry 1 refers to the used resource limit of temporary-limit scenario entry 1, and the credit limit of temporary-limit scenario entry 2 refers to the used resource limit of temporary-limit scenario entry 2; in the credit domain, the initial credit limit of fixed-limit scenario entry 1 refers to the initial total resource limit of fixed-limit scenario entry 1, and the initial credit limit of fixed-limit scenario entry 2 refers to the initial total resource limit of fixed-limit scenario entry 2, but the initial credit limit of fixed-limit scenario entry 1 and the initial credit limit of fixed-limit scenario entry 2 are optional, and only one of them is needed. The initial credit limit of temporary credit scenario entrance 1 refers to the initial total resource limit of temporary credit scenario entrance 1, and the initial credit limit of temporary credit scenario entrance 2 refers to the initial total resource limit of temporary credit scenario entrance 2. However, the initial credit limit of temporary credit scenario entrance 1 and the initial credit limit of temporary credit scenario entrance 2 are optional, and only one of them is required.
[0193] Between the credit domain and the credit domain, a fixed credit line sharing pool and a temporary credit line sharing pool are introduced. The fixed credit line sharing pool refers to resource credit line sharing pool 1, and the temporary credit line sharing pool refers to resource credit line sharing pool 2.
[0194] The scenario entrances of the fixed-amount credit line sharing pool include fixed-amount scenario entrance 1 and fixed-amount scenario entrance 2; the total credit line (total resource line) of the fixed-amount credit line sharing pool is determined based on the initial credit line of fixed-amount scenario entrance 1 or the initial credit line of fixed-amount scenario entrance 2, that is, only one credit line assessment based on user credit data is required. Below the total credit line of the fixed-amount credit line sharing pool, the credit line of fixed-amount scenario entrance 1 and the credit line of fixed-amount scenario entrance 2 can be determined separately. It can be understood that the credit line of fixed-amount scenario entrance 1 refers to the total resource line of fixed-amount scenario entrance 1, and the credit line of fixed-amount scenario entrance 2 refers to the total resource line of fixed-amount scenario entrance 2. The credit line of fixed-amount scenario entrance 1 and the credit line of fixed-amount scenario entrance 2 are both individually less than or equal to the total credit line of the fixed-amount credit line sharing pool.
[0195] The scenario entrances of the temporary credit line sharing pool include temporary credit line scenario entrance 1 and temporary credit line scenario entrance 2; the total credit line (total resource line) of the temporary credit line sharing pool is determined based on the initial credit line of temporary credit line scenario entrance 1 or the initial credit line of temporary credit line scenario entrance 2, that is, only one credit line assessment needs to be performed based on the user's credit data. Below the total credit line of the temporary credit line sharing pool, the credit line of temporary credit line scenario entrance 1 and the credit line of temporary credit line scenario entrance 2 can be determined separately. It can be understood that the credit line of temporary credit line scenario entrance 1 refers to the total resource line of temporary credit line scenario entrance 1, and the credit line of temporary credit line scenario entrance 2 refers to the total resource line of temporary credit line scenario entrance 2. The credit line of temporary credit line scenario entrance 1 and the credit line of temporary credit line scenario entrance 2 are both individually less than or equal to the total credit line of the temporary credit line sharing pool.
[0196] Similarly, for special scene entrances, similar Fig.13 The method shown increases the resource quota sharing pool 3 corresponding to multiple special scenario entrances.
[0197] based on Figure 1 - Fig.13 , the following will combine Fig.14 , the request processing device provided in the embodiment of this specification is introduced in detail. It should be noted that, Fig.14 The request processing device 1 in the instruction manual is used to execute Figure 4 - Fig.10 For the convenience of explanation, only the part related to the embodiment of this specification is shown. For the specific technical details not disclosed, please refer to this specification. Figure 4 - Fig.10 The request processing device 1 specifically includes:
[0198] The receiving unit 11 is used to receive a resource call request of a current scene entry of the resource quota sharing pool, and determine an associated scene entry other than the current scene entry from multiple scene entries of the resource quota sharing pool;
[0199] The acquisition unit 12 is used to acquire the resource quota to be called of the resource call request, the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry;
[0200] The determining unit 13 is used to determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0201] The responding unit 14 is used to respond to the resource calling request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
[0202] Optionally, the total resource quota of each scene entrance of the resource quota sharing pool is lower than the total resource quota of the resource quota sharing pool; the response unit 15 is also used to: obtain the total resource quota of the current scene entrance; determine the available resource quota of the current scene entrance according to the total resource quota and the used resource quota of the current scene entrance; respond to the resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance.
[0203] Optionally, the response unit 15 is also used to: compare the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance respectively to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance, reject the resource call request; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and less than or equal to the available resource quota of the current scene entrance, call the resources corresponding to the resource quota to be called according to the resource call request, and update the used resource quota of the current scene entrance according to the resource quota to be called.
[0204] Optionally, the response unit 15 is also used to: compare the resource quota to be called with the available resource quota of the resource quota sharing pool to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool, reject the resource call request; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, call the resources corresponding to the resource quota to be called according to the resource call request, and update the used resource quota of the current scene entrance according to the resource quota to be called.
[0205] Optionally, the request processing device 1 is used to: determine a first type of newly added scene entry, obtain the total resource quota of the initial scene entry, wherein the total resource quota of the initial scene entry is obtained by pre-evaluating the quota based on user credit data; create a resource quota sharing pool, and determine the total resource quota of the resource quota sharing pool according to the total resource quota of the initial scene entry; and respectively determine the initial scene entry and the first type of newly added scene entry as scene entrances of the resource quota sharing pool.
[0206] Optionally, the request processing device 1 is further used to: determine the total resource quota of each scene entrance of the resource quota sharing pool below the total resource quota of the resource quota sharing pool.
[0207] Optionally, the request processing device 1 is further used to: determine a second type of newly added scenario entry, and determine the second type of newly added scenario entry as a scenario entry of the resource quota sharing pool.
[0208] Optionally, the request processing device 1 is also used to: determine the quota of each scene entrance of the resource quota sharing pool below the total resource quota of the resource quota sharing pool; and determine the total resource quota of each scene entrance of the resource quota sharing pool according to the quota of each scene entrance of the resource quota sharing pool.
[0209] Optionally, the request processing device 1 is also used to: obtain resource call history data of each scene entrance of the resource quota sharing pool; below the total resource quota of the resource quota sharing pool, determine the quota of each scene entrance of the resource quota sharing pool according to the resource call history data of each scene entrance of the resource quota sharing pool.
[0210] Optionally, the quota includes a fixed value quota and a percentage quota; the request processing device 1 is also used to: if there is a first type of scenario entry with a quota of a fixed value quota among the scenario entrances of the resource quota sharing pool, then the fixed value quota of the first type of scenario entry of the resource quota sharing pool is determined as the total resource quota of the first type of scenario entry of the resource quota sharing pool; if there is a second type of scenario entry with a quota of a percentage quota among the scenario entrances of the resource quota sharing pool, then the product of the percentage quota of the second type of scenario entry of the resource quota sharing pool and the total resource quota of the resource quota sharing pool is determined as the total resource quota of the second type of scenario entry of the resource quota sharing pool.
[0211] For the effects that can be achieved by this embodiment, please refer to the relevant embodiments of the above-mentioned request processing method, which will not be repeated here.
[0212] See also Fig.15 , is a schematic diagram of the structure of an electronic device provided in the embodiment of this specification. Fig.15 As shown, the electronic device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, an input / output interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As shown in FIG. Fig.15 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, an input / output interface module, and a request processing application.
[0213] exist Fig.15In the electronic device 1000 shown, the input-output interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user.
[0214] In one embodiment, the processor 1001 may be used to call a request processing application stored in the memory 1005, and specifically perform the following operations:
[0215] Receiving a resource call request of a current scene entry of a resource quota sharing pool, and determining an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool;
[0216] Obtain the resource quota to be called of the resource call request, obtain the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0217] Determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance;
[0218] Respond to the resource call request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
[0219] Optionally, the total resource quota of each scene entrance of the resource quota sharing pool is lower than the total resource quota of the resource quota sharing pool; when the processor 1001 responds to the resource call request based on the resource quota to be called and the available resource quota of the resource quota sharing pool, it specifically performs the following operations: obtain the total resource quota of the current scene entrance; determine the available resource quota of the current scene entrance based on the total resource quota and the used resource quota of the current scene entrance; respond to the resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance.
[0220] Optionally, when the processor 1001 responds to the resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance, the processor 1001 specifically performs the following operations: compare the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance respectively to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance, reject the resource call request; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and less than or equal to the available resource quota of the current scene entrance, call the resources corresponding to the resource quota to be called according to the resource call request, and update the used resource quota of the current scene entrance according to the resource quota to be called.
[0221] Optionally, when the processor 1001 responds to a resource call request based on the resource quota to be called and the available resource quota of the resource quota sharing pool, the processor 1001 specifically performs the following operations: compare the resource quota to be called with the available resource quota of the resource quota sharing pool to obtain a comparison result; if the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool, reject the resource call request; if the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, call the resources corresponding to the resource quota to be called according to the resource call request, and update the used resource quota of the current scene entrance according to the resource quota to be called.
[0222] Optionally, before executing the resource call request of the current scene entry of the received resource quota sharing pool and determining the associated scene entry other than the current scene entry from multiple scene entries of the resource quota sharing pool, the processor 1001 specifically performs the following operations: determining a first type of newly added scene entry, obtaining the total resource quota of the initial scene entry, wherein the total resource quota of the initial scene entry is obtained by pre-evaluating the quota based on user credit data; creating a resource quota sharing pool, and determining the total resource quota of the resource quota sharing pool based on the total resource quota of the initial scene entry; and respectively determining the initial scene entry and the first type of newly added scene entry as scene entries of the resource quota sharing pool.
[0223] Optionally, after executing the determination of the initial scene entry and the first type of newly added scene entry as the scene entries of the resource quota sharing pool, the processor 1001 receives a resource call request of the current scene entry of the resource quota sharing pool, and before determining the associated scene entry other than the current scene entry from multiple scene entries of the resource quota sharing pool, specifically performs the following operations: below the total resource quota of the resource quota sharing pool, respectively determine the total resource quota of each scene entry of the resource quota sharing pool.
[0224] Optionally, after the processor 1001 determines the initial scene entry and the first type of newly added scene entry as the scene entries of the resource quota sharing pool, respectively, and before determining the total resource quota of each scene entry of the resource quota sharing pool below the total resource quota of the resource quota sharing pool, the processor 1001 specifically performs the following operations: determine the second type of newly added scene entry, and determine the second type of newly added scene entry as the scene entry of the resource quota sharing pool.
[0225] Optionally, when the processor 1001 determines the total resource quota of each scene entrance of the resource quota sharing pool below the total resource quota of the resource quota sharing pool, it specifically performs the following operations: below the total resource quota of the resource quota sharing pool, separately determine the quota of each scene entrance of the resource quota sharing pool; according to the quota of each scene entrance of the resource quota sharing pool, separately determine the total resource quota of each scene entrance of the resource quota sharing pool.
[0226] Optionally, when the processor 1001 determines the quota of each scene entrance of the resource quota sharing pool below the total resource quota of the resource quota sharing pool, it specifically performs the following operations: obtaining the resource call history data of each scene entrance of the resource quota sharing pool; and determining the quota of each scene entrance of the resource quota sharing pool according to the resource call history data of each scene entrance of the resource quota sharing pool below the total resource quota of the resource quota sharing pool.
[0227] Optionally, the quota includes a fixed value quota and a percentage quota; when the processor 1001 determines the total resource quota of each scenario entrance of the resource quota sharing pool according to the quota of each scenario entrance of the resource quota sharing pool, the following specific operations are performed: if there is a first-category scenario entrance with a quota of a fixed value quota among the scenario entrances of the resource quota sharing pool, the fixed value quota of the first-category scenario entrance of the resource quota sharing pool is determined as the total resource quota of the first-category scenario entrance of the resource quota sharing pool; if there is a second-category scenario entrance with a quota of a percentage quota among the scenario entrances of the resource quota sharing pool, the product of the percentage quota of the second-category scenario entrance of the resource quota sharing pool and the total resource quota of the resource quota sharing pool is determined as the total resource quota of the second-category scenario entrance of the resource quota sharing pool.
[0228] For the effects that can be achieved by this embodiment, please refer to the relevant embodiments of the above-mentioned request processing method, which will not be repeated here.
[0229] The present specification also provides a computer storage medium that can store multiple program instructions, which are suitable for being loaded and executed by a processor as described above. Figure 4 - Fig.10 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 4 - Fig.10 The specific description of the illustrated embodiment will not be repeated here.
[0230] The embodiment of the present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by a processor as described above. Figure 4 - Fig.10 The request processing method of the embodiment shown in the figure can be found in the specific execution process. Figure 4 - Fig.10 The specific description of the illustrated embodiment will not be repeated here.
[0231] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0232] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A request processing method, the method comprising: Receiving a resource call request of a current scene entry of a resource quota sharing pool, and determining an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool; Obtaining the resource quota to be called of the resource call request, obtaining the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance; Determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entrance, and the used resource quota of the associated scene entrance; A response is made to the resource calling request based on the resource quota to be called and the available resource quota in the resource quota sharing pool.
2. According to the method of claim 1, the total resource quota of each scene entrance of the resource quota sharing pool is less than the total resource quota of the resource quota sharing pool; the responding to the resource call request based on the resource quota to be called and the available resource quota of the resource quota sharing pool comprises: Obtain the total resource amount of the current scene entrance; Determine the available resource amount of the current scene entrance according to the total resource amount and the used resource amount of the current scene entrance; A response is made to the resource calling request based on the resource quota to be called, the available resource quota of the resource quota sharing pool, and the available resource quota of the current scene entrance.
3. The method according to claim 2, wherein responding to the resource call request based on the resource quota to be called, the available resource quota of the resource quota sharing pool, and the available resource quota of the current scene entrance comprises: Compare the resource quota to be called with the available resource quota of the resource quota sharing pool and the available resource quota of the current scene entrance respectively to obtain a comparison result; If the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool or the available resource quota of the current scene entrance, rejecting the resource calling request; If the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, and less than or equal to the available resource quota of the current scene entrance, then the resources corresponding to the resource quota to be called are called according to the resource call request, and the used resource quota of the current scene entrance is updated according to the resource quota to be called.
4. The method according to claim 1, wherein responding to the resource call request based on the resource quota to be called and the available resource quota of the resource quota sharing pool comprises: Compare the resource quota to be called with the available resource quota in the resource quota sharing pool to obtain a comparison result; If the comparison result indicates that the resource quota to be called is greater than the available resource quota of the resource quota sharing pool, rejecting the resource calling request; If the comparison result indicates that the resource quota to be called is less than or equal to the available resource quota of the resource quota sharing pool, the resources corresponding to the resource quota to be called are called according to the resource call request, and the used resource quota of the current scene entrance is updated according to the resource quota to be called.
5. The method according to claim 1, wherein the receiving of the resource call request of the current scene entry of the resource quota sharing pool and determining the associated scene entry other than the current scene entry from the multiple scene entries of the resource quota sharing pool further comprises: Determine the first type of newly added scene entry, and obtain the total resource quota of the initial scene entry, wherein the total resource quota of the initial scene entry is obtained by pre-evaluating the quota based on user credit data; Creating the resource quota sharing pool, and determining the total resource quota of the resource quota sharing pool according to the total resource quota of the initial scene entrance; The initial scene entry and the first type of newly added scene entry are respectively determined as scene entries of the resource quota sharing pool.
6. The method according to claim 5, after determining the initial scene entry and the first type of newly added scene entry as the scene entry of the resource quota sharing pool respectively, and before receiving the resource call request of the current scene entry of the resource quota sharing pool and determining the associated scene entry other than the current scene entry from the multiple scene entries of the resource quota sharing pool, further comprises: Below the total resource quota of the resource quota sharing pool, the total resource quota of each scene entrance of the resource quota sharing pool is determined respectively.
7. The method according to claim 6, after determining the initial scene entry and the first type of newly added scene entry as the scene entry of the resource quota sharing pool respectively, and before determining the total resource quota of each scene entry of the resource quota sharing pool below the total resource quota of the resource quota sharing pool respectively, further comprising: A second type of newly added scenario entrance is determined, and the second type of newly added scenario entrance is determined as the scenario entrance of the resource quota sharing pool.
8. The method according to claim 6, wherein the total resource quota of each scene entrance of the resource quota sharing pool is determined below the total resource quota of the resource quota sharing pool, comprising: Below the total resource quota of the resource quota sharing pool, respectively determine the quota of each scene entrance of the resource quota sharing pool; According to the quota of each scene entrance of the resource quota sharing pool, the total resource quota of each scene entrance of the resource quota sharing pool is determined respectively.
9. The method according to claim 8, wherein the step of determining the quota of each scene entry of the resource quota sharing pool below the total resource quota of the resource quota sharing pool comprises: Obtain resource call history data of each scene entrance of the resource quota sharing pool; Below the total resource quota of the resource quota sharing pool, the quota of each scene entry of the resource quota sharing pool is determined respectively according to the resource call history data of each scene entry of the resource quota sharing pool.
10. The method according to claim 8, wherein the quota includes a fixed value quota and a percentage quota; and the total resource quota of each scene entrance of the resource quota sharing pool is determined according to the quota of each scene entrance of the resource quota sharing pool, comprising: If there is a first-category scene entry whose quota is a fixed-value quota in each scene entry of the resource quota sharing pool, the fixed-value quota of the first-category scene entry of the resource quota sharing pool is determined as the total resource quota of the first-category scene entry of the resource quota sharing pool; If there is a second type of scenario entry with a quota as a percentage quota in each scenario entry of the resource quota sharing pool, the total resource quota of the second type of scenario entry of the resource quota sharing pool is determined as the product of the percentage quota of the second type of scenario entry of the resource quota sharing pool and the total resource quota of the resource quota sharing pool.
11. A request processing device, the device comprising: A receiving unit, configured to receive a resource call request of a current scene entry of a resource quota sharing pool, and determine an associated scene entry other than the current scene entry from a plurality of scene entries of the resource quota sharing pool; An acquisition unit, configured to acquire the resource quota to be called of the resource call request, the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry; A determination unit, configured to determine the available resource quota of the resource quota sharing pool according to the total resource quota of the resource quota sharing pool, the used resource quota of the current scene entry, and the used resource quota of the associated scene entry; The responding unit is used to respond to the resource calling request based on the resource quota to be called and the available resource quota of the resource quota sharing pool.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code, and when the computer program code is executed, the method according to any one of claims 1 to 10 is implemented.
13. An electronic device, comprising: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 10.
14. A computer program product having at least one instruction stored thereon, wherein when the at least one instruction is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.