CN107274162A - A kind of processing method of high transaction concurrency - Google Patents

A kind of processing method of high transaction concurrency Download PDF

Info

Publication number
CN107274162A
CN107274162A CN201710401191.6A CN201710401191A CN107274162A CN 107274162 A CN107274162 A CN 107274162A CN 201710401191 A CN201710401191 A CN 201710401191A CN 107274162 A CN107274162 A CN 107274162A
Authority
CN
China
Prior art keywords
account
processing
focus
record
payment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710401191.6A
Other languages
Chinese (zh)
Inventor
屈鸿京
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mayor Liang Polytron Technologies Inc
Original Assignee
Shenzhen Mayor Liang Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mayor Liang Polytron Technologies Inc filed Critical Shenzhen Mayor Liang Polytron Technologies Inc
Priority to CN201710401191.6A priority Critical patent/CN107274162A/en
Publication of CN107274162A publication Critical patent/CN107274162A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/24Credit schemes, i.e. "pay after"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention discloses a kind of processing method of high transaction concurrency, performs special processing for the focus account in banking system, it includes following process:The account of focus account has been prestored in a default focus credit, the focus credit;The trading processing request of account is received, the account of the account is inquired about whether in focus credit;If the account is present in focus credit, trading processing request of the focus account flow to the account is called to handle;During the trading processing request of focus account flow processing account, asynchronous task is added in pending account queue, the asynchronous task is used for the transaction for handling account, and the transaction of account is divided into two flow processings, and a flow processing balance updates request and solution are stopped payment;Accounting processing request of another flow processing in addition to balance updates.

Description

A kind of processing method of high transaction concurrency
Technical field
The present invention relates to the processing that there is high transaction concurrency in financial system, in particular in banking system The data processing of focus account.
Background technology
In current bank operation system, often occur that some carry out substantial amounts of business transaction, example for same account Frequent transfer accounts such as same account needs to update the data the Account History in storehouse, and generally we are high by concurrency of being merchandised in one second It is referred to as focus account up to the accounts of 500.Accordingly, business that is big to these trading volumes and being related to the renewal of focus account, is referred to as For focus account business;Trading volume is small or is not related to the business of focus account renewal, is considered as non-hot account business.
Typically for the renewal of an Account History in banking system, following process is generally required, first to this The data of bar Account History are locked (lock), after the completion of locking, and its remaining sum is updated, then release locking (unlock), this is to prevent other business to this account data also while operate, it is to avoid unnecessary data mistake By mistake, it is ensured that same time only one of which business division is operated to its account data.Assuming that database carries out one to data Secondary renewal needs to use 10 milliseconds of time, and if running into the huge focus account of transaction concurrency, then needs in one minute The operation that processing is thousands of or even up to ten thousand times, then database will have little time response, finally collapse.Even arrive IT technologies such Flourishing today, focus account is still the persistent ailment for perplexing many banking systems.
Focus account is not handled particularly in existing banking system, thus focus account ought occur When, with following problem:1st, database row level lock causes the response time long, and trading processing is slow;2nd, prolonged accumulated plugging, Many transaction request eventually time-outs can be caused to fail, reason is inadequate for the disposal ability of system;3 and if the existing lock of change The data processing method of fixed-renewal-release locking, then can have financial risks, a unsuccessfully uncertainty and risk of merchandise successfully.
The content of the invention
Therefore, for it is above-mentioned the problem of, the present invention propose it is a kind of it is high transaction concurrency processing method, for banking Focus account (height transaction concurrency) in system performs especially processing:Using interim book keeping operation measure of stopping payment and be delayed, one is realized Plant and stop payment delay book keeping operation scheme temporarily, improve system concurrency ability, database has little time what is responded caused by solving focus account Persistent ailment.
Specifically, in order to solve the above-mentioned technical problem, the technical solution adopted in the present invention is, a kind of high transaction concurrency Processing method, including:
The account of focus account has been prestored in a default focus credit, the focus credit;
The trading processing request of account is received, the account of the account is inquired about whether in focus credit;Wherein, account Trading processing request includes detailed, the dynamic account of balance updates, account and notifies, adjusts detail etc. request;
If the account is present in focus credit, focus account flow is called to ask the trading processing of the account Handled;
During the trading processing request of focus account flow processing account, add asynchronous in pending account queue Task, the asynchronous task is used for the transaction for handling account, and the transaction of account is divided into two flow processings, a flow processing Balance updates are asked and solution is stopped payment;Accounting processing request of another flow processing in addition to balance updates, for example account is bright Carefully, account is moved to notify, adjust detail etc. processing request.
Further, trading processing request of the focus account flow to account is handled, including:
It is debit account or credit entry to judge the account, if the account is debit account, goes to debit's focus The process step of account, if the account is credit entry, goes to the process step of credit side's focus account.
Wherein, the process step of debit's focus account includes::
Step 1:Handle debit in standalone transaction to stop payment, while stopping payment addition in table temporarily toward focus account stops payment note Record;Focus account stops payment the record that table is used to stop payment account implementation temporarily in record process temporarily;
Step 2:Available amount inspection to the debit account, merchandises if available amount is less than 0 and fails immediately, and move back Go out;It can be calculated and obtained by available amount algorithm with amount;
Step 3:If 0 can be more than with amount, credit entry is updated;
Step 4:Debit account is updated, the addition asynchronous task in pending account table (pending account queue) should Asynchronous task is divided into two flow (being designated as first pass and second procedure) processing, and first pass processing balance updates and solution are stopped Pay;Accounting processing of the second procedure processing in addition to balance updates;Meanwhile, what addition account balance was changed rushes positive daily record;Wherein, During processing, first pass only handles balance updates and solution is stopped payment, and detailed, the dynamic account of debit account is notified, detail etc. is adjusted Reason is all skipped over, and line delay batch processing is entered by second procedure;
Step 5:If renewal is unsuccessful, Fail Transaction, appearance are abnormal, and release debit stops payment:Stop temporarily in focus account Pay delete this transaction addition in table all stop payment record.This operation is post-processed in master transaction rollback.
The processing of credit side's focus account comprises the following steps:
Step 1:Credit entry updates:Asynchronous task is added in pending account table, the asynchronous task is divided into two streams Journey (being designated as first pass and second procedure) processing, first pass processing balance updates and solution are stopped payment;Second procedure processing is removed Accounting processing beyond balance updates;Wherein, credit entry is detailed, move account, which notifies, adjust the processing such as detail all skips over, by different The delay batch processing of step;Meanwhile, what addition account balance was changed rushes positive daily record;Add and stop in focus account stops payment table temporarily Record (negative can be used) is paid, what addition account balance was changed rushes positive daily record;
Step 2:Debit account updates.
Further, above-mentioned first pass (first pass of the asynchronous task in the process step of debit's focus account and The first pass in asynchronous task in the process step of credit side's focus account is all suitable for) it is timing batch to the processing of balance updates Amount is handled, and it comprises the following steps:
Step 1:The record for meeting preparatory condition from " pending account table " middle screening is put into memory array, for example, preset bar Part is:Trade date=" focus account batch date " and states=' 0 ', chooses preceding 10000 records;
Step 2:The recording interval registered according to memory array, collects netting amount by primary account number and currency type;
Step 3:Main account remaining sum is updated by the netting amount of primary account number and currency type;
Step 4:Corresponding record " focus account stops payment table " temporarily in is deleted according to core serial number, account sequence number;
Step 5:Update state=' 2 ' of this 10000 records in " pending account table ".
Further, the above-mentioned second procedure (second procedure of the asynchronous task in the process step of debit's focus account It is all suitable for the second procedure in the asynchronous task in the process step of credit side's focus account) to the account in addition to balance updates Processing request is handled, and specifically timing batch is handled, and it comprises the following steps:
Step 1:The record for meeting preparatory condition is screened from " pending account table ", such as preparatory condition is:Trade date =" the focus account batch date " and states=' 2 ', choose it is preceding 10000 record.
Step 2:The corresponding record in " pending account table " is deleted by core serial number, account serial number, cleaning exception Stop payment record temporarily;
Step 3:To main account Table Properties upper day account balance, remaining sum recent renewal date, last traffic date etc. enter Row updates;
Step 4:The remaining sum generated in account detail, detail is arranged by amount order, according to remaining sum of upper day or newest remaining sum Order is calculated by pen;Adjust detailed generation processing etc.;
Step 5:Addition account is detailed, adjusting the detailed positive log information that rushes, (core serial number uses protokaryon heart flowing water Number);
Step 6:Family notification message is moved by the detailed Batch sending of account, is transmitted with many record message to improve efficiency;
Step 7:The abnormal interim record of stopping payment of cleaning is handled:The interim record of stopping payment recorded without pending account will be clearly Remove;It is for follow-up safeguard that abnormal interim of cleaning in the step, which stops payment record,;
Step 8:Positive other processing are rushed, such as account is being recorded as punching just, then positive other contents (such as regulation of breathing) are rushed in processing.
Further, trading processing request of the focus account flow to account is handled, in addition to is located to abnormal Reason, handles abnormal progress and is divided into timing batch processing exception, and the day abnormal scheme of whole batch processing;Wherein, using fixed When the abnormal scheme of batch processing, it includes following process:
Step 1:Rollback present batch window affairs;Present batch window affairs are different in addition to online account limit is checked Batch processing flow is walked, the window phase that for example current system is set is every 500 one submissions, only rollback current window when doing rollback Affairs in phase, have been filed on before for completion status, behind do not submit for unfinished state;
Step 2:Pause " delay book keeping operation timing batch ";" delay book keeping operation timing batch " be it is above-mentioned to except balance updates with Second process of outer accounting processing request, pause " delay book keeping operation timing batch " namely the processing of the second process of pause;
Step 3:Recording exceptional daily record;
Step 4:Send alarm information.
It is as follows using the abnormal process of day whole batch processing:
Step 1:Rollback present batch window affairs;
Step 2:Expiration date whole batch;
Step 3:Recording exceptional daily record;
Step 4:Send alarm information.
Wherein, day whole batch and above-mentioned timing batch are consistent in logic in processing, only initiate time point and mode Difference, day is to ensure last line of defense for finishing of T days focus account account normal process in batches eventually, as being unsatisfactory for being fully completed Condition, then follow-up handling process just has to wait for, the accounting processing until completing all focus accounts.
Further, trading processing request of the focus account flow to account is handled, in addition to the positive processing of punching, focus Rushing for account trading is just still rushed positive mechanism and handled using unified, but to stopping payment temporarily, pending account rush just carry out it is special Different processing, it specifically includes following process:
Timing is rushed in the business diary to " insertion is stopped payment " class temporarily, following operation is performed:" focus account is stopped payment temporarily Table " addition record, the amount of money is opposite with former transaction (stopping payment the amount of money such as insertion for positive number), and standalone transaction insertion can be used;Go forward side by side Row overdraw remaining sum inspection, to ensure that punching does not just make account overdraw;
Timing is rushed in the business diary to " the pending account of insertion " class, following operation is performed:At " pending account table " Addition record, enables two asynchronous process:One is remaining using the first process (asynchronous balance updates mechanism, timing batch processing) processing What volume was changed rushes just;Two be using the second process (asynchronous other processing, timing batch processing) processing (account in addition to balance updates It is detailed, adjust detailed, dynamic family and notify etc.) rush just.
In said process, punching is just handling nonessential process, only when follow-up asynchronous process occurs abnormal being that can just initiate.One Denier initiates the positive request of punching, then need to complete three actions:1st, positive treatment mechanism is rushed to the progress of online transaction request using general Punching is just;2nd, rushed just to stopping payment special shape temporarily;3rd, pending account special shape is rushed just.
It is by checking that the account merchandises concurrency in preset time during existing banking system processing focus account Interior number of times judges focus account, that is to say, that it is identified in transaction, and the present invention in transaction not to handing over Easily carry out focus identification, but in serviced component according to account be identified its whether focus account, if focus account Focus account flow is then called to be handled automatically, therefore the account of all transaction all first passes through serviced component filtering, so that The actual number of concurrent to focus account operation of control, therefore the solution of the present invention can solve the slow problem of trading processing, Yi Jijiao The problems such as easily asking no longer accumulated plugging.
Meanwhile, the strategy that the present invention is kept accounts using delay performs interim book keeping operation of stopping payment and be delayed respectively using two flows, System concurrency ability is improved, during processing, first flow only handles remaining sum reconciliation and stopped payment, so that high speed processing is realized, second Other the complicated accounting processings of flow processing in addition to remaining sum, second flow by the way of timing batch processing, every The focus account data of preset time screening preparatory condition is put into internal memory, and the focus account data of internal memory is then synchronized to data Storehouse is gone.That is the present invention separates balance updates and other accounting processings, and balance updates can be realized immediately, at other accounts Reason performs timing batch operation, therefore the design of the present invention not only meets the timely of balance updates, and solves focus account Trading processing is slow, transaction request accumulated plugging the problems such as.
Brief description of the drawings
Fig. 1 is the overall plan to the processing of core banking system focus account using the present invention;
Fig. 2 is the business flow processing overview to the processing of core banking system focus account using the present invention;
Fig. 3 is debit's flow chart to the processing of core banking system focus account using the present invention;
Fig. 4 is credit side's flow chart to the processing of core banking system focus account using the present invention;
Fig. 5 is the flow chart to core banking system focus account balance Timing Processing using the present invention;
Fig. 6 is the flow chart to other account Timing Processings of core banking system focus account using the present invention;
Fig. 7 is the flow chart to core banking system focus account DayEndProcess using the present invention;
Fig. 8 is to rush the flow chart just handled to core banking system focus account using the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
Referring to Fig. 1, the present invention provides a kind of processing method of high transaction concurrency, and it includes:
The account of focus account has been prestored in a default focus credit, the focus credit;
The trading processing request of account is received, the account of the account is inquired about whether in focus credit;Wherein, account Trading processing request includes detailed, the dynamic account of balance updates, account and notifies, adjusts detail etc. request;
If the account is present in focus credit, focus account flow is called to ask the trading processing of the account Handled;
During the trading processing request of focus account flow processing account, add asynchronous in pending account queue Task, the asynchronous task is used for the transaction for handling account, and the transaction of account is divided into two flow processings, a flow processing Balance updates are asked and solution is stopped payment;Accounting processing request of another flow processing in addition to balance updates, for example account is bright Carefully, account is moved to notify, adjust detail etc. processing request.
As a specific case study on implementation, introduced below of the invention implements, and initially sets up the various clothes of following table Business component, to support the delay of focus account to collect the realization of scheme:
Referring to Fig. 2, overall plan design of the invention is as follows:
A) focus identification is not carried out to transaction in on-line transaction, but is identified in serviced component according to account, And focus account flow processing is called automatically;
, it is necessary to asynchronous task be added in pending account queue, to notify other flows when b) recognizing focus account Cooperation is handled;
C) asynchronous task therein is divided into two flow processings, a high speed processing:Only processing balance updates solution is stopped payment;One Individual complex process:Accounting processing in addition to remaining sum.
D) processing in DayEndProcess, one is to ensure that cuts day is normally carried out, and one is to carry out maintenance processing to related data (point maintenance).
When focus account flow is handled the trading processing request of account, it is debit account to first determine whether the account Or credit entry, if the account is debit account, goes to the process step of debit's focus account, if the account is to borrow Square account, then go to the process step of credit side's focus account.
Wherein, referring to Fig. 3, the processing of debit's focus account comprises the following steps:
Step 1:Handle debit in standalone transaction to stop payment, while stopping payment addition in table temporarily toward focus account stops payment note Record;
Step 2:Available amount inspection to the debit account, merchandises if available amount is less than 0 and fails immediately, and move back Go out;It can be calculated and obtained by available amount algorithm with amount;
Step 3:If 0 can be more than with amount, credit entry is updated;
Step 4:Debit account is updated, addition is different in pending account table (to describe pending account queue) Step task, the asynchronous task is divided into two flow (being designated as first pass and second procedure) processing, and first pass processing remaining sum is more New and solution is stopped payment;Accounting processing of the second procedure processing in addition to balance updates;Meanwhile, what addition account balance was changed rushes just Daily record;Wherein, during processing, first pass only handles balance updates and solution is stopped payment, detailed to debit account, dynamic account notice, core Calculate the processing such as detail all to skip over, line delay batch processing is entered by second procedure;
Step 5:If renewal is unsuccessful, Fail Transaction, appearance are abnormal, and release debit stops payment:Stop temporarily in focus account Pay delete this transaction addition in table all stop payment record.This operation is post-processed in master transaction rollback.
Referring to Fig. 4, the processing of credit side's focus account comprises the following steps:
Step 1:Debit value unit is checked, it is eligible, go to step 2;
Step 2:Credit entry updates:Asynchronous task is added in pending account table, the asynchronous task is divided into two streams Journey (being designated as first pass and second procedure) processing, first pass processing balance updates and solution are stopped payment;Second procedure processing is removed Accounting processing beyond balance updates;Wherein, credit entry is detailed, move account, which notifies, adjust the processing such as detail all skips over, by different The delay batch processing of step;Meanwhile, what addition account balance was changed rushes positive daily record;Add and stop in focus account stops payment table temporarily Record (negative can be used) is paid, what addition account balance was changed rushes positive daily record;
Step 3:Debit account updates.
The first pass of asynchronous task in the process step of debit's focus account and the process step of credit side's focus account In asynchronous task in first pass in the processing of balance updates handled by the way of timing batch, referring to Fig. 5, it comprises the following steps:
Step 1:Memory array is put into from " pending account table " filter record, screening conditions are:Trade date=" focus Account batch date " and states=' 0 ', chooses preceding 10000 records;
Step 2:The recording interval registered according to memory array, collects netting amount by primary account number and currency type;
Step 3:Main account remaining sum is updated by the netting amount of primary account number and currency type;
Step 4:According to core serial number, account sequence number (major key), the correspondence " focus account stops payment table " temporarily in is deleted Record;
Step 5:Meanwhile, update state=' 2 ' of this 10000 records in " pending account table ".
Referring to Fig. 6, the second procedure of the asynchronous task in the process step of debit's focus account and credit side's focus account The second procedure in asynchronous task in process step is handled the accounting processing request in addition to balance updates, is specifically Handled by the way of timing batch, it comprises the following steps:
Step 1:From " pending account table " filter record, condition:Trade date=" focus account batch date " and shapes State=' 2 ', choose it is preceding 10000 record, namely first pass timing batch operation terminate after record;
Step 2:" pending account table " record is deleted by core serial number, account serial number, cleaning is abnormal to stop payment temporarily Record;
Step 3:The main account Table Properties such as upper day account balance, remaining sum recent renewal date, last traffic date update;
Step 4:The remaining sum generated in account detail, detail is arranged by amount order, according to remaining sum of upper day or newest remaining sum Order is calculated by pen;Adjust detailed generation processing etc.;
Step 5:Addition account is detailed, adjusting the detailed positive log information that rushes, (core serial number uses protokaryon heart flowing water Number);
Step 6:Family notification message is moved by the detailed Batch sending of account, is transmitted with many record message to improve efficiency;
Step 7:The abnormal interim record of stopping payment of cleaning is handled:The interim record of stopping payment recorded without pending account will be clearly Remove;
Step 8:Positive other processing are rushed, such as account is being recorded as punching just, then positive other contents (such as regulation of breathing) are rushed in processing.
It is divided into the abnormal scheme of timing batch processing, and the day abnormal scheme of whole batch processing again to abnormal processing;Wherein, Using the abnormal scheme of timing batch processing, it includes following process:
Step 1:Rollback present batch window affairs;
Step 2:Pause " delay book keeping operation timing batch ";
Step 3:Recording exceptional daily record;
Step 4:Alarm information is sent to core information switching subsystem;
It is as follows using the abnormal process of day whole batch processing:
Step 1:Rollback present batch window affairs;
Step 2:Expiration date whole batch;
Step 3:Recording exceptional daily record;
Step 4:Alarm information is sent to core information switching subsystem.
Day, whole lot flow processing was referring to Fig. 7.
Referring to Fig. 8, rushing for focus account trading is just still handled using unified positive mechanism of rushing, but to stopping payment, waiting to locate temporarily Rushing for account of reason just carries out specially treated:
Timing is rushed in the business diary to " insertion is stopped payment " class temporarily, is extended using specially treated:
Step 1:Add and record " focus account stops payment table " temporarily, the amount of money is with former transaction on the contrary, stopping payment gold such as insertion Volume is positive number, is inserted using standalone transaction, and carries out remaining sum inspection of overdrawing, to ensure that punching does not just make account overdraw.
Step 2:Timing is rushed in the business diary to " the pending account of insertion " class, is extended using specially treated::
Step 3:Add and record at " pending account table ", enable two asynchronous process:One is with asynchronous balance updates machine Make the remaining sum change after (timing batch processing) processing punching just;Two be enable it is asynchronous it is other processing (timing batch processing) processing account it is bright Carefully, the positive processing of the punching such as detailed, dynamic family notice is adjusted.
Although specifically showing and describing the present invention with reference to preferred embodiment, those skilled in the art should be bright In vain, do not departing from the spirit and scope of the present invention that appended claims are limited, in the form and details can be right The present invention makes a variety of changes, and is protection scope of the present invention.

