CN103618590A - Overtime control method and device of business processing process - Google Patents

Overtime control method and device of business processing process Download PDF

Info

Publication number
CN103618590A
CN103618590A CN201310591266.3A CN201310591266A CN103618590A CN 103618590 A CN103618590 A CN 103618590A CN 201310591266 A CN201310591266 A CN 201310591266A CN 103618590 A CN103618590 A CN 103618590A
Authority
CN
China
Prior art keywords
transaction
consuming time
node
transactions requests
threshold value
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
CN201310591266.3A
Other languages
Chinese (zh)
Other versions
CN103618590B (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.)
BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd
Original Assignee
BEIJING ADVANCED DIGITAL 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 BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd filed Critical BEIJING ADVANCED DIGITAL TECHNOLOGY Co Ltd
Priority to CN201310591266.3A priority Critical patent/CN103618590B/en
Publication of CN103618590A publication Critical patent/CN103618590A/en
Application granted granted Critical
Publication of CN103618590B publication Critical patent/CN103618590B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses an overtime control method and device of a business processing process and belongs to the technical field of control technologies. According to the method, business request processing messages carrying overall overtime control information are transmitted in all nodes, and the nodes realize overtime control on the business processing according to an overall control threshold in the overall overtime control information. The method solves the problems that management is complex and maintenance cost is high due to the fact that management overtime control time needs configuring to each node in the prior art are solved.

Description

