CN102684913B - Method for processing business and relevant apparatus and related system - Google Patents

Method for processing business and relevant apparatus and related system Download PDF

Info

Publication number
CN102684913B
CN102684913B CN201210121208.XA CN201210121208A CN102684913B CN 102684913 B CN102684913 B CN 102684913B CN 201210121208 A CN201210121208 A CN 201210121208A CN 102684913 B CN102684913 B CN 102684913B
Authority
CN
China
Prior art keywords
service
serviced component
version
component bag
bag
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.)
Active
Application number
CN201210121208.XA
Other languages
Chinese (zh)
Other versions
CN102684913A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210121208.XA priority Critical patent/CN102684913B/en
Publication of CN102684913A publication Critical patent/CN102684913A/en
Application granted granted Critical
Publication of CN102684913B publication Critical patent/CN102684913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method for processing business and relevant apparatus and related system.Wherein, a kind of method for processing business, can comprise: service node receives the service request carrying serviced component bag version information that client sends; If service node is determined that the serviced component bag service node of the first version that this service request is corresponding is current and is not also installed, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating.The embodiment of the present invention provides technical scheme to be conducive to, when trying one's best continual service, realizing the upgrade service of the assembly bag of service node.

Description

Method for processing business and relevant apparatus and related system
Technical field
The present invention relates to communication technical field, be specifically related to a kind of method for processing business and relevant apparatus and related system.
Background technology
Current, no matter when the Internet make netizen, where can easily by resource that browser access needs.Such as, search the search of data Baidu or google search, buy article to Taobao, apple of listening to the music AppStore, social arrive facebook or the ends of the earth.These network applications are for Global Subscriber, and 24 hours online, and any interruption may be all catastrophic to enterprise or user.But, making rapid progress of internet development, number of users is also being on the increase, and system needs dilatation, business needs development; And new features do not stop to increase or amendment bug, also need often to upgrade version.
Traditional C/S system, version updating process need interrupting service (user can not access in system upgrade process), now often need prior notice user, when system unavailable (be similar to cut off the water, power off notifying) in section.B/S system due to zero deployment of browser end, simplifies the complexity of system update after occurring to a certain extent, although there is no the escalation process of client, but when server end carries out software upgrading, service still can be interrupted, be difficult to ensure that browser 24 hours can access services device.
Summary of the invention
The embodiment of the present invention provides method for processing business and relevant apparatus and related system, with when continual service as far as possible, realizes the upgrade service of the assembly bag of service node.
For solving the problems of the technologies described above, the embodiment of the present invention provides following technical scheme:
The embodiment of the present invention provides a kind of method for processing business on the one hand, can comprise:
Service node receives the service request carrying serviced component bag version information that client sends;
Also do not install if service node is current described in the serviced component bag that described service node determines the first version that described service request is corresponding, the serviced component bag then obtaining described first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of described first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of described first version and the second edition can independent operating.
The embodiment of the present invention also provides a kind of service node on the other hand, can comprise:
Receiver module, for receiving the service request carrying serviced component bag version information that client sends;
Processing module, when also not installing for described in the serviced component bag determining the first version that service request that described receiver module receives is corresponding, service node is current, the serviced component bag obtaining described first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, the service of the serviced component bag of described first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of described first version and the second edition can independent operating.
The embodiment of the present invention also provides a kind of distribution service on the other hand, can comprise:
One or more service node;
Wherein, described service node, for receiving the service request carrying serviced component bag version information that client sends; If determine, the serviced component bag of the first version that described service request is corresponding is current does not also install, the serviced component bag then obtaining described first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of described first version and the corresponding identical type of the serviced component bag of the second edition.
The embodiment of the present invention also provides a kind of transaction processing system on the other hand, can comprise:
Client, for sending the service request carrying serviced component bag version information;
At least one service node, for receiving the service request carrying serviced component bag version information that described client sends; Also do not install if service node is current described in the serviced component bag determining the first version that this service request is corresponding, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating.
Therefore, after in the embodiment of the present invention, service node receives the service request from client, if determine, the serviced component bag of the first version that this service request is corresponding is current does not also install, the serviced component bag then obtaining this first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of described first version and the second edition can independent operating, based on above-mentioned mechanism, because service node provides in the process of serviced component bag of certain type of service in upgrading, the current mounted serviced component bag still on-line operation that one or more versions of same type of service are provided in service node, so just be conducive to the service realizing also as far as possible not interrupting respective type when service node upgrade service assembly bag.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of method for processing business that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of method for processing business that the embodiment of the present invention provides;
Fig. 3 is a kind of network architecture schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the configuration diagram of a kind of service node that the embodiment of the present invention provides;
Fig. 5-a is the configuration diagram of the another kind of service node that the embodiment of the present invention provides;
Fig. 5-b is the configuration diagram of the another kind of service node that the embodiment of the present invention provides;
Fig. 5-c is the configuration diagram of the another kind of service node that the embodiment of the present invention provides;
Fig. 5-d is the configuration diagram of the another kind of service node that the embodiment of the present invention provides;
Fig. 6-a is the configuration diagram of a kind of distribution service that the embodiment of the present invention provides;
Fig. 6-b is the configuration diagram of the another kind of distribution service that the embodiment of the present invention provides;
Fig. 7-a is the schematic diagram of a kind of transaction processing system that the embodiment of the present invention provides;
Fig. 7-b is the schematic diagram of the another kind of transaction processing system that the embodiment of the present invention provides.
Embodiment
The embodiment of the present invention provides method for processing business and relevant apparatus and related system, with when continual service as far as possible, realizes the upgrade service of the assembly bag of service node.
The present invention program is understood better for making those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a part of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " 4th " etc. (if existence) in specification of the present invention and claims and above-mentioned accompanying drawing are for distinguishing similar object, and need not be used for describing specific order or precedence.Should be appreciated that the data used like this can be exchanged in the appropriate case, so as embodiments of the invention described herein such as can with except here illustrated or otherwise describe those except order implement.In addition, term " comprises " and " having " and their any distortion, intention is to cover not exclusive comprising, to comprise the process of a series of unit, method, system, product or equipment being not necessarily limited to those unit, but can comprise clearly do not list or for intrinsic other unit of these processes, method, product or equipment.
Be described in detail respectively by the following examples.
An embodiment of a kind of method for processing business of the present invention, can comprise: service node receives the service request from client; If service node is determined that this service node of serviced component bag of the first version that this service request is corresponding is current and is not also installed, the serviced component bag then obtaining this first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating.
See Fig. 1, a kind of method for processing business that the embodiment of the present invention provides, can comprise:
101, service node receives the service request from client;
Wherein, such as can regard 1 physical server as 1 service node, distribution service can comprise one or more physical server, and that is, a distribution service can comprise one or more service node.Or can regard can provide other object of service as service node as.
In some embodiments of the invention, service request from client can carry the version information of serviced component bag (wherein, this version information can be any information of the version that can indicate serviced component bag corresponding to this service request, such as, this version information can be version number, or the serviced component bag of the corresponding different editions of the service request of different data format, then now the data format of service request can be used as version information, or service request carry other indirectly can indicate the information of corresponding with service assembly bag, version information can be regarded as, by that analogy), certainly this service request also can carry service type information corresponding to this service request etc.Such as, if the serviced component bag of the corresponding first version of this service request, then it is first version that the version information of serviced component bag that this service request is carried indicates serviced component bag version; If the COS that this service request institute request service is corresponding is search service, then it is search service that the service type information of serviced component bag that this service request is carried indicates COS, by that analogy.
If 102, service node is determined that the serviced component bag of the first version that this service request is corresponding is current and is not also installed, the serviced component bag then obtaining this first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition (namely, keep the serviced component on-line operation of the current mounted second edition), wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition.
Wherein, the serviced component bag of first version can comprise the serviced component bag of one or more version, and (namely the serviced component bag of first version not necessarily refer to the serviced component bag of a version, also the serviced component bag of multiple version may be referred to), the serviced component bag of the second edition also can comprise the serviced component bag of one or more version, certainly, the serviced component bag of first version and the serviced component bag of the second edition are the serviced component bags of different editions.Can independent operating between the serviced component bag of first version and the serviced component bag of the second edition, namely providing can independent operating (that is, having physical isolation feature) between the serviced component bag of the different editions of service of the same type.Wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, such as, the serviced component bag of first version and the serviced component bag corresponding service type of the second edition are all search service, mail service, registration service or download service etc.
In some embodiments of the invention, can comprise in serviced component bag (as the serviced component bag of first version and the serviced component bag of the second edition): (service execution program such as can comprise executable script to service execution program, library file, binary file etc., by operation service executive program to provide corresponding with service) and description document, wherein, this description document such as can be used for the version describing this serviced component bag, the business interface that service execution program externally provides, description document in certain serviced component bag also can be used for other relevant information describing this serviced component bag.After serviced component bag is installed to service node, description document in this serviced component bag can be loaded into internal memory by service node, so as to know the version of corresponding with service assembly bag by the description document loaded in audit memory, business interface etc. that service execution program externally provides.
Therefore, after in the present embodiment, service node receives the service request from client, if determine, the serviced component bag of the first version that this service request is corresponding is current does not also install, the serviced component bag then obtaining this first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating, based on above-mentioned mechanism, because service node provides in the process of serviced component bag of certain type of service in upgrading, the current mounted serviced component bag still on-line operation that one or more versions of same type of service are provided in service node, so just be conducive to the service realizing also as far as possible not interrupting respective type when service node upgrade service assembly bag.
In some embodiments of the invention, the whether mounted mode of serviced component bag of the first version that service node determination service request is corresponding can be diversified, such as, suppose that the description document in mounted serviced component bag is loaded in internal memory by service node, whether then service node can be searched in internal memory has the version describing serviced component bag to be the description document of first version, if have (version of the serviced component bag namely having description document to describe in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is installed, if do not have (version of serviced component bag namely described without any description document in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is not installed.Certainly, service node also records the version information of mounted serviced component bag by alternate manner, by the version information of the assembly of the build-in services bag of inquiring service node record, determine whether the serviced component bag of the first version that service request is corresponding is installed.
In addition, in one embodiment of the invention, if service node determines that the serviced component bag of the first version that service request is corresponding is installed, then service node can utilize the business interface in the serviced component bag of first version described by description document, the service execution program in the serviced component bag of first version called to provide corresponding business service, and can obtain corresponding service result data.Be appreciated that, the serviced component bag of the different editions of service of the same type is provided to have different business interfaces, service node obtains the business interface of respective version serviced component bag according to the description document provided in the serviced component of the different editions of service of the same type, and then utilize this business interface to call service execution program in the serviced component bag of respective version to provide corresponding business service, and corresponding service result data can be obtained, the service request distribution which achieves based on version controls.
In one embodiment of the invention, the mode that the serviced component bag that service node obtains first version carries out installing can be diversified, suppose that service node and distribution service component warehouse are being connected by communication mode, this service node also with internet works software center being connected (wherein by communication mode, such as service node and internet works software center can direct communications, or, service node communicates by distribution service component warehouse with internet works software center, or, service node and internet works software center are by other one or more devices communicating), service node first can search the serviced component bag of first version in local disk Component Gallery (can comprise multiple serviced component bags etc. relevant to this service node in the local disk Component Gallery of wherein, service node), if found the serviced component bag of first version in local disk Component Gallery, then the serviced component bag that service node obtains the first version found from this local disk Component Gallery has been installed, if do not search the serviced component bag of first version in this local disk Component Gallery, then service node can at distribution service component warehouse (wherein, such as can comprise the multiple serviced component bags etc. relevant to each service node in this distribution service in distribution service component warehouse) in search first version serviced component bag (or, service node now also can search the serviced component bag of first version less than distribution service component warehouse, but request distribution service component warehouse issues the serviced component bag of first version, if the current serviced component bag that there is first version of distribution service component warehouse, then distribution service component warehouse can by the serviced component bag of first version, be issued to the local disk Component Gallery of other one or more service node of this service node and distribution service, if the current serviced component bag that there is not first version of distribution service component warehouse, then distribution service component warehouse first can obtain the serviced component bag of first version from internet works software center, and after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is issued to the local disk Component Gallery of other other service node one or more of this service node and distribution service, the serviced component bag that then this service node obtains first version again from its local disk Component Gallery is installed), if found the serviced component bag of first version in this distribution service component warehouse, then the serviced component bag that service node can obtain the first version found from distribution service component warehouse has carried out installing (the serviced component bag of the first version got from distribution service component warehouse also can be write its local disk Component Gallery by service node), if service node does not find the serviced component bag of first version in distribution service component warehouse, then service node can from internet works software center (wherein, internet works software center such as can comprise the serviced component bag of current announced various conventional version) the serviced component bag that obtains first version carry out installing (or, service node now also can download the serviced component bag of first version in distribution of notifications formula service system components warehouse, then distribution service component warehouse obtains the serviced component bag of first version from internet works software center, distribution service component warehouse is after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is handed down to the local disk Component Gallery of other other service node one or more of this service node and distribution service, after this, service node is installed from local disk Component Gallery or from the serviced component bag of distribution service component warehouse acquisition first version again).Be appreciated that, if based on local disk Component Gallery, distribution service component warehouse (wherein, the configurable multiple internet works software centre mirror picture of distribution service component warehouse), the multistage deployment way in internet works software center, service node can from distribution service component warehouse or internet works software center download service assembly bag to local disk Component Gallery, and distribution service component warehouse from internet works software center download service assembly bag, can be conducive to the management of simplification serviced component bag and improves anti-disaster ability like this.
In some embodiments of the invention, asynchronous response mode can be adopted to carry out request response, such as after receiving the service request from client, service node first can send request response corresponding to service request to this client, and (service node is from receiving service request, can be very short to the time interval sent to client between the response of this service request corresponding requests, such as be no more than 0.1 second, 0.5 second, 1 second or other duration), service execution program in the serviced component bag calling first version is to provide corresponding business service, after obtaining corresponding service result data, to these client push service result data, or, after receiving the service request from client, service node first can send the request response carrying service response mark corresponding to this service request to this client, and (service node is from receiving service request, to send to client this service request corresponding carry service response mark request response between the time interval can be very short, be such as no more than 0.1 second, 0.5 second, 1 second or other duration), if receive the result queries request sent according to request response from client (to carry the result queries request of this service response mark, client can utilize this service response to identify to service node poll services result data), service execution program then in the serviced component bag calling described first version is to provide corresponding business service, after obtaining corresponding service result data, then service node can send this service result data to this client.Certainly, service node also can adopt alternate manner to client feedback service result data, if without the need to client feedback service result data, then can omit above-mentioned steps.
For ease of better understanding and implement the such scheme of the embodiment of the present invention, carry out citing below by an embody rule scene and describe.
See Fig. 2, the another kind of method for processing business that the embodiment of the present invention provides, can comprise:
201, customer end A 1 sends service request q1 to serving node B 1;
Wherein, such as can regard 1 physical server as 1 service node, distribution service can comprise one or more physical server, and that is, a distribution service can comprise one or more service node.Or can regard can provide other object of service as service node as.
In one embodiment of the invention, the service request q1 that customer end A 1 sends to serving node B 1 can carry the version information of serviced component bag (wherein, this version information can be any information indicating the version of serviced component bag corresponding to this service request q1) and service type information (wherein, this service type information indicates the type of request service corresponding to this service request q1) etc. corresponding to this service request q1.If the serviced component bag of the corresponding S2.0 version of such as this service request q1 is (for ease of citation, in the following description for the version of service request q1 corresponding with service assembly bag for S2.0 version), then the version that the version information of serviced component bag that this service request q1 carries indicates serviced component bag is S2.0 version; If the COS of this service request q1 institute request service is search service, then it is search service that the service type information of serviced component bag that this service request q1 carries indicates COS, by that analogy.
202, serving node B 1 receives the service request q1 from customer end A 1, and serving node B 1 determines whether the serviced component bag of the S2.0 version that service request q1 is corresponding is installed;
If do not install, then perform step 203;
If install, then perform step 205.
In some embodiments of the invention, can comprise in serviced component bag (as the serviced component bag of S2.0 version and the serviced component bag of the second edition): (service execution program such as can comprise executable script to service execution program, library file, binary file etc., by operation service executive program to provide corresponding with service) and description document, wherein, this description document such as can be used for the version describing this serviced component bag, the business interface that service execution program externally provides, description document in certain serviced component bag also can be used for other relevant information describing this serviced component bag.After serviced component bag is installed to service node, description document in this serviced component bag can be loaded into internal memory by service node, so as to know the version of corresponding with service assembly bag by the description document loaded in audit memory, business interface etc. that service execution program externally provides.
In some embodiments of the invention, serving node B 1 determines that the whether mounted mode of serviced component bag of the S2.0 version that service request is corresponding can be diversified, such as, suppose that the description document in mounted serviced component bag is loaded in internal memory by service node, whether then service node can be searched in internal memory has the version describing serviced component bag to be the description document of S2.0 version, if have (version of the serviced component bag namely having description document to describe in internal memory is S2.0 version), then represent that the serviced component bag of the S2.0 version that service request is corresponding is installed, if do not have (version of serviced component bag namely described without any description document in internal memory is S2.0 version), then represent that the serviced component bag of the S2.0 version that service request is corresponding is not installed.Certainly, service node also records the version information of mounted serviced component bag by alternate manner, by the version information of the assembly of the build-in services bag of inquiring service node record, determine whether the serviced component bag of the S2.0 version that service request is corresponding is installed.
203, serving node B 1 sends request response Rq1 corresponding to service request q1 to customer end A 1;
Wherein, request response Rq1 can carry request service and unsuccessfully identifies, and the request service that serving node B 1 utilizes request response Rq1 to carry unsuccessfully identifies, and indicating to customer end A 1 currently cannot provide service corresponding to service request q1; Perform step 204.
204, the serviced component bag that serving node B 1 obtains this S2.0 version is installed, and keep based on the capable service (that is, keeping the serviced component bag on-line operation of the current mounted second edition) of the serviced component contracted affreightment of the current mounted second edition.
Wherein, the service of the serviced component bag of S2.0 version and the corresponding identical type of the serviced component bag of the second edition.Such as, the serviced component bag of S2.0 version and the serviced component bag corresponding service type of the second edition are all search service, mail service, registration service or download service etc.
In one embodiment of the invention, the serviced component bag of the current mounted second edition of serving node B 1 can comprise the serviced component bag of one or more versions, that is, the serviced component bag obtaining this S2.0 version in serving node B 1 carries out in the process of installing, and can keep current mountedly provides the serviced component bag of one or more versions of service of the same type (COS is identical with the serviced component bag of S2.0 version) on-line operation; Can independent operating between the serviced component bag of S2.0 version and the serviced component bag of the second edition.
In one embodiment of the invention, the mode that the serviced component bag that serving node B 1 obtains S2.0 version carries out installing can be diversified.For example, see Fig. 3, serviced component bag such as can adopt multistage deployment way, local disk Component Gallery is deployed in serving node B 1 (serving node B 1 is a physical server is example) herein, distribution service component warehouse is deployed in distribution service, distribution service component warehouse is connected by internet (internet) with internet works software center, wherein, internet works software center such as can comprise the serviced component bag of current announced various conventional version; Multiple serviced component bag etc. relevant to this distribution service such as can be comprised, the configurable multiple internet works software centre mirror picture of distribution service component warehouse in distribution service component warehouse; Multiple serviced component bag etc. relevant to serving node B 1 can be comprised in local disk Component Gallery.
Such as, serving node B 1 first can search the serviced component bag that whether there is S2.0 version in local disk Component Gallery, if found the serviced component bag of S2.0 version in this local disk Component Gallery, then the serviced component bag that serving node B 1 obtains the S2.0 version found from local disk Component Gallery has been installed, if do not search the serviced component bag of S2.0 version in local disk Component Gallery, then serving node B 1 can search in distribution service component warehouse S2.0 version serviced component bag (or, serving node B 1 now also can search the serviced component bag of S2.0 version less than distribution service component warehouse, but request distribution service component warehouse issues the serviced component bag of first version, if the current serviced component bag that there is S2.0 version of distribution service component warehouse, then the serviced component bag of S2.0 version can be issued to the local disk Component Gallery of other other service node one or more of serving node B 1 and distribution service by distribution service component warehouse, if the current serviced component bag that there is not S2.0 version of distribution service component warehouse, then distribution service component warehouse first can obtain the serviced component bag of S2.0 version from internet works software center, and after the serviced component bag getting S2.0 version from internet works software center, the serviced component bag of S2.0 version is issued to the local disk Component Gallery of other other service node one or more of this serving node B 1 and distribution service, the serviced component bag that then this serving node B 1 obtains S2.0 version again from its local disk Component Gallery is installed), if found the serviced component bag of S2.0 version in this distribution service component warehouse, then the serviced component bag that serving node B 1 obtains the S2.0 version found from distribution service component warehouse has carried out installing (the serviced component bag write local disk Component Gallery of S2.0 version that serving node B 1 also can will get from distribution service component warehouse), if serving node B 1 does not find the serviced component bag of S2.0 version in distribution service component warehouse, the serviced component bag that then serving node B 1 can obtain S2.0 version from internet works software center carries out installing (or, serving node B 1 now also can download the serviced component bag of S2.0 version in distribution of notifications formula service system components warehouse, then distribution service component warehouse obtains the serviced component bag of S2.0 version from internet works software center, and after the serviced component bag getting S2.0 version from internet works software center, the serviced component bag of S2.0 version is handed down to the local disk Component Gallery of other other service node one or more of serving node B 1 and distribution service, after this, serving node B 1 is installed from local disk Component Gallery or from the serviced component bag of distribution service component warehouse acquisition S2.0 version again).Be understandable that, if based on local disk Component Gallery, distribution service component warehouse, the multistage deployment way in internet works software center, service node can from distribution service component warehouse or internet works software center download service assembly bag to local disk Component Gallery, distribution service component warehouse from internet works software center download service assembly bag, can be conducive to the management of simplification serviced component bag and improves anti-disaster ability.
Be understandable that, in other embodiments, serviced component bag also can adopt other stagewise or centralized deployment, and the serviced component bag that serving node B 1 can adopt mode corresponding with it to obtain needs is installed.
Be understandable that, there is no inevitable sequencing between step 203 and 204, or step 204 also can perform prior to step 203, or step 204 and step 203 also synchronously can perform.Certainly also step 203 can be omitted.
205, serving node B 1 sends request response Rq2 corresponding to service request q1 to customer end A 1;
In one embodiment of the invention, such as can carry service response mark Rq2-ID in the request response Rq2 that the service request q1 that serving node B 1 sends to customer end A 1 is corresponding, and customer end A 1 can utilize this service response mark Rq2-ID to obtain service result data corresponding to service request q1 (the service result data fed back if necessary) to serving node B 1.
In one embodiment of the invention, serving node B 1 is from receiving service request q1, can be very short to the time interval sent to customer end A 1 between this service request q1 corresponding requests response Rq2, the such as time interval can be no more than 0.1 second, 0.5 second, 0.8 second, 1 second, 5 seconds or other duration).
206, serving node B 1 utilizes the business interface described by description document in the serviced component bag of the S2.0 version installed, the service execution program in the serviced component bag of S2.0 version called is to provide corresponding business service, and corresponding service result data can be obtained, perform step 207.
Be understandable that between step 205 and 206, there is no inevitable sequencing, or step 205 also can start to perform prior to step 206, or step 206 and step 205 also synchronously can start to perform.Certainly also step 205 can be omitted.
207, the service execution program in the serviced component bag calling S2.0 version is to provide corresponding business service, and after obtaining corresponding service result data, if the service response that carries that serving node B 1 receives from customer end A 1 identifies the result queries request of Rq2-ID (wherein, client can utilize this service response to identify Rq2-ID to service result data corresponding to service node poll services request q1), then serving node B 1 can send this service result data to customer end A 1.
In an alternative embodiment of the invention, service execution program in the serviced component bag calling S2.0 version is to provide corresponding business service, and after obtaining corresponding service result data, serving node B 1 also can push this service result data directly to customer end A 1.
Below the present embodiment, citing provides a kind of module architectures of service node.
See Fig. 4, a kind of service node of the embodiment of the present invention can comprise: kernel 401 (kernel), dispose agency 402 (deployagent), local disk Component Gallery 403 and installation component bag 404.
Multiple serviced component bags needed for kernel 401 can be loaded by configuration information when initialization, can be loaded into the description document of serviced component bag in internal memory, to utilize the description document in internal memory to control the distribution of service request;
Dispose agency 402, the serviced component of primary responsibility service node assures reason, comprises the serviced component bag of place service node, the inquiry of serviced component bag that kernel 401 loads, and the download of serviced component bag etc. function.
Local disk Component Gallery 403, the database of service assembly bag.
A kind of possible business processing flow of infrastructure services node shown in exemplary graph 4 below.
Such as, when after the service request q1 that service node receives from client, whether kernel401 can determine that the serviced component bag of the S2.0 version that service request is corresponding is current and install, if install, then service request q1 is joined request in queue, kernel401 also can to client feedback request response Rq2 (wherein can carry service response mark Rq2-ID), queue thread takes out service request q1 from request queue, and the service handler called in the serviced component bag of S2.0 version is to process service request q1, the result data that service request q1 is corresponding can be put into and return queue, kernel401 can directly to result data corresponding to client push service request q1 (or service response can be utilized to identify when Rq2-ID carrys out poll in client send result data corresponding to service request q1 to client).Also do not install if kernel401 determines that the serviced component bag of S2.0 version is current, kernel401 can send to client the request response Rq1 carrying request service and unsuccessfully identify, kernel401 can indicate further and dispose agency 402 and obtain the serviced component bag of S2.0 version (or kernel401 also can point out user the serviced component bag need installing S2.0 version, dispose the serviced component bag that agency 402 can obtain S2.0 version under the instruction of user instruction, deployment agency 402 can arrive first local disk warehouse and search, if find, then the description document of the serviced component bag of S2.0 version can be loaded into internal memory by kernel401, if do not find, then dispose agency 402 and can download the serviced component bag of S2.0 version to local disk Component Gallery (wherein from distribution service component warehouse, if the current serviced component bag also not having S2.0 version of distribution service component warehouse, then distribution service component warehouse can be downloaded from internet works software center), dispose after the serviced component bag of S2.0 version is downloaded to local disk Component Gallery by agency 402 and can notify that kernel401 installs loading, kernel401 just can process the service request needing the serviced component bag of S2.0 version to process after installing the serviced component bag loading S2.0 version.
Therefore, after in the present embodiment, service node receives the service request from client, if determine, the serviced component bag of certain version that this service request is corresponding is current does not also install, the serviced component bag then obtaining this certain version is installed, and keep based on the capable service of the serviced component contracted affreightment of current other version mounted, wherein, the service of the serviced component bag of certain version above-mentioned and the corresponding identical type of the serviced component bag of other version above-mentioned, and in service node, provide the serviced component bag of each version of certain type of service can independent operating, based on above-mentioned mechanism, because service node provides in the process of serviced component bag of certain type of service in upgrading, the current mounted serviced component bag also on-line operation that one or more versions of same type of service are provided in service node, so just be conducive to the service realizing also as far as possible not interrupting respective type when service node upgrade service assembly bag.
Further, by the serviced component bag on-line operation simultaneously of multiple version, solve service node software and do not interrupt upgrading and characteristic increase; By carrying service type information, version information etc. to distinguish the serviced component bag of different COS and version in service request; By asynchronous controlling request feedback and the deployment of multistage component warehouse, be conducive to the reliability ensureing the capable and online characteristic increase of multi version serviced component contracted affreightment; By the deployment of local disk Component Gallery to distribution service component warehouse, the serviced component being conducive to simplifying distributed system assures reason.
It should be noted that, for aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
For ease of better implementing the such scheme of the embodiment of the present invention, also provide the relevant apparatus and distribution service that can be used for implementing such scheme below.
See Fig. 5-a, a kind of service node 500 that the embodiment of the present invention provides, can comprise: receiver module 510 and processing module 520.
Wherein, receiver module 510, for receiving the service request carrying serviced component bag version information that client sends.
In some embodiments of the invention, service request from client can carry the version information of serviced component bag (wherein, this version information indicates the version of serviced component bag corresponding to this service request), this service request also can carry service type information corresponding to this service request etc. certainly.Such as, if the serviced component bag of the corresponding first version of this service request, then it is first version that the version information of serviced component bag that this service request is carried indicates serviced component bag version; If the COS that this service request institute request service is corresponding is search service, then it is search service that the service type information of serviced component bag that this service request is carried indicates COS, by that analogy.
Processing module 520, if also do not install for determining that the serviced component bag service node 500 of the first version that service request that receiver module 510 receives is corresponding is current, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating.
In one embodiment of the invention, in serviced component bag, such as service execution program and description document can be comprised, wherein, the business interface etc. that description document externally provides for the version and service executive program describing this serviced component bag.
In one embodiment of the invention, processing module also for, the serviced component bag of the first version that the service request that receiver module 510 receives if determine is corresponding is installed, then utilize the business interface described by the description document in the serviced component bag of first version, the service execution program in the serviced component bag of first version called to provide corresponding business service, and can obtain corresponding service result data.
See Fig. 5-b, in one embodiment of the invention, service node 500 also can comprise: the first respond module 530, wherein, first respond module 530, for sending request response corresponding to service request to above-mentioned client, and can call service execution program in the serviced component bag of first version to provide corresponding business service in processing module 520, after obtaining corresponding service result data, to service result data described in this client push.
See Fig. 5-c, in another embodiment of the present invention, service node 500 also can comprise: the second respond module 540, and wherein, the second respond module 540, for sending the request response carrying service response mark corresponding to service request to above-mentioned client; If receive the result queries request of carrying service response mark from this client, then can call service execution program in the serviced component bag of first version to provide corresponding business service in processing module 520, after obtaining corresponding service result data, send this service result data to this client.
Wherein, the serviced component bag of first version can comprise the serviced component bag of one or more version, the serviced component bag of the second edition also can comprise the serviced component bag of one or more version, certainly, the serviced component bag of first version and the serviced component bag of the second edition are the serviced component bags of different editions, can independent operating between the serviced component bag of first version and the serviced component bag of the second edition, that is, provide the serviced component bag of the different editions of service of the same type can independent operating (namely having physical isolation feature).The service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, such as, the serviced component bag of first version and the serviced component bag corresponding service type of the second edition are all search service, mail service, registration service or download service etc.
In some embodiments of the invention, can comprise in serviced component bag (as the serviced component bag of first version and the serviced component bag of the second edition): (service execution program such as can comprise executable script to service execution program, library file, binary file etc., by operation service executive program to provide corresponding with service) and description document, wherein, this description document such as can be used for the version describing this serviced component bag, the business interface that service execution program externally provides, description document in certain serviced component bag also can be used for other relevant information describing this serviced component bag.After serviced component bag is installed to service node, description document in this serviced component bag can be loaded into internal memory by processing module 520, so as to know the version of corresponding with service assembly bag by the description document loaded in audit memory, business interface etc. that service execution program externally provides.
In some embodiments of the invention, processing module 520 determines that the whether mounted mode of serviced component bag of the first version that service request is corresponding can be diversified, such as, suppose that the description document in mounted serviced component bag is loaded in internal memory by processing module 520, whether then processing module 520 can be searched in internal memory has the version describing serviced component bag to be the description document of first version, if have (version of the serviced component bag namely having description document to describe in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is installed, if do not have (version of serviced component bag namely described without any description document in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is current also not install.Certainly, processing module 520 also records the version information of mounted serviced component bag by alternate manner, the version information of the assembly of the build-in services bag recorded by inquiring service node 500, determines whether the serviced component bag of the first version that service request is corresponding is installed.
In addition, in one embodiment of the invention, if processing module 520 determines that the serviced component bag of the first version that service request is corresponding is installed, then processing module 520 can utilize the business interface in the serviced component bag of first version described by description document, calls this service request of service execution routine processes in the serviced component bag of first version.Be appreciated that, the serviced component bag of the different editions of service of the same type is provided to have different business interfaces, processing module 520 obtains the business interface of respective version serviced component bag according to the description document provided in the serviced component of the different editions of service of the same type, and then the service execution program utilizing this business interface to call in the serviced component bag of respective version provides business service according to service request, the service request distribution which achieves based on version controls.
See Fig. 5-d, in one embodiment of the invention, service node 500 also can comprise local disk Component Gallery 550.
In one embodiment of the invention, the mode that the serviced component bag that processing module 520 obtains first version carries out installing can be diversified, for example, suppose that service node 500 and distribution service component warehouse are being connected by communication mode, service node 500 also with internet works software center being connected (wherein by communication mode, such as service node 500 and internet works software center can direct communications, or, service node 500 communicates by distribution service component warehouse with internet works software center, or, service node 500 and internet works software center are by other one or more devices communicating), processing module 520 first can search the serviced component bag of first version in local disk Component Gallery 550 (wherein, can comprise multiple serviced component bags etc. relevant to this processing module 520 in local disk Component Gallery 550), if found the serviced component bag of first version in local disk Component Gallery 550, then the serviced component bag that processing module 520 obtains the first version found from this local disk Component Gallery 550 has been installed, if do not search the serviced component bag of first version in this local disk Component Gallery 550, then processing module 520 can be searched the serviced component bag of first version (or processing module 520 now also can be searched the serviced component bag of first version less than distribution service component warehouse in distribution service component warehouse (wherein such as can comprise multiple serviced component bags etc. relevant to each service node in this distribution service in distribution service component warehouse), but request distribution service component warehouse issues the serviced component bag of first version, if the current serviced component bag that there is first version of distribution service component warehouse, then distribution service component warehouse can by the serviced component bag of first version, be issued to the local disk Component Gallery 550 of other one or more service node of this service node 500 and distribution service, if the current serviced component bag that there is not first version of distribution service component warehouse, then distribution service component warehouse first can obtain the serviced component bag of first version from internet works software center, and after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is issued to the local disk Component Gallery 550 of other one or more service node of this service node and distribution service, the serviced component bag that then this processing module 520 obtains first version again from its local disk Component Gallery 550 is installed), if found the serviced component bag of first version in this distribution service component warehouse, then the serviced component bag that processing module 520 can obtain the first version found from distribution service component warehouse has carried out installing (the serviced component bag of the first version got from distribution service component warehouse also can be write its local disk Component Gallery 550 by processing module 520), if processing module 520 does not find the serviced component bag of first version in distribution service component warehouse, then processing module 520 can from internet works software center (wherein, internet works software center such as can comprise the serviced component bag of current announced various conventional version) the serviced component bag that obtains first version carry out installing (or, processing module 520 now also can download the serviced component bag of first version in distribution of notifications formula service system components warehouse, then distribution service component warehouse obtains the serviced component bag of first version from internet works software center, distribution service component warehouse is after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is handed down to the local disk Component Gallery 550 of other one or more service node of this service node 500 and distribution service, after this, processing module 520 is installed from local disk Component Gallery 550 or from the serviced component bag of distribution service component warehouse acquisition first version again).Be appreciated that, if based on local disk Component Gallery 550, distribution service component warehouse (wherein, the configurable multiple internet works software centre mirror picture of distribution service component warehouse), the multistage deployment way in internet works software center, service node 500 can from distribution service component warehouse or internet works software center download service assembly bag to local disk Component Gallery 550, and distribution service component warehouse from internet works software center download service assembly bag, can be conducive to the management of simplification serviced component bag and improves anti-disaster ability like this.
Be understandable that, the service node 500 of the present embodiment can be as the service node in above-mentioned embodiment of the method, the above-mentioned function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process can see the associated description in said method embodiment, at this no longer to repeat one by one.
Therefore, after in the present embodiment, service node 500 receives the service request from client, if determine, the serviced component bag of certain version that this service request is corresponding is current does not also install, the serviced component bag then obtaining this certain version is installed, and keep based on the capable service of the serviced component contracted affreightment of current other version mounted, wherein, the service of the serviced component bag of certain version above-mentioned and the corresponding identical type of the serviced component bag of other version above-mentioned, and in service node, provide the serviced component bag of each version of certain type of service can independent operating, based on above-mentioned mechanism, because service node 500 provides in the process of serviced component bag of certain type of service in upgrading, the current mounted serviced component bag also on-line operation that one or more versions of same type of service are provided in service node 500, so just be conducive to the service realizing also as far as possible not interrupting respective type when service node upgrade service assembly bag.
See Fig. 6-a, the embodiment of the present invention also provides a kind of distribution service, can comprise:
One or more service node 610 (be that service system comprises multiple service node 610 in a distributed manner in figure be example); Wherein, service node 610, for receiving the service request from client; If determine, the serviced component bag of the first version that this service request is corresponding is current does not also install, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition.
In some embodiments of the invention, can comprise in serviced component bag (as the serviced component bag of S2.0 version and the serviced component bag of the second edition): (service execution program such as can comprise executable script to service execution program, library file, binary file etc., by operation service executive program to provide corresponding with service) and description document, wherein, this description document such as can be used for the version describing this serviced component bag, the business interface that service execution program externally provides, description document in certain serviced component bag also can be used for other relevant information describing this serviced component bag.After serviced component bag is installed to service node, description document in this serviced component bag can be loaded into internal memory by service node, so as to know the version of corresponding with service assembly bag by the description document loaded in audit memory, business interface etc. that service execution program externally provides.
See Fig. 6-b, in one embodiment of the invention, distribution service also comprises distribution service component warehouse 620; Wherein, distribution service component warehouse 620 stores the multiple serviced component bags relevant to the multiple service nodes in distribution service; One or more serviced component bags that this service node needs are stored in the local disk Component Gallery of service node 610.
In one embodiment of the invention, the mode that the serviced component bag that service node 610 obtains first version carries out installing can be diversified, such as, suppose that service node 610 and distribution service component warehouse 620 are being connected by communication mode, service node 610 also with internet works software center being connected (wherein by communication mode, such as service node 610 and internet works software center can direct communications, or, service node 610 communicates by distribution service component warehouse 620 with internet works software center, or, service node 610 and internet works software center are by other one or more devices communicating), service node 610 first can search the serviced component bag of first version in local disk Component Gallery (wherein, can comprise multiple serviced component bags etc. relevant to service node 610 in local disk Component Gallery), if found the serviced component bag of first version in local disk Component Gallery, then the serviced component bag that service node 610 obtains the first version found from this local disk Component Gallery has been installed, if do not search the serviced component bag of first version in this local disk Component Gallery, then service node 610 can at distribution service component warehouse 620 (wherein, such as can comprise the multiple serviced component bags etc. relevant to each service node 610 in this distribution service in distribution service component warehouse 620) in search first version serviced component bag (or, service node 610 now also can search the serviced component bag of first version less than distribution service component warehouse 620, but request distribution service component warehouse 620 issues the serviced component bag of first version, if the current serviced component bag that there is first version of distribution service component warehouse 620, then distribution service component warehouse 620 can by the serviced component bag of first version, be issued to the local disk Component Gallery of one or more service nodes of distribution service, if the current serviced component bag that there is not first version of distribution service component warehouse 620, then distribution service component warehouse 620 first can obtain the serviced component bag of first version from internet works software center, and after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is issued to the local disk Component Gallery of other service nodes 610 one or more of distribution service, the serviced component bag that then this service node 610 obtains first version again from its local disk Component Gallery is installed), if found the serviced component bag of first version in this distribution service component warehouse 620, the serviced component bag that then service node 610 can obtain the first version found from distribution service component warehouse 620 carries out installing (wherein, the serviced component bag of the first version got from distribution service component warehouse 620 also can be write its local disk Component Gallery by service node 610), if service node 610 does not find the serviced component bag of first version in distribution service component warehouse 620, then service node 610 can from internet works software center (wherein, internet works software center such as can comprise the serviced component bag of current announced various conventional version) the serviced component bag that obtains first version carries out installing that (or service node 610 now also can download the serviced component bag of first version in distribution of notifications formula service system components warehouse 620, then distribution service component warehouse 620 obtains the serviced component bag of first version from internet works software center, distribution service component warehouse 620 is after the serviced component bag getting first version from internet works software center, the serviced component bag of first version is handed down to the local disk Component Gallery of one or more service nodes 610 of this distribution service, after this, service node 610 is installed from local disk Component Gallery or from the serviced component bag that distribution service component warehouse 620 obtains first version again).Be appreciated that, if based on local disk Component Gallery, distribution service component warehouse 620 (wherein, the configurable multiple internet works software centre mirror picture of distribution service component warehouse 620), the multistage deployment way in internet works software center, service node 610 can from distribution service component warehouse 620 or internet works software center download service assembly bag to local disk storehouse, and distribution service component warehouse 620 from internet works software center download service assembly bag, can be conducive to the management of simplification serviced component bag and improves anti-disaster ability like this.
Be understandable that, the service node 610 of the present embodiment can as the service node 500 in above-described embodiment, or can as the service node in above-mentioned embodiment of the method, the above-mentioned function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process see the associated description in said method embodiment, can not repeat them here.
Also provide a kind of transaction processing system see Fig. 7-a, the embodiment of the present invention, can comprise:
Client 720 and at least one service node 710 (being described to comprise 1 service node 710 in Fig. 7);
Wherein, client 720, for sending the service request carrying serviced component bag version information;
Service node 710, for receiving the service request from client 720; If determine the first version that this service request is corresponding serviced component bag this service node 710 is current does not also install, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating.
See Fig. 7-b, in some embodiments of the invention, transaction processing system also comprises distribution service component warehouse 730; Wherein, distribution service component warehouse stores the multiple serviced component bags relevant to each service node in distribution service.
In some embodiments of the invention, service node 710 can be specifically for, receives the service request from client 720, if determine the first version that this service request is corresponding serviced component bag this service node 710 is current does not also install, then in the local disk Component Gallery of service node 710, search the serviced component bag of first version, if found the serviced component bag of first version in local disk Component Gallery, then the serviced component bag obtaining the first version found from this local disk Component Gallery has been installed, if do not search the serviced component bag of first version in local disk Component Gallery, then in distribution service component warehouse 730, search the serviced component bag of first version, if found the serviced component bag of first version in distribution service component warehouse 730, then the serviced component bag obtaining the first version found from distribution service component warehouse 730 has been installed, if do not find the serviced component bag of first version in distribution service component warehouse 730, the serviced component bag then obtaining first version from internet works software center is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating, internet works software center and service node 710 communicate to connect, and comprise the serviced component bag of current announced various version.
In some embodiments of the invention, can comprise in serviced component bag (as the serviced component bag of first version and the serviced component bag of the second edition): (service execution program such as can comprise executable script to service execution program, library file, binary file etc., by operation service executive program to provide corresponding with service) and description document, wherein, this description document such as can be used for the version describing this serviced component bag, the business interface that service execution program externally provides, description document in certain serviced component bag also can be used for other relevant information describing this serviced component bag.After serviced component bag is installed to service node 710, description document in this serviced component bag can be loaded into internal memory by service node 710, so as to know the version of corresponding with service assembly bag by the description document loaded in audit memory, business interface etc. that service execution program externally provides.
In some embodiments of the invention, service node 710 determines that the whether mounted mode of serviced component bag of the first version that service request is corresponding can be diversified, such as, suppose that the description document in mounted serviced component bag is loaded in internal memory by service node 710, whether then service node 710 can be searched in internal memory has the version describing serviced component bag to be the description document of first version, if have (namely, the version of the serviced component bag having description document to describe in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is installed, if do not have (version of serviced component bag namely described without any description document in internal memory is first version), then represent that the serviced component bag of the first version that service request is corresponding is not installed.Certainly, service node 710 also records the version information of mounted serviced component bag by alternate manner, the version information of the assembly of the build-in services bag recorded by inquiring service node 710, determines whether the serviced component bag of the first version that service request is corresponding is installed.
In addition, in one embodiment of the invention, if service node 710 determines that the serviced component bag of the first version that service request is corresponding is installed, then service node 710 also can be used for, utilize the business interface described by description document in the serviced component bag of first version, the service execution program in the serviced component bag of first version called, to provide corresponding business service, obtains corresponding service result data.Be appreciated that, the serviced component bag of the different editions of service of the same type is provided to have different business interfaces, service node 710 can obtain the business interface of respective version serviced component bag according to the description document provided in the serviced component of the different editions of service of the same type, and then utilize this business interface to call service execution program in the serviced component bag of respective version to provide corresponding business service, obtain corresponding service result data, the service request distribution which achieves based on version controls.
In some embodiments of the invention, asynchronous response mode can be adopted to carry out request response, such as after receiving the service request from client 720, service node 710 also can be used for, request response corresponding to service request is sent (wherein to this client 720, service node 710 is from receiving service request, can be very short to the time interval sent to client 720 between the response of this service request corresponding requests, such as be no more than 0.1 second, 0.5 second, 1 second or other duration), the service execution program in the serviced component bag of first version called is to provide corresponding business service, after obtaining corresponding service result data, to this client 720 Push Service result data, or, after receiving the service request from client 720, service node 710 first can send the request response carrying service response mark corresponding to this service request to this client 720, and (service node 710 is from receiving service request, to send to client 720 this service request corresponding carry service response mark request response between the time interval can be very short, as being no more than 0.1 second, 0.5 second, 1 second or other duration), if receive the result queries request sent according to described request response from client 720 (to carry the result queries request of service response mark, wherein, client 720 can utilize this service response to identify to service node 710 poll services result data), after service execution program then in the serviced component bag calling first version obtains service result data based on this service request, service node 710 can send this service result data to this client 720.Certainly, service node 710 also can adopt alternate manner to client 720 back services result data, if without the need to client 720 back services result data, then can omit above-mentioned steps.
Be understandable that, the service node 710 of the present embodiment can as the service node 500 in above-described embodiment, or can as the service node in above-mentioned embodiment of the method, the above-mentioned function of its each functional module can according to the method specific implementation in said method embodiment, its specific implementation process see the associated description in said method embodiment, can not repeat them here.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
To sum up, after in the embodiment of the present invention, service node receives the service request from client, if determine, the serviced component bag of certain version that this service request is corresponding is current does not also install, the serviced component bag then obtaining this certain version is installed, and keep based on the capable service of the serviced component contracted affreightment of current other version mounted, wherein, the service of the serviced component bag of certain version above-mentioned and the corresponding identical type of the serviced component bag of other version above-mentioned, and in service node, provide the serviced component bag of each version of certain type of service can independent operating, based on above-mentioned mechanism, because service node provides in the process of serviced component bag of certain type of service in upgrading, current mounted one or more serviced component bags also on-line operation that same type of service is provided in service node, so just be conducive to the service realizing also as far as possible not interrupting respective type when service node upgrade service assembly bag.
Further, by the serviced component bag on-line operation simultaneously of multiple version, solve service node software and do not interrupt upgrading and characteristic increase; By carrying service type information, version information etc. to distinguish the serviced component bag of different COS and version in service request; By asynchronous controlling request feedback and the deployment of multistage component warehouse, be conducive to the reliability ensureing the capable and online characteristic increase of multi version serviced component contracted affreightment; By the deployment of local disk Component Gallery to distribution service component warehouse, the serviced component being conducive to simplifying distributed system assures reason.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, and storage medium such as can comprise: read-only memory, random asccess memory, disk or CD etc.
The method for processing business provided the embodiment of the present invention above and relevant apparatus and related system are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.

Claims (9)

1. a method for processing business, is characterized in that, comprising:
Service node receives the service request carrying serviced component bag version information that client sends, and described service request carries the version information of serviced component bag;
Also do not install if service node is current described in the serviced component bag that described service node determines the first version that described service request is corresponding, the serviced component bag then obtaining described first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of described first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of described first version and the second edition can independent operating;
Wherein, the serviced component bag of described first version and the serviced component bag of the described second edition are the serviced component bags of different editions; Service execution program and description document is comprised in described serviced component bag, wherein, the business interface that described description document externally provides for the version and described service execution program describing this serviced component bag, provides the serviced component bag of the different editions of service of the same type to have different business interfaces;
Described method also comprises: if described service node determines that the serviced component bag of the first version that described service request is corresponding is installed, then utilize the business interface described by the description document in the serviced component bag of described first version, the service execution program in the serviced component bag of described first version called, to provide corresponding business service, obtains corresponding service result data.
2. method according to claim 1, is characterized in that,
The serviced component bag of described acquisition first version is installed, and comprising:
The serviced component bag of described first version is searched in the local disk Component Gallery of described service node;
If found the serviced component bag of described first version in described local disk Component Gallery, then the serviced component bag obtaining the described first version found from described local disk Component Gallery has been installed; If do not search the serviced component bag of described first version in described local disk Component Gallery, then in the distribution service component warehouse communicated to connect with described service node, search the serviced component bag of described first version; If found the serviced component bag of described first version in described distribution service component warehouse, then the serviced component bag obtaining the described first version found from described distribution service component warehouse has been installed; If do not find the serviced component bag of described first version in described distribution service component warehouse, the serviced component bag then obtaining described first version from internet works software center is installed, described internet works software center and described service node communicate to connect, and comprise the serviced component bag of current announced various version.
3. method according to claim 1, is characterized in that,
Described method also comprises: the service execution program in the serviced component bag calling described first version to provide corresponding business service, after obtaining corresponding service result data, to service result data described in described client push.
4. method according to claim 1, is characterized in that,
Described method also comprises: described service node sends corresponding with described service request to described client and carries the request that service response identifies and respond; Receive the result queries request sent according to described request response from described client, service execution program in the serviced component bag calling described first version is to provide corresponding business service, after obtaining corresponding service result data, send described service result data to described client.
5. a service node, is characterized in that, comprising:
Receiver module, for receiving the service request carrying serviced component bag version information that client sends, described service request carries the version information of serviced component bag;
Processing module, when also not installing for described in the serviced component bag determining the first version that service request that described receiver module receives is corresponding, service node is current, the serviced component bag obtaining described first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, the service of the serviced component bag of described first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of described first version and the second edition can independent operating;
Wherein, the serviced component bag of described first version and the serviced component bag of the described second edition are the serviced component bags of different editions; Service execution program and description document is comprised in described serviced component bag, wherein, the business interface that described description document externally provides for the version and described service execution program describing this serviced component bag, provides the serviced component bag of the different editions of service of the same type to have different business interfaces;
Described processing module also for, the serviced component bag of the first version that the service request that described receiver module receives if determine is corresponding is installed, then utilize the business interface described by the description document in the serviced component bag of described first version, the service execution program in the serviced component bag of described first version called, to provide corresponding business service, obtains corresponding service result data.
6. service node according to claim 5, is characterized in that,
Described service node also comprises:
First respond module, for calling service execution program in the serviced component bag of described first version in described processing module to provide corresponding business service, after obtaining corresponding service result data, to service result data described in described client push.
7. service node according to claim 5, is characterized in that,
Described service node also comprises: the second respond module, for sending to described client corresponding with described service request and carrying the request that service response identifies and respond; Receive the result queries request sent according to described request response from described client, service execution program in the serviced component bag calling described first version is to provide corresponding business service, after obtaining corresponding service result data, send described service result data to described client.
8. a transaction processing system, is characterized in that, comprising:
Client, for sending the service request carrying serviced component bag version information, described service request carries the version information of serviced component bag;
At least one service node, for receiving the service request carrying serviced component bag version information that described client sends; Also do not install if service node is current described in the serviced component bag determining the first version that this service request is corresponding, the serviced component bag then obtaining first version is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, and the serviced component bag of the serviced component bag of first version and the second edition can independent operating;
Wherein, the serviced component bag of described first version and the serviced component bag of the described second edition are the serviced component bags of different editions; Service execution program and description document is comprised in described serviced component bag, wherein, the business interface that described description document externally provides for the version and described service execution program describing this serviced component bag, provides the serviced component bag of the different editions of service of the same type to have different business interfaces;
Described service node also for, the serviced component bag of the first version that the service request that described receiver module receives if determine is corresponding is installed, then utilize the business interface described by the description document in the serviced component bag of described first version, the service execution program in the serviced component bag of described first version called, to provide corresponding business service, obtains corresponding service result data.
9. transaction processing system according to claim 8, is characterized in that,
Described transaction processing system also comprises distribution service component warehouse;
Wherein, described distribution service component warehouse stores the multiple serviced component bags relevant to each service node in distribution service;
Described service node, specifically for receiving the service request carrying serviced component bag version information that described client sends, also do not install if service node is current described in the serviced component bag determining the first version that this service request is corresponding, then in the local disk Component Gallery of described service node, search the serviced component bag of described first version, if found the serviced component bag of described first version in described local disk Component Gallery, then the serviced component bag obtaining the described first version found from described local disk Component Gallery has been installed, if do not search the serviced component bag of described first version in described local disk Component Gallery, then in described distribution service component warehouse, search the serviced component bag of described first version, if found the serviced component bag of described first version in described distribution service component warehouse, then the serviced component bag obtaining the described first version found from described distribution service component warehouse has been installed, if do not find the serviced component bag of described first version in described distribution service component warehouse, the serviced component bag then obtaining described first version from internet works software center is installed, and keep based on the capable service of the serviced component contracted affreightment of the current mounted second edition, wherein, the service of the serviced component bag of first version and the corresponding identical type of the serviced component bag of the second edition, the serviced component bag of first version and the serviced component bag of the second edition can independent operatings, described internet works software center and described service node communicate to connect, and comprise the serviced component bag of current announced various version.
CN201210121208.XA 2012-04-23 2012-04-23 Method for processing business and relevant apparatus and related system Active CN102684913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210121208.XA CN102684913B (en) 2012-04-23 2012-04-23 Method for processing business and relevant apparatus and related system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210121208.XA CN102684913B (en) 2012-04-23 2012-04-23 Method for processing business and relevant apparatus and related system

Publications (2)

Publication Number Publication Date
CN102684913A CN102684913A (en) 2012-09-19
CN102684913B true CN102684913B (en) 2016-03-02

Family

ID=46816308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210121208.XA Active CN102684913B (en) 2012-04-23 2012-04-23 Method for processing business and relevant apparatus and related system

Country Status (1)

Country Link
CN (1) CN102684913B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278962A (en) * 2015-11-04 2016-01-27 北京星网锐捷网络技术有限公司 Applications, hot deployment method of database and device
CN105653328B (en) * 2015-12-29 2019-01-25 百度在线网络技术(北京)有限公司 The multi version program of big memory service and deposit method and apparatus
CN108063679B (en) * 2016-11-09 2020-05-15 中国移动通信有限公司研究院 Method and device for upgrading cloud management platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382886A (en) * 2007-07-30 2009-03-11 奥多比公司 Application tracking for application execution environment
CN102105863A (en) * 2008-06-24 2011-06-22 世8有限公司 Methods for mobile phone applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382886A (en) * 2007-07-30 2009-03-11 奥多比公司 Application tracking for application execution environment
CN102105863A (en) * 2008-06-24 2011-06-22 世8有限公司 Methods for mobile phone applications

Also Published As

Publication number Publication date
CN102684913A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
US8139509B2 (en) Installation and management of mobile device [{S]} configuration
US9009243B2 (en) Tracking usage of and sharing data between mobile device applications
US10595204B2 (en) Flexible remote server validation
US20160105371A1 (en) Service method for managing transaction using application properties and system therefor
US20070169073A1 (en) Update package generation and distribution network
US20110246978A1 (en) Application portability and transfer of device management for mobile devices
CN114189525B (en) Service request method and device and electronic equipment
CN112165507B (en) Method, device, equipment and medium for supporting multi-service architecture by single Web project
CN105307195A (en) Method and device for updating access point name (APN) parameter
CN108540509A (en) A kind of processing method of terminal browser, device and server, intelligent terminal
CN102684913B (en) Method for processing business and relevant apparatus and related system
CN114968406B (en) Plug-in management method and device, electronic equipment and storage medium
US20220300259A1 (en) Machine learning model representation and execution
CN114978936A (en) Method, system and storage medium for upgrading shared service platform
EP3136232A1 (en) Dynamic service extensibility
US20130151553A1 (en) Method and apparatus for processing a composite context event
KR101570619B1 (en) Method and service system for improving performance in instance hosting environment
US11093309B1 (en) Communication hub for information technology (IT) services
CN112035396B (en) Processor-implemented method, system, and storage medium for provisioning a set of solutions
CN110730197B (en) Service discovery method and system
KR101478570B1 (en) Method for installation of an application
US20120117574A1 (en) Method of Defining state transition in Software and Application Control Management Object
US8195781B2 (en) Network management with scalable trap definitions
CN115469833A (en) Method and device for implementing dynamic rule engine, electronic equipment and storage medium
CN114461424A (en) Inter-unit service discovery method, device and system under unitized deployment architecture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant