CN107977837A - The remaining sum control method and device of hot spot account - Google Patents

The remaining sum control method and device of hot spot account Download PDF

Info

Publication number
CN107977837A
CN107977837A CN201711104944.3A CN201711104944A CN107977837A CN 107977837 A CN107977837 A CN 107977837A CN 201711104944 A CN201711104944 A CN 201711104944A CN 107977837 A CN107977837 A CN 107977837A
Authority
CN
China
Prior art keywords
remaining sum
account
sub
hot spot
threshold
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
CN201711104944.3A
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.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201711104944.3A priority Critical patent/CN107977837A/en
Publication of CN107977837A publication Critical patent/CN107977837A/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/22Payment schemes or models
    • 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/227Payment schemes or models characterised in that multiple accounts are available, e.g. to the payer
    • 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

Abstract

The present invention provides a kind of remaining sum control method and device of hot spot account, wherein, this method includes:When the transaction amount absolute value for judging transaction request is more than first threshold, the process of control process transaction request interacts processing with the sub- account of the first remaining sum;When the transaction amount absolute value for judging transaction request is less than or equal to first threshold, the process of control process transaction request interacts processing with the sub- account of the second remaining sum;Above-mentioned hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes the sub- account of first remaining sum and the M sub- accounts of the second remaining sum, and M is the integer more than or equal to 1;Remaining sum in the sub- account of first remaining sum is more than second threshold, and the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than the 3rd threshold value.Above-mentioned technical proposal improves the coincidence and stability of hot spot account balance control, so as to improve the treatment effeciency and stability of hot spot account trading.

Description

