A method and system for processing bank hotspot account transactions based on asynchronous token service

The processing of bank hot account transactions through asynchronous token services is solved, and the database crash caused by hot account processing is achieved, which buffers high concurrent transactions and guarantees the transaction success rate, providing users with a better experience.

CN113553183BActive Publication Date: 2024-11-26CHINA CITIC BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110833560.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-23
Publication Date
2024-11-26
Estimated Expiration
2041-07-23

AI Technical Summary

Technical Problem

In the prior art, the processing of hot accounts affects the overall processing performance of the system and occupies thread resources. When the instantaneous concurrent transaction volume of hot accounts is too large, the database crashes, affecting the transaction success rate.

Method used

Using an asynchronous token service method, by detecting whether the account is a hot account, obtaining token information, interrupting the main processing service thread, releasing resources, releasing the interrupt state when conditions allow, continuing business processing, avoiding the occupation of thread resources, and buffering High concurrent transaction volume, protect the database.

Benefits of technology

It effectively avoids thread resource occupation, protects system processing performance, ensures transaction success rate, brings users a better experience, and prevents database crashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553183B_ABST
    Figure CN113553183B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for processing bank hotspot account transactions based on asynchronous token service, obtaining first account information; if the first account information is hotspot account information, obtaining first application information; obtaining first token information; obtaining first interruption information according to the first token information; controlling the first token information to be in an interruption state according to the first interruption information; when the first token information is in an interruption state, obtaining first change information, controlling the first token information to be released from the interruption state; when the first token information is released from the interruption state, obtaining first processing information; performing business processing on the first account according to the first processing information. The method solves the technical problems in the prior art that the processing of hotspot accounts affects the overall processing performance of the system, occupies thread resources, causes database crashes when the instantaneous concurrent transaction volume of hotspot accounts is too large, and affects the transaction success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of bank transaction systems, and in particular to a method and system for processing bank hotspot account transactions based on asynchronous token services. Background Art

[0002] In the process of bank transaction processing, there are a large number of concurrent operation requests for the same account in a short period of time (such accounts are generally called hot accounts). Nowadays, most bank core systems use distributed application systems, and multiple threads process operation requests simultaneously. Generally, in order to avoid data errors, when performing accounting processing, the data record of the account will be locked first in the same database transaction, and then the balance will be updated and the details will be registered. The lock will be automatically released after the database transaction is committed; that is, only one thread resource can operate the account balance at the same time, and other threads need to wait. Therefore, when a hot account appears, the database response time increases, and as the number of concurrent transaction requests for hot accounts continues to increase, the response time also increases, resulting in transaction timeouts. When a transaction times out, in order to ensure data consistency, the transaction will actively roll back uncommitted database transactions or perform reversal operations on submitted database transactions, thereby further increasing the database burden. In extreme cases, it may cause the database to crash.

[0003] However, the inventors of this application found that the above technology has at least the following technical problems in the process of implementing the technical solution of the invention in the embodiment of this application:

[0004] In the prior art, there are technical problems that the processing of hot accounts affects the overall processing performance of the system, occupies thread resources, causes database crashes when the instantaneous concurrent transaction volume of hot accounts is too large, and affects the transaction success rate. Summary of the invention

[0005] The embodiments of the present application provide a method and system for processing bank hot-spot account transactions based on an asynchronous token service, thereby solving the technical problems in the prior art that the processing of hot-spot accounts affects the overall processing performance of the system, occupies thread resources, causes database crashes when the instantaneous concurrent transaction volume of the hot-spot accounts is too large, and affects the transaction success rate. The method and system can avoid occupying thread resources, protect the overall processing performance of the system, buffer the situation where the instantaneous concurrent transaction volume of hot-spot accounts is too large, ensure the transaction success rate while protecting the database from crashing, and bring a better experience to users.

[0006] In view of the above problems, an embodiment of the present application provides a method and system for processing bank hotspot account transactions based on asynchronous token service.

[0007] In the first aspect, an embodiment of the present application provides a method for processing bank hotspot account transactions based on an asynchronous token service, the method comprising: obtaining first account information; determining whether the first account information is hotspot account information; if the first account information is hotspot account information, obtaining first application information; obtaining first token information based on the first application information; obtaining first interrupt information based on the first token information; controlling the first token information to be in an interrupt state based on the first interrupt information; when the first token information is in an interrupt state, obtaining first change information; controlling the first token information to be released from the interrupt state based on the first change information; when the first token information is released from the interrupt state, obtaining first processing information; performing business processing on the first account based on the first processing information.

[0008] On the other hand, the present application also provides a system for processing bank hotspot account transactions based on asynchronous token services, the system comprising: a first acquisition unit, the first acquisition unit is used to obtain first account information; a first judgment unit, the first judgment unit is used to determine whether the first account information is hotspot account information; a second acquisition unit, the second acquisition unit is used to obtain first application information if the first account information is hotspot account information; a third acquisition unit, the third acquisition unit is used to obtain first token information according to the first application information; a fourth acquisition unit, the fourth acquisition unit is used to obtain first interrupt information according to the first token information; a first control unit, the first control unit is used to control the first token information to be in an interrupt state according to the first interrupt information; a fifth acquisition unit, the fifth acquisition unit is used to obtain first change information after the first token information is in an interrupt state; a second control unit, the second control unit is used to control the first token information to be released from the interrupt state according to the first change information; a sixth acquisition unit, the sixth acquisition unit is used to obtain first processing information after the first token information is released from the interrupt state; a first processing unit, the first processing unit is used to perform business processing on the first account according to the first processing information.

[0009] In a third aspect, the present invention provides a system for processing bank hotspot account transactions based on asynchronous token services, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the program.

[0010] One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0011] Because when detecting whether the first account is a hot account, the first application information is obtained, the first token information is obtained according to the application information, the main processing service thread is interrupted by the first token information, and when the first change information is obtained, the first account with the first token is controlled to be released from the interrupted state, the first processing information is obtained, and the business processing of the first account is performed according to the first processing information, so as to avoid occupying thread resources, protect the overall processing performance of the system, buffer the situation of excessive instantaneous concurrent transaction volume of hot accounts, ensure the transaction success rate under the premise of protecting the database from crashing, and bring better experience to users.

[0012] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 A flowchart of a method for processing bank hotspot account transactions based on an asynchronous token service according to an embodiment of the present application;

[0014] Figure 2 This is a schematic diagram of the structure of a system for processing bank hotspot account transactions based on an asynchronous token service according to an embodiment of the present application;

[0015] Figure 3 It is a schematic diagram of the structure of an exemplary electronic device according to an embodiment of the present application.

[0016] Explanation of the accompanying drawings: first obtaining unit 11, first judging unit 12, second obtaining unit 13, third obtaining unit 14, fourth obtaining unit 15, first control unit 16, fifth obtaining unit 17, second control unit 18, sixth obtaining unit 19, first processing unit 20, bus 300, receiver 301, processor 302, transmitter 303, memory 304, bus interface 306. DETAILED DESCRIPTION

[0017] The embodiment of the present application provides a method and system for processing bank hotspot account transactions based on asynchronous token services, which solves the technical problems in the prior art that the processing of hotspot accounts affects the overall processing performance of the system, occupies thread resources, causes database crashes when the instantaneous concurrent transaction volume of hotspot accounts is too large, and affects the transaction success rate. The technical effect of avoiding occupying thread resources, protecting the overall processing performance of the system, buffering the excessive instantaneous concurrent transaction volume of hotspot accounts, and ensuring the transaction success rate under the premise of protecting the database from crashing, thus bringing a better experience to users. Below, an example embodiment of the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments of the present application. It should be understood that the present application is not limited to the example embodiments described here.

[0018] Application Overview

[0019] In the process of bank transaction processing, there are a large number of concurrent operation requests for the same account in a short period of time (such accounts are generally called hot accounts). Nowadays, most bank core systems use distributed application systems, and multiple threads process operation requests simultaneously. Generally, in order to avoid data errors, when performing accounting processing, the data record of the account will be locked first in the same database transaction, and then the balance will be updated and the details will be registered. The lock will be automatically released after the database transaction is submitted; that is, only one thread resource can operate the account balance at the same time, and other threads need to wait. Therefore, when a hot account appears, the database response time increases, and as the number of concurrent transaction requests for hot accounts continues to increase, the response time also increases, resulting in transaction timeouts. When the transaction times out, in order to ensure data consistency, the transaction will actively roll back the uncommitted database transaction or perform a reversal operation on the submitted database transaction, thereby further increasing the database burden. In extreme cases, it may cause the database to crash. In the prior art, there are technical problems that the processing of hot accounts affects the overall processing performance of the system, occupies thread resources, and causes the database to crash when the instantaneous concurrent transaction volume of hot accounts is too large, affecting the transaction success rate.

[0020] In response to the above technical problems, the overall idea of ​​the technical solution provided by this application is as follows:

[0021] An embodiment of the present application provides a method for processing bank hotspot account transactions based on an asynchronous token service, the method comprising: obtaining first account information; determining whether the first account information is hotspot account information; if the first account information is hotspot account information, obtaining first application information; obtaining first token information based on the first application information; obtaining first interrupt information based on the first token information; controlling the first token information to be in an interrupt state based on the first interrupt information; when the first token information is in an interrupt state, obtaining first change information; controlling the first token information to be released from the interrupt state based on the first change information; when the first token information is released from the interrupt state, obtaining first processing information; performing business processing on the first account based on the first processing information.

[0022] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically described below in conjunction with the drawings in the specification.

[0023] Embodiment 1

[0024] like Figure 1 As shown, the embodiment of the present application provides a method for processing bank hotspot account transactions based on an asynchronous token service, wherein the method includes:

[0025] Step S100: obtaining first account information;

[0026] Specifically, the account is a general term for the deposit account, loan account, and current account opened by the customer in the bank. According to different uses, bank accounts can be divided into three categories: basic accounts, special accounts, and auxiliary accounts. In the accounting organization of the bank, in order to ensure the authenticity, completeness and correctness of the book records, the detailed classification accounts and general classification accounts are set up to record and reflect the detailed and summarized sources and uses of funds caused by the bank's business and financial activities. Obtain the first account information for business handling.

[0027] Step S200: determining whether the first account information is hotspot account information;

[0028] Specifically, the hot account refers to an account in which, during the bank transaction processing, there are a large number of concurrent operation requests for the same account within a short period of time. At this time, the account is called a hot account. Whether the first account is a hot account is determined based on the number of operation requests for the first account within a certain period of time.

[0029] Step S300: if the first account information is hotspot account information, obtaining first application information;

[0030] Step S400: Obtaining first token information according to the first application information;

[0031] Specifically, the first token information is obtained according to the first application information of the first account. Specifically, when the first account is identified as a hotspot account, a token is applied for from the token service according to the first application information of the first account.

[0032] Step S500: obtaining first interrupt information according to the first token information;

[0033] Step S600: According to the first interruption information, controlling the first token information to be in an interruption state;

[0034] Specifically, when the system recognizes that the first account has the first token information, it saves the context of the first account transaction information, obtains the first interrupt information, and interrupts the operation of the first account that obtains the first token according to the first interrupt information, that is, the system interrupts the processing thread and releases resources.

[0035] Step S700: when the first token information is in an interrupted state, obtaining first change information;

[0036] Step S800: according to the first change information, controlling the first token information to be released from the interrupt state;

[0037] Specifically, when the operation of the first account with the first token is interrupted, the token service recognizes that the hot account transaction can continue to be executed, actively wakes up the application main processing service, obtains the first change information, and controls the first token information to be released from the interrupt state according to the first change information.

[0038] Step S900: when the first token information is released from the interrupt state, obtaining first processing information;

[0039] Step S1000: performing business processing on the first account according to the first processing information.

[0040] Specifically, when the first token information is released from the interrupt state, the main processing thread is awakened, and the first token information is obtained. According to the first token information, the context of the first account information and the transaction information of the first account is restored. According to the restored information, the first processing information is obtained, and the business of the first account is processed according to the processing information. By allocating token resources to hot accounts, adding token services outside the main processing service, and reducing the occupation of resources of the main processing system by hot accounts, the thread resources are avoided, the overall processing performance of the system is protected, and the instantaneous concurrent transaction volume of hot accounts is buffered. The transaction success rate is guaranteed under the premise of protecting the database from crashing, and the technical effect of bringing better experience to users is achieved.

