Method and System for Account Parallel Processing
Abstract
A method for account parallel processing used by an account processing center to process a request for account operation is disclosed. The method comprises: (1) categorizing accounts as high parallel occurrence accounts and common accounts; (2) when receiving the request from the client for processing operation of an account, firstly determining whether the account is a high parallel occurrence account; and if the account is a high parallel occurrence account, continuing to a step (3), otherwise, conducting a step (4); (3) if the account is locked, queuing a current operation to wait until implementation of the current operation; and (4) further determining, by the account processing center, whether the account is locked and outputting an error message when the account is locked, otherwise implementing the current operation. Such method provides more high quality services to the high parallel occurrence accounts. As for the common accounts, when there is a high volume of parallel transactions on the common accounts, the volume of parallel processing can be effectively controlled by outputting an error message to prevent comment accounts from causing damage the system.
Claims
exact text as granted — not AI-modified1 - 12 . (canceled)
13 . A method comprising:
categorizing one or more accounts, by an account processing center, into different types of account; establishing processing operations for each type of account; receiving a request for processing an account; determining a type of the account; determining, by the account processing center, whether the account is locked; and in response to determining that the account is locked, processing the account according to a processing operation corresponding to the type of the account.
14 . The method as recited in claim 13 , further comprising in response to determining that the account is locked, implementing a current operation.
15 . The method as recited in claim 13 , wherein the processing the account according to the processing operation corresponding to the type of the account comprises:
after the account is locked, outputting an error message when M is zero and waiting for time T before further determining if the account is locked; and when the account is further determined to be locked, decrementing M by 1, otherwise implementing the current operation, wherein M is a number of waiting times set up for a respective type of account.
16 . The method as recited in claim 13 , wherein the categorizing the one or more accounts into different types of account comprises categorizing the one or more accounts as a high parallel occurrence account or a common account.
17 . The method as recited in claim 16 , wherein the categorizing the one or more accounts as the high parallel occurrence account or the common account comprises setting up a number of high parallel occurrence accounts according to a percentage of high parallel occurrence accounts among all accounts
18 . The method as recited in claim 16 , wherein the categorizing accounts as the high parallel occurrence account or the common account comprises:
calculating a respective number of operations of each account of the one ore more accounts in a predetermined period; ranking each account of the one or more accounts according to their respective number of operations; and designating a number of accounts with highest number of operations as high parallel occurrence accounts.
19 . The method as recited in claim 16 , wherein the categorizing accounts as the high parallel occurrence account or the common account comprises saving account identifications of high parallel occurrence accounts into memory.
20 . The method as recited in claim 13 , wherein the determining the type of the account comprises determining whether the account is a high parallel occurrence account upon receiving the request from a client for processing the account.
21 . The method as recited in claim 20 , wherein the determining whether the account is the high parallel occurrence account upon receiving the request from the client for processing the account comprises:
comparing an account identification of the account with account identifications of high parallel occurrence accounts stored in the memory; in response to determining that there is a match between the account identification of the account and one of the account identifications of the high parallel occurrence accounts, determining that the account is the high parallel occurrence account; and in response to determining that there is not a match between the account identification of the account and one of the account identifications of the high parallel occurrence accounts, determining that the account is the common account.
22 . The method as recited in claim 13 , wherein the implementing the current operation comprises locking the account.
23 . The method as recited in claim 22 , wherein the implementing the current operation further comprises implementing an operation on the account.
24 . The method as recited in claim 23 , wherein the implementing the current operation further comprises releasing a corresponding lock of the account after the operation is implemented.
25 . A method comprising:
categorizing one or more accounts into different types of account; assigning different priorities to the different types of account; and establishing processing operations for a respective type of account after the respective type of account is locked based on a priority associated with the respective type of account, the processing operations including:
in response to a determination that the respective type of account is a first type account, outputting an error message;
in response to a determination that the respective type of account is a second type account, waiting for a pre-determined time.
26 . The method as recited in claim 25 , further comprising in response to determining that the respective type of account is still locked after the pre-determined time, outputting the error message.
27 . The method as recited in claim 25 , further comprising in response to determining that the respective type of account is a third type account, waiting for the pre-determined time.
28 . The method as recited in claim 27 , further comprising:
in response to determining that the respective type of account is locked after the pre-determined time, waiting for another pre-determined time; and in response to determining that the respective type of account is locked after the another pre-determined time, outputting the error message.
29 . The method as recited in claim 25 , wherein the categorizing accounts into different types of accounts comprises:
pre-setting a respective percentage of the first type account and the second type account respectively; calculating a number of operations for each account within a period of time; ranking accounts according to the number of operations; calculating a number of total accounts; calculating a respective number of each type of account according to the respective percentage of each type of account and the number of total accounts; and assigning the corresponding respective number of accounts from the ranked accounts to each type of account.
30 . The method as recited in claim 25 , further comprising performing operations on the respective type of account after the respective type of account is unlocked.
31 . A method comprising:
under a control of a server: categorizing one or more accounts into different types of account; assigning different priorities to the different types of account; and establishing processing operations for a respective type of account after the respective type of account is locked based on a priority associated with the respective type of account, the processing operations including:
in response to determining that the respective type of account is a first type account, outputting an error message;
in response to determining that the respective type of account is a second type account, waiting for a pre-determined time; and
in response to determining that the respective type of account is still locked after the pre-determined time, outputting the error message; and
in response to determining that the respective type of account is a third type account, waiting for the pre-determined time;
in response to determining that the respective type of account is still locked after the pre-determined time, waiting for another pre-determined time; and
in response to determining that the respective type of account is still locked after the another pre-determined time, outputting the error message.
32 . The method as recited in claim 31 , wherein the categorizing accounts into different types of accounts comprises:
pre-setting a respective percentage of the first type account, the second type account, and the third type account respectively; calculating a number of operations for each account within a period of time; ranking accounts according to the number of operations; calculating a number of total accounts; calculating a respective number of each type of account according to the respective percentage of each type of account and the number of total accounts; and assigning the corresponding respective number of accounts from the ranked accounts to each type of account.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.