A kind of manufacture timeout control method of transaction process and device
Technical field
The present invention relates to data communication technology field, particularly a kind of manufacture timeout control method of transaction process and device.
Background technology
Fast development along with network technology, a plurality of service sub-systems have been disposed and moved in large enterprise or organization inside mostly, and along with the needs of data interconnection intercommunication, one time transactions requests information process need to be also more prevalent by the situation of a plurality of subsystem processes, this wherein, as long as the subsystem processes in a step occurs abnormal, think that this transactions requests processes unsuccessfully.Therefore,, in order to guarantee that transactions requests information can be effectively handled at subsystems, introduced the overtime controlling mechanism for each subsystem.
Prior art is for the manufacture timeout control method of each subsystem, be specially: for overtime control time corresponding to each subsystem configures, when transactions requests information arrives each subsystem successively, the first subsystem is processed the request receiving and result is issued to the second subsystem; Meanwhile, the first subsystem judgement receives the overtime control time that whether exceeds the first subsystem from the stand-by period of the second subsystem responses message, if exceed, returns to failure response message.
In realizing process of the present invention, inventor finds that prior art at least exists following problem:
Prior art is when the overtime control time of each subsystem of configuration, reasonable in order to guarantee the overtime control time of each subsystem configures, avoid appearance subsystem below also within the overtime control time, and subsystem above overtime situation about exiting, need to understand the disposal ability of subsystems and process consuming time to configure the rational overtime control time, and along with the quantity of subsystem constantly increases, it is more complicated that the way in above-mentioned overtime control time of configuration subsystem just becomes, and required time workload sharply increases.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of manufacture timeout control method and device of information exchanging process.Described technical scheme is as follows:
On the one hand, provide a kind of manufacture timeout control method of information exchanging process, described method comprises:
Described method comprises:
Obtain the first transactions requests message, described the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node;
Obtaining current first node, to process the first node transaction of described the first transactions requests message consuming time;
Obtain the second overtime control threshold value corresponding with Section Point, it is consuming time that described the second overtime control threshold value is that described the first overtime control threshold value is deducted described first node transaction;
Described the first transactions requests message conversion is generated to the second transactions requests message, and described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value;
Described the second transactions requests message is mail to corresponding Section Point;
Determine first node response wait for consuming time, described first node response wait for consuming time comprise when described the second transactions requests message sends to current time;
Determine that first node is always consuming time, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
Interval judges total described the first overtime control threshold value that whether exceeds consuming time of described first node on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
Alternatively,
The described first transactions requests message that obtains, specifically comprises:
From the first transactions requests queue, obtain the first transactions requests message;
Described method also comprises:
Obtaining first queue of described the first transactions requests message in described the first transactions requests queue waits for consuming time;
The described second overtime control threshold value of obtaining, specifically comprises:
By described the first overtime control threshold value, deduct described the first queue and wait for the consuming time and first node transaction second overtime control threshold value that obtains consuming time;
Described the second transactions requests message is mail to corresponding Section Point, specifically comprises:
The second transactions requests message is mail to the second transactions requests queue that Section Point is corresponding;
Described definite first node is always consuming time, specifically comprises:
Determine that first node is always consuming time, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
Alternatively, described in obtain first node transaction consuming time after, also comprise:
Whether exceed described first overtime control threshold value, if exceed, stop current transaction, and return to error message if judging that described first node transaction is consuming time.
Alternatively, described in obtain the second overtime control threshold value corresponding with Section Point after, before described generation the second message, also comprise:
Obtain the transaction standards T consuming time of Section Point s;
Judge whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2,
If so, stop current transaction, and return to error message.
Alternatively, described in, obtain the transaction standards T consuming time of Section Point s, specifically comprise:
Obtain the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
If described transaction times N 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
According to another aspect of the present invention, a kind of overtime control device of transaction process is also provided, described device comprises:
Transactions requests Receive message module, for obtaining the first transactions requests message, described the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node;
Node transaction acquisition module consuming time, for obtaining first node, to process the first node transaction of the first affairs message that described transactions requests Receive message module obtains consuming time;
Overtime control threshold value acquisition module, for obtaining the second overtime control threshold value corresponding with Section Point, it is consuming time that described the second overtime control threshold value is that described the first overtime control threshold value is deducted described first node transaction;
The second transactions requests message generation module, for described the first transactions requests message conversion is generated to the second transactions requests message, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value;
The second transactions requests message sending module, for mailing to corresponding Section Point by described the second transactions requests message;
Determination module consuming time is waited in first node response, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
The total determination module consuming time of first node, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
Overtime detection module, judges total described the first overtime control threshold value that whether exceeds consuming time of described first node for interval on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
Alternatively,
Described transactions requests Receive message module, specifically also for obtaining the first transactions requests message from the first transactions requests queue;
Described device also comprises:
Acquisition module consuming time is waited in the first queue, for obtaining described the first transactions requests message, in the first queue of described the first transactions requests queue, waits for consuming time;
Described overtime control threshold value acquisition module, specifically also waits for the consuming time and first node transaction second overtime control threshold value that obtains consuming time for deduct described the first queue by described the first overtime control threshold value;
Described the second transactions requests message sending module, concrete also for the second transactions requests message being mail to the second transactions requests queue that Section Point is corresponding;
The total determination module consuming time of described first node, also always consuming time for determining first node, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
Alternatively, described device also comprises:
Whether the first overtime judge module, exceed described the first overtime control threshold value for judging that described first node transaction is consuming time, if exceed, stops current transaction, and return to error message.
Alternatively, described device also comprises:
Standard time acquisition module, for obtaining the transaction standards T consuming time of Section Point s;
The second overtime judge module, for judging whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2, if so, stop current transaction, and return to error message.
Wherein, described standard time acquisition module specifically comprises:
Number of transactions submodule, for obtaining the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
Judgement submodule, if for the described transaction times N of judgement 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
The beneficial effect that technical solution of the present invention is brought is:
The embodiment of the present invention is transmitted in each node by the transactions requests of carrying global timeout control information is processed to message, node is realized node is carried out to the overtime control of transaction according to the overtime control threshold value in global timeout control information, avoided needing in prior art the complex management that each overtime control time of node configuration management is caused, the problem that maintenance cost is high.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the manufacture timeout control method flow chart of a kind of transaction process of providing of the embodiment of the present invention one;
Fig. 2 is the manufacture timeout control method flow chart of a kind of transaction process of providing of the embodiment of the present invention two;
Fig. 3 is the manufacture timeout control method flow chart of a kind of transaction process of providing of the embodiment of the present invention three;
Fig. 4 is the overtime control device structural representation of a kind of transaction process of providing of the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The present embodiment provides a kind of manufacture timeout control method of transaction process, and referring to Fig. 1, the method flow that the present embodiment provides is specific as follows:
S101, obtains the first transactions requests message.
Wherein, the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node.
In the embodiment of the present invention, by transaction a plurality of nodes of process be called first node, Section Point ... n node, wherein, first node can be both the start node of transaction, can be also any one node wherein, the present invention is not restricted this.For ease of describing, it is first node that the embodiment of the present invention be take the start node of transaction.
Global timeout control information is for having carried corresponding total overtime control time of transaction, and its initial value is the first overtime control threshold value.This global timeout control information is along with transactions requests message is delivered to each node successively, node of every arrival, this node completes after the processing of transactions requests message, to global timeout, control information is upgraded, and then the global timeout control information after upgrading is sent to next node with transactions requests message.
During concrete enforcement, can in the heading of transactions requests message, add field ' time-out' carries global timeout control information, and according to the factors such as average time of the performance of each node, processing transactions request message, the initial value of global timeout control information is set by those skilled in the art.
S102, obtaining current first node, to process the first node transaction of described the first transactions requests message consuming time.
Optionally, after step 102, also comprise:
Whether exceed described first overtime control threshold value, if exceed, stop current transaction, and return to error message if judging that described first node transaction is consuming time.
The first node transaction first overtime control threshold value that exceeds consuming time, mean that this transactions requests message has exceeded total overtime control time of this transaction in spent time after first node is processed, it is meaningless that continuation forwards transactions requests message to next node, therefore, by the current transaction of timely termination, avoid waste and the consumption of system resource.
S103, obtains the second overtime control threshold value corresponding with Section Point.
Wherein, to be that described the first overtime control threshold value is deducted described first node transaction consuming time for described the second overtime control threshold value.
For example, if complete total overtime control time of transaction, be set to 60 seconds, the first overtime control threshold value is also 60 seconds so, suppose that first node completes transaction 10 seconds consuming time, the second overtime control threshold value=(first overtime control threshold value-first node transaction is consuming time), the second overtime control threshold value is 50 seconds.
S104, generates the second transactions requests message by described the first transactions requests message conversion.
Wherein, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value.
In transaction process, each node externally provides data-interface, inner the processing of complete independently to transactions requests message, therefore, the result conversion of the first transactions requests message and/or the first transactions requests message is generated and meets the second transactions requests message of Section Point interface specification, and carry global timeout control information in this second transactions requests message.
S105, mails to corresponding Section Point by described the second transactions requests message.
S106, determines that first node response wait is consuming time.
Wherein, the response of described first node wait for consuming time for when described the second transactions requests message sends to current time.
First node after the second transactions requests message is sent just by all the time in receiving the state of response message, the embodiment of the present invention is sent time to current time by the second affairs message, and to be defined as first node response wait consuming time.
S107, determines that first node is always consuming time.
Wherein, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node.
S108, interval judges total described the first overtime control threshold value that whether exceeds consuming time of described first node on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
The embodiment of the present invention is transmitted in each node by the transactions requests of carrying global timeout control information is processed to message, node is realized node is carried out to the overtime control of transaction according to the overtime control threshold value in global timeout control information, avoided needing in prior art the complex management that each overtime control time of node configuration management is caused, the problem that maintenance cost is high.
In embodiments of the present invention, need transactions requests message to be processed directly can be sent to node, in addition, the system congestion causing for fear of the high concurrent transaction request of synchronization, also can be according to the mode of first in first out, transactions requests message is put into transactions requests queue, and then each node obtains transactions requests message from corresponding transactions requests queue and processes.Below, referring to Fig. 2 and bis-pairs of manufacture timeout control methods that the invention provides another kind of transaction process of embodiment, be described:
Embodiment bis-
Referring to Fig. 2, Fig. 2 shows the manufacture timeout control method schematic flow sheet of a kind of transaction process that the embodiment of the present invention provides, and described manufacture timeout control method comprises:
S201 obtains the first transactions requests message from the first transactions requests queue.
Wherein, the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node.
Further, when the first transactions requests message is put into transactions requests queue, can be in the message registration area setting in advance recorded message register information, this message register information comprises: Transaction Identifier, transactions requests transmit leg, transactions requests recipient, message are put into Queue time etc.
S202, obtaining current first node, to process the first node transaction of described the first affairs message consuming time.
S203, obtains first queue of described the first transactions requests message in described the first transactions requests queue and waits for consuming time.
Concrete, obtain the message register information of the first transactions requests message correspondence in the first transactions requests queue, and according to the message in this message register information, put into Queue time and current time and determine that the first queue waits for consuming timely, i.e. consuming time=(current time-message is put into Queue time) waited in the first queue.
S204, obtains the second overtime control threshold value corresponding with Section Point.
Specifically comprise: by the first overtime control threshold value, deduct described the first queue and wait for the consuming time and first node transaction second overtime control threshold value that obtains consuming time.
S205, generates the second transactions requests message by described the first transactions requests message conversion.
Wherein, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value.
S206, mails to by the second transactions requests message the second transactions requests queue that Section Point is corresponding.
S207, determines that first node response wait is consuming time.
Wherein, the response of described first node wait for consuming time for when described the second transactions requests message sends to current time.
S208, determines that first node is always consuming time.
Wherein, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
S209, interval judges total described the first overtime control threshold value that whether exceeds consuming time of described first node on schedule, if exceed, stops current transaction, and returns to error message; Repeated execution of steps S209, until receive the second transaction response message from Section Point.
Compare with embodiment mono-, embodiment bis-is total when consuming time at definite first node, increased the first queue has been waited for to calculating consuming time, made the total result of calculation consuming time of first node more approach the first node actual consumption time, effectively improved the precision of overtime control in affairs processing procedure.
Embodiment tri-
Referring to Fig. 3, Fig. 3 shows the manufacture timeout control method schematic flow sheet of a kind of transaction process that the embodiment of the present invention provides, and described manufacture timeout control method comprises:
S301 obtains the first transactions requests message from the first transactions requests queue.
Wherein, the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node.
S302, obtaining current first node, to process the first node transaction of described the first affairs message consuming time.
S303, judges that described first node transaction is consuming time and whether exceeds described the first overtime control threshold value, if exceed, performs step S313.
S304, obtains first queue of described the first transactions requests message in described the first transactions requests queue and waits for consuming time.
S305, obtains the second overtime control threshold value corresponding with Section Point.
This step specifically comprises: by the first overtime control threshold value, deduct described the first queue and wait for the consuming time and first node transaction second overtime control threshold value that obtains consuming time.
S306, obtains the transaction standards T consuming time of Section Point s.
Further, this step specifically comprises:
Obtain the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
If described transaction times N 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
It should be noted that, described for transaction times N 1the parameter 50 comparing is only the preferred value of the embodiment of the present invention, and when enforcement is of the present invention, those skilled in the art can determine the size of this parameter according to actual needs, and the present invention does not do concrete restriction to this.
S307, judges whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2, if so, perform step S313.
If described the second overtime control threshold value is less than Section Point transaction standards T consuming time s* 2, illustrate current first node handle described the first transactions requests message after the remaining overtime control time be far not enough to the subsequent treatment of Section Point to current transactions requests, for this situation, stop in time the subsequent treatment to current transactions requests, avoid carrying out invalid processing request, effectively saved system resource.
It will be appreciated by those skilled in the art that the T of 2 times of described use s(T s* 2) be relatively the preferred method of the present invention with the second overtime control threshold value, when enforcement is of the present invention, those skilled in the art can select the size of comparison value as required, and the present invention is not restricted this, for example, uses T s* m, wherein, m is greater than zero integer.S308, generates the second transactions requests message by described the first transactions requests message conversion.
Wherein, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value.
S309, mails to by the second transactions requests message the second transactions requests queue that Section Point is corresponding.
S310, determines that first node response wait is consuming time.
Wherein, the response of described first node wait for consuming time for when described the second transactions requests message sends to current time.
S311, determines that first node is always consuming time.
Wherein, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
S312, interval judges total described the first overtime control threshold value that whether exceeds consuming time of described first node on schedule, if exceed, performs step S313; If do not exceed, repeated execution of steps S311, until receive the second transaction response message from Section Point.
If overtime, exit the front processing response of successfully receiving from Section Point, represent current transaction success, return to successfully response message.
S313, stops current transaction, returns to error message.
Because transaction process relates to a plurality of nodes, transactions requests message transmits between each node, each node receives the processing request from a upper node, and transmit result to next node, therefore, any one node processing extremely all can affect the data consistency of current transaction.Extremely the data that cause for fear of node are inconsistent; conventionally also to provide rush just corresponding with transaction to process; for example; when first node receives after the failure response message of returning from Section Point; first node just rushes and processes the related data of current transactions requests; to eliminate the impact of Section Point on data, to guarantee that the related data of transactions requests returns to the state before Section Point is processed.
Whether the embodiment of the present invention is by judging the second overtime control threshold value and be less than or consuming time much smaller than Section Point transaction standards, if far can not meeting Section Point, the overtime control time of judgement current residual processes required time, just no longer to Section Point, send transactions requests message, but directly stop current transaction process, and return to error message, so, because Section Point is no longer carried out the overtime transaction of possibility, avoid occupying system resources, guaranteed the consistency of data simultaneously; In addition, first node also no longer needs just to process into any punching, has avoided prior art just processing because rushing the system resources consumption causing.
Above embodiment is described a kind of transaction timeout control method provided by the invention, in order to understand better the present invention, below in conjunction with actual application environment, the method for the invention is described further.
Embodiment tetra-
Information Exchange System is a kind of transacter of extensive use, and this Information Exchange System and different subsystems carry out interconnected to complete the mutual and conversion of information between each subsystem.Therefore, method provided by the invention can be applied between the subsystem of described Information Exchange System and correspondence, wherein, the subsystem that Information Exchange System be equivalent to first node, be connected with Information Exchange System is equivalent to Section Point ... n node, and the transactions requests being completed by Information Exchange System and each subsystem is processed and is called a transaction.
In addition, transaction process manufacture timeout control method provided by the invention also can be applicable to transaction between the interior different assemblies of same system, for example, inner at switching system, one transaction will be passed through the processing of service end communication part, Business Processing assembly, destination communication part, and wherein, service side's communication part provides monitoring service, reception is from outside communication request, is equivalent to the first node described in the embodiment of the present invention; Business Processing assembly, for the treatment of transaction data, is equivalent to Section Point; Destination communications component, for send communication request to outside, is equivalent to the 3rd node.Below, process when described manufacture timeout control method is implemented on to Information Exchange System describes.
In order to make the effect of the method for the invention provides more directly perceived, first, prior art is controlled overtime method and is described below for each node configures the overtime control time:
Prior art be first node (service end communication part) the overtime control time is set is 60 seconds, for Section Point (Service Component) arranges the overtime control time, be 50 seconds, be that the overtime control time is set is 40 seconds to the 3rd node (destination communication part).Transaction request information is processed 10 seconds consuming time at service end communication part, at Business Processing assembly 45 seconds consuming time, when transaction request information is delivered to destination communication part like this, 55 seconds consuming time, at this moment service side's communication part also surplus 5 seconds overtime, Business Processing assembly yet surplus 5 seconds just overtime, and the average minimum treat time that the request of destination communication part last transaction is processed is 10 seconds, that is to say at destination communication part and receive before response message, service end communication part and Business Processing assembly all can reach overtime first to be exited.So just only have destination communication part wait for receiving response message, and receive after information overtime the exiting due to requesting party, these information no longer need therefore can only be dropped as junk information, have wasted valuable system resource.
With respect to prior art, adopt manufacture timeout control method provided by the invention: when transaction request information is delivered to destination communication part, this assembly can calculate the time-out time 60-10-45=5 of its current residual, and destination communication part can be usingd 5 seconds overtime control threshold values as self.According to the average minimum trading processing time of destination communication part of statistics, judge whether that enough time completes transaction in addition simultaneously, due to the overtime control time of residue of average 10 seconds much larger than 5 seconds minimum trading processing time, therefore assembly judgement cannot be successfully completed transaction, no longer carry out external transaction communication, but stop transaction, directly make mistakes and return.Destination communication part returns to failure information to Business Processing assembly like this, Business Processing assembly returns to failure information to service end communication part, service end communication part returns to failure information to channel, in each link, received clear and definite response message like this, avoided after overtime not knowing trading processing result, cause the inconsistent situation of transaction data, for the transaction that can not be successfully completed, make it failed rapidly simultaneously, guaranteed that limited system resource can be used by other transaction, can unanimously do not taken because of wait timeout.
The manufacture timeout control method of a kind of transaction the process above embodiment of the present invention being provided is described, below, with reference to the content of above-described embodiment, the overtime control device of a kind of transaction process that the embodiment of the present invention is provided is described.
Embodiment five
Referring to Fig. 4, Fig. 4 shows the structural representation of the overtime control device embodiment of a kind of transaction process provided by the invention, and described device comprises:
Transactions requests Receive message module 501, for obtaining the first transactions requests message, described the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node;
Node transaction acquisition module 502 consuming time, for obtaining first node, to process the first node transaction of the first affairs message that described transactions requests Receive message module obtains consuming time;
Overtime control threshold value acquisition module 503, for obtaining the second overtime control threshold value corresponding with Section Point, it is consuming time that described the second overtime control threshold value is that described the first overtime control threshold value is deducted described first node transaction;
The second transactions requests message generation module 504, for described the first transactions requests message conversion is generated to the second transactions requests message, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value;
The second transactions requests message sending module 505, for mailing to corresponding Section Point by described the second transactions requests message;
Determination module 506 consuming time is waited in first node response, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
The total determination module 507 consuming time of first node, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
Overtime detection module 508, judges total described the first overtime control threshold value that whether exceeds consuming time of described first node for interval on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
Wherein,
Described transactions requests Receive message module, specifically also for obtaining the first transactions requests message from the first transactions requests queue;
Described device also comprises:
Acquisition module 509 consuming time is waited in the first queue, for obtaining described the first transactions requests message, in the first queue of described the first transactions requests queue, waits for consuming time;
Described overtime control threshold value acquisition module, specifically also waits for the consuming time and first node transaction second overtime control threshold value that obtains consuming time for deduct described the first queue by described the first overtime control threshold value;
Described the second transactions requests message mails to module, concrete also for the second transactions requests message being mail to the second transactions requests queue that Section Point is corresponding;
The total determination module consuming time of described first node, also always consuming time for determining first node, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
Further, described device also comprises:
Whether the first overtime judge module 510, exceed described the first overtime control threshold value for judging that described first node transaction is consuming time, if exceed, stops current transaction, and return to error message.
Further, described device also comprises:
Standard time acquisition module 511, for obtaining the transaction standards T consuming time of Section Point s;
The second overtime judge module 512, for judging whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2, if so, stop current transaction, and return to error message.
Further, described standard time acquisition module specifically comprises:
Number of transactions submodule, for obtaining the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
Judgement submodule, if for the described transaction times N of judgement 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module moved on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that and can use in practice microprocessor or digital signal processor (DSP) to realize according to the some or all functions of the some or all parts in the clicking operation implement device of the embodiment of the present invention.The present invention for example can also be embodied as, for carrying out part or all equipment or device program (, computer program and computer program) of method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described rather than limit the invention, and those skilled in the art can design alternative embodiment in the situation that do not depart from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has a plurality of such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In having enumerated the unit claim of some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. a manufacture timeout control method for transaction process, is characterized in that, described method comprises:
Obtain the first transactions requests message, described the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node;
Obtaining current first node, to process the first node transaction of described the first transactions requests message consuming time;
Obtain the second overtime control threshold value corresponding with Section Point, it is consuming time that described the second overtime control threshold value is that described the first overtime control threshold value is deducted described first node transaction;
Described the first transactions requests message conversion is generated to the second transactions requests message, and described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value;
Described the second transactions requests message is mail to corresponding Section Point;
Determine first node response wait for consuming time, described first node response wait for consuming time comprise when described the second transactions requests message sends to current time;
Determine that first node is always consuming time, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
Interval judges total described the first overtime control threshold value that whether exceeds consuming time of described first node on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
2. the method for claim 1, is characterized in that,
The described first transactions requests message that obtains, specifically comprises:
From the first transactions requests queue, obtain the first transactions requests message;
Described method also comprises:
Obtaining first queue of described the first transactions requests message in described the first transactions requests queue waits for consuming time;
The described second overtime control threshold value of obtaining, specifically comprises:
By described the first overtime control threshold value, deduct described the first queue and wait for the consuming time and first node transaction second overtime control threshold value that obtains consuming time;
Described the second transactions requests message is mail to corresponding Section Point, specifically comprises:
The second transactions requests message is mail to the second transactions requests queue that Section Point is corresponding;
Described definite first node is always consuming time, specifically comprises:
Determine that first node is always consuming time, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
3. the method for claim 1, is characterized in that, described in obtain first node transaction consuming time after, also comprise:
Whether exceed described first overtime control threshold value, if exceed, stop current transaction, and return to error message if judging that described first node transaction is consuming time.
4. the method for claim 1, is characterized in that, described in obtain the second overtime control threshold value corresponding with Section Point after, before described generation the second message, also comprise:
Obtain the transaction standards T consuming time of Section Point s;
Judge whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2,
If so, stop current transaction, and return to error message.
5. method as claimed in claim 4, is characterized in that, described in obtain the transaction standards T consuming time of Section Point s, specifically comprise:
Obtain the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
If described transaction times N 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
6. an overtime control device for transaction process, is characterized in that, described device comprises:
Transactions requests Receive message module, for obtaining the first transactions requests message, described the first transactions requests message carries global timeout control information; Described global timeout control information comprises the first overtime control threshold value corresponding with current first node;
Node transaction acquisition module consuming time, for obtaining first node, to process the first node transaction of the first affairs message that described transactions requests Receive message module obtains consuming time;
Overtime control threshold value acquisition module, for obtaining the second overtime control threshold value corresponding with Section Point, it is consuming time that described the second overtime control threshold value is that described the first overtime control threshold value is deducted described first node transaction;
The second transactions requests message generation module, for described the first transactions requests message conversion is generated to the second transactions requests message, described the second transactions requests message carries described global timeout control information, and described global timeout control information comprises described the second overtime control threshold value;
The second transactions requests message sending module, for mailing to corresponding Section Point by described the second transactions requests message;
Determination module consuming time is waited in first node response, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
The total determination module consuming time of first node, always consuming time for determining first node, the total consuming time and described first node response wait sum consuming time of described first node transaction that comprises consuming time of described first node;
Overtime detection module, judges total described the first overtime control threshold value that whether exceeds consuming time of described first node for interval on schedule, if exceed, stops current transaction, and returns to error message; Repeat this step, until receive the second transaction response message from Section Point.
7. device as claimed in claim 6, is characterized in that,
Described transactions requests Receive message module, specifically also for obtaining the first transactions requests message from the first transactions requests queue;
Described device also comprises:
Acquisition module consuming time is waited in the first queue, for obtaining described the first transactions requests message, in the first queue of described the first transactions requests queue, waits for consuming time;
Described overtime control threshold value acquisition module, specifically also waits for the consuming time and first node transaction second overtime control threshold value that obtains consuming time for deduct described the first queue by described the first overtime control threshold value;
Described the second transactions requests message sending module, concrete also for the second transactions requests message being mail to the second transactions requests queue that Section Point is corresponding;
The total determination module consuming time of described first node, also always consuming time for determining first node, described first node is always consuming time comprises that described the first queue is waited for consuming time and described first node transaction is consuming time and sum consuming time is waited in the response of described first node.
8. device as claimed in claim 7, is characterized in that, described device also comprises:
Whether the first overtime judge module, exceed described the first overtime control threshold value for judging that described first node transaction is consuming time, if exceed, stops current transaction, and return to error message.
9. device as claimed in claim 7, is characterized in that, described device also comprises:
Standard time acquisition module, for obtaining the transaction standards T consuming time of Section Point s;
The second overtime judge module, for judging whether described the second overtime control threshold value is less than described Section Point transaction standards T consuming time s* 2, if so, stop current transaction, and return to error message.
10. device as claimed in claim 9, is characterized in that, described standard time acquisition module specifically comprises:
Number of transactions submodule, for obtaining the transaction times N of having carried out with described Section Point 1with transaction number of success N 2;
Judgement submodule, if for the described transaction times N of judgement 1be less than 50 or described transaction number of success N 2equal 0, the transaction standards of described Section Point T consuming time sbe 0;
If described transaction times N 1be greater than 50 and described transaction number of success N 2be greater than 0, the transaction standards of described Section Point T consuming time s=(T min* 4+2*T ave/ N 1)/12; Wherein, described T minto carry out with described Section Point the minimum time that transaction expends, described T aveto carry out with described Section Point the average time that transaction expends.
CN201310591266.3A 2013-11-20 2013-11-20 A kind of manufacture timeout control method and device of transaction process Active CN103618590B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310591266.3A CN103618590B (en) 2013-11-20 2013-11-20 A kind of manufacture timeout control method and device of transaction process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310591266.3A CN103618590B (en) 2013-11-20 2013-11-20 A kind of manufacture timeout control method and device of transaction process