[0041] Furthermore, after performing business processing on the first account according to the first processing information, step S1000 in the embodiment of the present application further includes:

[0042] Step S1010: determining whether the first account information has the first token information;

[0043] Step S1020: if the first account information has the first token information, obtaining first return information;

[0044] Step S1030: Return the first token information according to the first return information.

[0045] Specifically, the resources used by the token service are independent of the main processing service and are specifically responsible for the queue control of hot accounts. When the business processing of the first account is completed, the token service determines whether the first account has the first token. When the account has the first token, the first token is returned to the token service. By sorting and identifying the accounts by the tokens, the hot accounts can be controlled and allocated in an orderly manner, which lays a solid foundation for buffering the excessive instantaneous concurrent transaction volume of hot accounts, protecting the database, and bringing better experience to users.

[0046] Further, after determining whether the first account information is hotspot account information, step S200 in the embodiment of the present application further includes:

[0047] Step S210: if the first account information is non-hotspot account information, obtain second processing information;

[0048] Step S220: performing business processing on the first account according to the second processing information.

[0049] Specifically, when the system identifies the first account as non-hotspot account information, the first account is processed according to the processing flow of a common account, that is, second processing information is obtained, and business processing is performed on the first account according to the second processing information.

[0050] Furthermore, the first token information is obtained according to the first application information, and step S400 of the embodiment of the present application further includes:

[0051] Step S410: Obtain Get token request information;

[0052] Step S420: judging whether the token resource queue has first idle token information according to the Get token request information;

[0053] Step S430: If the token resource queue has first idle token information, obtain the first token information;

[0054] Step S440: If the token resource queue does not have the first idle token information, obtain first waiting information, where the first waiting information is used to make the first account information wait in the token application queue.

[0055] Specifically, when the system identifies the first account information as a hotspot account, the first Get token request information is obtained according to the first application information of the first account, and it is determined whether there is an idle token in the token resource of the token service according to the Get token request information. When there is a first idle token in the token resource queue, the first token is obtained and the token is numbered. The processing order of the token is obtained according to the numbering information, and the account business with the token is processed according to the processing order. When the token queue does not have the first idle token, the first waiting information is obtained, and according to the waiting information, the first account information is waited in the token application queue.

[0056] Furthermore, when the first account information interrupts the first processing thread, the first change information is obtained, and step S700 of the embodiment of the present application further includes:

[0057] Step S710: Obtain thread occupancy status of the main processing service;

[0058] Step S720: Determine whether the thread occupancy condition can process the first token information;

[0059] Step S730: when the thread occupancy condition can process the first token information, obtain first change information;

[0060] Step S740: Change the first token information according to the first change information.

[0061] Specifically, when the thread of the main processing service occupies the account business that can process the first-ranked token, first change information is obtained, and a Got token request is sent to the token service based on the first change information. Based on the Got token request, the first token information is sent to the main processing service, and the status of the first token information is changed to processing.

[0062] Furthermore, after returning the first token information according to the first return information, step S1030 in the embodiment of the present application further includes:

[0063] Step S1031: Obtain Put token request information;

[0064] Step S1032: judging whether the token application queue has the second account information according to the Put token request information;

[0065] Step S1033: if the token application queue has the second account information, obtain the first sending information;

[0066] Step S1034: according to the first sending information, the first token information is sent to the second account information.

[0067] Specifically, after the first account performs business processing, the token combined with the first account is returned according to the Put token request. When the token application queue in the token service has an account in the queue, the second account is obtained according to the order of the application queue account. The second account is the account ranked first in the application queue. At this time, the first sending information is obtained according to the application information of the second account. According to the first sending information, the first token information is sent to the second account information. That is, this step is executed when the token service executes the Get token request and the token resource queue does not have a token, and the token application account is registered in the token application queue. When the token service executes the Put token request later, the token application account in the token application queue will be checked.

[0068] Furthermore, after determining whether the token application queue has the second account information, step S1032 of the embodiment of the present application further includes:

[0069] Step S1033: if the token application queue does not have the second account information, obtain the first registration information;

[0070] Step S1034: register the first token information in the token resource queue according to the first registration information.

[0071] Specifically, when there is no account application in the token application queue, the first registration information is obtained at this time, and the first token is registered in the token resource queue according to the first registration information for subsequent account token application. That is, the token is registered in the token resource queue. This step is performed when the token service executes a Put token request and there is no token application account. The token is registered in the token resource queue. When the token service executes a Get token request, the token in the token resource queue will be checked.

[0072] In summary, the method and system for processing bank hotspot account transactions based on asynchronous token service provided by the embodiment of the present application have the following technical effects:

[0073] 1. When detecting whether the first account is a hot account, the first application information is obtained, the first token information is obtained according to the application information, the main processing service thread is interrupted through the first token information, and when the first change information is obtained, the first account with the first token is controlled to be released from the interrupted state, the first processing information is obtained, and the business processing of the first account is performed according to the first processing information, so as to avoid occupying thread resources, protect the overall processing performance of the system, buffer the situation of excessive instantaneous concurrent transaction volume of hot accounts, ensure the transaction success rate under the premise of protecting the database from crashing, and bring better experience to users.

[0074] 2. By using the token to sort and identify accounts, the hot accounts can be controlled and allocated in an orderly manner, which can buffer the excessive instantaneous concurrent transaction volume of hot accounts, protect the database, and lay a solid foundation for providing users with a better experience.

[0075] Embodiment 2

[0076] Based on the same inventive concept as the method for processing bank hotspot account transactions based on asynchronous token service in the aforementioned embodiment, the present invention also provides a system for processing bank hotspot account transactions based on asynchronous token service, such as Figure 2 As shown, the system comprises:

[0077] A first obtaining unit 11, wherein the first obtaining unit 11 is used to obtain first account information;

[0078] A first judgment unit 12, the first judgment unit 12 is used to judge whether the first account information is hotspot account information;

[0079] A second obtaining unit 13, the second obtaining unit 13 is used to obtain first application information if the first account information is hotspot account information;

[0080] A third obtaining unit 14, wherein the third obtaining unit 14 is used to obtain first token information according to the first application information;

[0081] A fourth obtaining unit 15, wherein the fourth obtaining unit 15 is configured to obtain first interruption information according to the first token information;

[0082] A first control unit 16, wherein the first control unit 16 is used to control the first token information to be in an interrupt state according to the first interrupt information;

[0083] A fifth obtaining unit 17, wherein the fifth obtaining unit 17 is configured to obtain first change information when the first token information is in an interrupted state;

[0084] a second control unit 18, the second control unit 18 being configured to control the first token information to be released from the interrupt state according to the first change information;

[0085] A sixth obtaining unit 19, the sixth obtaining unit 19 is used to obtain first processing information when the first token information is released from the interrupt state;

[0086] The first processing unit 20 is used to perform business processing on the first account according to the first processing information.

[0087] Furthermore, the system also includes:

[0088] a second determination unit, configured to determine whether the first account information has the first token information;

[0089] a seventh obtaining unit, the seventh obtaining unit being configured to obtain first return information if the first account information has the first token information;

[0090] A first returning unit, wherein the first returning unit is configured to return the first token information according to the first returning information.

[0091] Furthermore, the system also includes:

[0092] an eighth obtaining unit, the eighth obtaining unit being configured to obtain second processing information if the first account information is non-hotspot account information;

[0093] A ninth obtaining unit, wherein the ninth obtaining unit is configured to perform business processing on the first account according to the second processing information.

[0094] Furthermore, the system also includes:

[0095] A tenth obtaining unit, the tenth obtaining unit is used to obtain Get token request information;

[0096] A third judgment unit, the third judgment unit is used to judge whether the token resource queue has first idle token information according to the Get token request information;

[0097] an eleventh obtaining unit, the eleventh obtaining unit being configured to obtain the first token information if the token resource queue has first idle token information;

[0098] A twelfth obtaining unit, the twelfth obtaining unit is used to obtain first waiting information if the token resource queue does not have first idle token information, the first waiting information is used to make the first account information wait in the token application queue.

[0099] Furthermore, the system also includes:

[0100] a thirteenth obtaining unit, the thirteenth obtaining unit being used to obtain thread occupancy status of the main processing service;

[0101] A fourth judgment unit, the fourth judgment unit is used to judge whether the thread occupancy condition can process the first token information;

[0102] a fourteenth obtaining unit, the fourteenth obtaining unit being configured to obtain first change information when the thread occupancy condition allows processing of the first token information;

[0103] A fifteenth obtaining unit, the fifteenth obtaining unit is used to change the first token information according to the first change information.

[0104] Furthermore, the system also includes:

[0105] A sixteenth obtaining unit, the sixteenth obtaining unit is used to obtain Put token request information;

[0106] a fifth determination unit, configured to determine whether the token application queue has second account information according to the Put token request information;

[0107] a seventeenth obtaining unit, the seventeenth obtaining unit being configured to obtain first sending information if the token application queue has the second account information;

[0108] A first sending unit, wherein the first sending unit is configured to send the first token information to the second account information according to the first sending information.

[0109] Furthermore, the system also includes:

[0110] an eighteenth obtaining unit, the eighteenth obtaining unit being configured to obtain first registration information if the token application queue does not have the second account information;

[0111] A first registration unit, wherein the first registration unit is used to register the first token information in the token resource queue according to the first registration information.

[0112] The foregoing Figure 1The various variations and specific examples of the method for processing bank hotspot account transactions based on asynchronous token service in Example 1 are also applicable to a system for processing bank hotspot account transactions based on asynchronous token service in this embodiment. Through the above detailed description of the method for processing bank hotspot account transactions based on asynchronous token service, those skilled in the art can clearly know the implementation method of a system for processing bank hotspot account transactions based on asynchronous token service in this embodiment. Therefore, for the sake of brevity of the specification, it will not be described in detail here.

[0113] Exemplary Electronic Devices

[0114] Reference below Figure 3 To describe the electronic device of the embodiment of the present application.

[0115] Figure 3 The figure shows a schematic structural diagram of an electronic device according to an embodiment of the present application.

[0116] Based on the inventive concept of a method for processing bank hotspot account transactions based on asynchronous token service in the aforementioned embodiment, the present invention also provides a system for processing bank hotspot account transactions based on asynchronous token service, on which a computer program is stored, and when the program is executed by a processor, the steps of any method of the method for processing bank hotspot account transactions based on asynchronous token service described above are implemented.

[0117] Among them, Figure 3 In the embodiment of the present invention, a bus architecture (represented by bus 300) is shown, which may include any number of interconnected buses and bridges, and bus 300 links together various circuits including one or more processors represented by processor 302 and memory represented by memory 304. Bus 300 may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 306 provides an interface between bus 300 and receiver 301 and transmitter 303. Receiver 301 and transmitter 303 may be the same element, namely a transceiver, which provides a unit for communicating with various other systems over a transmission medium.

[0118] The processor 302 is responsible for managing the bus 300 and general processing, while the memory 304 may be used to store data used by the processor 302 when performing operations.

[0119] The embodiment of the present invention provides a method for processing bank hotspot account transactions based on asynchronous token service, the method comprising: obtaining first account information; determining whether the first account information is hotspot account information; if the first account information is hotspot account information, obtaining first application information; obtaining first token information according to the first application information; obtaining first interrupt information according to the first token information; controlling the first token information to be in an interrupt state according to the first interrupt information; when the first token information is in an interrupt state, obtaining first change information; controlling the first token information to be released from the interrupt state according to the first change information; when the first token information is released from the interrupt state, obtaining first processing information; and performing business processing on the first account according to the first processing information. The method solves the technical problems in the prior art that the processing of hotspot accounts affects the overall processing performance of the system, occupies thread resources, causes the database to crash when the instantaneous concurrent transaction volume of the hotspot account is too large, and affects the transaction success rate, so as to avoid occupying thread resources, protect the overall processing performance of the system, buffer the situation of excessive instantaneous concurrent transaction volume of hotspot accounts, and ensure the transaction success rate under the premise of protecting the database from crashing, so as to bring a better experience to users.

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

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