The remaining sum control method and device of hot spot account
Technical field
The present invention relates to remaining sum control technology field, more particularly to a kind of remaining sum control method and device of hot spot account.
Background technology
The account that high-frequency accesses is hot spot account.For the big hot spot account of such a financial transaction frequency, due to Withdrawal is required for carrying out remaining sum inspection and more new balance, the existing remaining sum control pressure to hot spot account are big, causes hot spot The transaction processing efficiency of account is low.
The content of the invention
An embodiment of the present invention provides a kind of remaining sum control method of hot spot account, to improve the control of hot spot account balance Coincidence and stability, this method include:
When the transaction amount absolute value for judging transaction request is more than first threshold, transaction request described in control process into Journey interacts processing with the sub- account of the first remaining sum, updates the remaining sum in the sub- account of the first remaining sum;
When the transaction amount absolute value for judging transaction request is less than or equal to first threshold, transaction request described in control process Process and the sub- account of the second remaining sum interact processing, the remaining sum in the renewal sub- account of the second remaining sum;
Hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes one The sub- account of first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;Remaining sum in the sub- account of first remaining sum is big Remaining sum in second threshold, the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than the 3rd threshold value.
The embodiment of the present invention additionally provides a kind of remaining sum control device of hot spot account, to improve hot spot account balance control The coincidence and stability of system, the device include:
The sub- account control unit of first remaining sum, for being more than first threshold when the transaction amount absolute value for judging transaction request When, the process of transaction request described in control process interacts processing with the sub- account of the first remaining sum, updates the sub- account of the first remaining sum In remaining sum;
The sub- account control unit of second remaining sum, for being less than or equal to first when the transaction amount absolute value for judging transaction request During threshold value, the process of transaction request described in control process interacts processing, renewal the second remaining sum with the sub- account of the second remaining sum Remaining sum in account;
Hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes one The sub- account of first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;Remaining sum in the sub- account of first remaining sum is big Remaining sum in second threshold, the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than the 3rd threshold value.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize hot spot account as described above when performing the computer program The remaining sum control method at family.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, the computer-readable recording medium storage There is the remaining sum control method for performing hot spot account as described above.
Technical solution provided in an embodiment of the present invention:
First, the remaining sum of hot spot account is divided into N number of sub- account, every sub- account independently carries out remaining sum control, per height Account need not be interacted with other sub- accounts, and therefore, overall concurrency performance is improved close to N times, and account balance updates pressure It is not to focus in an account, has disperseed the pressure of transaction, alleviates the pressure of the remaining sum processing of hot spot account.
Secondly, the sub- account of N number of remaining sum is divided into the sub- account of the first remaining sum and M sub- accounts of the second remaining sum, more than first Remaining sum in volume account is more than second threshold, and the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than 3rd threshold value, the remaining sum in so sub- account of first remaining sum are much larger than the remaining sum in the sub- account of the second remaining sum, when judging that transaction please When the transaction amount absolute value asked is more than first threshold, the process of transaction request described in control process and the sub- account of the second remaining sum into Row interaction process, updates the remaining sum in the sub- account of the first remaining sum;When the transaction amount absolute value for judging external transaction request is less than During equal to first threshold, the process of transaction request described in control process and the sub- account of the second remaining sum interact processing, update the Remaining sum in the sub- account of two remaining sums, reduces the frequency that Sorry, your ticket has not enough value in the small sub- account of the second remaining sum of remaining sum, realizes to heat Point account balance stably controls.
In conclusion technical solution provided in an embodiment of the present invention improves the coincidence of hot spot account balance control and steady It is qualitative, so as to improve the treatment effeciency and stability of hot spot account trading.
Brief description of the drawings
Attached drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, not Form limitation of the invention.In the accompanying drawings:
Fig. 1 is the principle schematic of the remaining sum control program of hot spot account in the embodiment of the present invention;
Fig. 2 is from certain account trading amount of money distribution schematic diagram of production environment collection in the embodiment of the present invention;
Fig. 3 is the flow diagram of the remaining sum control method of hot spot account in the embodiment of the present invention;
Fig. 4 is that the remaining sum of N number of account in the embodiment of the present invention sets the schematic diagram of distribution;
Fig. 5 is the flow diagram that remaining sum controls cannot be unlocked in the embodiment of the present invention halfway in the case of;
Fig. 6 is that the flow diagram that remaining sum controls in the case of logical transaction can be unlocked in the embodiment of the present invention;
Fig. 7 is the structure diagram of the remaining sum control device of hot spot account in the embodiment of the present invention.
Embodiment
It is right with reference to embodiment and attached drawing for the object, technical solutions and advantages of the present invention are more clearly understood The present invention is described in further details.Here, the exemplary embodiment and its explanation of the present invention are used to explain the present invention, but simultaneously It is not as a limitation of the invention.
The some accounts of bank cause trading volume especially big due to specific use, and since the particularity of account should not be drawn It is divided into multiple accounts, since account is split as multiple accounts by rigid requirement client, result of which causes the external of bank Service quality is deteriorated, and client cannot pellucidly treat account, and therefore, this remaining sum control for allowing for solving account at the same time is asked Topic and concurrent access problem.
Since inventor considers technical problem existing in the prior art, it is proposed that the remaining sum control of hot spot account of the invention The technical solution of system:
A. remaining sum divides bucket:In most cases, the account that high frequency accesses, is the public account of enterprise mostly, wherein Have substantial amounts of fund to accumulate, if to realize the parallelization processing of remaining sum control, this is very important.In practical application In, the situation and the resource that can be provided of account trading frequency and environment that can be accumulated according to account fund, account balance is pressed It is divided into the independent progress remaining sum control of N number of sub- account (being referred to as bucket herein) according to certain proportion, as shown in Figure 1.Due to the overwhelming majority Situation, the remaining sum of bucket is enough, it is possible to need not be interacted with other buckets, overall concurrency performance improves close N times.
Drum refers to the sub- account of the first remaining sum, the sub- account of the second remaining sum that keg refers in the embodiment of the present invention.This hair The remaining sum of a hot spot account is divided into N barrels in bright embodiment, i.e., N number of sub- account of remaining sum, the program is by a hot spot account Remaining sum be divided into N number of sub- account, rather than account is split as multiple accounts by rigid requirement client mentioned above, and meaning is not Together.
B. serialization in due course:Account balance divides after bucket, if there is the single barrel of situation that Sorry, your ticket has not enough value, in order to avoid accessing Other buckets cause deadlock, are handled using the serialization since drum.
C., drum is set:Actually should be index of coincidence distribution since the account trading amount of money is not balanced.For Transaction amount especially huge (exceeding some given threshold, can be first threshold), transaction are routed to drum processing.Drum (the sub- account of the first remaining sum) includes the remaining sum of Account Settings ratio (e.g. more than the remaining sum of second threshold).If drum remaining sum Still it is insufficient, then remaining keg (the sub- account of the second remaining sum) is accessed successively.
D. keg remaining sum homogenizes processing:When keg draws that Sorry, your ticket has not enough value, drum remaining sum is reduced first, if drum remaining sum Sufficient (exceeding the setting ratio with average transactions balances of setting, be greater than the 5th threshold value), then drum remaining sum is marked one Partly (setting transfer the amount of money, that is, set the amount of money), the keg that Sorry, your ticket has not enough value is dialled in.The smaller amount of money of deposit (is, for example, less than the 4th During threshold value) when, also it is stored in keg, so allows for the balance that keg remaining sum keeps basic.
The remaining sum control technology scheme of hot spot account provided in an embodiment of the present invention is more suitable for the small transaction of transaction amount, Transaction amount is bigger, and the lower hot spot account of occurrence frequency, reason is that inventor have passed through substantial amounts of experiment, in certain period Interior, the transaction to multiple and different hot spot accounts is analyzed, and analysis result is as follows:
Fig. 2 is that abscissa is transaction amount absolute value from certain account trading amount of money distribution map of production environment collection, indulges and sits The ratio for the number of transaction being designated as near such a transaction amount, according to Fig. 2, the feature of above-mentioned distribution is:Amount incurred is absolute It is worth less transaction than comparatively dense, and amount incurred is big, than sparse.
As described above, correlation theoretically is not present between transaction request and transaction request, this results in each The transaction amount approximation index of coincidence distribution of transaction request, is exactly that the small transaction of transaction amount is more, and transaction amount is bigger, frequency occurs Rate is lower.If meeting this distribution, just relatively it is adapted to divide bucket method (by hot spot account using what the embodiment of the present invention proposed Remaining sum is divided into the sub- account of N number of remaining sum).
The technical solution controlled below the remaining sum of hot spot account proposed by the present invention describes in detail.
Fig. 3 is the flow diagram of the remaining sum control method of hot spot account in the embodiment of the present invention, as shown in figure 3, the party Method includes:
Step 101:When the transaction amount absolute value for judging transaction request is more than first threshold, transaction described in control process The process of request interacts processing with the sub- account of the first remaining sum, updates the remaining sum in the sub- account of the first remaining sum;
Step 102:When the transaction amount absolute value for judging transaction request is less than or equal to first threshold, described in control process The process of transaction request interacts processing with the sub- account of the second remaining sum, updates the remaining sum in the sub- account of the second remaining sum;
Hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes one The sub- account of first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;Remaining sum in the sub- account of first remaining sum is big Remaining sum in second threshold, the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than the 3rd threshold value.
Technical solution provided in an embodiment of the present invention:
First, the remaining sum of hot spot account is divided into N number of sub- account, every sub- account independently carries out remaining sum control, per height Account need not be interacted with other sub- accounts, and therefore, overall concurrency performance is improved close to N times, and account balance updates pressure It is not to focus in an account, has disperseed the pressure of transaction, alleviates the pressure of the remaining sum processing of hot spot account.
Secondly, the sub- account of N number of remaining sum is divided into the sub- account of the first remaining sum and M sub- accounts of the second remaining sum, more than first Remaining sum in volume account is more than second threshold, and the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and second threshold is more than 3rd threshold value, the remaining sum in so sub- account of first remaining sum are much larger than the remaining sum in the sub- account of the second remaining sum, when judging that transaction please When the transaction amount absolute value asked is more than first threshold, the process of transaction request described in control process and the sub- account of the second remaining sum into Row interaction process, updates the remaining sum in the sub- account of the first remaining sum;When the transaction amount absolute value for judging external transaction request is less than During equal to first threshold, the process of transaction request described in control process and the sub- account of the second remaining sum interact processing, update the Remaining sum in the sub- account of two remaining sums, reduces the frequency that Sorry, your ticket has not enough value in the small sub- account of the second remaining sum of remaining sum, realizes to heat Point account balance stably controls.
In conclusion technical solution provided in an embodiment of the present invention improves the coincidence of hot spot account balance control and steady It is qualitative, so as to improve the treatment effeciency and stability of hot spot account trading.
When it is implemented, the quantity of the sub- account of the first remaining sum (drum) can also be according to real work in the embodiment of the present invention Need to set 2 or more than 2.
Inventor has found:It is not stringent for remaining sum control requirement, it can be completed by the way of asynchronous amended record, exactly joined Machine simply completes keeping accounts for sub- account, and sub- account allows to overdraw, and starts amended record process on backstage, and amended record process is serially completed all Keep accounts operation account balance renewal.Due to being not synchronous between account balance and sub- account balance, so remaining sum controls False Sorry, your ticket has not enough value phenomenon, or even false remaining sum abundance phenomenon occurs.Foot and insufficient are pretended to be in order to avoid this remaining sum to show As inventors herein proposing following scheme:
In one embodiment, the remaining sum control method of above-mentioned hot spot account can also include:
When transaction request is withdrawal request, when judging one of sub- account of N number of remaining sum Sorry, your ticket has not enough value, control from The sub- account of first remaining sum starts to the serialization more new balance of the sub- account of the second remaining sum.
When it is implemented, serialization is handled, the judgement for mainly ensureing remaining sum is real.It is actual when Sorry, your ticket has not enough value On when being not necessarily the sum of all buckets deficiency, to employ the remaining sum of other barrels, often design and bad will result in deadlock.Transaction is in itself It is difficult to judge deadlock, the problem of also unavoidable remaining sum is still insufficient.Serialization simply can thoroughly solve Deadlock, institute There are more barrels to lock all since drum.
Therefore, by above-mentioned, simplification serial process mechanism when Sorry, your ticket has not enough value, this mechanism is not only succinct, ensures The authenticity of remaining sum, and thoroughly solve Deadlock from principle.
In one embodiment, when external transaction request is withdrawal request, one of sub- account of N number of remaining sum is being judged When Sorry, your ticket has not enough value, control since the sub- account of the first remaining sum to the serialization more new balance of the sub- account of the second remaining sum, can wrap Include:
With since the sub- account of the first remaining sum to the order of the sub- account of M the second remaining sums, be the sub- account of the first remaining sum and every A sub- account of second remaining sum respectively sets a serial mark, and every transaction request is added to the team interacted with the sub- account of the first remaining sum Row;
The sub- account of N number of remaining sum is followed successively by lock;
When remaining sum is sufficient after the remaining sum for judging the sub- account of N number of remaining sum merges, remaining sum is reduced, if inadequate, is handed over Easily failure rolling back action.
By above-mentioned, when it is implemented, serialization more new balance mainly includes the following steps:
A) serial mark is set, it is all enter bucket (N number of sub- account of remaining sum) operation will be serialized because of the mark, all operations After running into the serial mark, drum (the sub- account of the first remaining sum) operation queue is all added, rather than in keg (the sub- account of the second remaining sum Family) place's queuing;
B) keg is locked successively, it is necessary to wait the operation processing for having obtained keg lock to complete;
C) after the completion of the processing of all kegs, the remaining sum of keg and drum merge can draw final remaining sum whether sufficient feelings Condition, if sufficient, closing the transaction, if inadequate, Fail Transaction rollback.
In one embodiment, the remaining sum control method of above-mentioned hot spot account can also include:
When judging transaction request for credit request, when the transaction amount in credit request is less than four threshold values, control process The process of the transaction request and the sub- account of the second remaining sum interact processing, and the transaction amount in credit request is updated to the In the sub- account of two remaining sums;4th threshold value is less than the 3rd threshold value.
When it is implemented, when being stored in the smaller amount of money (transaction amount is less than the 4th threshold value), keg (the second remaining sum is also stored in Account) in, the balance that keg remaining sum keeps basic is so allowed for, ensure that the stability of remaining sum control, merchandising to stablize carries out.
In one embodiment, the remaining sum control method of above-mentioned hot spot account can also include:
When judging the remaining sum of the sub- account of the first remaining sum more than five threshold values, the remaining sum of the sub- account of the first remaining sum is marked and is set Deposit volume is into the sub- account of the second remaining sum;5th threshold value is set according to the ratio of transaction amount average.
When it is implemented, drum remaining sum exceedes the setting upper limit (remaining sum of the sub- account of the first remaining sum is more than the 5th threshold value), give All kegs distribute amount so that keg remaining sum is unlikely to very little, to ensure that the stability of remaining sum control.
Which keg (the sub- account of the second remaining sum) specifically distributed to, can be judge which it is few to which, or average mark Hair, realize to keg (the sub- account of the second remaining sum) remaining sum Homogenization Treatments, keg remaining sum homogenize processing algorithm have it is a variety of, but In view of efficiency, the meaningless processing that homogenizes is reduced to the greatest extent, the present invention just carries out transferring from drum using the remaining insufficient moment, rather than Transferred between keg, or set up another the process of transferring.Drum (the sub- account of the first remaining sum) remaining sum is transferred into keg (the second remaining sum Account) so that keg remaining sum keeps available, ensure that the stability of remaining sum control, and then ensure hot spot account concurrent transaction Stablize and carry out.
When it is implemented, when Sorry, your ticket has not enough value for keg (the sub- account of the second remaining sum), keg remaining sum is supplemented in due course, it is possible to reduce Alternate frequency, such as keg supplement remaining sum can occur during more new balance is serialized, it is not necessary to individually take system Resource, separately adds journey, saves system resource.
In one embodiment, the remaining sum control method of above-mentioned hot spot account can also include:According to updating the first remaining sum The scene of frequency of the frequency of remaining sum less than 1/N, sets the first threshold in sub- account;
Remaining sum in the sub- account of second remaining sum is more than the first threshold.
When it is implemented, due to the distribution characteristics of transaction amount, spy sets a drum, and M keg carrys out Decentralized transaction Pressure, in order to describe conveniently, the embodiment of the present invention is to set 1 drum, and 10 kegs are for example, as shown in Figure 4.Every friendship Easy amount of money absolute value is more than some setting value A (for example 5 times of average, setting value A can be first thresholds), is located by drum Reason, remaining is randomly selected, and the value of A ensures that the trade fair less than 1/11 is fallen in drum, but A should not set it is too much because This can cause to be routed to the big trading of keg, and Sorry, your ticket has not enough value quickly or the remaining sum shop fixtures of keg is excessive.
When it is implemented, in host C ICS environment, can be set according to AOR (CICS where application program) numbers Keg number, each AOR correspond to a keg.
When it is implemented, account balance in migration, is equipped with the remaining sum B more than A (depending on overall balance in each keg It is fixed, such as 10 times of A, that is, averagely 50 pure debit transactions) so that the small trading of the overwhelming majority will not cause more than keg Volume deficiency.
In one embodiment, the remaining sum control method of above-mentioned hot spot account can also include:
According to the assessment test result under different scenes to hot spot account, the feature of hot spot account is analyzed, according to heat The feature of point account, resets the value of first threshold, second threshold, the 3rd threshold value, the value of M and N.
Inventor has found:Since account hot issue is an insoluble problem, so the key in the present invention is The feature of hot spot account is found, suitable parameter, the relatively good solution of ability are then equipped with according to feature.Adjustable ginseng Number, tackling different scenes needs to set different parameters according to actual measurement and assessment, to reach optimal under corresponding scene Concurrent scheme, here it is solving inherently, there is no the perfect method for solving account hot issue.
When it is implemented, in hot spot plan implementation, the remaining sum of original account is formulated to according to the parameter of setting small In bucket;Certificate parameter is assessed according to scene, and by parameter setting into system, and distribute appropriate number of keg;Follow-up When account service condition changes, in due course adjusting parameter, so that system time is maintained at optimum state.
Design parameter setting strategy refer to table 1 below:
Table 1
5 and Fig. 6, which gives an actual example, below in conjunction with the accompanying drawings illustrates, to understand how the present invention is implemented.
First, remaining sum control program cannot unlock halfway in the case of is introduced with reference to attached drawing 5.
The operation of transaction midway unlock for some databases, do not support, it is necessary to design serial mark in memory, is used With prevent serialize handle when, still go lock keg, cause the risk of deadlock, or complicate overall logic. Following logical transaction for it is this cannot unlock halfway in the case of design.
Step 1, drum screening:
Judged according to transaction amount, if need to enter drum queue;
If the amount of money is more than setting value, locked by locking drum, add drum processing queue;
If the amount of money is less than or equal to setting value, some keg is initially entered;
Step 2, drum processing:
After obtaining drum lock, start in drum queue processing remaining sum;
If remaining sum is sufficient, carries out drum and reduce;
After the completion of drum is reduced, the distribution work of 2.1 drum remaining sums is carried out;
If Sorry, your ticket has not enough value, proceed by 2.2 full buckets and reduce;
Drum processing is completed, and leaves serial area so that next processing is handled into drum;
Step 2.1, the distribution work of drum remaining sum:
Drum remaining sum exceedes the setting upper limit, distributes amount to all kegs so that keg remaining sum is unlikely to very little.
Step 2.2, full bucket are reduced, and at this time, all big keg operations will be serialized:
A) serial mark is set, it is all enter bucket operation will be serialized because of the mark, after all operations run into the mark, all Drum operation queue is added, rather than is lined up at keg;.
B) keg is locked successively, it is necessary to wait the operation processing for having obtained keg lock to complete;
C) after the completion of the processing of all kegs, and drum remaining sum merge can draw final remaining sum whether sufficient situation, If sufficient, closing the transaction, if inadequate, Fail Transaction rollback.
Step 3, keg operation:
Random algorithm, selects suitable keg;
Check whether keg remaining sum is sufficient using non-locking mode, this step judges to be inaccurate, mainly prevents keg Sorry, your ticket has not enough value still lock waste of resource situation, if inadequate, return still add drum operation, transaction can be unlocked and patrolled Collect in flow chart, this step need not.
Judge serial mark, if mark has been set, also need to return to addition drum operation queue;
Lock drum to start to operate, proceed by keg operation and be lined up;
Obtain the lock of keg operation, completion queue;
Judge whether remaining sum is sufficient, since some scenes can not unlock, so return drum, Zhi Nengbao can not be unlocked Mistake returns;
It can unlock in logical transaction flow chart, for the environment that can be unlocked, during this step, directly unlock is grasped back to drum Make queue;
When remaining sum is sufficient, remaining sum is reduced;
Keg is unlocked, completes transaction.
As one example:Drum distributes the upper limit 500,000, remaining sum 500,000;Keg shop fixtures 20,000, remaining sum 20,000, route drum setting value 10000.This account is assumed to be access and belongs to the balanced pattern of comparison, so similar rule is observed in access, it is real to lift the control of body remaining sum Example refers to table 2 below.
Table 2
Secondly, remaining sum control program in the case of logical transaction can be unlocked by being introduced with reference to attached drawing 6.
If the system that use can unlock, for example VSAM files are as bucket, it is possible to avoid that non-real Sorry, your ticket has not enough value Report an error, Fig. 6 is that the flow diagram that remaining sum controls in the case of logical transaction, specific implementation step can be unlocked in the embodiment of the present invention Refer to it is above-mentioned cannot unlock halfway in the case of remaining sum control protocol step.
Based on same inventive concept, a kind of remaining sum control device of hot spot account is additionally provided in the embodiment of the present invention, such as The following examples.Due to the remaining sum control method of the principle that the remaining sum control device of hot spot account solves the problems, such as and hot spot account It is similar, therefore the implementation of the remaining sum control device of hot spot account may be referred to the implementation of the remaining sum control method of hot spot account, weight Multiple part repeats no more.Used below, term " unit " or " module " can realize the software of predetermined function and/or hard The combination of part.Although following embodiments described devices is preferably realized with software, hardware, or software and hardware The realization of combination be also that may and be contemplated.
Fig. 7 is the structure diagram of the remaining sum control device of hot spot account in the embodiment of the present invention, as shown in fig. 7, the dress Put including:
The sub- account control unit 02 of first remaining sum, for being more than the first threshold when the transaction amount absolute value for judging transaction request During value, the process of transaction request described in control process interacts processing with the sub- account of the first remaining sum, updates the sub- account of the first remaining sum Remaining sum in family;
The sub- account control unit 04 of second remaining sum, for when judging the transaction amount absolute value of transaction request less than or equal to the During one threshold value, the process of transaction request described in control process interacts processing with the sub- account of the second remaining sum, updates the second remaining sum Remaining sum in sub- account;
The hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes The sub- account of one the first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;In the sub- account of first remaining sum Remaining sum be more than second threshold, the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and the second threshold is more than the Three threshold values.
In one embodiment, the remaining sum control device of above-mentioned hot spot account can also include:
Serial process unit, for when transaction request is withdrawal request, judging one of the sub- account of N number of remaining sum When Sorry, your ticket has not enough value, control since the sub- account of the first remaining sum to the serialization more new balance of the sub- account of the second remaining sum.
In one embodiment, the serial process unit specifically can be used for:
With since the sub- account of the first remaining sum to the order of the sub- account of M the second remaining sums, be the sub- account of the first remaining sum and every A sub- account of second remaining sum respectively sets a serial mark, and every transaction request is added to the team interacted with the sub- account of the first remaining sum Row;
The sub- account of N number of remaining sum is followed successively by lock;
When remaining sum is sufficient after the remaining sum for judging the sub- account of N number of remaining sum merges, remaining sum is reduced, if inadequate, is handed over Easily failure rolling back action.
In one embodiment, the remaining sum control device of above-mentioned hot spot account can also include:
Small amount of money processing unit, for when judging transaction request for credit request, the transaction amount in credit request to be less than During four threshold values, the process of transaction request described in control process interacts processing with the sub- account of the second remaining sum, by credit request In transaction amount be updated in the sub- account of the second remaining sum;4th threshold value is less than the 3rd threshold value.
In one embodiment, the remaining sum control device of above-mentioned hot spot account can also include:
Homogenization Treatments unit, for when judging the remaining sum of the sub- account of the first remaining sum more than five threshold values, by more than first The remaining sum of volume account marks the setting amount of money into the sub- account of the second remaining sum;5th threshold value is according to the ratio of transaction amount average Example is set.
In one embodiment, the remaining sum control device of above-mentioned hot spot account can also include:
Parameter updating block, for according to the assessment test result under different scenes to hot spot account, analyzing hot spot The feature of account;According to the feature of hot spot account, first threshold, second threshold, the 3rd threshold value, the value of M and N are reset Value.
The embodiment of the present invention additionally provides a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize hot spot account as described above when performing the computer program The remaining sum control method at family.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, the computer-readable recording medium storage There is the remaining sum control method for performing hot spot account as described above.
The advantageous effects of technical solution that the present invention implements to provide are:
1st, divide bucket strategy, i.e., the remaining sum of hot spot account is divided into the strategy of N number of sub- account:
This strategy is the comparison typical method of pressure dissipation, and account balance renewal pressure is not to focus on a point On, improve the oncurrent processing ability of hot spot account.
2nd, drum+keg strategy, i.e., be divided into the sub- account of first remaining sum and M the second remaining sums by the sub- account of N number of remaining sum The strategy of sub- account:
The contradiction that the inconsistency of transaction amount can cause point bucket and Sorry, your ticket has not enough value, it is special that the transaction of ultra-large sum is used Drum processing so that the amount of money distribution of keg processing is very limited and controllable, also can be suitable in the case of maintaining a balance seldom Number of transaction under be unlikely to there is a situation where Sorry, your ticket has not enough value, maintaining keg more can independently undertake a point bucket pressure.
3rd, more new balance strategy is serialized:
When Sorry, your ticket has not enough value, when being actually not necessarily the sum of all buckets deficiency, the remaining sum of other barrels is employed, is often designed It is bad to will result in serialization.The problem of transaction is difficult to judge deadlock in itself, and also unavoidable remaining sum is still insufficient.Serialization can Simply thoroughly to solve Deadlock, all more barrels lock all since drum.
4th, keg remaining sum homogenizes processing strategy:
When Sorry, your ticket has not enough value for keg, keg remaining sum is supplemented in due course, it is possible to reduce alternate frequency, supplement occur in serialization Period, it is not necessary to which independent occupying system resources, separately add journey.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step can be with Realized with general computing device, they can be concentrated on single computing device, or are distributed in multiple computing devices On the network formed, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to by it Store and performed in the storage device by computing device, and in some cases, can be to be held different from order herein They, are either fabricated to each integrated circuit modules or will be multiple in them by the shown or described step of row respectively Module or step are fabricated to single integrated circuit module to realize.In this way, the embodiment of the present invention be not restricted to it is any specific hard Part and software combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the invention, for the skill of this area For art personnel, the embodiment of the present invention can have various modifications and variations.Within the spirit and principles of the invention, made Any modification, equivalent substitution, improvement and etc., should all be included in the protection scope of the present invention.

