Resource transfer request processing method and device, electronic equipment and storage medium
By determining the total number of unprocessed requests and object group types in the resource transfer request processing system, and formulating a differentiated response strategy, the problem of system instability during peak periods is solved, and stable processing under high resource transfer is achieved.
Patent Information
- Application Number
- CN202510697829.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-02
AI Technical Summary
During peak periods of resource transfer business, the stability of the resource transfer request processing system is poor, resulting in too long or failure of some request processing.
By determining the total number of unprocessed resource transfer requests and object group types, differentiated request response strategies, including current limiting and peak-cutting delay processing, to improve system stability.
Under the high resource transfer amount, the stability of resource transfer request processing is improved, preventing system crashes and ensuring normal response to other requests.
Smart Images

Figure CN120578469A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer processing technology, and in particular to a resource transfer request processing method, device, electronic device, and storage medium. Background Art
[0002] With the booming digital economy, various types of online resource transfer business processing are becoming increasingly frequent. The stability of resource transfer request processing is crucial to user experience and business operations.
[0003] Related technologies often require that all resource transfer requests be processed sequentially in the order they are received. However, during peak business processing periods, a large number of resource transfer requests flood the resource transfer service system, causing some requests to take a long time to process or even fail, resulting in poor stability in resource transfer request processing. Summary of the Invention
[0004] In view of the above problems, the present invention provides a resource transfer request processing method, device, electronic device and storage medium, so as to improve the stability of resource transfer request processing when the resource transfer volume is high.
[0005] According to one aspect of the present invention, a method for processing a resource transfer request is provided, the method comprising:
[0006] In response to a first resource transfer request from a target object at a current moment, determining a total number of unprocessed resource transfer requests at a current moment;
[0007] When the total number of unprocessed resource transfer requests is higher than a preset threshold, determining the object group type of the target object at the current moment;
[0008] A request response type of the first resource transfer request is determined according to the object group type, and the first resource transfer request is processed based on the request response type.
[0009] Optionally, after responding to the first resource transfer request of the target object at the current moment, the method also includes: determining the request delay tolerance of the target object at the current moment; determining the request response type of the first resource transfer request based on the object group type includes: determining the request response type of the first resource transfer request based on the object group type and the request delay tolerance.
[0010] Optionally, determining the request delay tolerance of the target object at the current moment includes: obtaining the request delay tolerance of the target object at the current moment based on a request delay tolerance questionnaire; or, setting the request delay tolerance of the target object at the current moment based on a request delay tolerance setting operation; or, determining the request delay tolerance of the target object at the current moment based on the request delay tolerance of the target object at a historical moment with the same total number of unprocessed resource transfer requests as the current moment; or, determining the request delay tolerance of the target object at the current moment based on the request delay tolerance of an associated object belonging to the same object group type as the target object.
[0011] Optionally, the request response type includes a first response type, and the processing of the first resource transfer request based on the request response type includes: when the request response type is the first response type, performing current limiting processing on the first resource transfer request.
[0012] Optionally, the request response type also includes a second response type; and the processing of the first resource transfer request based on the request response type includes: performing peak shaving and delay processing on the first resource transfer request when the request response type is the second response type.
[0013] Optionally, when the request response type is the second response type, the first resource transfer request is subjected to peak shaving delay processing, including: when the request response type is the second response type, the first resource transfer request is sent to a request delay processing pool, in response to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold, the requests in the request delay processing pool are processed in sequence according to the object priority.
[0014] Optionally, determining the object group type of the target object at the current moment includes: obtaining object portrait data of the target object at the current moment, inputting the object portrait data into a pre-trained classification model, and determining the object group type of the target object at the current moment based on the output result of the classification model; or, in response to an object group type setting operation for the target object, obtaining the object group type of the target object at the current moment.
[0015] According to another aspect of the present invention, a resource transfer request processing device is provided. The device includes:
[0016] a request response module, configured to respond to a first resource transfer request from a target object at a current moment and determine a total number of unprocessed resource transfer requests at a current moment;
[0017] a group type determination module, configured to determine the object group type of the target object at a current moment if the total number of the unprocessed resource transfer requests is higher than a preset threshold;
[0018] The request processing module is configured to determine a request response type of the first resource transfer request according to the object group type, and process the first resource transfer request based on the request response type.
[0019] According to another aspect of the present invention, an electronic device is provided, comprising:
[0020] one or more processors;
[0021] a storage device for storing one or more programs,
[0022] When the one or more programs are executed by the one or more processors, the one or more processors implement the resource transfer request processing method as described in any one of the embodiments of the present disclosure.
[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement any resource transfer request processing method of the present invention when executed.
[0024] The technical solution of the embodiment of the present invention determines the total number of unprocessed resource transfer requests at the current moment by responding to the first resource transfer request of the target object at the current moment, so as to quickly and accurately determine whether the current moment is in the resource transfer peak period through the total number of resource transfer requests. In the case that the total number of unprocessed resource transfer requests is higher than the preset threshold, the object group type of the target object at the current moment is determined, and the classification information of the object can be reflected by the object group type. Then, the request response type of the first resource transfer request is determined according to the object group type, and the first resource transfer request is processed based on the request response type, so that differentiated resource transfer request processing strategies can be formulated according to different object group types to process resource transfer requests. The technical solution of the embodiment of the present invention solves the technical problem of poor resource stability in the resource transfer processing system in the related art when facing a large number of resource transfer requests, and improves the stability of resource transfer request processing when the resource transfer volume is high.
[0025] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A schematic diagram of a process for processing a resource transfer request provided by an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of a process for processing a resource transfer request provided by an embodiment of the present invention;
[0029] Figure 3 A schematic structural diagram of a resource transfer request processing device provided by an embodiment of the present invention;
[0030] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0034] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the operation requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that performs the operations of the disclosed technical solution based on the prompt message.
[0035] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0036] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0037] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0038] Figure 1 This is a flow chart of a resource transfer request processing method provided by an embodiment of the present invention. This embodiment is applicable to the case of processing resource transfer requests. The method can be executed by a resource transfer request processing device. The resource transfer request processing device can be implemented in the form of hardware and / or software. The resource transfer request processing device can be configured in an electronic device such as a computer or a server. Figure 1 As shown, the method of this embodiment includes:
[0039] S110 : In response to a first resource transfer request from a target object at a current moment, determine a total number of unprocessed resource transfer requests at a current moment.
[0040] The target object can be understood as the object that initiates the pending resource transfer request at the current moment. The first resource transfer request can be understood as the resource transfer request initiated by the target object at the current moment. In an embodiment of the present invention, the first resource transfer request may include a request identifier, resource transfer request information, and a timestamp of the request initiation. The request identifier can be used to distinguish different resource transfer requests. The resource transfer request information may include object information of the request initiator and the specific content of the resource transfer request. The total number of unprocessed resource transfer requests can be understood as the total number of unprocessed resource transfer requests at the current moment.
[0041] Specifically, in response to the first resource transfer request of the target object at the current moment, that is, when the resource transfer request initiated by the target object at the current moment is received, the total number of unprocessed resource transfer requests at the current moment can be determined based on the first resource transfer request.
[0042] In an embodiment of the present invention, the unprocessed resource transfer requests are stored in a target queue, and determining the total number of unprocessed resource transfer requests at the current moment based on the first resource transfer request includes: determining the number of requests in the target queue at the current moment based on the first resource transfer request, and determining the total number of unprocessed resource transfer requests at the current moment based on the number of requests in the target queue at the current moment. In an embodiment of the present invention, determining the total number of unprocessed resource transfer requests at the current moment based on the number of requests in the target queue at the current moment includes the following two methods.
[0043] As an optional embodiment of the present invention, when the number of requests in the target queue is one, determining the total number of unprocessed resource transfer requests at the current moment based on the number of requests in the target queue at the current moment may include: determining the number of requests in the target queue at the current moment as the total number of unprocessed resource transfer requests at the current moment.
[0044] As another optional embodiment of the embodiment of the present invention, when there are multiple target queues, determining the total number of unprocessed resource transfer requests at the current moment based on the number of requests in the target queue at the current moment may include: summing the number of requests in all target queues at the current moment to obtain the summation result, i.e., the total number of unprocessed resource transfer requests at the current moment.
[0045] S120: When the total number of unprocessed resource transfer requests is higher than a preset threshold, determine the object group type of the target object at the current moment.
[0046] The preset threshold can be set based on the actual request and is not specifically set here, for example, 1000, 5000, 10000, etc. The object group type can be understood as the classification result of the target object based on preset characteristics (such as behavior, attributes, or status). For example, the object group type is divided based on the resource transfer amount. Specifically, a threshold method can be used, i.e., setting a resource transfer amount threshold based on business experience or historical data to divide objects into different groups. Alternatively, a dynamic clustering method can be used, i.e., using a machine learning clustering algorithm to automatically divide groups based on resource transfer amount. Alternatively, the groups can be divided by cross-classifying the resource transfer amount with other dimensional information (such as resource transfer frequency). In embodiments of the present invention, the object group type can be used to determine the level of the object initiating the resource transfer request. It is understood that different levels of objects correspond to different object group types. The object group type of the target object can be pre-stored in a preset database, corresponding to the target object's object identifier. The object identifier can be used to distinguish different objects initiating resource transfer requests.
[0047] Specifically, a threshold for the total number of unprocessed resource transfer requests, i.e., a preset threshold, is pre-set. A determination is then made as to whether the total number of unprocessed resource transfer requests at the current moment exceeds the preset threshold. If so, the object group type of the target object at the current moment can be determined. In embodiments of the present invention, there are various methods for determining the object group type of the target object at the current moment, which are not specifically limited herein.
[0048] As an optional implementation of an embodiment of the present invention, determining the object group type of the target object at the current moment includes: if the object group type of the target object is dynamically updated, determining a group tag in a record of the target object's most recent update since the current moment, i.e., determining the object group type of the target object in the most recent update since the current moment. Furthermore, the object group type of the target object in the most recent update since the current moment can be determined as the object group type of the target object at the current moment.
[0049] As another optional implementation manner of an embodiment of the present invention, determining the object group type of the target object at the current moment includes: obtaining object portrait data of the target object at the current moment, inputting the object portrait data into a pre-trained classification model, and determining the object group type of the target object at the current moment based on the output result of the classification model.
[0050] The object profile data can be understood as the profile data of the target object. The object profile data of the target object can be stored in a preset database. In an embodiment of the present invention, the object profile data may include object information and object resource transfer information. The object information may include an object identifier and an object type. The object identifier can be used to distinguish different objects requiring resource transfer. The object resource transfer information may include at least one of the object resource transfer frequency, the highest resource transfer amount, the total number of resource transfers, the average single transfer amount, the median transfer amount, the transfer amount distribution range, and the transfer time interval. A pre-trained classification model can be used to obtain an object group classification of the object based on the object profile data. In an embodiment of the present invention, the training samples of the pre-trained classification model are object profile sample data and corresponding labels, and the labels are used to characterize the object group type corresponding to the object profile sample data. It should be noted that the object profile data of the target object can be updated according to a preset update policy to update the object group type of the target object based on the updated object profile data. Exemplarily, the preset update policy can be to update the object profile data once every preset period (e.g., one day, one week, or one month).
[0051] As another optional implementation of the embodiment of the present invention, the determining of the object group type of the target object at the current moment includes: in response to an object group type setting operation for the target object, obtaining the object group type of the target object at the current moment. The object group type setting operation can be understood as an operation for setting the object group type of the target object. Specifically, a target interface is displayed, wherein the target interface may include an object identifier of the target object and an object group setting item corresponding to the object identifier. In response to the object group setting operation for the object group setting item, the object group type of the target object at the current moment is obtained, and the operation is simple and convenient.
[0052] S130: Determine a request response type of the first resource transfer request according to the object group type, and process the first resource transfer request based on the request response type.
[0053] Among them, the request response type can be used to determine the way to process the resource transfer request. It is understandable that different request response types correspond to different request processing methods. In an embodiment of the present invention, the request response type can be set in advance for resource transfer requests of different group objects. It is understandable that the request response types of resource transfer requests of different group objects can be the same or different. In an embodiment of the present invention, the request response type may include a first response type and a second response type. Among them, the first response type can be used to characterize that the processing method of the resource transfer request is current limiting processing. The second response type can be used to characterize that the processing method of the resource transfer request is peak shaving delay processing. In an embodiment of the present invention, the level of the object corresponding to the first response type is lower than the level of the object corresponding to the second response type.
[0054] Specifically, based on the correspondence between the object group type and the request response type, the request response type corresponding to the object group type is determined, that is, the request response type of the first resource transfer request is determined. Therefore, based on the correspondence between the request response type and the request response method, the request response method corresponding to the request response type can be determined. Then, the first resource transfer request can be processed according to the request response method. In an embodiment of the present invention, the correspondence between the object group type and the request response type can be one-to-one. The relationship between the object group type and the request response type can be obtained by pre-setting the request response type for the object group type to obtain the relationship between the object group type and the request response type. The correspondence between the request response type and the request response method can be pre-set.
[0055] In an embodiment of the present invention, the request response type may include a first response type, and the processing of the first resource transfer request based on the request response type may include: when the request response type is the first response type, the first resource transfer request may be subjected to flow limiting processing, which not only prevents sudden traffic from causing exhaustion of server CPU, memory, bandwidth and other resources and causing service crashes, but also ensures that the request processing system can still respond normally to other resource transfer requests in high concurrency scenarios.
[0056] Based on the above embodiment, the request response type may further include a second response type; and processing the first resource transfer request based on the request response type may include: performing peak shaving and delay processing on the first resource transfer request when the request response type is the second response type. In this embodiment of the present invention, the purpose of performing peak shaving and delay processing on the first resource transfer request is to avoid system crashes by smoothing traffic peaks when resource transfer requests experience instantaneous high concurrency, while ensuring that the resource transfer request is ultimately processed reliably.
[0057] As an optional implementation in an embodiment of the present invention, when the request response type is the second response type, performing peak shaving and delay processing on the first resource transfer request may include: when the request response type is the second response type, sending the first resource transfer request to a request delay processing pool, in response to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold, processing the requests in the request delay processing pool in sequence according to the object priority. In an embodiment of the present invention, the request delay processing pool can be understood as a pre-created request processing pool, which can be used to store resource transfer requests that require peak shaving and delay processing.
[0058] Specifically, when the request response type is the second response type, the first resource transfer request can be sent to the request delay processing pool. Afterwards, in response to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold, the requests in the request delay processing pool can be processed in sequence according to the object priority. Among them, the object priority can be understood as the priority of the object that initiates the resource transfer request. In an embodiment of the present invention, the object priority can be set according to actual needs, which is not specifically limited here. For example, it can be set according to the resource transfer information of the object; or, it can be set based on the object group type.
[0059] As another optional implementation of an embodiment of the present invention, the peak-shaving delay processing of the first resource transfer request when the request response type is the second response type may include: when the request response type is the second response type, the first resource transfer request may be stored in a pre-created delay queue, so as to respond to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold, read the resource transfer requests to be processed from the pre-created delay queue in sequence, and process the resource transfer requests.
[0060] The technical solution of the embodiment of the present invention determines the total number of unprocessed resource transfer requests at the current moment by responding to the first resource transfer request of the target object at the current moment, so as to quickly and accurately determine whether the current moment is in the resource transfer peak period through the total number of resource transfer requests. In the case that the total number of unprocessed resource transfer requests is higher than the preset threshold, the object group type of the target object at the current moment is determined, and the classification information of the object can be reflected by the object group type. Then, the request response type of the first resource transfer request is determined according to the object group type, and the first resource transfer request is processed based on the request response type, so that differentiated resource transfer request processing strategies can be formulated according to different object group types to process resource transfer requests. The technical solution of the embodiment of the present invention solves the technical problem of poor resource stability in the resource transfer processing system in the related art when facing a large number of resource transfer requests, and improves the stability of resource transfer request processing when the resource transfer volume is high.
[0061] Figure 2 A flowchart of a resource transfer request processing method provided in an embodiment of the present invention, based on the aforementioned embodiment, optionally, after responding to the first resource transfer request of the target object at the current moment, the method further includes: determining the request delay tolerance of the target object at the current moment; and determining the request response type of the first resource transfer request based on the object group type, including: determining the request response type of the first resource transfer request based on the object group type and the request delay tolerance. Technical features identical or similar to those in the aforementioned embodiment are not repeated here.
[0062] like Figure 2 As shown, the method of this embodiment specifically includes:
[0063] S210: In response to a first resource transfer request from a target object at a current moment, determine a total number of unprocessed resource transfer requests at a current moment.
[0064] S220: When the total number of unprocessed resource transfer requests is higher than a preset threshold, determine the object group type and request delay tolerance of the target object at the current moment.
[0065] The request delay tolerance can be understood as the degree to which the object initiating the resource transfer request accepts request delay processing. In the embodiment of the present invention, there are multiple ways to determine the request delay tolerance of the target object at the current moment, which are not specifically limited here.
[0066] As an optional implementation in an embodiment of the present invention, the determination of the request delay tolerance of the target object at the current moment may include: obtaining the request delay tolerance of the target object at the current moment based on a request delay tolerance questionnaire. The request delay tolerance questionnaire may be understood as a pre-set questionnaire for obtaining the request delay tolerance of the target object. Specifically, the information filled out by the target object for the request delay tolerance questionnaire is obtained; the filled-in information is analyzed, and the request delay tolerance of the target object is obtained based on the result of the analysis, that is, the request delay tolerance of the target object at the current moment is obtained.
[0067] As another optional implementation in an embodiment of the present invention, determining the request delay tolerance of the target object at the current moment may include: setting the request delay tolerance of the target object at the current moment based on a request delay tolerance setting operation. The request delay tolerance setting operation can be understood as being used to set the degree of acceptance of request delay processing by the object initiating the resource transfer request. Specifically, the request delay tolerance of the target object at the current moment is determined based on the degree of acceptance of request delay processing set for the target object.
[0068] As another optional implementation in the embodiment of the present invention, the determination of the request delay tolerance of the target object at the current moment may include: determining the request delay tolerance of the target object at the current moment based on the request delay tolerance of the target object at the same historical moment as the total number of unprocessed resource transfer requests at the current moment. Specifically, based on the total number of unprocessed resource transfer requests at the current moment, determine the historical moment with the same total number of unprocessed resource transfer requests at the current moment. The request delay tolerance at the historical moment can then be used to determine the request delay tolerance of the target object at the current moment.
[0069] As another optional implementation in the embodiment of the present invention, the determination of the request delay tolerance of the target object at the current moment may include: determining the request delay tolerance of the target object at the current moment based on the request delay tolerance of the associated objects that belong to the same object group type as the target object. The associated objects can be understood as objects that belong to the same object group type as the target object. Specifically, the associated objects that belong to the same object group type as the target object can be determined first. Thereafter, the request delay tolerance of the associated objects is determined as the request delay tolerance of the target object at the current moment. It can be understood that in the case where there are multiple associated objects, an object with the highest similarity to the target object can be selected from the multiple associated objects as the associated object of the target object.
[0070] S230: Determine a request response type for the first resource transfer request according to the object group type and the request delay tolerance.
[0071] Specifically, according to the object group type and request delay tolerance of the target object at the current moment. In an embodiment of the present invention, the categories after the request response type is divided according to the object group type and the request delay tolerance may include a first response type and a second response type. In an embodiment of the present invention, the request response type may include a first response type and a second response type. Among them, the first response type can be used to characterize that the processing method of the resource transfer request is current limiting processing. The second response type can be used to characterize that the processing method of the resource transfer request is peak shaving delay processing. In an embodiment of the present invention, the corresponding request response type can be pre-set according to the object group type and the request delay tolerance.
[0072] Exemplarily, when the object group type corresponds to an object of the first level and the request delay tolerance of the objects of the first level is lower than a preset benchmark tolerance, the request response type of the objects of the object group type is the first response type. When the object group type corresponds to an object of the first level and the request delay tolerance of the objects of the first level exceeds the preset benchmark tolerance, the request response type of the objects of the object group type is the second response type. When the object group type corresponds to an object of the second level and the request delay tolerance of the objects of the second level is lower than the preset benchmark tolerance, the request response type of the objects of the object group type is the second response type. When the object group type corresponds to an object of the second level and the request delay tolerance of the objects of the second level exceeds the preset benchmark tolerance, the request response type of the objects of the object group type is the second response type. Wherein, the first level is lower than the second level.
[0073] Specifically, a corresponding request response type is pre-set for the object group type and the request delay tolerance. Furthermore, based on the object group type and the request delay tolerance of the target object at the current moment, a request response type for the first resource transfer request of the target object can be determined according to the pre-set corresponding relationship.
[0074] S240: Process the first resource transfer request based on the request response type.
[0075] The technical solution of this embodiment of the present invention determines the object group type and request delay tolerance of the target object at the current moment when the total number of unprocessed resource transfer requests exceeds a preset threshold. Based on the object group type and request delay tolerance, the request response type of the first resource transfer request is determined, thereby achieving more accurate determination of the request response type of the target object.
[0076] Figure 3 A schematic diagram of the structure of a resource transfer request processing device provided by an embodiment of the present invention. Figure 3 As shown, the apparatus includes: a request response module 310, a group type determination module 320, and a request processing module 330. The request response module 310 is configured to determine the total number of unprocessed resource transfer requests at the current moment in response to a first resource transfer request from a target object at the current moment; the group type determination module 320 is configured to determine the object group type of the target object at the current moment if the total number of unprocessed resource transfer requests is greater than a preset threshold; and the request processing module 330 is configured to determine a request response type for the first resource transfer request based on the object group type, and process the first resource transfer request based on the request response type.
[0077] The technical solution of the embodiment of the present invention determines the total number of unprocessed resource transfer requests at the current moment by responding to the first resource transfer request of the target object at the current moment, so as to quickly and accurately determine whether the current moment is in the resource transfer peak period through the total number of resource transfer requests. In the case that the total number of unprocessed resource transfer requests is higher than the preset threshold, the object group type of the target object at the current moment is determined, and the classification information of the object can be reflected by the object group type. Then, the request response type of the first resource transfer request is determined according to the object group type, and the first resource transfer request is processed based on the request response type, so that differentiated resource transfer request processing strategies can be formulated according to different object group types to process resource transfer requests. The technical solution of the embodiment of the present invention solves the technical problem of poor resource stability in the resource transfer processing system in the related art when facing a large number of resource transfer requests, and improves the stability of resource transfer request processing when the resource transfer volume is high.
[0078] Optionally, the apparatus further includes a request delay tolerance determination module, configured to determine the request delay tolerance of the target object at the current moment after responding to the target object's first resource transfer request at the current moment; and a request processing module 330, configured to determine a request response type for the first resource transfer request based on the object group type and the request delay tolerance.
[0079] Optionally, a request delay tolerance determination module is used to obtain the request delay tolerance of the target object at the current moment based on a request delay tolerance questionnaire; or, to set the request delay tolerance of the target object at the current moment based on a request delay tolerance setting operation; or, to determine the request delay tolerance of the target object at the current moment based on the request delay tolerance of the target object at a historical moment with the same total number of unprocessed resource transfer requests as the current moment; or, to determine the request delay tolerance of the target object at the current moment based on the request delay tolerance of an associated object belonging to the same object group type as the target object.
[0080] Optionally, the request response type includes a first response type, and the request processing module 330 is configured to perform flow limiting processing on the first resource transfer request when the request response type is the first response type.
[0081] Optionally, the request response type further includes a second response type; the request processing module 330 is configured to perform peak shaving delay processing on the first resource transfer request when the request response type is the second response type.
[0082] Optionally, the request processing module 330 is used to send the first resource transfer request to the request delay processing pool when the request response type is the second response type, so as to process the requests in the request delay processing pool in sequence according to the object priority in response to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold.
[0083] Optionally, the group type determination module 320 is used to obtain object portrait data of the target object at the current moment, input the object portrait data into a pre-trained classification model, and determine the object group type of the target object at the current moment based on the output result of the classification model; or, in response to an object group type setting operation for the target object, obtain the object group type of the target object at the current moment.
[0084] The resource transfer request processing device provided in the embodiment of the present invention can execute the resource transfer request processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0085] It is worth noting that the various units and modules included in the above-mentioned resource transfer request processing device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present invention.
[0086] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0087] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the random access memory (RAM) 13. The processor 11, the read-only memory (ROM) 12, and the random access memory (RAM) 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0088] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0089] The processor 11 may be any general-purpose and / or specialized processing component with processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the resource transfer request processing method.
[0090] In some embodiments, the resource transfer request processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via read-only memory (ROM) 12 and / or communication unit 19. When the computer program is loaded into random access memory (RAM) 13 and executed by processor 11, one or more steps of the resource transfer request processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the resource transfer request processing method in any other appropriate manner (e.g., by means of firmware).
[0091] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0093] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0095] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0096] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0097] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0098] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method for processing a resource transfer request, characterized in that: include: In response to a first resource transfer request from a target object at a current moment, determining a total number of unprocessed resource transfer requests at a current moment; When the total number of unprocessed resource transfer requests is higher than a preset threshold, determining the object group type of the target object at the current moment; A request response type of the first resource transfer request is determined according to the object group type, and the first resource transfer request is processed based on the request response type.
2. The method according to claim 1, characterized in that After responding to the first resource transfer request of the target object at the current moment, the method further includes: Determining a request delay tolerance of the target object at the current moment; The determining the request response type of the first resource transfer request according to the object group type includes: A request response type of the first resource transfer request is determined according to the object group type and the request delay tolerance.
3. The method according to claim 2, characterized in that Determining the request delay tolerance of the target object at the current moment includes: Obtaining the request delay tolerance of the target object at the current moment based on the request delay tolerance questionnaire; or Setting the request delay tolerance of the target object at the current moment based on the request delay tolerance setting operation; or Determining the request delay tolerance of the target object at the current moment based on the request delay tolerance of the target object at a historical moment with the same total number of unprocessed resource transfer requests at the current moment; or The request delay tolerance of the target object at the current moment is determined according to the request delay tolerance of associated objects belonging to the same object group type as the target object.
4. The method according to claim 1, wherein The request response type includes a first response type, and processing the first resource transfer request based on the request response type includes: When the request response type is the first response type, current limiting processing is performed on the first resource transfer request.
5. The method according to claim 4, characterized in that The request response type further includes a second response type; and processing the first resource transfer request based on the request response type includes: When the request response type is the second response type, peak shaving and delay processing is performed on the first resource transfer request.
6. The method according to claim 5, characterized in that When the request response type is the second response type, performing peak shaving and delay processing on the first resource transfer request includes: In the case where the request response type is the second response type, the first resource transfer request is sent to the request delay processing pool, so as to respond to the event that the total number of unprocessed resource transfer requests is lower than a preset threshold, and the requests in the request delay processing pool are processed in sequence according to the object priority.
7. The method according to claim 1, characterized in that The determining of the object group type of the target object at the current moment includes: Obtaining object portrait data of the target object at the current moment, inputting the object portrait data into a pre-trained classification model, and determining the object group type of the target object at the current moment based on the output result of the classification model; or, In response to the object group type setting operation for the target object, the object group type of the target object at the current moment is obtained.
8. A resource transfer request processing device, characterized in that: include: a request response module, configured to respond to a first resource transfer request from a target object at a current moment and determine a total number of unprocessed resource transfer requests at a current moment; a group type determination module, configured to determine the object group type of the target object at a current moment if the total number of the unprocessed resource transfer requests is higher than a preset threshold; The request processing module is configured to determine a request response type of the first resource transfer request according to the object group type, and process the first resource transfer request based on the request response type.
9. An electronic device, characterized in that: It is characterized by: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the resource transfer request processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the resource transfer request processing method according to any one of claims 1 to 7 when executed.