Claims (10)

1. a kind of processing method of high transaction concurrency, it is characterised in that:Including:
The account of focus account has been prestored in a default focus credit, the focus credit;
The trading processing request of account is received, the account of the account is inquired about whether in focus credit;
If the account is present in focus credit, focus account flow is called to ask to carry out to the trading processing of the account Processing;
During the trading processing request of focus account flow processing account, asynchronous is added in pending account queue Business, the asynchronous task is used to handling the transaction of account, and the transaction of account is divided into two flow processings, more than a flow processing Volume updates request and solution is stopped payment;Accounting processing request of another flow processing in addition to balance updates.
2. the processing method of high transaction concurrency according to claim 1, it is characterised in that:Focus account flow processing account The trading processing request at family, including:
It is debit account or credit entry to judge the account, if the account is debit account, goes to debit's focus account Process step, if the account is credit entry, go to the process step of credit side's focus account.
3. the processing method of high transaction concurrency according to claim 2, it is characterised in that:Debit's focus account Process step includes:
Handle debit in standalone transaction to stop payment, while record is stopped payment in addition in focus account stops payment table temporarily;
Available amount inspection to the debit account, merchandises if available amount is less than 0 and fails immediately, and exit;
If 0 can be more than with amount, credit entry is updated;
Debit account is updated, asynchronous task is added in pending account table, the asynchronous task is divided into two flow processings, the One flow processing balance updates and solution are stopped payment;Accounting processing of the second procedure processing in addition to balance updates;Meanwhile, add account What family remaining sum was changed rushes positive daily record;
If renewal is unsuccessful, Fail Transaction, appearance are abnormal, and release debit stops payment:Deleted in focus account stops payment table temporarily The all of this transaction addition stop payment record.
4. the processing method of high transaction concurrency according to claim 2, it is characterised in that:Credit side's focus account Processing comprises the following steps:
Credit entry updates:Asynchronous task is added in pending account table, the asynchronous task is divided into two flow processings, first Flow processing balance updates and solution are stopped payment;Accounting processing of the second procedure processing in addition to balance updates;Meanwhile, add account What remaining sum was changed rushes positive daily record;Record is stopped payment in addition in focus account stops payment table temporarily, and what addition account balance was changed rushes just Daily record;
Debit account updates.
5. the processing method of the high transaction concurrency according to claim 3 or 4, it is characterised in that:The first pass pair The processing of balance updates is that timing batch is handled, and it comprises the following steps:
The record for meeting preparatory condition from " pending account table " middle screening is put into memory array;
The recording interval registered according to memory array, collects netting amount by primary account number and currency type;
Main account remaining sum is updated according to netting amount;
Corresponding record " focus account stops payment table " temporarily in is deleted according to core serial number, account sequence number.
6. the processing method of high transaction concurrency according to claim 5, it is characterised in that:The second procedure is to except remaining Accounting processing request beyond volume updates is handled, and specifically timing batch is handled, and it comprises the following steps:
The record for meeting preparatory condition is screened from " pending account table ";
Corresponding record in " pending account table " is deleted according to core serial number, account serial number, and clears up and abnormal stops temporarily Pay record;
To main account Table Properties upper day account balance, remaining sum recent renewal date, last traffic date be updated;
Generate account detailed;
Addition account is detailed, adjusts and detailed rushes positive log information;
Family notification message is moved according to the detailed Batch sending of account;
The interim of cleaning exception stops payment record:Remove and stop payment record temporarily without what pending account was recorded.
7. the processing method of high transaction concurrency according to claim 6, it is characterised in that:The second procedure is to except remaining Accounting processing request beyond volume updates is handled, in addition to the positive processing of punching.
8. the processing method of high transaction concurrency according to claim 7, it is characterised in that:The positive processing of punching, specifically Including:
Timing is rushed in the business diary to " insertion is stopped payment " class temporarily, following handle is performed:" focus account stops payment table " temporarily Addition record, the amount of money with former transaction on the contrary, and carry out remaining sum inspection of overdrawing, to ensure that punching does not just make account overdraw;
Timing is rushed in the business diary to " the pending account of insertion " class, following handle is performed:In " pending account table " addition Record, enables two asynchronous process:One is to handle rushing just for remaining sum change using the first process;Two be using the processing of the second process Rushing just in addition to balance updates.
9. the processing method of high transaction concurrency according to claim 2, it is characterised in that:Focus account flow processing account The trading processing request at family, in addition to handle abnormal.
10. the processing method of high transaction concurrency according to claim 9, it is characterised in that:Abnormal progress processing is adopted It is abnormal with timing batch processing exception or end day batch processing, wherein, timing batch processing is specifically included extremely:
Rollback present batch window affairs;
Pause " delay book keeping operation timing batch ";
Recording exceptional daily record;
Send alarm information;
Day, whole batch processing was abnormal, specifically included:
Rollback present batch window affairs;
Expiration date whole batch;
Recording exceptional daily record;
Send alarm information.
CN201710401191.6A 2017-05-31 2017-05-31 A kind of processing method of high transaction concurrency Pending CN107274162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710401191.6A CN107274162A (en) 2017-05-31 2017-05-31 A kind of processing method of high transaction concurrency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401191.6A CN107274162A (en) 2017-05-31 2017-05-31 A kind of processing method of high transaction concurrency

Publications (1)

Publication Number Publication Date
CN107274162A true CN107274162A (en) 2017-10-20

Family

ID=60065069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401191.6A Pending CN107274162A (en) 2017-05-31 2017-05-31 A kind of processing method of high transaction concurrency

Country Status (1)

Country Link
CN (1) CN107274162A (en)

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767264A (en) * 2017-10-27 2018-03-06 中国银行股份有限公司 Online transaction system focus account trading flow pressure real-time monitoring method and device
CN107993147A (en) * 2017-11-13 2018-05-04 中国银行股份有限公司 The remaining sum control method and device of hot spot account
CN108319691A (en) * 2018-02-01 2018-07-24 宝付网络科技(上海)有限公司 A kind of bookkeeping methods, billing and accounting system and payment system
CN108335091A (en) * 2018-01-26 2018-07-27 深圳盛付通科技有限公司 A kind of method and system keeping account balance consistency in the case where high concurrent pays scene
CN108564352A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 The processing method and processing device of e-sourcing information
CN108615184A (en) * 2018-03-29 2018-10-02 阿里巴巴集团控股有限公司 A kind of method and device of book keeping operation
CN108615145A (en) * 2018-04-09 2018-10-02 交通银行股份有限公司 A kind of method and system of account parallel access money
CN108681959A (en) * 2018-05-14 2018-10-19 阿里巴巴集团控股有限公司 A kind of bookkeeping methods and server
CN108830705A (en) * 2018-04-09 2018-11-16 阿里巴巴集团控股有限公司 A kind of method of summary of transaction data, device and equipment
CN108897783A (en) * 2018-06-08 2018-11-27 阿里巴巴集团控股有限公司 Accounting mode determines method, account status prediction technique, device and electronic equipment
CN108961026A (en) * 2018-07-04 2018-12-07 中国建设银行股份有限公司 Account calculates processing method, device and electronic equipment
CN109087086A (en) * 2018-08-01 2018-12-25 中信百信银行股份有限公司 The method for controlling hot spot account trading
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
CN109472577A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Account keeps accounts method, apparatus, computer equipment and storage medium
CN109544315A (en) * 2018-10-10 2019-03-29 中国建设银行股份有限公司 Bank account flow processing method, system, device and storage medium
CN109544338A (en) * 2018-11-15 2019-03-29 深圳前海微众银行股份有限公司 Assets stock trading method, equipment and computer readable storage medium
CN109615514A (en) * 2018-11-27 2019-04-12 宝付网络科技(上海)有限公司 Hot spot account trading system and method
CN109636369A (en) * 2018-11-02 2019-04-16 深圳市快付通金融网络科技服务有限公司 Fund account accounting processing method, apparatus, computer equipment and storage medium
CN110060036A (en) * 2019-03-29 2019-07-26 宝付网络科技(上海)有限公司 A kind of fractionation bookkeeping methods, billing and accounting system and payment system
CN110175919A (en) * 2019-05-29 2019-08-27 深圳前海微众银行股份有限公司 Transaction data processing method, device, equipment and computer readable storage medium
CN110223175A (en) * 2019-05-26 2019-09-10 必成汇(成都)科技有限公司 The Account History immediate processing method of hot spot account
CN110298746A (en) * 2019-07-04 2019-10-01 中国工商银行股份有限公司 Hot spot account concurrent data processing system and method
CN110310192A (en) * 2019-05-23 2019-10-08 平安银行股份有限公司 Transaction processing method, device, equipment and storage medium based on data analysis
CN110795171A (en) * 2019-09-18 2020-02-14 平安银行股份有限公司 Service data processing method and device, computer equipment and storage medium
CN110889754A (en) * 2019-11-19 2020-03-17 中信百信银行股份有限公司 Method for improving processing efficiency of unviable payment hotspot account
CN110942393A (en) * 2019-11-11 2020-03-31 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main and sub accounts and electronic equipment
CN111008828A (en) * 2019-12-28 2020-04-14 辽宁振兴银行股份有限公司 Intelligent identification method for hot account of online transaction system
CN111061748A (en) * 2019-12-12 2020-04-24 吉林亿联银行股份有限公司 Hot account accounting method and device
CN111242754A (en) * 2018-11-13 2020-06-05 北京嘀嘀无限科技发展有限公司 Account data updating method and device and electronic equipment
CN111552697A (en) * 2020-04-16 2020-08-18 重庆富民银行股份有限公司 High concurrency processing method for solving hot account of bank core system
CN111626736A (en) * 2020-05-28 2020-09-04 上海银行股份有限公司 Method for accelerating transaction response rate of hotspot account
WO2020177479A1 (en) * 2019-03-05 2020-09-10 阿里巴巴集团控股有限公司 Method and system for account processing, and computing device
CN111984664A (en) * 2020-09-07 2020-11-24 中国银行股份有限公司 High-concurrency transaction processing method and device
CN112381537A (en) * 2020-11-05 2021-02-19 上海汇付数据服务有限公司 Hotspot account billing method
CN112465492A (en) * 2020-11-20 2021-03-09 银盛支付服务股份有限公司 Distributed high-concurrency condition-based accounting processing method and system
CN113298513A (en) * 2021-06-21 2021-08-24 深圳前海微众银行股份有限公司 Method and system for processing payment request
CN113312538A (en) * 2021-07-30 2021-08-27 深圳市工易付电子科技有限公司 Transaction query method, device, equipment, readable storage medium and program product
CN117172918A (en) * 2023-08-17 2023-12-05 中电金信软件有限公司 Transaction processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620703A (en) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 Buffer bookkeeping method and device
CN101639792A (en) * 2008-07-29 2010-02-03 阿里巴巴集团控股有限公司 Method and device for processing concurrent data and electronic accounting system
CN101989213A (en) * 2009-08-07 2011-03-23 阿里巴巴集团控股有限公司 Account concurrent processing method and account concurrent processing system
US20110320354A1 (en) * 2010-06-28 2011-12-29 Coon Jonathan C Systems and methods for asynchronous mobile authorization of credit card purchases
CN105844521A (en) * 2016-03-22 2016-08-10 中国银行股份有限公司 Transaction concurrence quantity control method and device
CN105931109A (en) * 2015-09-18 2016-09-07 中国银联股份有限公司 Method and device for account balance update

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620703A (en) * 2008-07-04 2010-01-06 阿里巴巴集团控股有限公司 Buffer bookkeeping method and device
CN101639792A (en) * 2008-07-29 2010-02-03 阿里巴巴集团控股有限公司 Method and device for processing concurrent data and electronic accounting system
CN101989213A (en) * 2009-08-07 2011-03-23 阿里巴巴集团控股有限公司 Account concurrent processing method and account concurrent processing system
US20110320354A1 (en) * 2010-06-28 2011-12-29 Coon Jonathan C Systems and methods for asynchronous mobile authorization of credit card purchases
CN105931109A (en) * 2015-09-18 2016-09-07 中国银联股份有限公司 Method and device for account balance update
CN105844521A (en) * 2016-03-22 2016-08-10 中国银行股份有限公司 Transaction concurrence quantity control method and device