Claims (15)

  1. A kind of 1. remaining sum control method of hot spot account, it is characterised in that including:
    When the transaction amount absolute value for judging transaction request is more than first threshold, the process of transaction request described in control process with The sub- account of first remaining sum interacts processing, updates the remaining sum in the sub- account of the first remaining sum;
    When the transaction amount absolute value for judging transaction request is less than or equal to first threshold, transaction request described in control process into Journey interacts processing with the sub- account of the second remaining sum, updates the remaining sum in the sub- account of the second remaining sum;
    The hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes one The sub- account of first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;It is remaining in the sub- account of first remaining sum Volume is more than second threshold, and the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and the second threshold is more than the 3rd threshold Value.
  2. 2. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that further include:
    When transaction request is withdrawal request, when judging one of sub- account of N number of remaining sum Sorry, your ticket has not enough value, control from first The sub- account of remaining sum starts to the serialization more new balance of the sub- account of the second remaining sum.
  3. 3. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that when transaction request is withdrawal request When, when judging one of sub- account of N number of remaining sum Sorry, your ticket has not enough value, control since the sub- account of the first remaining sum to the second remaining sum The serialization of sub- account more new balance, including:
    To the order of the sub- account of M the second remaining sums, to be the sub- account of the first remaining sum and each the since the sub- account of the first remaining sum The sub- account of two remaining sums respectively sets a serial mark, and every transaction request is added to the queue interacted with the sub- account of the first remaining sum;
    The sub- account of N number of remaining sum is followed successively by lock;
    When remaining sum is sufficient after the remaining sum for judging the sub- account of N number of remaining sum merges, remaining sum is reduced, if inadequate, is traded mistake Lose rolling back action.
  4. 4. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that further include:
    When judging transaction request for credit request, when the transaction amount in credit request is less than four threshold values, described in control process The process of transaction request interacts processing with the sub- account of the second remaining sum, and the transaction amount in credit request is updated to more than second In volume account;4th threshold value is less than the 3rd threshold value.
  5. 5. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that further include:
    When judging the remaining sum of the sub- account of the first remaining sum more than five threshold values, the remaining sum of the sub- account of the first remaining sum is marked into setting gold Volume is into the sub- account of the second remaining sum;5th threshold value is set according to the ratio of transaction amount average.
  6. 6. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that further include:According to renewal first The scene of frequency of the frequency of remaining sum less than 1/N, sets the first threshold in the sub- account of remaining sum;
    Remaining sum in the sub- account of second remaining sum is more than the first threshold.
  7. 7. the remaining sum control method of hot spot account as claimed in claim 1, it is characterised in that further include:
    According to the assessment test result under different scenes to hot spot account, the feature of hot spot account is analyzed, according to hot spot account The feature at family, resets the value of first threshold, second threshold, the 3rd threshold value, the value of M and N.
  8. A kind of 8. remaining sum control device of hot spot account, it is characterised in that including:
    The sub- account control unit of first remaining sum, for when the transaction amount absolute value for judging transaction request is more than first threshold, The process of transaction request described in control process interacts processing with the sub- account of the first remaining sum, updates in the sub- account of the first remaining sum Remaining sum;
    The sub- account control unit of second remaining sum, for being less than or equal to first threshold when the transaction amount absolute value for judging transaction request When, the process of transaction request described in control process interacts processing with the sub- account of the second remaining sum, updates the sub- account of the second remaining sum In remaining sum;
    The hot spot account includes:N number of sub- account of remaining sum, N are the integer more than 1;Wherein, the sub- account of N number of remaining sum includes one The sub- account of first remaining sum and the M sub- accounts of the second remaining sum, M are the integer more than or equal to 1;It is remaining in the sub- account of first remaining sum Volume is more than second threshold, and the remaining sum in the sub- account of the second remaining sum is less than the 3rd threshold value, and the second threshold is more than the 3rd threshold Value.
  9. 9. the remaining sum control device of hot spot account as claimed in claim 8, it is characterised in that further include:
    Serial process unit, for when transaction request is withdrawal request, judging the remaining sum of one of the sub- account of N number of remaining sum When insufficient, control since the sub- account of the first remaining sum to the serialization more new balance of the sub- account of the second remaining sum.
  10. 10. the remaining sum control device of hot spot account as claimed in claim 9, it is characterised in that the serial process unit tool Body is used for:
    To the order of the sub- account of M the second remaining sums, to be the sub- account of the first remaining sum and each the since the sub- account of the first remaining sum The sub- account of two remaining sums respectively sets a serial mark, and every transaction request is added to the queue interacted with the sub- account of the first remaining sum;
    The sub- account of N number of remaining sum is followed successively by lock;
    When remaining sum is sufficient after the remaining sum for judging the sub- account of N number of remaining sum merges, remaining sum is reduced, if inadequate, is traded mistake Lose rolling back action.
  11. 11. the remaining sum control device of hot spot account as claimed in claim 8, it is characterised in that further include:
    Small amount of money processing unit, for when judging transaction request for credit request, the transaction amount in credit request to be less than the 4th During threshold value, the process of transaction request described in control process interacts processing with the sub- account of the second remaining sum, by credit request Transaction amount is updated in the sub- account of the second remaining sum;4th threshold value is less than the 3rd threshold value.
  12. 12. the remaining sum control device of hot spot account as claimed in claim 8, it is characterised in that further include:
    Homogenization Treatments unit, for when judging the remaining sum of the sub- account of the first remaining sum more than five threshold values, by the first remaining sum The remaining sum of account marks the setting amount of money into the sub- account of the second remaining sum;5th threshold value according to the ratio of transaction amount average into Row setting.
  13. 13. the remaining sum control device of hot spot account as claimed in claim 8, it is characterised in that further include:
    Parameter updating block, for according to the assessment test result under different scenes to hot spot account, analyzing hot spot account Feature, according to the feature of hot spot account, reset the value of first threshold, second threshold, the 3rd threshold value, the value of M and N.
  14. 14. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor Calculation machine program, it is characterised in that the processor realizes any side of claim 1 to 7 when performing the computer program Method.
  15. 15. a kind of computer-readable recording medium, it is characterised in that the computer-readable recording medium storage has perform claim It is required that the computer program of 1 to 7 any the method.