Publications (2)

Publication Number Publication Date
CN103618590A true CN103618590A (en) 2014-03-05
CN103618590B CN103618590B (en) 2017-03-29

Family

ID=50169294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310591266.3A Active CN103618590B (en) 2013-11-20 2013-11-20 A kind of manufacture timeout control method and device of transaction process

Country Status (1)

Country Link
CN (1) CN103618590B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022672A (en) * 2015-07-23 2015-11-04 北京南天软件有限公司 Transaction global time control method and system based on distributed system architecture
CN105635231A (en) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 Calling method and apparatus of distributed system
CN105721337A (en) * 2014-12-04 2016-06-29 中国移动通信集团公司 Distributed transaction processing method and device in software definition network
CN106156233A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 Revised data processes the method and device of state
CN107370639A (en) * 2017-08-14 2017-11-21 苏州众天力信息科技有限公司 A kind of more scenery control methods of gateway based on trapezoidal temporal algorithm
CN107704370A (en) * 2017-09-28 2018-02-16 四川长虹电器股份有限公司 Affairs successful rate statistics method based on response time and the double dimensions of running status
CN109472546A (en) * 2018-10-12 2019-03-15 深圳壹账通智能科技有限公司 A kind of intelligent control method and server of distributing real time system
CN112671835A (en) * 2020-12-07 2021-04-16 深圳市晨北科技有限公司 Request processing method, device, system and storage medium
CN113810383A (en) * 2021-08-25 2021-12-17 杭州安恒信息技术股份有限公司 WEB application firewall, congestion control method, medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301288A1 (en) * 2007-05-28 2008-12-04 Sandisk Il Ltd. Method and device for monitoring a transaction
CN101727648A (en) * 2009-12-01 2010-06-09 中国建设银行股份有限公司 Overtime control method in service system and service system
CN101447857B (en) * 2008-05-26 2012-07-18 中兴通讯股份有限公司 Method for adjusting time parameter dynamically during message-handling process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301288A1 (en) * 2007-05-28 2008-12-04 Sandisk Il Ltd. Method and device for monitoring a transaction
CN101447857B (en) * 2008-05-26 2012-07-18 中兴通讯股份有限公司 Method for adjusting time parameter dynamically during message-handling process
CN101727648A (en) * 2009-12-01 2010-06-09 中国建设银行股份有限公司 Overtime control method in service system and service system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635231A (en) * 2014-11-06 2016-06-01 阿里巴巴集团控股有限公司 Calling method and apparatus of distributed system
CN105721337B (en) * 2014-12-04 2019-06-25 中国移动通信集团公司 Distributed transaction processing method and device in software defined network
CN105721337A (en) * 2014-12-04 2016-06-29 中国移动通信集团公司 Distributed transaction processing method and device in software definition network
CN106156233A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 Revised data processes the method and device of state
CN105022672B (en) * 2015-07-23 2018-12-07 北京南天软件有限公司 Based on the transaction length of a game control method and system under distributed system architecture
CN105022672A (en) * 2015-07-23 2015-11-04 北京南天软件有限公司 Transaction global time control method and system based on distributed system architecture
CN107370639A (en) * 2017-08-14 2017-11-21 苏州众天力信息科技有限公司 A kind of more scenery control methods of gateway based on trapezoidal temporal algorithm
CN107704370A (en) * 2017-09-28 2018-02-16 四川长虹电器股份有限公司 Affairs successful rate statistics method based on response time and the double dimensions of running status
CN109472546A (en) * 2018-10-12 2019-03-15 深圳壹账通智能科技有限公司 A kind of intelligent control method and server of distributing real time system
CN112671835A (en) * 2020-12-07 2021-04-16 深圳市晨北科技有限公司 Request processing method, device, system and storage medium
CN112671835B (en) * 2020-12-07 2022-08-09 深圳市晨北科技有限公司 Request processing method, device, system and storage medium
CN113810383A (en) * 2021-08-25 2021-12-17 杭州安恒信息技术股份有限公司 WEB application firewall, congestion control method, medium and electronic device
CN113810383B (en) * 2021-08-25 2022-12-20 杭州安恒信息技术股份有限公司 WEB application firewall, congestion control method, medium and electronic device