Cited By (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107767264A (en) * 2017-10-27 2018-03-06 中国银行股份有限公司 Online transaction system focus account trading flow pressure real-time monitoring method and device
CN107993147A (en) * 2017-11-13 2018-05-04 中国银行股份有限公司 The remaining sum control method and device of hot spot account
CN108335091A (en) * 2018-01-26 2018-07-27 深圳盛付通科技有限公司 A kind of method and system keeping account balance consistency in the case where high concurrent pays scene
CN108319691A (en) * 2018-02-01 2018-07-24 宝付网络科技(上海)有限公司 A kind of bookkeeping methods, billing and accounting system and payment system
CN108564352A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 The processing method and processing device of e-sourcing information
CN108615184A (en) * 2018-03-29 2018-10-02 阿里巴巴集团控股有限公司 A kind of method and device of book keeping operation
TWI684944B (en) * 2018-03-29 2020-02-11 香港商阿里巴巴集團服務有限公司 Accounting method and device
CN108615184B (en) * 2018-03-29 2020-12-18 创新先进技术有限公司 Accounting method and device
WO2019184571A1 (en) * 2018-03-29 2019-10-03 阿里巴巴集团控股有限公司 Bookkeeping method and device
CN108615145A (en) * 2018-04-09 2018-10-02 交通银行股份有限公司 A kind of method and system of account parallel access money
CN108830705A (en) * 2018-04-09 2018-11-16 阿里巴巴集团控股有限公司 A kind of method of summary of transaction data, device and equipment
CN108830705B (en) * 2018-04-09 2021-09-03 创新先进技术有限公司 Method, device and equipment for summarizing transaction data
CN108681959A (en) * 2018-05-14 2018-10-19 阿里巴巴集团控股有限公司 A kind of bookkeeping methods and server
CN108681959B (en) * 2018-05-14 2022-05-27 创新先进技术有限公司 Accounting method and server
CN108897783A (en) * 2018-06-08 2018-11-27 阿里巴巴集团控股有限公司 Accounting mode determines method, account status prediction technique, device and electronic equipment
CN108961026A (en) * 2018-07-04 2018-12-07 中国建设银行股份有限公司 Account calculates processing method, device and electronic equipment
CN109087086A (en) * 2018-08-01 2018-12-25 中信百信银行股份有限公司 The method for controlling hot spot account trading
CN109472577A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Account keeps accounts method, apparatus, computer equipment and storage medium
CN109544315A (en) * 2018-10-10 2019-03-29 中国建设银行股份有限公司 Bank account flow processing method, system, device and storage medium
CN109636369A (en) * 2018-11-02 2019-04-16 深圳市快付通金融网络科技服务有限公司 Fund account accounting processing method, apparatus, computer equipment and storage medium
CN111242754A (en) * 2018-11-13 2020-06-05 北京嘀嘀无限科技发展有限公司 Account data updating method and device and electronic equipment
CN109544338A (en) * 2018-11-15 2019-03-29 深圳前海微众银行股份有限公司 Assets stock trading method, equipment and computer readable storage medium
CN109615514A (en) * 2018-11-27 2019-04-12 宝付网络科技(上海)有限公司 Hot spot account trading system and method
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
WO2020177479A1 (en) * 2019-03-05 2020-09-10 阿里巴巴集团控股有限公司 Method and system for account processing, and computing device
CN110060036A (en) * 2019-03-29 2019-07-26 宝付网络科技(上海)有限公司 A kind of fractionation bookkeeping methods, billing and accounting system and payment system
CN110310192A (en) * 2019-05-23 2019-10-08 平安银行股份有限公司 Transaction processing method, device, equipment and storage medium based on data analysis
CN110223175A (en) * 2019-05-26 2019-09-10 必成汇(成都)科技有限公司 The Account History immediate processing method of hot spot account
CN110175919A (en) * 2019-05-29 2019-08-27 深圳前海微众银行股份有限公司 Transaction data processing method, device, equipment and computer readable storage medium
CN110298746A (en) * 2019-07-04 2019-10-01 中国工商银行股份有限公司 Hot spot account concurrent data processing system and method
CN110795171B (en) * 2019-09-18 2023-08-04 平安银行股份有限公司 Service data processing method, device, computer equipment and storage medium
CN110795171A (en) * 2019-09-18 2020-02-14 平安银行股份有限公司 Service data processing method and device, computer equipment and storage medium
CN110942393B (en) * 2019-11-11 2023-08-15 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main account and sub account, and electronic equipment
CN110942393A (en) * 2019-11-11 2020-03-31 支付宝(杭州)信息技术有限公司 Transaction processing method and device based on main and sub accounts and electronic equipment
CN110889754A (en) * 2019-11-19 2020-03-17 中信百信银行股份有限公司 Method for improving processing efficiency of unviable payment hotspot account
CN110889754B (en) * 2019-11-19 2023-07-11 中信百信银行股份有限公司 Method for improving processing efficiency of non-overdraft hot spot account
CN111061748B (en) * 2019-12-12 2023-09-26 吉林亿联银行股份有限公司 Billing method and device for hot spot account
CN111061748A (en) * 2019-12-12 2020-04-24 吉林亿联银行股份有限公司 Hot account accounting method and device
CN111008828B (en) * 2019-12-28 2023-09-05 辽宁振兴银行股份有限公司 Intelligent identification method for hot account of online transaction system
CN111008828A (en) * 2019-12-28 2020-04-14 辽宁振兴银行股份有限公司 Intelligent identification method for hot account of online transaction system
CN111552697B (en) * 2020-04-16 2023-09-15 重庆富民银行股份有限公司 High concurrency processing method for solving hot-spot account of bank core system
CN111552697A (en) * 2020-04-16 2020-08-18 重庆富民银行股份有限公司 High concurrency processing method for solving hot account of bank core system
CN111626736A (en) * 2020-05-28 2020-09-04 上海银行股份有限公司 Method for accelerating transaction response rate of hotspot account
CN111984664A (en) * 2020-09-07 2020-11-24 中国银行股份有限公司 High-concurrency transaction processing method and device
CN111984664B (en) * 2020-09-07 2023-11-17 中国银行股份有限公司 High concurrency transaction processing method and device
CN112381537A (en) * 2020-11-05 2021-02-19 上海汇付数据服务有限公司 Hotspot account billing method
CN112465492A (en) * 2020-11-20 2021-03-09 银盛支付服务股份有限公司 Distributed high-concurrency condition-based accounting processing method and system
CN113298513A (en) * 2021-06-21 2021-08-24 深圳前海微众银行股份有限公司 Method and system for processing payment request
CN113312538A (en) * 2021-07-30 2021-08-27 深圳市工易付电子科技有限公司 Transaction query method, device, equipment, readable storage medium and program product
CN117172918A (en) * 2023-08-17 2023-12-05 中电金信软件有限公司 Transaction processing method and device

Similar Documents

Publication Publication Date Title
CN107274162A (en) A kind of processing method of high transaction concurrency
EP0932875B1 (en) Method of transferring funds employing a three-node real-time electronic interlock
US20140114821A1 (en) Apparatus for consolidating financial transaction information
US20180285844A1 (en) Automated teller machine transaction premium listing to prevent transaction blocking
JP2890452B2 (en) Deposit and withdrawal reservation system and equipment for it
CN106296392A (en) Method and device for selecting payment and remittance routes
CN109035026B (en) One-key financial product combined transaction flow control method and system
JP2004213124A (en) Fund management method and system
CN107993147A (en) The remaining sum control method and device of hot spot account
CN101694711A (en) Capital receipt and payment system and method thereof
CN109325763A (en) A kind of transaction processing method and device that computer executes
CN114202334A (en) Method and system suitable for asynchronously updating balance of hotspot account in batch
CN110084692A (en) A kind of bookkeeping methods and device
WO2015140503A1 (en) Automatic data transfer
JP5889379B1 (en) Electronic record receivable collateral management service system and method
JP2002297898A (en) Data processing system, accounting system, and data processing system operating method
CN102831547B (en) A kind of method and system of settling interests in real time and processing of realizing
US20130191273A1 (en) System and method for expedited release of held items
KR100725465B1 (en) Foreign currency deposit system being capable of multiple fixed foreign currency deposit
WO2021040879A1 (en) Transaction system management
JP3471728B2 (en) Future date completion processing system and method
EP1591933A1 (en) A method and system for automated "delivery-versus-payment" settlements
CN108288237A (en) A kind of credits, which are mediated, mediates with arbitration in conjunction with the system and method for solving credits dispute
CN113128991B (en) Public settlement account fund accounting system and working method thereof
JP3611110B2 (en) System, method and program for completion process of the previous date, program for cancel / recut main process used therefor, resource optimization system, program and program for cancel / reexecute main process used therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171020