CN201711104944.3A 2017-11-10 2017-11-10 The remaining sum control method and device of hot spot account Pending CN107977837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711104944.3A CN107977837A (en) 2017-11-10 2017-11-10 The remaining sum control method and device of hot spot account

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711104944.3A CN107977837A (en) 2017-11-10 2017-11-10 The remaining sum control method and device of hot spot account

Publications (1)

Publication Number Publication Date
CN107977837A true CN107977837A (en) 2018-05-01

Family

ID=62013266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711104944.3A Pending CN107977837A (en) 2017-11-10 2017-11-10 The remaining sum control method and device of hot spot account

Country Status (1)

Country Link
CN (1) CN107977837A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109389484A (en) * 2018-09-26 2019-02-26 中国平安人寿保险股份有限公司 Account is entered an item of expenditure in the accounts method, apparatus, computer equipment and storage medium
CN109508970A (en) * 2018-10-26 2019-03-22 阿里巴巴集团控股有限公司 Money transfer method and device based on block chain
CN109741170A (en) * 2018-12-25 2019-05-10 银清科技(北京)有限公司 Divide account processing method and system
CN109918200A (en) * 2019-03-04 2019-06-21 中国工商银行股份有限公司 Hot spot account processing method, apparatus and system
CN110189124A (en) * 2019-05-24 2019-08-30 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium
CN110400211A (en) * 2019-07-26 2019-11-01 中移电子商务有限公司 A kind of user account fund management method, device and storage medium
CN111899001A (en) * 2018-08-30 2020-11-06 创新先进技术有限公司 Remittance method and device based on block chain
CN112381537A (en) * 2020-11-05 2021-02-19 上海汇付数据服务有限公司 Hotspot account billing method
CN112634024A (en) * 2020-12-29 2021-04-09 吉林亿联银行股份有限公司 Method and device for processing balance of hotspot account

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447604A (en) * 2014-08-04 2016-03-30 阿里巴巴集团控股有限公司 Account processing method and device
CN105931109A (en) * 2015-09-18 2016-09-07 中国银联股份有限公司 Method and device for account balance update
CN106952158A (en) * 2017-03-17 2017-07-14 证通股份有限公司 Solve the problems, such as the bookkeeping methods and equipment of focus account

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105447604A (en) * 2014-08-04 2016-03-30 阿里巴巴集团控股有限公司 Account processing method and device
CN105931109A (en) * 2015-09-18 2016-09-07 中国银联股份有限公司 Method and device for account balance update
CN106952158A (en) * 2017-03-17 2017-07-14 证通股份有限公司 Solve the problems, such as the bookkeeping methods and equipment of focus account

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109087086A (en) * 2018-08-01 2018-12-25 中信百信银行股份有限公司 The method for controlling hot spot account trading
CN111899001A (en) * 2018-08-30 2020-11-06 创新先进技术有限公司 Remittance method and device based on block chain
CN109389484A (en) * 2018-09-26 2019-02-26 中国平安人寿保险股份有限公司 Account is entered an item of expenditure in the accounts method, apparatus, computer equipment and storage medium
CN109508970A (en) * 2018-10-26 2019-03-22 阿里巴巴集团控股有限公司 Money transfer method and device based on block chain
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
CN109741170A (en) * 2018-12-25 2019-05-10 银清科技(北京)有限公司 Divide account processing method and system
CN109741170B (en) * 2018-12-25 2021-03-19 银清科技有限公司 Sub-account processing method and system
CN109918200A (en) * 2019-03-04 2019-06-21 中国工商银行股份有限公司 Hot spot account processing method, apparatus and system
CN110189124A (en) * 2019-05-24 2019-08-30 杭州复杂美科技有限公司 Anti-attack method, equipment and storage medium
CN110400211A (en) * 2019-07-26 2019-11-01 中移电子商务有限公司 A kind of user account fund management method, device and storage medium
CN112381537A (en) * 2020-11-05 2021-02-19 上海汇付数据服务有限公司 Hotspot account billing method
CN112634024A (en) * 2020-12-29 2021-04-09 吉林亿联银行股份有限公司 Method and device for processing balance of hotspot account

