CN108446975A - A kind of quota control method and device - Google Patents

A kind of quota control method and device Download PDF

Info

Publication number
CN108446975A
CN108446975A CN201810263596.2A CN201810263596A CN108446975A CN 108446975 A CN108446975 A CN 108446975A CN 201810263596 A CN201810263596 A CN 201810263596A CN 108446975 A CN108446975 A CN 108446975A
Authority
CN
China
Prior art keywords
amount
node
destination node
account
transactional operation
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.)
Granted
Application number
CN201810263596.2A
Other languages
Chinese (zh)
Other versions
CN108446975B (en
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.)
Shanghai Data Trading Center Ltd
Original Assignee
Shanghai Data Trading Center 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 Shanghai Data Trading Center Ltd filed Critical Shanghai Data Trading Center Ltd
Priority to CN201810263596.2A priority Critical patent/CN108446975B/en
Publication of CN108446975A publication Critical patent/CN108446975A/en
Application granted granted Critical
Publication of CN108446975B publication Critical patent/CN108446975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

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

Abstract

The present invention provides a kind of quota control method and apparatus.The method includes:Receive the request for the transactional operation that user sends;From the corresponding node tree of account of user, selection meets the destination node of trading range condition;If the amount of the destination node disclosure satisfy that the transactional operation, the transactional operation is executed;If it is impossible to meet the transactional operations for the amount of the destination node, applies for corresponding amount to amount control centre, the amount applied is increased in the full amount of destination node after applying successfully, then executes the transactional operation.The problem of contributing to the quota control than reasonably handling data transacting system, thus helps to ensure that smoothly efficiently carrying out for data trade.

Description

A kind of quota control method and device
Technical field
The present invention relates to computing technique field, a kind of particularly quota control method and device.
Background technology
With the development of information technology, data become the essential element of people's life and work, and in people's work, life The data volume generated in work is also huge, and data volume growth rate is also higher and higher.Since data and people produce Relationship living is more and more closer, and data trade activity is also more and more, and data trade activity can usually use data trade system System can carry out.
Distributed high concurrent data transacting system is one kind of data transacting system, has cohesion, the transparency, high concurrent The features such as property.In distributed high concurrent data transacting system, the data resource of demand data side's payment inquiry data providing, The account of demand data side is by supplementing with money, the modes such as credit obtain certain amount to carry out data purchase operation, demand data The quota control of side is the important ring in data trade link.For being smoothed out for data trade, it is desirable to provide Yi Zhonggao Effect, sensitive quota control mechanism, the overall data to improve distributed high concurrent data transacting system dispense efficiency.It is distributed Data distribution subsystem of high concurrent data transacting system itself is complicated, be a distributed high concurrent height handle up be System.Quota control is carried out in such a huge system by the quota control method of the prior art, there are quota controls The problems such as process is excessively complicated, and calculation amount is excessive, thus it is difficult to realize efficient, sensitive quota control.
Invention content
In view of this, the present invention provides a kind of amount control method and device, help to hand over than reasonably handling data The problem of quota control of easy system, thus helps to ensure that smoothly efficiently carrying out for data trade.Other mesh of the present invention And advantageous effect will be illustrated or embody in conjunction with specific implementation mode.
To achieve the above object, according to an aspect of the invention, there is provided a kind of quota control method.
The quota control method of the embodiment of the present invention, including:Receive the request for the transactional operation that user sends;From user's In the corresponding node tree of account, selection meets the destination node of trading range condition;If the amount of the destination node can expire The foot transactional operation, executes the transactional operation;If the amount of the destination node it is impossible to meet the transactional operation, Apply for corresponding amount to amount control centre, the amount applied is increased to the full amount of destination node after applying successfully In, then execute the transactional operation.
Optionally, in the corresponding node tree of the account from user, selection meets the destination node of trading range condition The step of include:It is searched in the leaf node of node tree and meets the node of trading range condition and be selected as target if finding Node;If not finding, enter following steps;The non-leaf nodes for meeting trading range condition is searched in child node, if looking for It arrives, is then selected as destination node;If not finding, enter following steps;Judge whether root node meets trading range condition, if It is then to select root node for destination node.
Optionally, after the step of execution transactional operation, further include:In the full amount of the destination node It reduces to execute the amount that the transactional operation is consumed, obtains remaining amount;The destination node is recorded in remaining amount Dispatching daily record in;After reaching setting time, the clearing amount of the account is calculated according to the dispatching daily record;According to described Clearing amount updates the amount of the account;The updated amount of the account is sent to the amount control centre.
Optionally, described the step of applying for corresponding amount to amount control centre, includes:Send amount application information to Amount control centre applies for corresponding amount from amount pond corresponding with node tree;Lock the amount pond so that the volume After degree control centre receives other amount application informations of the user, other amount application informations described in refusal respond; Receive the successful information of amount application;Unlock the amount pond so that the amount control centre receives described other After amount application information, other amount application informations can be responded.
The another aspect of the embodiment of the present invention provides a kind of quota control device.
The quota control device of the embodiment of the present invention includes:Request receiving module:Transaction behaviour for receiving user's transmission The request of work;Destination node selecting module:For in the corresponding node tree of account from user, selection to meet trading range condition Destination node;First execution module:If the amount for the destination node disclosure satisfy that the transactional operation, described in execution Transactional operation;Second execution module:If for the amount of the destination node, it is impossible to meet the transactional operations, to amount Control centre applies for corresponding amount, increases to the amount applied in the full amount of destination node after applying successfully, then Execute the transactional operation.
Optionally, the destination node selecting module includes:Leaf node searching unit:For the leaf section in node tree It is searched in point and meets the node of trading range condition and be selected as destination node if finding;If not finding, enter following step Suddenly;Non-leaf nodes searching unit:For searching the non-leaf nodes for meeting trading range condition in child node, if finding, Then it is selected as destination node;If not finding, enter following steps;Root node searching unit:For judging whether root node is full Sufficient trading range condition, if so, selecting root node for destination node.
Optionally, described device further includes:Remaining amount computing module:For subtracting in the full amount of the destination node Except the amount consumed for the execution transactional operation, remaining amount is obtained;Remaining amount logging modle:For by remaining amount It is recorded in the dispatching daily record of the destination node;Settle accounts amount computing module:For after reaching setting time, according to described Dispatching daily record calculates the clearing amount of the account;Balance updates module:For updating the account according to the clearing amount Amount;Remaining sum sending module:For the updated amount of the account to be sent to the amount control centre.
Optionally, the second execution module includes:Amount application information transmission unit:For sending amount application information to volume Control centre is spent, applies for corresponding amount from amount pond corresponding with node tree;Lock cell:For locking the amount Pond so that other described in refusal respond after the amount control centre receives other amount application informations of the user Amount application information;Feedback information receiving unit:Receive the successful information of amount application;Unlocking unit:Unlock the volume Spend pond so that after the amount control centre receives other amount application informations, other amounts can be responded Application information.
According to another aspect of the invention, a kind of electronic equipment is provided, including:One or more processors;Storage dress It sets, for storing one or more programs, when one or more of programs are executed by one or more of processors so that One or more of processors realize the method as described in any embodiment of the present invention.
According to another aspect of the invention, a kind of computer-readable medium is provided, computer program is stored thereon with, institute State the method realized when program is executed by processor as described in any embodiment of the present invention.
It according to the technique and scheme of the present invention, can be by demand data side when user wishes to execute the transactional operation of data Front end processor sends the request of transactional operation, after receiving the request of transactional operation of user transmission, first from meeting this Selection target node in the node of secondary trading range condition directly executes transactional operation, and detain when destination node has amount Except the amount of corresponding destination node;When destination node does not have amount, applies for amount, then execute transactional operation, and The amount of corresponding destination node is deducted after completion transactional operation.When the request with multiple transactional operations, these are different Transactional operation can respectively execute on multiple nodes, and amount application between node spends and can independently carry out, to it is high simultaneously It sends out in data transacting system, the complexity of quota control can be reduced, avoid carrying out a large amount of repetition readings to the same quota data The case where write operation, reduction compute repeatedly, and reduce system overhead.Simultaneously, additionally it is possible to avoid multiple processes of same time competing The case where striving the same quota data, when merchandising to certain data request datas in the mass users short time, frequently access and The case where update, is reduced, and reduces system load, is shortened the response time, is improved the execution speed and efficiency of data trade.High concurrent Under state, when reading database operation, subsequent processes occur for subsequent processes when database manipulation does not complete of writing of previous process The state of reading is identical as the state that front process is read, which will to occur practical amount, not enough can also be traded, i.e., true to spend It can be more than amount.The embodiment of the present invention reduce a node on high concurrent the case where, while application amount success after just into Row transactional operation avoids the problem that really taking over amount, and since the node on node tree can be in corresponding transaction model The amount that interior burden transactional operation is spent is enclosed, therefore the high concurrent situation reduced on same node does not have an impact data trade system The response speed of system.
Description of the drawings
Attached drawing does not constitute inappropriate limitation of the present invention for more fully understanding the present invention.Wherein:
Fig. 1 is the schematic diagram according to the key step of the quota control method of embodiment of the present invention;
Fig. 2 is the processing component schematic diagram being related to according to embodiment of the present invention;
Fig. 3 is a kind of node tree structure schematic diagram according to embodiment of the present invention;
Fig. 4 is the node tree and amount control centre information transmission schematic diagram according to embodiment of the present invention;
Fig. 5 is the main modular schematic diagram according to a kind of quota control device of embodiment of the present invention.
Specific implementation mode
It explains to the exemplary embodiment of the present invention below in conjunction with attached drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together The description to known function and structure is omitted for clarity and conciseness in sample in following description.
In embodiments of the present invention, by the way of hierarchical control, the amount of account is accurately controlled, simultaneously The complexity of whole system is not increased.It is described in detail below in conjunction with attached drawing.Fig. 1 is the amount according to embodiment of the present invention The schematic diagram of the key step of management method.
Step 101:Receive the request for the transactional operation that user sends.
Above-mentioned user is demand data side, is asked by the transactional operation of data transacting system transmission data, request passes through The amount of account obtains certain specific data.For example, demand data side needs ad data, the friendship about ad data is generated Easy-operating request.
Step 102:From the corresponding node tree of account of user, selection meets the destination node of trading range condition.
For same user, it is understood that there may be a main account and multiple sub- accounts, by these all main accounts and In sub- account, the account of data trade can be carried out, is divided into node, generates a node tree corresponding to the user.In initial feelings Under condition, user applies for main account first, then according to the sub- account of trading range application.According to range application account can be traded Family, including main account and sub- account, each account are a node.Account working can continue, by product scope is reduced, to generate son Account working, i.e. child node, the node tree divided with trading range material is thus formed one.Each user generally corresponds to one Node tree.In the specific embodiment of the invention, a user can have under normal circumstances there are one main account, therefore, a user A corresponding node tree, the root node of main account corresponding node tree, the child nodes of sub- account corresponding node tree.It is corresponded in user Node tree in, each node corresponds to certain trading range, and data friendship can be carried out in the corresponding trading range of the node Easily, for example, a certain node can be with some or certain specific data providing progress data trades etc..And it is grasped with above-mentioned transaction The request of work, it is corresponding with some specific trading range, for example, it is desired to the data that a certain specific data providing provides, Before the easy-operating request of respective quadrature, node corresponding with the trading range of the request of this transactional operation is required to look up.One In a node tree, it is understood that there may be at least one node for meeting trading range condition meets the section of trading range condition from these In point, one is selected as destination node, which provides the amount of needs for this transactional operation.
Above-mentioned destination node can be child nodes or root node.
When the node for meeting trading range condition is not present in node tree, the relevant information of Fail Transaction is returned to, then The sub- account that user's registration can be prompted new, is generated for user new sub- account, then correspondingly being established in node tree can expire The new child nodes of sufficient trading range condition.
Step 103:If the amount of the destination node disclosure satisfy that the transactional operation, the transactional operation is executed.
User is obtained certain by carrying out supplementing operation with money to account, receiving another account gives operation, credit operates etc. Amount directly executes transactional operation if the amount of the destination node of selection disclosure satisfy that the request of this transactional operation, executes The amount that transactional operation is consumed is deducted from the amount of destination node.
Step 104:If it is impossible to meet the transactional operations for the amount of the destination node, pass through amount control centre Apply for corresponding amount, increase to the amount applied in the full amount of destination node after applying successfully, then described in execution Transactional operation.
After selection target node, the required amount of transactional operation is directly deducted from the amount of destination node, practical The destination node is directed to after completing again and carries out the application of new amount, to the mutual not shadow of the main account of user and sub- account amount It rings, makes amount control more simple.
The apllied amount of node of node tree, the only destination node in the node as the request of some transactional operation When can use, applied again after being finished, the case where so as to avoid the account practical amount for taking over account.
In the step of applying for corresponding amount above by amount control centre, the amount of application is mutually fitted with transactional operation It answers, can be determined by the modes such as estimating.
The step of above-mentioned execution transactional operation, specifically includes all steps necessary to executing transactional operation, for example, sending Request of data corresponding with transactional operation is executed receives the data feedback information that data providing provides to data providing, will Data feedback information is sent to the receiving module etc. of setting.
In the embodiment of the present invention, destination node is when being traded, if amount is inadequate, then during the node is controlled to amount Heart application amount generally carries out estimating amount and be applied according to the portfolio of transactional operation and price.When user account occurs When multiple transactional operations, these transactional operations obtain required amount of merchandising on corresponding destination node respectively, and And since destination node can not apply for amount by root node to amount center, when the request of multiple transactional operations is sent out simultaneously Be not in the case where competing the same quota data, to avoid the occurrence of with the normal of response time and lead between each other when going out The problem of causing the request of more and more other transactional operations that can not meet with a response in time, efficiently avoids gathering around for system It is stifled.In the data transacting system of high concurrent, the range corresponding to request of the embodiment of the present invention according to transactional operation selects mesh It marks node and executes transactional operation, reduce the case where to certain data frequently access and update in the mass users short time, contracting Short response time improves response speed, and user repeatedly occurs the request of same transactional operation and generates snowslide when avoiding reacting slow Effect further results in data transacting system paralysis.
In some embodiment of the invention, in the corresponding node tree of the account from user, selection meets trading range The step of destination node of condition includes:
It is searched in the leaf node of node tree and meets the node of trading range condition and be selected as target section if finding Point;If not finding, enter following steps;
It is searched in child node and meets the non-leaf nodes of trading range condition and be selected as destination node if finding;If It does not find, then enters following steps;
Judge whether root node meets trading range condition, if so, selecting root node for destination node.
Above-mentioned trading range, it is corresponding with the request of transactional operation, it can be recorded among the request of transactional operation.The present invention In embodiment, select transaction node, that is, leaf node that there is transaction priority according to trading range smallest match principle.From And All Activity operations control is fitted on each different node as possible, the node for avoiding trading range big undertakes excessive friendship Task easy to operate further avoids congestion, improves treatment effeciency.
In some embodiment of the invention, after the step of execution transactional operation, further include:
It is reduced in the full amount of the destination node to execute the amount that the transactional operation is consumed, obtains residue Degree;
Remaining amount is recorded in the dispatching daily record of the destination node;
After reaching setting time, the clearing amount of the account is calculated according to the dispatching daily record;
The amount of the account is updated according to the clearing amount;
The updated amount of the account is sent to the amount control centre.
In embodiments of the present invention, each node is before being traded operation, can be given by recharging by cash, platform, The modes such as platform credit obtain certain amount, and amount can be gradually used up after executing transactional operation for transactional operation.It is all Node calculates separately the amount to execute the amount that corresponding transactional operation is consumed, then calculated each node and sends progress To amount, control centre is summarized, and amount statistics and real accounts clearing are carried out separately, and account settlement is according to true Dispensed amounts generate dispatching daily record, in the number of the transactional operation request of the account of demand data side described in dispatching daily record, then The cost of all accounts of user, summarize obtaining all sub- accounts of user by the clearing amount that account is calculated according to dispatching daily record Family, main account total cost, in amount control centre, the remaining amount of the user is that initial amount subtracts total cost.It is this Method calculates full amount, can avoid computing repeatedly, and ensures the correctness that amount calculates.
In some embodiment of the invention, described the step of applying for corresponding amount by amount control centre, includes:
Amount application information is sent to amount control centre, applies for corresponding volume from amount pond corresponding with node tree Degree;
Lock the amount pond so that the amount control centre receive the user other amount application informations it Afterwards, other amount application informations described in refusal respond;
Receive the successful information of amount application;
Unlock the amount pond so that the amount control centre receive other amount application informations it Afterwards, other amount application informations can be responded.
In the prior art, under high concurrent scene, multiple requests that multiple processes are sent out are distributed by load balancing simultaneously To Intranet multiple servers, before some request is successfully written database, the query result of other requests may still be written State before, this will result in system erroneous judgement.
In the embodiment of the present invention, when executing transactional operation, the amount of destination node is deducted, the embodiment of the present invention introduces lock Determine mechanism, the account of same user shares amount pond, i.e., the nodes sharing amount pond of same node tree.It is primary only to handle a volume Other amount application informations are discharged when handling an amount application information in degree application information, and multiple sub- accounts apply for volume simultaneously There is a situation where multi-process while the same quota data will not be competed due to introducing locking mechanism when spending.
Processing component of the present invention includes mainly that (Data Management Platform, data pipe pat DMP Platform), DLS (Data Linkage Service, data trade center to member provide data trade service portal), DMIX (data distributing system), DAS (Data Analysis System, data analysis system), Redis clusters, CAP products (China Audience Profile, Chinese audiences are drawn a portrait library), CRP products (Credit Risk Profile, credit risk draw a portrait library), Amount control centre.
DMP:Refer to the supplier in process of exchange for data circulation or demander's operation system;In the present system, demander DMP is sent out Go out inquiry request, the DMP of data providing is routed to by DMIX, supplier DMP returns to query result upon receiving a request.
DLS:The portal of data trade service, data providing and demand data are provided by data trade center to member Square member can realize the friendships such as the listed commodity of data trade, demand publication, data subscription, trade management, information inquiry, settle accounts calculation It is easy to operate, it can perform clearing and the operation of amount file push.
DMIX:It is mainly used for receiving the inquiry request of demand data side DMP, data providing DMP is route, is had Real-time amount is calculated, is controlled, the functions such as production dispatching daily record.
DAS:It is absorbed in the dispatching daily record that operation DMIX is generated, analyzes it, summarizes dispensed amounts and carried out clearly for DLS It calculates, clearing.
Redis clusters:The third memory database cluster of introducing, in node tree, it is slow that each node corresponds to a Redis It deposits, the Redis of multiple nodes caches to form Redis clusters.Redis is a key assignments storage system, supports the number of certain structures According to storage, such as Value (value) structure.Redis clusters provide convenient, quick data buffer service, in systems to Realize process communication, it is data cached.When handling the request of transactional operation, destination node is first in the Redis of oneself cachings Amount is inquired, if amount is insufficient, amount is asked to amount control centre.
CAP products:It is the standardized data product of market-oriented marketing industry.Its main user group be advertiser, 4A advertising agencies, DSP data launch enterprise etc., are mended for its data in providing user's portrait before advertisement is launched, launching A variety of services such as the data check after complete and dispensing.
CRP products:Product can provide personal and enterprise credit risk data exploration service for financial institution, help gold Melt mechanism and completes risk control.
Amount control centre:Amount control centre is in the quota control and control of all user accounts and its sub- account The heart.Amount control centre provide service include:It is responsible for accepting account amount application, is redistributed and scheduling node by calculating Amount;Amount is allocated, and the true cost for calculating user is cleared for expense, obtains account residue amount;Handle other amount tune Whole volume related service etc..
Fig. 2 is the processing component schematic diagram that the quota control method provided according to embodiments of the present invention is related to, including Reids Caching 201, destination node 202, amount control centre 203, DLS204, DAS205, DMIX206, data providing front end processor 207。
After the request for the transactional operation for receiving user, match trading node, selection selection meets the friendship of this request The destination node 202 of easy range of condition.After determining destination node 202, destination node is in the Redis cachings 201 of oneself Amount is inquired, if amount is insufficient, amount is asked to amount control centre 203.After destination node 202 successfully obtains amount, Transactional operation is executed, request of data corresponding with the request of transactional operation is initiated to data providing front end processor 207.Period by DMIX206 is responsible for the two data distribution.While completing data distribution, destination node reduces corresponding amount, is recorded in it In Redis cachings 201.Then, it can be documented in dispatching daily record about the record of this transactional operation, be sent to by node DAS205.DAS205 analyzes statistical account dispensed amounts in real time, and counts the xml document of the distribution information of all accounts, every Set time day (such as 5:00 AM) is pushed to DLS204.
In some embodiment of the invention, structure as shown in Figure 3 can be used in node tree.Including a root node 301, extremely Few non-leaf child nodes 302, at least one leaf node 303.Under normal circumstances, root node 301 corresponds to the master of user Account, trading range are maximum.Remaining node corresponds to the sub- account of user with the increase of the number of plies, the friendship of the corresponding sub- account of node Easy range shorter.
Fig. 4 is an embodiment of the present invention interior joint tree and amount control centre information transfering relation schematic diagram.Multiple use The node tree 401 at family sends amount application information, each node tree by load balancing 402 to amount control centre cluster 403 401 are both provided with corresponding amount control centre 4031 in amount control centre cluster 403, on the same node tree 401 Arbitrary node can be transferred through load balancing 402 and send amount application information to corresponding amount control centre 4031, and by negative Carry equilibrium 402 receive amount application by or not by information.
Meanwhile the present invention also provides a kind of quota control device, comprising modules figure as shown in figure 5, the present embodiment amount Managing device 500 includes:Request receiving module, destination node selecting module, the first execution module, the second execution module.
Request receiving module:Request for the transactional operation for receiving user's transmission;
Destination node selecting module:For in the corresponding node tree of account from user, selection to meet trading range condition Destination node;
First execution module:If the amount for the destination node disclosure satisfy that the request of the transactional operation, execute The transactional operation;
Second execution module:If for the amount of the destination node, it is impossible to meet the transactional operations, to amount Control centre applies for corresponding amount, increases to the amount applied in the full amount of destination node after applying successfully, then Execute the transactional operation.
In some embodiment of the invention, the destination node selecting module includes:
Leaf node searching unit:For searching the node for meeting trading range condition in the leaf node of node tree, If finding, it is selected as destination node;If not finding, enter following steps;
Non-leaf nodes searching unit:For searching the non-leaf nodes for meeting trading range condition in child node, if It finds, is then selected as destination node;If not finding, enter following steps;
Root node searching unit:For judging whether root node meets trading range condition, if so, select root node for Destination node.
In some embodiment of the invention, described device further includes:
Remaining amount computing module:For being reduced in the full amount of the destination node as the execution transactional operation institute The amount of consumption obtains remaining amount;
Remaining amount logging modle:For remaining amount to be recorded in the dispatching daily record of the destination node;
Settle accounts amount computing module:For after reaching setting time, the account to be calculated according to the dispatching daily record Settle accounts amount;
Balance updates module:Amount for updating the account according to the clearing amount;
Remaining sum sending module:For the updated amount of the account to be sent to the amount control centre.
In some embodiment of the invention, second execution module includes:
Amount application information transmission unit:For sending amount application information to amount control centre, from node tree pair Apply for corresponding amount in the amount pond answered;
Lock cell:For locking the amount pond so that the amount control centre receives the other of the user After amount application information, other amount application informations described in refusal respond;
Feedback information receiving unit:Receive the successful information of amount application;
Unlocking unit:Unlock the amount pond so that the amount control centre receives other amount Shens Other amount application informations please can be responded after information.
DLS generates advice of settlement according to dispatching list and product price, and according to advice of settlement more New Account amount account and fund Newest amount is finally pushed to amount control centre by account, and there has also been the newest volumes of each account for such amount control centre Degree.System forms closed loop with this, and recycles.
As on the other hand, embodiment of the present invention provides a kind of electronic equipment, which includes one or more Processor;And storage device, for storing one or more programs, when said one or multiple programs are by said one or more A processor executes so that said one or multiple processors realize the method described in the embodiment of the present invention, such as according to Fig. 1 institutes The method of execution.As in another aspect, embodiment of the present invention additionally provides a kind of computer-readable medium, this is computer-readable Medium can be included in the equipment described in above-described embodiment;Can also be individualism, and without the supplying equipment In.Above computer readable medium carries one or more program, when said one or multiple programs by one this set When standby execution so that the equipment is able to carry out the method described in the embodiment of the present invention, such as according to the method performed by Fig. 1.
Above-mentioned specific implementation mode, does not constitute limiting the scope of the invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made by within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (10)