Also Published As

Publication number Publication date
CN103618590B (en) 2017-03-29

Similar Documents

Publication Publication Date Title
CN103618590A (en) Overtime control method and device of business processing process
CN103209439B (en) The method of a kind of data traffic monitoring, device and equipment
CN110413424B (en) Configurable third-party message callback method, device, server and storage medium
US10609125B2 (en) Method and system for transmitting communication data
CN104753817A (en) Local analogy method and local analogy system for cloud computing message queue service
CN102946376B (en) Method for implementing asynchronous communication
KR101416280B1 (en) Event handling system and method
CN110134534B (en) System and method for optimizing message processing for big data distributed system based on NIO
CN110413425B (en) Third-party message callback method, device, server and storage medium
CN102394925A (en) Communication method and device for remote monitoring diagnosis center and area regulation center
CN101741746B (en) Method for realizing communication between two-way CAS gateway and user terminal based on IOCP
CN101977358A (en) Method, device and equipment for transmitting data short messages
CN103677988A (en) Multi-process communication method and system for software system
CN111722944B (en) NIO-based AIRT-ROS communication method and system
CN104852828A (en) Network delay detection method, device and system
CN1973282A (en) System and method for managing a change to a cluster configuration
CN108259595A (en) The method and system of asynchronous call between a kind of service
EP2439881A1 (en) Cluster system and request message distribution method for processing multi-node transaction
CN103037483A (en) Network server and method for connecting same and application server
CN109981478A (en) A kind of message processing method and device
CN101207617A (en) Method for data transmission of network storing system
CN101551758B (en) System and method for implementing paralleling work of device management and tasks
CN111200653B (en) Multi-platform communication method, multi-platform communication device and intermediate server
CN109144676A (en) A kind of self-starting detection method, device and the server of application program
CN104572315A (en) Inter-subsystem communication method, communication entities and distributed communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant