CN109241106A - Distributed approach and device are reentried based on current-limiting operation - Google Patents

Distributed approach and device are reentried based on current-limiting operation Download PDF

Info

Publication number
CN109241106A
CN109241106A CN201810864208.6A CN201810864208A CN109241106A CN 109241106 A CN109241106 A CN 109241106A CN 201810864208 A CN201810864208 A CN 201810864208A CN 109241106 A CN109241106 A CN 109241106A
Authority
CN
China
Prior art keywords
pending data
processing
time
current
data
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
CN201810864208.6A
Other languages
Chinese (zh)
Inventor
何青松
胡晓喻
李联邦
王新盟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai Information Technology Co 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN201810864208.6A priority Critical patent/CN109241106A/en
Publication of CN109241106A publication Critical patent/CN109241106A/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
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

What the invention discloses a kind of based on current-limiting operation reentry distributed approach and device, method include: extract pending data and pending data from database reentry the processing time;Judge whether current time is later than reentrying for pending data and handles the time;If so, being based on Current limited Control, the pending data in armed state is handled;The degree of reentrancy for updating pending data reentries the processing time according to the pending data recorded in degree of reentrancy more new database;Circulation executes above-mentioned steps, until pending data is successfully processed.To pending data using can reentry type processing, be arranged pending data reentries processing the time, according to can reentry processing the time, avoid pending data drain process, also the treatment effeciency to pending data is improved, avoids the problem that repeatedly frequently being handled, saves process resource.

Description