1. a kind of quota control method, which is characterized in that including:
Receive the request for the transactional operation that user sends;
From the corresponding node tree of account of the user, selection meets the destination node of trading range condition;
If the amount of the destination node disclosure satisfy that the transactional operation, the transactional operation is executed;
If it is impossible to meet the transactional operations for the amount of the destination node, apply for corresponding volume to amount control centre Degree, the amount applied is increased in the full amount of destination node, then execute the transactional operation after applying successfully.
2. according to the method described in claim 1, it is characterized in that, in the corresponding node tree of the account from user, select The step of destination node for meeting trading range condition includes:
It is searched in the leaf node of node tree and meets the node of trading range condition and be selected as destination node if finding;If It does not find, then enters following steps;
It is searched in child node and meets the non-leaf nodes of trading range condition and be selected as destination node if finding;If not looking for It arrives, then enters following steps;
Judge whether root node meets trading range condition, if so, selecting root node for destination node.
3. according to the method described in claim 1, it is characterized in that, after the step of the execution transactional operation, also wrap It includes:
It is reduced in the full amount of the destination node to execute the amount that the transactional operation is consumed, obtains remaining amount;
Remaining amount is recorded in the dispatching daily record of the destination node;
After reaching setting time, the clearing amount of the account is calculated according to the dispatching daily record;
The amount of the account is updated according to the clearing amount;
The updated amount of the account is sent to the amount control centre.
4. method according to claim 1 or 3, which is characterized in that described to apply for corresponding amount to amount control centre The step of include:
Amount application information is sent to amount control centre, applies for corresponding amount from amount pond corresponding with node tree;
Lock the amount pond so that after the amount control centre receives other amount application informations of the user, Other amount application informations described in refusal respond;
Receive the successful information of amount application;
Unlock the amount pond so that after the amount control centre receives other amount application informations, energy Enough respond other amount application informations.
5. a kind of quota control device, which is characterized in that including:
Request receiving module:Request for the transactional operation for receiving user's transmission;
Destination node selecting module:For in the corresponding node tree of account from user, selection to meet the mesh of trading range condition Mark node;
First execution module:If the amount for the destination node disclosure satisfy that the transactional operation, the transaction behaviour is executed Make;
Second execution module:If the amount for the destination node it is impossible to meet the transactional operation, is controlled to amount Corresponding amount is applied at center, is increased in the full amount of destination node the amount applied after applying successfully, is then executed The transactional operation.
6. device according to claim 5, which is characterized in that the destination node selecting module includes:
Leaf node searching unit:For searching the node for meeting trading range condition in the leaf node of node tree, if looking for It arrives, is then selected as destination node;If not finding, enter following steps;
Non-leaf nodes searching unit:For searching the non-leaf nodes for meeting trading range condition in child node, if finding, Then it is selected as destination node;If not finding, enter following steps;
Root node searching unit:For judging whether root node meets trading range condition, if so, selecting root node for target Node.
7. device according to claim 5, which is characterized in that described device further includes:
Remaining amount computing module:It is consumed for being reduced in the full amount of the destination node to execute the transactional operation Amount, obtain remaining amount;
Remaining amount logging modle:For remaining amount to be recorded in the dispatching daily record of the destination node;
Settle accounts amount computing module:For after reaching setting time, the clearing of the account to be calculated according to the dispatching daily record Amount;
Balance updates module:Amount for updating the account according to the clearing amount;
Remaining sum sending module:For the updated amount of the account to be sent to the amount control centre.
8. the device according to claim 5 or 7, which is characterized in that second execution module includes:
Amount application information transmission unit:For sending amount application information to amount control centre, from corresponding with node tree Apply for corresponding amount in amount pond;
Lock cell:For locking the amount pond so that the amount control centre receives other amounts of the user After application information, other amount application informations described in refusal respond;
Feedback information receiving unit:Receive the successful information of amount application;
Unlocking unit:Unlock the amount pond so that the amount control centre receives other amount letters of application After breath, other amount application informations can be responded.
9. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors so that one or more of processors are real The now method as described in any one of claim 1 to 5.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any one of claim 1 to 5 is realized when row.
CN201810263596.2A 2018-03-28 2018-03-28 Quota management method and device Active CN108446975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810263596.2A CN108446975B (en) 2018-03-28 2018-03-28 Quota management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810263596.2A CN108446975B (en) 2018-03-28 2018-03-28 Quota management method and device