Similar Documents

Publication Publication Date Title
CN107977837A (en) The remaining sum control method and device of hot spot account
US8316373B2 (en) Concurrent data processing and electronic bookkeeping
US8660920B2 (en) Managed deposit program
CN108427601A (en) A kind of cluster transaction processing method of privately owned chain node
CN104239141B (en) Optimizing and scheduling task method based on workflow critical path in data center
US11210735B2 (en) Data processing method, system, and non-transitory computer-readable medium
CN104504804B (en) Cash distribution method and device and financial self-service device
CN108446975A (en) A kind of quota control method and device
WO2020220741A1 (en) Blockchain-based service tracing method and apparatus, and electronic device
CN101963969B (en) Method and database server for realizing load balancing in Oracle RAC (Real Application Cluster) system
EP1290597A1 (en) Transaction system
CN107862615A (en) Claims Resolution information processing method, device, computer equipment and storage medium
CN114047971B (en) Edge computing resource allocation method and device
CN109829823A (en) One kind departure of passenger's shopping overseas refund business information management platform and method
Güntzer et al. Efficient algorithms for the clearing of interbank payments
CN109377355A (en) Transaction data processing method and device
CN109325763A (en) A kind of transaction processing method and device that computer executes
CN109118350A (en) Financial accounting business packed transaction adaptive device and system
CN111738709B (en) Transaction processing method and device
CN107545376A (en) A kind of method, apparatus and system for issuing task
CN107403382A (en) Property match system
CN110427389A (en) A kind of data processing and querying method for block chain digital cash
CN109615508A (en) Data summarization checking method and subsystem for internet banking system
CN111866062B (en) Credible negotiation method and device for cloud service transaction
CN110826911B (en) Big data-based decision method, equipment and medium

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

Application publication date: 20180501

RJ01 Rejection of invention patent application after publication