Distributed approach and device are reentried based on current-limiting operation
Technical field
The present invention relates to software fields, and in particular to a kind of to reentry distributed approach and dress based on current-limiting operation It sets.
Background technique
In distributed network architecture, the core system in core position is often with multiple sons for being responsible for specific business System interacts.Wherein, the processing capacity of core system is generally significantly larger than the processing capacity of subsystem, to ensure entire frame The normal processing of structure, at this time, it may be necessary to current limliting is carried out for the subsystem of different interactions in core system, it can be with by current limliting The subsystem of each interaction is protected well.But current-limiting operation can bring two difficulties:
1. Data Consistency.In current-limiting operation, core system server is saved the data in memory, every to The data waiting time of processing is unknown, is disposed and is persisted to by a certain subsystem server in a certain pending data Before database, remaining subsystem server cannot perceive the state of the data, it is more likely that can have more station subsystems Server handles the case where pending data simultaneously, and data is caused to be repeatedly processed through vaporization, condensation and absorption, or even greatly influences treatment effeciency. If multiple subsystem servers handle same data simultaneously, each subsystem server the memory long-term preservation data simultaneously Etc. to be processed, lead to the wasting of resources of multiple subsystem servers.
2. problem is omitted in data processing.Core system server needs to save the data in memory when handling data Wait processed, since the duration of waiting is unpredictable, each subsystem server has the possibility of failure, delay machine, causes Data in EMS memory lose after, also continued with without other subsystem servers so that partial data be missed it is untreated.
Specifically, closing on certificate expired time as electric business industry can provide a large amount of coupons to user before festivals or holidays Before, certificate assets platform needs to push subsystem by message to remind user, and certificate under one's name is fast expired.Since high-volume is sent out The coupons put validity period having the same, so if do not do current-limiting operation, some period certificate assets platform will be with High QPS (Queries Per Second, query rate per second) sends request to message push subsystem, and message is caused to push Subsystem temporary impact is excessively high and unavailable.Assuming that currently have 10000 coupons i.e. will be expired, 10 clothes of certificate assets platform Business device is handled, and the QPS that message push subsystem can be born is 100/s.Each server of certificate assets platform every time from Database takes out 100 certificates, but per second can only handle 10 (10 * 10 server=current limlitings, 100/s).It is assumed that folding Button certificate A is taken out by server S, and it is medium to be processed to be stored in server memory, in this scenario, therefore, to assure that other servers Solution coupons A is waiting to be processed, the case where avoiding other servers from reprocessing it.Meanwhile there are also consider clothes Business device S be likely to occur delay machine, internal storage data lose the problems such as when, other servers will continue to processing coupons A, avoid discount Certificate A is missed untreated situation.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind That states problem reentries distributed approach and device based on current-limiting operation.
According to an aspect of the invention, there is provided a kind of reentry distributed approach based on current-limiting operation, Include:
Pending data is extracted from database and reentrying for pending data handles the time;
Judge whether current time is later than reentrying for pending data and handles the time;If so, it is based on Current limited Control, it is right Pending data in armed state is handled;
Update pending data degree of reentrancy, according to the pending data recorded in degree of reentrancy more new database can Reentry the processing time;
Circulation executes above-mentioned steps, until pending data is successfully processed.
Optionally, method further include:
After database extraction pending data, if pending data is not set to reentry the processing time, it is arranged wait locate Reason data reentry the processing time.
Optionally, processing time=current time+pending data degree of reentrancy * prefixed time interval can be reentried.
Optionally, it is based on Current limited Control, carrying out processing to the pending data in armed state further comprises:
After determining the processing authority that pending data obtains current-limiting operation, the processing status of pending data is obtained;
Judge whether processing status is untreated state;
If so, pending data is distributed to processor processing.
Optionally, method further include:
The processing result of pending data is obtained, and the processing status in database is updated to processed state.
Optionally, it is being based on Current limited Control, before handling the pending data in armed state, method is also Include:
Pending data is loaded into memory, to ensure that pending data is normally processed.
According to another aspect of the present invention, provide it is a kind of distributed processing arrangement is reentried based on current-limiting operation, Include:
Extraction module handles the time suitable for extracting pending data and reentrying for pending data from database;
Judgment module handles the time suitable for judging whether current time is later than reentrying for pending data;
Processing module, if judging that current time is later than reentrying for pending data and handles the time suitable for judgment module, Based on Current limited Control, the pending data in armed state is handled;
Update module can be reentried, suitable for updating the degree of reentrancy of pending data, according in degree of reentrancy more new database The pending data of record reentries the processing time;
Loop module executes extraction module, judgment module, processing module suitable for circulation and/or can reentry update module, directly It is successfully processed to pending data.
Optionally, device further include:
Setup module, after being suitable for extracting pending data from database, if pending data is not set when reentrying processing Between, then pending data is arranged reentries the processing time.
Optionally, processing time=current time+pending data degree of reentrancy * prefixed time interval can be reentried.
Optionally, processing module is further adapted for:
After determining the processing authority that pending data obtains current-limiting operation, the processing status of pending data is obtained;Sentence Whether disconnected processing status is untreated state;If so, pending data is distributed to processor processing.
Optionally, device further include:
State update module is updated suitable for obtaining the processing result of pending data, and by the processing status in database For processed state.
Optionally, device further include:
It insmods, suitable for pending data is loaded into memory, to ensure that pending data is normally processed.
According to another aspect of the invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
For memory for storing an at least executable instruction, it is above-mentioned based on current-limiting operation that executable instruction executes processor Reentry the corresponding operation of distributed approach.
In accordance with a further aspect of the present invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, the distributed approach of reentrying that executable instruction executes processor as above-mentioned based on current-limiting operation correspond to Operation.
What is provided according to the present invention reentries distributed approach and device based on current-limiting operation, mentions from database Pending data and reentrying for pending data is taken to handle the time;Judge whether current time be later than pending data can Reentry the processing time;If so, being based on Current limited Control, the pending data in armed state is handled;Update to The degree of reentrancy for handling data reentries the processing time according to the pending data recorded in degree of reentrancy more new database; Circulation executes above-mentioned steps, until pending data is successfully processed.To pending data using can reentry type processing, setting to Processing data reentry the processing time, according to that can reentry the processing time, avoid pending data drain process, also improve and treat place The treatment effeciency for managing data, avoids the problem that repeatedly frequently being handled, and saves process resource.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the stream according to an embodiment of the invention that reentry distributed approach based on current-limiting operation Cheng Tu;
What Fig. 2 shows in accordance with another embodiment of the present invention based on current-limiting operation reentries distributed approach Flow chart;
Fig. 3 shows the function according to an embodiment of the invention that reentry distributed processing arrangement based on current-limiting operation It can block diagram;
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the stream according to an embodiment of the invention that reentry distributed approach based on current-limiting operation Cheng Tu.As shown in Figure 1, the distributed approach of reentrying based on current-limiting operation specifically comprises the following steps:
Step S101, extracts pending data from database and reentrying for pending data handles the time.
The present embodiment considers that in a distributed system pending data is asked by drain process or pending data reprocessing etc. Topic.The processing time can be reentried by being provided with to pending data.It is to be retrieved that the processing time can be reentried pending data next time Time limit.According to pending data reentry processing the time can determine it is to be processed within this period of current-limiting operation Whether data are processed, if processing failure etc..According to can reentry processing the time, can by processing failure or it is untreated to Processing data carry out reentry processing, avoid the problem of pending data is by drain process, meanwhile, the time is handled using that can reentry, Also the problems such as pending data is repeated as many times as required processing is reduced.
Specifically, needing the processing status according to data when extracting data from database, only extracting pending data (i.e. processing status is the data of untreated state, does not need to handle again for the data of processed state).At the extraction, That extracts pending data simultaneously reentries the processing time.Further, after database extraction pending data, if number to be processed The processing time is reentried according to not set, then pending data is arranged reentries the processing time.In the head of setting pending data It is secondary reentry processing the time when, can according to specific implementation situation, can will reentry for the first time processing time setting be current time after Sometime, it to be based on Current limited Control, waits and the pending data in armed state is handled.
Step S102, judges whether current time is later than reentrying for pending data and handles the time.
Current time is compared with the processing time of reentrying of pending data, if current time is later than number to be processed According to reentry the processing time, illustrate pending data there are no processing failure before the time processed or to be processed, need pair Pending data is reentried, and is kept it again processed, is thened follow the steps S103.
Further, if current time earlier than pending data reentry processing the time when, pending data may just be located In states such as the writ of execution boards to be obtained such as state processed or current limliting, at this point, do not need to operate pending data, by It continues state where it.
Step S103 is based on Current limited Control, handles the pending data in armed state.
Judge current time be later than pending data reentry processing the time after, pending data is loaded into memory In, the problems such as can not being handled to avoid pending data by deadlock, so that pending data is in armed state, it can wait It is processed after current limliting processing authority to be obtained, avoid data by drain process.
Based on to distributed Current limited Control, such as token bucket algorithm can be used, after pending data gets token, The pending data can be assigned to corresponding processor and be handled.Limited current algorithm is according to implementation used by Current limited Control Situation setting, is not construed as limiting herein.
Step S104 updates the degree of reentrancy of pending data, according to being recorded in degree of reentrancy more new database wait locate Reason data reentry the processing time.
The step is used to be arranged reentrying for pending data and handles the time, it is intended that if pending data is handled When failure, can according to pending data reentry the processing time by pending data extraction process again again, it is carried out Processing, ensures it not by drain process.When reentrying the processing time of pending data is being set, according to the reentry of pending data Number is configured.Number that degree of reentrancy, that is, pending data is performed, process the pending data server number Amount.According to the difference of degree of reentrancy, it is different that the processing time can be reentried.Processing time=current time+number to be processed can such as be reentried According to degree of reentrancy * prefixed time interval.Degree of reentrancy is more, can reentry processing the time it is longer, avoid pending data short It is frequently loaded into memory in time, to improve treatment effeciency.
According to degree of reentrancy, the processing time of reentrying of the pending data recorded in database can be carried out accordingly Update can recycle and execute above-mentioned steps S101- convenient for when this processing failure of pending data or drain process S104 extracts the pending data again and is handled according to that can reentry the processing time, until the pending data is by success Processing.
Further, step S104 can also be executed before step S103, first update the degree of reentrancy of pending data, The processing time can be reentried to update.Later, it is being based on Current limited Control, at the pending data in armed state Reason.Herein, it to specific execution sequence, is not construed as limiting.
What is provided according to the present invention reentries distributed approach based on current-limiting operation, extracts to from from database Reason data and reentrying for pending data handle the time;Judge that whether current time be later than pending data reentries place Manage the time;If so, being based on Current limited Control, the pending data in armed state is handled;Update number to be processed According to degree of reentrancy, according to the pending data recorded in degree of reentrancy more new database reentry processing the time;Circulation is held Row above-mentioned steps, until pending data is successfully processed.To pending data using can reentry type processing, number to be processed is set According to reentry processing the time, according to can reentry processing the time, extract pending data again, avoid pending data leak Reason.Meanwhile can reentry processing the time it is related to degree of reentrancy, degree of reentrancy is more, can reentry handle the time it is longer, avoid wait locate Reason data are frequently loaded into memory in a short time, avoid the problem that repeatedly frequently being handled, and save process resource, raising processing Efficiency.
What Fig. 2 shows in accordance with another embodiment of the present invention based on current-limiting operation reentries distributed approach Flow chart.As shown in Fig. 2, the distributed approach of reentrying based on current-limiting operation specifically comprises the following steps:
Step S201, extracts pending data from database and reentrying for pending data handles the time.
The not processed pending data in untreated state is extracted from database, at the extraction, for dividing Cloth system can uniformly be extracted by the upstream core system of multiple distributed subsystems, conveniently be distributed at each subsystem Reason.
Step S202, judges whether current time is later than reentrying for pending data and handles the time.
Judge current time be later than pending data reentry the processing time after, illustrate that pending data is last Failure or drain process are executed, step S203 is executed.
Pending data is loaded into memory by step S203.
Pending data is loaded into memory, avoids pending data by a certain server process in distributed subsystem Failure, causes deadlock etc. that can not be further continued for the problems such as processed.
Step S204 is based on Current limited Control, obtains the processing authority that pending data obtains current-limiting operation.
For Current limited Control, after pending data needs to get the processing authority of corresponding current-limiting operation, could be located Reason.Specifically, if currently having 4 pending datas, respectively a1, a2, a3 and a4, when a1 gets the disposal right of current-limiting operation Limit, can be processed, other 3 pending data needs continue waiting for, until its processing authority for getting current-limiting operation It could be processed.
The specific processing authority for obtaining current-limiting operation can be realized using existing limited current algorithm, do not done expansion herein and said It is bright.
Step S205 obtains the place of pending data after determining the processing authority that pending data obtains current-limiting operation Reason state.
After determining that pending data gets the processing authority of current-limiting operation, the processing shape of pending data is first obtained Whether state avoids reprocessing to check pending data success processed, improves treatment effeciency.It obtains to be processed The processing status of pending data is obtained when the processing status of data from database, rather than obtains pending data from memory Processing status, avoid be loaded into memory when pending data state change, cause pending data to be repeatedly processed through vaporization, condensation and absorption Problem.
Step S206 judges whether processing status is untreated state.
When judging the processing status of pending data for untreated state, just needs to handle pending data, hold Row step S207;Otherwise, the processing status of pending data has changed, and does not need to carry out at repetition to pending data Reason.
Pending data is distributed to processor processing by step S207.
Pending data can be distributed to the corresponding processor of any distributed subsystem to handle.
Step S208 obtains the processing result of pending data, and the processing status in database is updated to processed State.
After pending data is processed, the processing result of pending data is obtained.Herein, the knot being successfully processed is referred mainly to Fruit, according to being successfully processed as a result, the processing status in database is updated to processed state, then pending data would not It is extracted again.If pending data failure processed, does not need the processing status of pending data in more new database, It is still untreated state, ensures that it is extracted again next time, allows to reentry, be reprocessed repeatedly.
Step S209 updates the degree of reentrancy of pending data, according to being recorded in degree of reentrancy more new database wait locate Reason data reentry the processing time.
It updates the degree of reentrancy of pending data, the processing time can be reentried, to ensure pending data processing failure or leakage After processing, it can be extracted again, keep it again processed.
What is provided according to the present invention reentries distributed approach based on current-limiting operation, and using to pending data can Reentry type processing, pending data is arranged reentries the processing time, according to that can reentry the processing time, extracts number to be processed again According to avoiding pending data drain process.Meanwhile can reentry processing the time it is related to degree of reentrancy, degree of reentrancy is more, can reentry The processing time is longer, avoids pending data from being frequently loaded into memory in a short time, avoids the problem that repeatedly frequently being handled, Process resource is saved, treatment effeciency is improved.Further, before handling pending data, its state in the database is carried out Detection, avoids reprocessing.
Fig. 3 shows the function according to an embodiment of the invention that reentry distributed processing arrangement based on current-limiting operation It can block diagram.As shown in figure 3, the distributed processing arrangement of reentrying based on current-limiting operation includes following module:
Extraction module 310, suitable for extracting pending data and when reentrying processing of pending data from database Between.
Judgment module 320 handles the time suitable for judging whether current time is later than reentrying for pending data.
Processing module 330, if judging that current time is later than when reentrying processing of pending data suitable for judgment module 320 Between, then it is based on Current limited Control, the pending data in armed state is handled.
Update module 340 can be reentried, suitable for updating the degree of reentrancy of pending data, according to degree of reentrancy more new database The pending data of middle record reentries the processing time.
Loop module 350 executes extraction module 310, judgment module 320, processing module 330 suitable for circulation and/or can weigh Enter update module 340, until pending data is successfully processed.
Optionally, device further include:
Setup module 360, after being suitable for extracting pending data from database, if pending data is not set to reentry processing Time, then pending data is arranged reentries the processing time.
Optionally, processing module 330 is further adapted for: in the processing authority for determining pending data acquisition current-limiting operation Afterwards, the processing status of pending data is obtained;Judge whether processing status is untreated state;If so, by pending data point The processing of dispensing processor.
Optionally, device further include:
State update module 370, suitable for obtaining the processing result of pending data, and more by the processing status in database It is newly processed state.
Optionally, device further include:
380 are insmoded, suitable for pending data is loaded into memory, to ensure that pending data is normally processed.
The description of above each module is referring to corresponding description in each method embodiment, and details are not described herein.
Present invention also provides a kind of nonvolatile computer storage media, the computer storage medium is stored at least The weighing based on current-limiting operation in above-mentioned any means embodiment can be performed in one executable instruction, the computer executable instructions Enter distributed approach.
Fig. 4 shows the structural schematic diagram of a kind of electronic equipment according to an embodiment of the invention, and the present invention is specifically real Example is applied not limit the specific implementation of electronic equipment.
As shown in figure 4, the electronic equipment may include: processor (processor) 402, communication interface (Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 402 can specifically execute for executing program 410 and above-mentioned reentry distribution based on current-limiting operation Correlation step in processing method embodiment.
Specifically, program 410 may include program code, which includes computer operation instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes grasping in above-mentioned any means embodiment based on current limliting That makees reentries distributed approach.The specific implementation of each step may refer to above-mentioned based on current-limiting operation in program 410 Corresponding description in the corresponding steps in distributed treatment embodiment and unit can be reentried, this will not be repeated here.The skill of fields Art personnel can be understood that, for convenience and simplicity of description, the equipment of foregoing description and the specific work process of module, It can refer to corresponding processes in the foregoing method embodiment description, details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize reentrying point based on current-limiting operation according to an embodiment of the present invention The some or all functions of some or all components in cloth processing unit.The present invention is also implemented as executing Some or all device or device programs of method as described herein are (for example, computer program and computer journey Sequence product).It is such to realize that program of the invention can store on a computer-readable medium, either can have one or The form of multiple signals.Such signal can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or It is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (10)

1. a kind of reentry distributed approach based on current-limiting operation comprising:
Pending data is extracted from database and reentrying for the pending data handles the time;
Judge whether current time is later than reentrying for the pending data and handles the time;If so, it is based on Current limited Control, it is right The pending data in armed state is handled;
The degree of reentrancy for updating the pending data, it is described to be processed according to what is recorded in the degree of reentrancy more new database Data reentry the processing time;
Circulation executes above-mentioned steps, until the pending data is successfully processed.
2. according to the method described in claim 1, wherein, the method also includes:
After database extraction pending data, reentried the processing time if the pending data is not set, described in setting Pending data reentries the processing time.
3. method according to claim 1 or 2, wherein described to reentry processing time=current time+described to be processed The degree of reentrancy * prefixed time interval of data.
4. method according to claim 1 or 2, wherein it is described to be based on Current limited Control, in described in armed state Pending data carries out processing:
After determining the processing authority that the pending data obtains current-limiting operation, the processing shape of the pending data is obtained State;
Judge whether the processing status is untreated state;
If so, the pending data is distributed to processor processing.
5. according to the method described in claim 4, wherein, the method also includes:
The processing result of the pending data is obtained, and the processing status in database is updated to processed state.
6. according to the method described in claim 1, wherein, Current limited Control is based on described, in described in armed state Before pending data is handled, the method also includes:
The pending data is loaded into memory, to ensure that the pending data is normally processed.
7. a kind of reentry distributed processing arrangement based on current-limiting operation comprising:
Extraction module handles the time suitable for extracting pending data and reentrying for the pending data from database;
Judgment module handles the time suitable for judging whether current time is later than reentrying for the pending data;
Processing module, if judging that current time is later than when reentrying processing of the pending data suitable for the judgment module Between, then it is based on Current limited Control, the pending data in armed state is handled;
Update module can be reentried, suitable for updating the degree of reentrancy of the pending data, according to the degree of reentrancy more new data The pending data recorded in library reentries the processing time;
Loop module executes the extraction module, the judgment module, the processing module suitable for circulation and/or described weighs Enter update module, until the pending data is successfully processed.
8. device according to claim 7, wherein described device further include:
Setup module, after being suitable for extracting pending data from database, if the pending data is not set when reentrying processing Between, then the pending data is arranged reentries the processing time.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction It asks and the corresponding operation of distributed approach is reentried based on current-limiting operation described in any one of 1-6.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium The distributed approach of reentrying for executing processor as of any of claims 1-6 based on current-limiting operation corresponds to Operation.
CN201810864208.6A 2018-08-01 2018-08-01 Distributed approach and device are reentried based on current-limiting operation Pending CN109241106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810864208.6A CN109241106A (en) 2018-08-01 2018-08-01 Distributed approach and device are reentried based on current-limiting operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810864208.6A CN109241106A (en) 2018-08-01 2018-08-01 Distributed approach and device are reentried based on current-limiting operation

Publications (1)

Publication Number Publication Date
CN109241106A true CN109241106A (en) 2019-01-18

Family

ID=65073432

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810864208.6A Pending CN109241106A (en) 2018-08-01 2018-08-01 Distributed approach and device are reentried based on current-limiting operation

Country Status (1)

Country Link
CN (1) CN109241106A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2894608A1 (en) * 2015-06-18 2016-12-18 Kwilt Inc. A computer-implemented method of aggregating and presenting digital photos from numerous sources
CN108280150A (en) * 2018-01-05 2018-07-13 宝付网络科技(上海)有限公司 A kind of distribution asynchronous service distribution method and system
CN108345977A (en) * 2017-01-25 2018-07-31 阿里巴巴集团控股有限公司 A kind of method for processing business and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2894608A1 (en) * 2015-06-18 2016-12-18 Kwilt Inc. A computer-implemented method of aggregating and presenting digital photos from numerous sources
CN108345977A (en) * 2017-01-25 2018-07-31 阿里巴巴集团控股有限公司 A kind of method for processing business and device
CN108280150A (en) * 2018-01-05 2018-07-13 宝付网络科技(上海)有限公司 A kind of distribution asynchronous service distribution method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丛书编委会: "《网络设备与互连技术》", 31 August 2008, 中国电力出版社 *

Similar Documents

Publication Publication Date Title
CN103826215B (en) A kind of method and apparatus for carrying out Root authority management on the terminal device
CN105117289B (en) Method for allocating tasks, apparatus and system based on cloud test platform
CN108512851B (en) Account processing method, electronic equipment and storage medium are read by family
CN105183564B (en) Equipment scheduling method, apparatus and system based on cloud test platform
CN102609296A (en) Virtual machine branching and parallel execution
US7661113B2 (en) Method and system for data preparation and communication between software applications
CN105447167B (en) The data cached processing method and processing device of distributed system interior joint
CN110225078A (en) A kind of application service update method, system and terminal device
CN107480117B (en) Recovery method and device for automatic page table single data
CN104753909A (en) Updated information authentication method, device and system
CN108268365A (en) Abnormal task method for implanting, device and system
CN106034113A (en) Data processing method and data processing device
CN109657434A (en) Application access method and device
CN106775951A (en) A kind of operation management method and device of Android application
CN109359060A (en) Data pick-up method, apparatus calculates equipment and computer storage medium
CN109040263A (en) Method for processing business and device based on distributed system
CN107085615A (en) Duplicated text removal system, method, server and computer-readable storage medium
CN110135940A (en) Kitchen order display device and method afterwards
US8661293B2 (en) Test architecture based on intelligent test sequence
CN109241106A (en) Distributed approach and device are reentried based on current-limiting operation
CN102999580B (en) Password input frame element processing method and browser
CN108062224A (en) Data read-write method, device and computing device based on file handle
CN106570685B (en) Service processing method and device
CN107402761A (en) Using restorative procedure and device
CN108241616A (en) Information push method and device

Legal Events

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

Application publication date: 20190118