Publications (2)

Publication Number Publication Date
CN108446975A true CN108446975A (en) 2018-08-24
CN108446975B CN108446975B (en) 2022-01-14

Family

ID=63197578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810263596.2A Active CN108446975B (en) 2018-03-28 2018-03-28 Quota management method and device

Country Status (1)

Country Link
CN (1) CN108446975B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335033A (en) * 2019-07-09 2019-10-15 中国工商银行股份有限公司 Limit processing method and system
CN110599185A (en) * 2019-07-30 2019-12-20 上海数据交易中心有限公司 Account synchronization method and device, data transaction system, storage medium and terminal
CN110648129A (en) * 2019-08-20 2020-01-03 上海数据交易中心有限公司 Quota control method and device for batch distribution system, storage medium and terminal
CN111429125A (en) * 2020-03-17 2020-07-17 京东数字科技控股有限公司 Account management method and device, storage medium and electronic equipment
CN111461692A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Data processing method and device
CN111667360A (en) * 2020-06-19 2020-09-15 中信银行股份有限公司 User limit information management method and device, electronic equipment and storage medium
CN111798302A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Quota updating method and device based on micro service, electronic equipment and storage medium
CN111915429A (en) * 2020-08-11 2020-11-10 北京开科唯识技术有限公司 Account checking method and device
CN112085486A (en) * 2020-08-24 2020-12-15 宝付网络科技(上海)有限公司 Method and system for improving fund issuing capacity
CN112365345A (en) * 2021-01-14 2021-02-12 北京江融信科技有限公司 DAG-based dynamic control method and system for multi-type credit line
CN112395091A (en) * 2020-11-24 2021-02-23 上海商汤智能科技有限公司 Cloud service request response method and device, electronic equipment and storage medium
CN111784510B (en) * 2020-07-07 2021-03-19 北京开科唯识技术股份有限公司 Account checking method and device
CN113052674A (en) * 2021-03-15 2021-06-29 平安银行股份有限公司 Quota management method, electronic device, computer device, and storage medium
CN114971611A (en) * 2022-05-07 2022-08-30 中国工商银行股份有限公司 Hotspot balance processing method and device for account, processor and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9336222B2 (en) * 2011-08-05 2016-05-10 Netapp, Inc. Creation and access of quota trees in a file system
CN106327330A (en) * 2016-08-17 2017-01-11 深圳市金证科技股份有限公司 Method and system for multiple orders to share account fund
CN107026897A (en) * 2017-02-20 2017-08-08 阿里巴巴集团控股有限公司 A kind of methods, devices and systems of data processing
CN107463593A (en) * 2016-12-13 2017-12-12 阿里巴巴集团控股有限公司 Stock reduces method and its equipment
CN107679983A (en) * 2017-10-20 2018-02-09 京北方信息技术股份有限公司 Amount tree constructing method and device, amount take route inspection method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9336222B2 (en) * 2011-08-05 2016-05-10 Netapp, Inc. Creation and access of quota trees in a file system
CN106327330A (en) * 2016-08-17 2017-01-11 深圳市金证科技股份有限公司 Method and system for multiple orders to share account fund
CN107463593A (en) * 2016-12-13 2017-12-12 阿里巴巴集团控股有限公司 Stock reduces method and its equipment
CN107026897A (en) * 2017-02-20 2017-08-08 阿里巴巴集团控股有限公司 A kind of methods, devices and systems of data processing
CN107679983A (en) * 2017-10-20 2018-02-09 京北方信息技术股份有限公司 Amount tree constructing method and device, amount take route inspection method and apparatus

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EWNETU BAYUH LAKEW等: "A Tree-Based Protocol for Enforcing Quotas in Clouds", 《2014 IEEE WORLD CONGRESS ON SERVICES》 *
蔡秀娟: "额度授信管理系统的设计与实现", 《赤峰学院学报(自然科学版)》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335033A (en) * 2019-07-09 2019-10-15 中国工商银行股份有限公司 Limit processing method and system
CN110599185A (en) * 2019-07-30 2019-12-20 上海数据交易中心有限公司 Account synchronization method and device, data transaction system, storage medium and terminal
CN110648129A (en) * 2019-08-20 2020-01-03 上海数据交易中心有限公司 Quota control method and device for batch distribution system, storage medium and terminal
CN111429125A (en) * 2020-03-17 2020-07-17 京东数字科技控股有限公司 Account management method and device, storage medium and electronic equipment
CN111429125B (en) * 2020-03-17 2024-04-19 京东科技控股股份有限公司 Account management method and device, storage medium and electronic equipment
CN111461692A (en) * 2020-04-17 2020-07-28 支付宝(杭州)信息技术有限公司 Data processing method and device
CN111667360A (en) * 2020-06-19 2020-09-15 中信银行股份有限公司 User limit information management method and device, electronic equipment and storage medium
CN111798302A (en) * 2020-06-29 2020-10-20 平安普惠企业管理有限公司 Quota updating method and device based on micro service, electronic equipment and storage medium
CN111784510B (en) * 2020-07-07 2021-03-19 北京开科唯识技术股份有限公司 Account checking method and device
CN111915429A (en) * 2020-08-11 2020-11-10 北京开科唯识技术有限公司 Account checking method and device
CN112085486A (en) * 2020-08-24 2020-12-15 宝付网络科技(上海)有限公司 Method and system for improving fund issuing capacity
CN112085486B (en) * 2020-08-24 2024-01-30 宝付网络科技(上海)有限公司 Method and system for improving funds distribution capacity
CN112395091A (en) * 2020-11-24 2021-02-23 上海商汤智能科技有限公司 Cloud service request response method and device, electronic equipment and storage medium
WO2022110796A1 (en) * 2020-11-24 2022-06-02 上海商汤智能科技有限公司 Cloud service request responding method and apparatus, electronic device, and storage medium
CN112365345B (en) * 2021-01-14 2021-04-13 北京江融信科技有限公司 DAG-based dynamic control method and system for multi-type credit line
CN112365345A (en) * 2021-01-14 2021-02-12 北京江融信科技有限公司 DAG-based dynamic control method and system for multi-type credit line
CN113052674A (en) * 2021-03-15 2021-06-29 平安银行股份有限公司 Quota management method, electronic device, computer device, and storage medium
CN114971611A (en) * 2022-05-07 2022-08-30 中国工商银行股份有限公司 Hotspot balance processing method and device for account, processor and electronic equipment
CN114971611B (en) * 2022-05-07 2024-08-13 中国工商银行股份有限公司 Hot spot balance processing method and device for account, processor and electronic equipment

Also Published As

Publication number Publication date
CN108446975B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN108446975A (en) A kind of quota control method and device
US9646075B2 (en) Segmentation and stratification of data entities in a database system
US11741491B2 (en) Distribution of fractional equity rewards based on purchase behavior
US11227028B2 (en) Hyperdimensional vector representations for algorithmic functional grouping of complex systems
US20220138280A1 (en) Digital Platform for Trading and Management of Investment Securities
US20170345098A1 (en) Systems and methods for managing consumer transaction-based investments
US10191888B2 (en) Segmentation and stratification of data entities in a database system
CN110390596A (en) A kind of financial futures trading system
US20040128180A1 (en) Integrating logistic and financial control of projects
CN103748602B (en) Pay non-settlement bargain
US20190228035A1 (en) Weighted analysis of stratified data entities in a database system
CN110880082B (en) Service evaluation method, device, system, electronic device and readable storage medium
TW202020787A (en) A computer implemented method for compiling a portfolio of assets
WO2016118939A1 (en) Segmentation and stratification of composite portfolios of investment securities
KR20170086964A (en) Method of payment for supplier's account receivable
JP4065669B2 (en) How to transfer funds between multiple accounts
CN103810572B (en) A kind of accounting document data processing method
US20240221084A1 (en) Method and apparatus for facilitating merchant self service with respect to financing and content support for marketing events
EP2413272A1 (en) Capturing and processing data generatid in an erp interim phase
KR20170110343A (en) A funding platform and the funding method through the same
JP2020198140A (en) Financial instruments management device, financial instruments transaction management method, and program
US8326717B2 (en) Rate exception management tool
CN106030507B (en) It is improved to take inventory purchasing system
JP5793007B2 (en) Financial product transaction management apparatus, financial product transaction management method, program
US11989722B2 (en) Omnibus address generation and autoconversion of cryptocurrency

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
GR01 Patent grant
GR01 Patent grant