[0122] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction system, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in a box or multiple boxes. Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they know the basic creative concept. Therefore, the attached claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0124] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for processing bank hotspot account transactions based on asynchronous token services, wherein: The method comprises: Obtaining first account information; Determining whether the first account information is hotspot account information; If the first account information is hotspot account information, obtaining first application information; Obtaining first token information according to the first application information; Obtaining first interrupt information according to the first token information; According to the first interruption information, controlling the first token information to be in an interruption state includes: After identifying that the first account has the first token information, saving the context of the first account information, obtaining first interrupt information, and interrupting the operation of the first account having the first token according to the first interrupt information, that is, interrupting the processing thread and releasing resources; When the first token information is in an interrupted state, obtaining first change information; Controlling the first token information to be released from the interrupt state according to the first change information includes: When the operation of the first account with the first token is interrupted, the token service actively wakes up the application main processing service when it recognizes that the hotspot account transaction can continue to be executed, obtains the first change information, and controls the first token information to be released from the interrupted state according to the first change information; When the first token information is released from the interrupt state, obtaining first processing information; Perform business processing on the first account according to the first processing information.

2. The method of claim 1, wherein: After performing business processing on the first account according to the first processing information, the method includes: Determining whether the first account information has the first token information; If the first account information has the first token information, obtaining first return information; The first token information is returned according to the first return information.

3. The method of claim 1, wherein: After determining whether the first account information is hotspot account information, the method includes: If the first account information is non-hotspot account information, obtaining second processing information; Perform business processing on the first account according to the second processing information.

4. The method of claim 2, wherein: The obtaining first token information according to the first application information includes: Get the Get token request information; According to the Get token request information, determining whether the token resource queue has first idle token information; If the token resource queue has first idle token information, obtaining the first token information; If the token resource queue does not have the first idle token information, first waiting information is obtained, where the first waiting information is used to make the first account information wait in the token application queue.

5. The method of claim 1, wherein: The step of obtaining first change information after the first token information is in an interrupted state includes: Get the thread occupancy of the main processing service; Determine whether the thread occupancy condition can process the first token information; When the thread occupancy condition allows processing of the first token information, obtaining first change information; The first token information is changed according to the first change information.

6. The method of claim 4, wherein: After returning the first token information according to the first return information, the method includes: Get Put token request information; According to the Put token request information, determining whether the token application queue has second account information; If the token application queue has the second account information, obtaining the first sending information; The first token information is sent to the second account information according to the first sending information.

7. The method of claim 6, wherein: After determining whether the token application queue has the second account information, the method includes: If the token application queue does not have the second account information, obtaining first registration information; The first token information is registered in the token resource queue according to the first registration information.

8. A system for processing bank hotspot account transactions based on asynchronous token services, wherein: The system comprises: A first obtaining unit, wherein the first obtaining unit is used to obtain first account information; a first judgment unit, configured to judge whether the first account information is hotspot account information; a second obtaining unit, the second obtaining unit being configured to obtain first application information if the first account information is hotspot account information; a third obtaining unit, the third obtaining unit being used to obtain first token information according to the first application information; a fourth obtaining unit, configured to obtain first interruption information according to the first token information; A first control unit, the first control unit is used to control the first token information to be in an interrupt state according to the first interrupt information, including: After identifying that the first account has the first token information, saving the context of the first account information, obtaining first interrupt information, and interrupting the operation of the first account having the first token according to the first interrupt information, that is, interrupting the processing thread and releasing resources; a fifth obtaining unit, configured to obtain first change information when the first token information is in an interrupted state; A second control unit, the second control unit is used to control the first token information to be released from the interrupt state according to the first change information, including: When the operation of the first account with the first token is interrupted, the token service actively wakes up the application main processing service when it recognizes that the hotspot account transaction can continue to be executed, obtains the first change information, and controls the first token information to be released from the interrupted state according to the first change information; a sixth obtaining unit, configured to obtain first processing information after the first token information is released from the interrupt state; A first processing unit, wherein the first processing unit is used to perform business processing on the first account according to the first processing information.

9. A system for processing bank hotspot account transactions based on asynchronous token services, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Transaction request control method, server and system

    CN108011840A

  • Securing mo / to processing

    EP3136329A1