Specific embodiment
It is specifically real below in conjunction with the application to make the purpose, technical scheme and advantage of the application clearer
Apply example and corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than whole embodiments.Based on the implementation in the application
Example, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of the application protection.
For the problem mentioned in background technology, in the embodiment of the present application, it is assumed that to database in it is same
One specified parameter is repeatedly updated successively, although, distributed transaction first stage (hereinafter referred to as
For:First stage), it is impossible to the specified parameter is updated, however, it is possible to be identified using with the distributed transaction
And the specified parameter has the intermediate parameters of corresponding relation, originally will be in distribution by being performed to intermediate parameters
The second stage of formula affairs is (hereinafter referred to as:Second stage) the multiple renewal that specified parameter is performed is operated,
Renewal result after intermediate parameters is reflected each renewal is (that is, cause the renewal of this renewal to be asked
Seek corresponding intermediate result).It should be noted that because intermediate parameters are not that the distributed transaction is direct
For parameter, therefore, it can be updated intermediate parameters in the first stage of the distributed transaction.
Top service device can be identified when initiating to update request every time according to the distributed transaction, obtain upper one
It is individual to update the corresponding intermediate result of request, underlying services device is sent to generate next renewal request, so as to
In underlying services device, intermediate parameters are carried out with this renewal, until after repeatedly renewal operation is performed both by finishing,
In second stage, underlying services device can be carried out directly more with the intermediate parameters after repeatedly updating to specified parameter
Newly, and without again to specifying parameter repeatedly to be updated.Therefore, top service device need not initiate extra dividing
Cloth affairs, can reduce work load.It is specifically described below.
The process of the distributed transaction processing method that Fig. 1 is provided for the embodiment of the present application, the process can be with office
One can be used in the environment for perform distributed transaction performing, and the node included in the environment can be upper strata clothes
Business device, underlying services device, database, task manager, explorer, etc..
In Fig. 1, distributed transaction is related to first node and the Section Point positioned at first node lower floor,
The distributed transaction is the affairs to specifying parameter to be updated in database, and the database can be by second
Node is directly operated.First node can be top service device, and Section Point can be underlying services device.Figure
Process in 1 specifically may comprise steps of:
S101:Section Point receive that first node sends it is carrying distributed transaction mark, for number
According at least two renewal requests of same specified parameter in storehouse.
In the embodiment of the present application, user can be by the application in terminal corresponding to first node, to first
Node send application request, to ask to obtain a certain service, then first node can in response to the application request,
Perform as this services default service logic;Or, first node can also automatically carry out default industry
Business logic.Further, these service logics can specifically be held in the distributed transaction that first node is initiated
OK.
After first node initiates distributed transaction, corresponding distributed transaction can be obtained from task manager
Mark (Identity, id).Distributed transaction identifies and can be used for representing the distributed transaction globally uniquely,
And can be used for the distributed transaction of connecting.Task manager is responsible for being managed collectively distributed transaction, and it can
Being the module on a node, or other nodes in distributed environment.
After first node obtains distributed transaction mark, can start to send the distributed thing of carrying to Section Point
Business mark, renewal request for same specified parameter in database, specified parameter can be user to
The corresponding parameter of service of first node request.Accordingly, Section Point can start perform Fig. 1 in it is each
Step, wherein, step S101 and S102 can be performed in the first stage of distributed transaction, step
S103 can be performed in the second stage of distributed transaction.
In the embodiment of the present application, first node can be directed to altogether the specified parameter in the first stage, according to
Predetermined transmission order sends at least two and updates request.
Further, each updates request can be to rely on the corresponding renewal result life of previous renewal request
Into, first updates request and can be to rely on the application request generation that user sends.In such case
Under, first node after any one renewal request is sent, in response to the renewal ask, and performs phase by Section Point
After the renewal operation answered obtains the corresponding intermediate result of renewal request, first node obtains centre knot again
Really, asked with generating next renewal, the like, until Section Point all enters to whole renewal requests
Response is gone.As can be seen here, Section Point is during step S101 is performed, it is possible to be correspondingly
Step S102 is performed a plurality of times.The embodiment of the present application is mainly based upon each renewal and asks complementary this field
What scape was illustrated.
Certainly, in actual applications, can not be interdepended if respectively updating request, Section Point can also
Concurrently receive each renewal to ask, and/or concurrently respond each renewal and ask, and first node can not also
After determining Section Point to previous renewal request response, next renewal request is regenerated and sent.
It is thus possible to improve the treatment effeciency of each node.
S102:Section Point in response to it is described update request, pair with the distributed transaction mark and it is described
The intermediate parameters that specified parameter has corresponding relation are updated, the intermediate parameters after being updated.
In the embodiment of the present application, the corresponding relation can pre-build before step S102,
Can be set up during step S102 is performed.
In the embodiment of the present application, asked because first node can send multiple renewal, then Section Point
Correspondingly carry out many secondary responses.For the ease of description, below with the distributed transaction, first node is to the
Two nodes are had altogether as a example by two renewals requests for same specified parameter of transmission, and the scheme to the application is entered
Row explanation.Each for being sent to first node separately below updates request, and Section Point updates to each
The response of request is illustrated.
After first node sends first renewal request to Section Point, due to being now in the first stage, because
This, Section Point cannot directly to specifying parameter to be updated.In the related art, Section Point can be with root
Request is updated according to first, generation can be used for reflection first and update the specific of the corresponding renewal operation of request
Data (can be specifically business pipelined data etc.) are simultaneously preserved, in order in second stage, further according to the spy
Fixed number evidence, to specifying parameter to be updated.Citing is illustrated.
For example it is assumed that it is parameter A (A is equal to 10) to specify parameter, first updates the corresponding renewal of request
Operation is specially following operation:Plus 5.Then the specific data of Section Point generation can be "+5 ".
In one stage, A is still equal to 10, and first updates the corresponding intermediate result of request and not yet generate, in string
Under the scheme that row is read, before intermediate result is not yet generated, it is impossible to which inquiry obtains A, like this, first segment
Point needs etc. to stay in second stage, according to specific data genaration intermediate result after, then by initiating another time point
Cloth affairs, inquiry obtains A (A now is equal to 15), and then regenerates and sent to Section Point
Second updates request.
And in the embodiment of the present application, can in advance be directed to and specify one corresponding parameter of parameter setting, that is,
Intermediate parameters.Section Point can set up the carrying of the first operation requests after first renewal request is received
Distributed transaction mark and the corresponding relation of intermediate parameters, in order to use intermediate parameters to preserve and the distribution
The intermediate result that affairs are related to, and in order in the distributed transaction, be obtained according to distributed transaction mark
Take intermediate result.Use the example above and illustrate.
For example, parameter B will be denoted as the corresponding intermediate parameters of parameter A settings.Deposited on database
In the field (referred to as the first field) for preserving parameter A, it is possible to further in advance on the database
The extra field (referred to as the second field) increased for recording distributed transaction mark, and join for recording
The field (referred to as the 3rd field) of number B.Then Section Point receive first update request after, can be with
The distributed transaction identification record carried in request is updated in the second field by first, and sets up the second word
The corresponding relation of section and the 3rd field.
Section Point, can be by dividing for being carried in first renewal request after first renewal request is received
Cloth Transaction Identifier writes the second field, and in this case, parameter B can be used for record and be directed to parameter
The intermediate result that the distributed transaction of A is related to.Specifically, parameter A can be used to parameter B assignment,
After assignment, B is equal to 10, and then the parameter B after to assignment performs first and operates, and performs first and operates
Afterwards, parameter B is equal to 15;Or, it is also possible to parameter B is assigned with the result after adding 5 to parameter A
Value, after assignment, parameter B is equal to 15.Like this, although the first stage, parameter A still can not be direct
Update, but can be to be recorded to assume the result after updating parameter A with parameter B, that is, in
Between result;And then, can in the first stage continue in order to first node according to intermediate result, generation and transmission
Second updates request.
In the embodiment of the present application, it can need to rely on that second updates the corresponding renewal operation of request
One updates the operation that the corresponding intermediate result of request is performed.Can be in the first stage due to intermediate parameters by
Update, and intermediate parameters have recorded first and update the corresponding intermediate result of request, therefore, work as second section
After point receives second renewal request of first node transmission, although still above-mentioned specified parameter can not be entered
Row operation, however, it is possible to second renewal is carried out to updated intermediate parameters, that is, in allowing
Between parameter continue as specifying reference record intermediate result.Continue to use the example above and illustrate.
For example it is assumed that second updates, request is corresponding to update the specially following operation of operation:After pair Jia 5
The intermediate result for arriving is multiplied by with certain coefficient.The intermediate result obtained after plus 5 is the parameter B after the first operation,
Equal to 15, it is assumed that be equal to 15.01 after certain coefficient is multiplied by 15, then the parameter B after updating for second is equal to
15.01。
S103:Section Point updates the specified parameter according to the intermediate parameters after the renewal.
In order to make it easy to understand, it is believed that in the first stage, Section Point to specified due to that directly cannot join
Number is updated, therefore, it can by originally will to specifying the parameter to carry out each renewal, one by one pair with it is distributed
The intermediate parameters that Transaction Identifier and specified parameter have corresponding relation are operated, because intermediate parameters are
One stage can be updated, and can record intermediate result.Therefore, in second stage, can be according to
Intermediate parameters after the renewal of one stage are updated to specified parameter, that is, intermediate parameters now can be regarded
For it is preparing in the first stage, in second stage to specifying updating the data of being updated of parameter.
Specifically, can be to specify parameter assignment with intermediate parameters now, you can complete to specifying parameter
Update.Continue to use the example above and illustrate, the specified parameter (that is, parameter A) after renewal is equal to 15.01.
By the process in Fig. 1, first node can be top service device, and Section Point can be lower floor's clothes
Business device, the renewal knot after each renewal for specifying parameter to perform will be directed to due to intermediate parameters can be utilized to preserve
Really, as intermediate result, for carrying out next update, and then can be according to being obtained after repeatedly updating in
Between result update and specify parameter, this process can complete in a distributed transaction, it is therefore not necessary on
Stratum server initiates extra distributed transaction, can reduce work load.
In order to make it easy to understand, further being illustrated to the step in Fig. 1 below.
In the embodiment of the present application, for step S102, Section Point is asked in response to described renewal, right
The intermediate parameters for having corresponding relation with distributed transaction mark and the specified parameter are updated,
Intermediate parameters after being updated, can specifically include:
Section Point is directed to first renewal request in each described renewal request for receiving, and performs:According to
It is described first update request, pair with the distributed transaction mark and the specified parameter have it is corresponding pass
The intermediate parameters of system are updated, and obtain the intermediate result as this renewal result;
Section Point is directed to other each renewal requests in each described renewal request for receiving, and performs following
Operation, until last during each described renewal to receiving is asked updates request and perform operations described below
Afterwards, using corresponding intermediate result as the intermediate parameters after the renewal:
Asked according to the renewal, the previous renewal request to being asked according to the renewal updates the middle knot for obtaining
Fruit is updated, and obtains the intermediate result as this renewal result.
It has been described in detail by each renewal as a example by request updates request comprising two altogether above.When
When each renewal request bag contains more renewal requests, each updated for second after asking updates asks
Ask, the response process of Section Point is similar with the response process that request is updated to second in upper example, simply base
In intermediate result differ, repeat no more herein.
In the embodiment of the present application, according to explanation above, each renewal request is complementary, this
In the case of, in each renewal request that Section Point is received, other in addition to first updates request are each
It is individual to update request, it is to be identified according to distributed transaction by first node, obtaining the renewal to Section Point asks
Previous renewal ask corresponding intermediate result, and generated according to the intermediate result for obtaining;First
Updating request can generate according to user to the application request that first node sends.
Further, during step S101 and S102 is performed, first node may in multiple times from
Section Point obtains the intermediate result corresponding to different renewal requests.In order to prevent intermediate result by other points
Cloth business-impacting, can be based on the distributed use scope for identifying, limiting intermediate result.Specifically, can
The intermediate result is obtained with each node for only allowing the corresponding distributed transaction of intermediate result to be related to.
First node can obtain intermediate result as follows:First node sends to Section Point and takes
Acquisition request with distributed mark, for the intermediate result;Section Point judges to be taken in acquisition request
The distribution of band identifies whether it is the corresponding distributed transaction mark of the intermediate result, if so, will can then be somebody's turn to do
Intermediate result returns to first node, otherwise, can refuse acquisition request.
In the embodiment of the present application, for the corresponding sub-steps of step S102 mentioned above, according to described
First update request, pair with the distributed transaction mark and the specified parameter there is corresponding relation
Intermediate parameters are updated, and can specifically include:According to the specified parameter, pair with the distributed transaction
The intermediate parameters that mark and the specified parameter have corresponding relation carry out assignment;According to described first more
New request, to assignment after the intermediate parameters be updated.Middle ginseng can be made by this assignment operation
Number is consistent with specified parameter before being updated, so that, it is ensured that in step S103, according to the centre after renewal
Parameter, the renewal carried out to specifying parameter is correct reliable.
In addition, in actual applications, it is also possible to not first to middle parameter assignment, but, first according to specified ginseng
Count, if it is determined that first is performed to specified parameter updates available knot if the corresponding renewal of request is operated
Really, then again with the result to middle parameter assignment, using with the intermediate parameters after the result assignment as first
It is individual to update the corresponding intermediate result of request.
Distributing real time system side being provided for the embodiment of the present application above, with Section Point as executive agent
Method, based on same thinking, the application example additionally provides another distribution with first node as executive agent
Formula transaction methods.
Fig. 2 shows the process of another distributed transaction processing method, and the process can specifically include following
Step:
S201:The application request that first node sends in response to user, initiates the distributed transaction, and obtain
Take the distributed transaction mark.
S202:First node sent to Section Point carry it is that the distributed transaction is identified, for database
In same specified parameter at least two renewal request, in order to Section Point in response to the renewal please
Ask, pair intermediate parameters for having corresponding relation with distributed transaction mark and the specified parameter are carried out
Update, the intermediate parameters after being updated, according to the intermediate parameters after the renewal, update the specified ginseng
Number.
S203:First node obtains the described specified parameter after updating and returns to the user.
It can be seen that, Fig. 2 is mutually corresponding with the process of Fig. 1, simply stands and be described in different nodes
's.Then by the process in Fig. 2, it is also possible to solve the problems, such as to be mentioned in background technology.
In order to make it easy to understand, further being illustrated to the step in Fig. 2 below.
In the embodiment of the present application, for step S202, first node sends to Section Point and carries described
At least two renewal requests that distributed transaction is identified, for same specified parameter in database, specifically
Can include:
First node sent to Section Point carry it is that the distributed transaction is identified, for same in database
First in each described renewal request of individual specified parameter updates request, in order to Section Point for described
First updates request, performs:According to described first update request, pair with the distributed transaction identify
And the intermediate parameters that the specified parameter has corresponding relation are updated, obtain as this renewal result
Intermediate result;
Other each renewals during first node is asked to each described renewal that Section Point sends are asked, so as to
Operations described below is performed for described other each renewal requests in Section Point, until each described to what is received
Last updated in request is updated after request performs operations described below, using corresponding intermediate result as described
Intermediate parameters after renewal:
Asked according to the renewal, the previous renewal request to being asked according to the renewal updates the middle knot for obtaining
Fruit is updated, and obtains the intermediate result as this renewal result.
In the embodiment of the present application, each described other each renewal requests updated in request, are by first segment
Point is identified according to the distributed transaction, and the previous renewal request for obtaining renewal request to Section Point is right
The intermediate result answered, and generated according to the intermediate result for obtaining.
In the embodiment of the present application, in the implementation procedure of step S203, following steps be can also carry out:The
One node sends to Section Point and carries the distributed acquisition request identify, for the intermediate result;
First node receive Section Point it is determined that the acquisition request carries the distributed transaction identify when, to
The intermediate result that first node is returned.
Another distributed transaction there is provided the embodiment of the present application above, with first node as executive agent
The process of processing method is illustrated.
In actual applications, the distributed transaction processing method in Fig. 1 and Fig. 2 can apply to many business
In scene.In order to make it easy to understand, below by taking a kind of practical business scene as an example, it is right in contrast to prior art
Application of the above-mentioned distributed transaction processing method in the practical business scene is illustrated.
Fig. 3 shows the related system construction drawing of the practical business scene.The system is a billing and accounting system,
Comprising application server, account server (cluster), billing and accounting system can also include database, affairs pipe
Reason device (not shown in figure 3), wherein, the database may be located on account server, it is also possible to position
In in addition to application server, in the other equipment being connected with account server.The user of distal end can lead to
Cross router and be connected to application server, and application request is sent to application server.
Application server can provide the user the service related to the account of user, such as supplement with money, do shopping, manage
The services such as wealth, life payment, account server is then responsible for the specific data of the account of user, the tool
Volume data can be stored in database.Application server is when service is provided the user, it is necessary to ask account
Server is operated accordingly to the specific data, such as inquiry operation, renewal operation.
In the embodiment of the present application, application server can be as above-mentioned first node, and account server can
As above-mentioned Section Point.
It is assumed that in the practical business scene, certain business procedure is as follows:
The remaining sum of the account of user is 10 yuan, and user sends a request to account charging by application server
5 yuan, corresponding renewal of the application server according to request generation for remaining sum is asked, and issues account server;
Account server according to this it is corresponding update request, it is necessary to by balance updates be 15 yuan, return to application
Server;
According to predetermined service logic, application server will also calculate one according to 15 yuan of remaining sum after renewal
Interest (it is assumed that the interest for calculating is 0.01 yuan), and account server is asked according to the interest, to more
15 yuan of remaining sum after new is further updated to 15.01 yuan, then afterwards passes through 15.01 yuan of this results of remaining sum
Application server returns to user.
It can be seen that, in the business procedure, application server will be to account server to specifying parameter (to use
In the parameter of record remaining sum, for the ease of description, can be referred to as:Fractional figure) send more than one
It is individual to update request, and latter renewal request will depend on the previous result for updating request (that is, middle
As a result), if then realizing the business procedure based on distributed transaction, the problem that can cause to be referred in background technology.
In order to make it easy to understand, with Fig. 4, Fig. 5 to based on prior art and based on the embodiment of the present application offer
Method, to the implementation steps of the business procedure.
Fig. 4 shown based on prior art, to being briefly described for the implementation steps of the business procedure.Database
In can with balance field record fractional figure (above-mentioned specified parameter under the scene be fractional figure,
Hereinafter referred to as:Remaining sum).
It can be seen that, the application server in Fig. 4 has altogether has initiated distributed transaction twice.It is distributed for the first time
Formula affairs are used for 5 yuan for being supplemented with money according to user, and remaining sum is updated into 15 yuan by 10 yuan;It is distributed for second
Formula affairs are used for according to interest calculating logic, the remaining sum 15 after being finished based on first time distributed transaction
Unit, calculating bears interest 0.01 yuan, and then, remaining sum will be updated to 15.01 yuan by 15 yuan again.
Needing the reason for initiating second Distributed Transaction is:Renewal in second distributed transaction to remaining sum is needed
Depend on the renewal result (that is, intermediate result) to remaining sum in first time distributed transaction, and unless
After distributed transaction two-stage first time, intermediate result could be obtained, therefore, second distributed transaction
In the modification of remaining sum cannot be merged performed in first time distributed transaction, and then need extraly to initiate the
Quadratic distribution formula affairs.
Fig. 5 shows the method provided based on the embodiment of the present application, the letter to the implementation steps of the business procedure
Single description.In database in addition to surplus field, it is additionally provided with more than band affairs corresponding with balance field
Volume field (is used for record paper affairs fractional figure, above-mentioned intermediate parameters are more than band affairs under the scene
Volume parameter, hereinafter referred to as:Band affairs remaining sum), distributed transaction id fields are (for recording described dividing
Cloth Transaction Identifier, hereinafter referred to as:Distributed transaction id).
It can be seen that, the application server in Fig. 4 has only initiated a distributed transaction.
In this first stage of distributed transaction, according to the distributed transaction id that task manager is distributed, it is
Distributed transaction id field assignment, and distributed transaction id fields are set up with balance field, band affairs remaining sum
The corresponding relation of field, that is, distributed transaction id and remaining sum, the corresponding relation with affairs remaining sum.
Setting up the main purpose of the corresponding relation is:So that with letter of the affairs remaining sum with distributed transaction id
Breath, then can allow the application under the distributed transaction that the request of distributed transaction id is carried by sending,
Obtain the corresponding band affairs remaining sums of distributed transaction id;Without allowing answering not under the distributed transaction
It is corresponding with affairs remaining sum with distributed transaction id is obtained;Such that it is able to prevent different distributed transactions
Between produce interference.
Further, in the first stage, 5 yuan for being supplemented with money according to user, still can not by remaining sum by 10 yuan more
It is new for 15 yuan (5 yuan for supplementing with money are actually what is filled for remaining sum, therefore, remaining sum is updated to by 10 yuan
15 yuan of operation can only be prepared and can not actually perform in the first stage, and second stage can only be waited to submit to
Perform again afterwards), however, it is possible to 5 yuan supplemented with money according to remaining sum and user, will be 15 with affairs balance updates
(such words is the equal of for unit:In the first stage, band affairs remaining sum replaces remaining sum, records intermediate result);
And then, can be according to interest calculating logic, based on 15 yuan of band affairs remaining sum, calculating bears interest 0.01 yuan,
15.01 yuan will will be updated to by 15 yuan with affairs remaining sum again (to replace remaining sum with affairs remaining sum, continue to record
Intermediate result).
In this second stage of distributed transaction, application server can submit this distributed transaction to, then
15.01 yuan of band affairs remaining sum can be used to remaining sum assignment, the remaining sum after assignment is 15.01 yuan.
It can be seen that, compared with mode of the prior art, identical business is realized, however, only need to
A distributed transaction is initiated, the work load of application server can be reduced.
Two kinds of distributed transaction processing methods that the embodiment of the present application is provided are described in detail above, base
In same thinking, the embodiment of the present application also provides corresponding distributing real time system device, such as Fig. 6, figure
Shown in 7.
Fig. 6 illustrates for the distributing real time system apparatus structure corresponding to Fig. 1 that the embodiment of the present application is provided
Figure, the distributed transaction is related to first node and the Section Point positioned at first node lower floor, described
Distributed transaction is the affairs to specifying parameter to be updated in database, and described device is located at Section Point
On, described device is specifically included:
Receiver module 601, the carrying distributed transaction mark, pin for receiving first node transmission
At least two renewal requests to same specified parameter in database;
Respond module 602, in response to it is described update request, pair with the distributed transaction mark and
The intermediate parameters that the specified parameter has corresponding relation are updated, the intermediate parameters after being updated;
Update module 603, for according to the intermediate parameters after the renewal, updating the specified parameter.
The respond module 602 specifically for:
Request is updated for first in each described renewal request for receiving, is performed:According to described first
It is individual to update request, pair there is the centre of corresponding relation with distributed transaction mark and the specified parameter
Parameter is updated, and obtains the intermediate result as this renewal result;
For other each renewal requests in each described renewal request for receiving, operations described below is performed, directly
After last renewal request into each described renewal request to receiving performs operations described below, will be corresponding
Intermediate result as the intermediate parameters after the renewal:
Asked according to the renewal, the previous renewal request to being asked according to the renewal updates the middle knot for obtaining
Fruit is updated, and obtains the intermediate result as this renewal result.
Other each renewal requests in each described renewal request that Section Point is received, are by first node
Identified according to the distributed transaction, correspondence is asked in the previous renewal for obtaining renewal request to Section Point
Intermediate result, and according to obtain the intermediate result generate.
Described device can also include:
Module 604 is returned to, for when the acquisition request for the intermediate result for receiving first node transmission
When, it is determined that the acquisition request carries the distributed transaction identify when, in returning to this to first node
Between result.
The respond module 602 specifically for:According to the specified parameter, pair with the distributed transaction mark
The intermediate parameters that knowledge and the specified parameter have corresponding relation carry out assignment;According to described first renewal
Request, to assignment after the intermediate parameters be updated.
Fig. 7 illustrates for the distributing real time system apparatus structure corresponding to Fig. 4 that the embodiment of the present application is provided
Figure, the distributed transaction is related to first node and the Section Point positioned at first node lower floor, described
Distributed transaction is the affairs to specifying parameter to be updated in database, and described device is located at first node
On, described device is specifically included:
Sending module 701, for the application request sent in response to user, initiates the distributed transaction,
And obtain the distributed transaction mark;
Request module 702, for sent to Section Point carry it is that the distributed transaction is identified, for number
According at least two renewal requests of same specified parameter in storehouse, in order to Section Point in response to the renewal
Request, pair intermediate parameters for having corresponding relation with distributed transaction mark and the specified parameter are entered
Row updates, the intermediate parameters after being updated, and according to the intermediate parameters after the renewal, updates described specifying
Parameter;
Acquisition module 703, for obtain update after described specified parameter and return to the user.
The request module 702 specifically for:
First node sent to Section Point carry it is that the distributed transaction is identified, for same in database
First in each described renewal request of individual specified parameter updates request, in order to Section Point for described
First updates request, performs:According to described first update request, pair with the distributed transaction identify
And the intermediate parameters that the specified parameter has corresponding relation are updated, obtain as this renewal result
Intermediate result;
Other each renewals during first node is asked to each described renewal that Section Point sends are asked, so as to
Operations described below is performed for described other each renewal requests in Section Point, until each described to what is received
Last updated in request is updated after request performs operations described below, using corresponding intermediate result as described
Intermediate parameters after renewal:
Asked according to the renewal, the previous renewal request to being asked according to the renewal updates the middle knot for obtaining
Fruit is updated, and obtains the intermediate result as this renewal result.
Each described other each renewal requests updated in request, are according to the distributed thing by first node
Corresponding intermediate result, and root are asked in business mark, the previous renewal for obtaining renewal request to Section Point
Generated according to the intermediate result for obtaining.
Described device can also include:
Middle acquisition module 704, for sent to Section Point carry the distributed mark, for this
The acquisition request of intermediate result;Section Point is received it is determined that the acquisition request carries the distributed thing
During business mark, to the intermediate result that first node is returned.
By the device in Fig. 6 and/or Fig. 7, first node can be top service device, and Section Point can
To be underlying services device, each renewal for specifying parameter to perform is directed to due to intermediate parameters can be utilized to preserve
Renewal result afterwards, as intermediate result, for carrying out next update, and then can be according to repeatedly renewal
The intermediate result for obtaining afterwards updates specified parameter, and this process can be completed in a distributed transaction, because
This, extra distributed transaction is initiated without top service device, can reduce work load.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment in terms of software and hardware.And, the present invention can be used and wherein wrapped at one or more
Containing computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on implement computer program product form.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read-only storage (ROM) or flash memory (flash such as Nonvolatile memory (RAM)
RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by appointing
What method or technique realizes information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read-only storage (ROM), electrically erasable are read-only
Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Defined according to herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), such as data-signal and carrier wave of modulation.
Also, it should be noted that term " including ", "comprising" or its any other variant be intended to it is non-
It is exclusive to include, so that process, method, commodity or equipment including a series of key elements are not only wrapped
Include those key elements, but also other key elements including being not expressly set out, or also include for this process,
Method, commodity or the intrinsic key element of equipment.In the absence of more restrictions, by sentence " including
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can be used and wherein include calculating at one or more
Machine usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM,
Optical memory etc.) on implement computer program product form.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.