Summary of the invention
The purpose of this invention is to provide a kind of transaction processing system, unified, effective management is carried out in a plurality of application services, can make response fast and effectively a plurality of users' request.
For addressing the above problem, the invention provides a kind of transaction processing system, comprising: client, service assembly platform, data storage cell and a plurality of Application service element, wherein,
Described service assembly platform receives the transaction message of described client and sends call request to the application corresponding service unit;
Described Application service element receives described call request, obtains corresponding storage data and described call request is handled the generation deal with data from described data storage cell;
Described data storage cell provides corresponding storage data to described Application service element, and receives described deal with data so that described storage data are upgraded.
Optionally, described data storage cell comprises:
More the new data subelement is used to write down described storage data, and receives described deal with data so that described storage data are upgraded;
The data query subelement is used for the storage data of described more new data subelement are backed up, and the query requests that receives described Application service element provides corresponding storage data to it.
Optionally, described data query subelement obtained the storage data and it is backed up after the schedule time from described more new data word unit.
Optionally, described service assembly platform comprises configuration management element, service bus and regular unit, wherein,
Described configuration management element is used to obtain transaction message, and described transaction message is converted to request of access and offers described service bus;
Described regular unit is used to provide the processing rule of described request of access correspondence;
Described service bus receives described request of access, and sends call request according to its corresponding processing rule to the application corresponding service unit.
Optionally, described processing rule comprises the treatment scheme of a plurality of request types and each request type correspondence.
Optionally, described service bus comprises:
Request queue receives described request of access and it is ranked;
Requesting processing is obtained the request of access of predetermined quantity from the described request formation, and this request of access is sent to the flow processing unit of correspondence according to the request type of described request of access correspondence;
The flow processing unit receives the request of access that the described request processing unit sends, and sends call request according to its corresponding treatment scheme to the application corresponding service unit.
Optionally, the described request formation is ranked to it according to the priority of described request of access or the time sequencing of reception.
Optionally, store the corresponding relation of request of access and transaction message in the described configuration management element, and transaction message is converted to request of access based on described corresponding relation.
Optionally, described transaction message comprises at least one request of access, and described configuration management element is converted at least one request of access with described transaction message.
Optionally, described service assembly platform also comprises the Service Management unit, is used for described Application service element is managed.
Optionally, described described Application service element is managed comprises: the registration of Application service element, monitoring, security configuration, subscription/publication and version management.
Optionally, described service assembly platform also comprises the service end interface unit, is used for the protocol conversion between described Application service element and the service bus.
Optionally, described service assembly platform also comprises the user side interface unit, is used to provide interface standard, and receives the transaction message of described client and transmit it to described configuration management element based on described interface standard.
Compared with prior art, the present invention has the following advantages:
In the technique scheme, a plurality of application services are incorporated in the same transaction processing system, a plurality of Application service elements are carried out unified management, can make fast and effectively a plurality of users' transaction message and handling.
In addition, two data storing sub-units of the technical program employing are upgraded respectively the storage data and are inquired about, and have guaranteed the real-time and the validity of data.Further, the transaction processing system of the technical program can be converted to user's transaction message the request of access of standard, thereby the COS that makes whole transaction processing system provide is expanded.
Further, the transaction processing system of the technical program adopts corresponding treatment scheme to send call request to relevant Application service element according to the request type of request of access, has realized the unified management to a plurality of Application service elements.
Further, service bus in the technical program is ranked to each request of access, and the same time is carried out parallel processing to the request of access of predetermined quantity, has avoided a large amount of concurrent request of access to pour in transaction processing system simultaneously, causes system loading too high and paralyse.
Further, the technical program adopts the Service Management unit that a plurality of Application service elements are managed, and has realized functions such as Version Control, security configuration, subscription/publication.
Further, carry out protocol conversion by the service end interface unit in the transaction processing system of the technical program, can support a plurality of different Application service elements.
In addition, the user interface section of the technical program provides interface standard, and each client has realized the unified management of client based on described interface standard issue transaction message.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can more be become apparent, the specific embodiment of the present invention is described in detail below in conjunction with accompanying drawing.
Set forth detail in the following description so that fully understand the present invention.But the present invention can be different from alternate manner described here and implements with multiple, and those skilled in the art can do similar popularization under the situation of intension of the present invention.Therefore the present invention is not subjected to the restriction of following public embodiment.
In the transaction processing system of prior art, it between user and the application service corresponded manner of multi-to-multi, increase along with number of users and application service kind, make the load of whole transaction processing system be the growth of geometric series level, be difficult to maintenance and management, and can't guarantee user's request is responded fast and effectively.
The technical program is used and is comprised that the service assembly platform of service bus carries out unified scheduling and management to user's request with relevant Application service element.User's various transaction message are converted into normalized request of access, use corresponding treatment scheme to handle, thereby can use a plurality of Application service elements that user's transaction message is carried out standardized processing, realize the unified integration and the management of a plurality of application services.
Fig. 1 is the structural representation of the transaction processing system of the embodiment of the invention.
As shown in Figure 1, the transaction processing system of present embodiment comprises: client, service assembly platform 11, Application service element and data storage cell 13.
Wherein, described client is a plurality of in a tool embodiment, is respectively client 1, client 2 to client n, and the user of transaction processing system sends transaction message by described a plurality of clients.Described user can be the buyer, also can be the seller; Described transaction message can be the contract transaction, also can be spot transaction.
Described Application service element is a plurality of in one embodiment, is respectively Application service element 1, Application service element 2 to Application service element n, and the transaction message that described client is sent is finally carried out and handled by described Application service element.Described each Application service element can be provided by the different ISP of many families, for example in the transaction of large means of production, the concrete processing that relates to can be provided by bank, logistics, storage etc. respectively with the relevant application program of operation, and its application program that provides is equivalent to above-mentioned each Application service element.Described Application service element carries out corresponding processing procedure according to after the call request that receives, in processing procedure, from described data storage cell 13, obtain relevant storage data, as the relevant credit of bank account, integration and the relevant inventories etc. of storing in a warehouse, thereby described call request is handled, in processing procedure, produce corresponding deal with data, as the change of the relevant credit of bank account, integration and the relevant inventories of storing in a warehouse etc.
Described data storage cell 13 provides corresponding storage data to described Application service element, and receives the deal with data that described Application service element produces and upgrade with the storage data to its inside.Data storage cell described in the present embodiment 13 comprises more new data subelement 131 and data query subelement 132, and described more new data subelement 131 is used to write down described storage data, and receives described deal with data so that described storage data are upgraded; Described data query subelement 132 is used for the storage data of described more new data subelement 131 are backed up, and the query requests that receives described Application service element provides corresponding storage data to it.Described data query subelement 132 obtained the storage data and it is backed up after the schedule time from described more new data subelement 131.
Described more new data subelement 131 and data query subelement 132 can use distributed Database Systems to realize.In one embodiment, the Application service element relevant with bank is example, it is when handling the transaction message of client 1, credit to user's first is changed, change accordingly by real-time being recorded in the described more new data subelement 131, if client 2 is also sent a transaction message simultaneously, credit to described user's first is inquired about, then Xiang Guan data query obtains from described data query word cell 132, after a schedule time, storage data in 132 pairs of described more new data subelements 131 of described data query word cell back up, make the storage data of its inside be the real time data after upgrading, owing to adopt separate more new data subelement 131 and data query word cell 132 to carry out the renewal and the inquiry of data respectively in the technical program, when the two clashes, the renewal of data and inquiry can not influence each other, and have guaranteed the real-time and the validity of storage data wherein.
Described service assembly platform 11 receives the transaction message of described client and sends call request to the application corresponding service unit, specifically comprises: user side interface unit 111, configuration management element 112, regular unit 113, service bus 114, Service Management unit 115 and service end interface unit 116.
Described user side interface unit 111 is used to provide interface standard, and receives the transaction message of described client and transmit it to described configuration management element 112 based on described interface standard.In one embodiment, as long as user side adopts described interface standard to send transaction message, then can insert described service assembly platform 11, therefore, described user side interface unit 111 can be realized the access of the client of variety classes, different editions, for example support the access of computer client and the access of cell-phone customer terminal simultaneously, also can support in addition, satisfy user's needs the client of a plurality of different editions.
Described configuration management element 112 is used to obtain described transaction message, described transaction message is converted to request of access and offers described service bus 114.In one embodiment, described transaction message can be contract transaction, spot transaction or the combination of the two, wherein contract transaction and spot transaction are as independent request of access, respectively to using normalized processing rule, the combination of contract transaction and spot transaction then be converted to by fractionation and with the combination of transaction and the corresponding request of access of spot transaction, thereby realized handling new transaction message by the combination that has request of access now.
Described regular unit 113 is used to provide the processing rule of described request of access correspondence, can comprise the treatment scheme of a plurality of request types and each request type correspondence.In one embodiment, the described request type comprises " contract " and " from stock ", and wherein the treatment scheme that stock is corresponding comprises the completing a business transaction and the renewal of bank, storage data etc. of inquiry, stock of the checking of storage spot message, bank credit data; And the treatment scheme of contract correspondence comprises examining of the inquiry change of bank credit data, relevant closing unit etc.
Described service bus 114 receives the request of access that described configuration management element 112 is sent, and the processing rule that provides according to described regular unit 113, and promptly request type and corresponding treatment scheme are sent call request to the application corresponding service unit.For example according to relevant request of access, the Application service element that calling ISPs such as bank, storage respectively provides is handled.
Described Service Management unit 115 is used for described Application service element is managed, comprise: the registration of Application service element, the Application service element that newly is integrated into the transaction processing system of present embodiment need be finished the authority that registration process could be called and obtain the described data storage cell 13 of visit, handles to receive the described call request line correlation of going forward side by side; The status information of each Application service element is monitored in the monitoring of Application service element, as invoked number of times, and current version information etc.; The security configuration of Application service element, security to each Application service element is controlled, as the transaction message of sending for computer client, its security is lower, may be for usurping, then relevant with bank credit Application service element is not accepted the change of credit data, only accept inquiry, and the transaction message of sending for cell-phone customer terminal, itself and user's degree of association are higher, corresponding security is higher, then both can inquire about also and can change; The subscription/publication of Application service element, based on the subscription of client for different application services, adopt the application corresponding service unit to handle, and result is distributed to this client, for example client 1 has been subscribed to every month number of the account credit inquiry, and then the Application service element that provides of bank then was distributed to client 1 with relevant credit information in every month; The version management of Application service element, detect the version of each Application service element of client call, for example a certain Application service element has two versions, initial version V1 and renewal version V2, if in a certain intended duration (in month), call request at this Application service element all is based on renewal version V2's, then with initial version V1 115 cancellations from described Service Management unit, make follow-up call request only at renewal version V2, thereby reduced the complexity of the invoked procedure of service bus 114.
Described service end interface unit 116 is used for the protocol conversion between described Application service element and the service bus 114, and the interface protocol of using service unit and service bus is unified.In one embodiment, implementation, the interface protocol of the Application service element that different ISPs such as bank, storage etc. provide are not quite similar, described service end interface unit 116 be used for dissimilar as the interface message based on the Application service element of HTTP(Hypertext Transport Protocol) or Simple Object Access Protocol (SOAP) be converted to as described in the uniform protocol of service bus 114 compatibilities, be convenient to the interpolation of the integrated of system and the new Application service element that different service provider provides.The interface unit of service end described in the present embodiment 116 can be supported common various realization agreements, thereby has improved applicability.
Fig. 2 shows the structural representation of the service bus 114 shown in Fig. 1.
As shown in Figure 2, the service bus of present embodiment comprises: request queue 114a receives request of access that described configuration management element 112 produces and it is ranked; Requesting processing 114b obtains the request of access of predetermined quantity from the described request formation, and this request of access is sent to the flow processing unit 114c of correspondence according to the request type of described request of access correspondence; Flow processing unit 114c receives the request of access that described request processing unit 114b sends, and sends call request according to its corresponding treatment scheme to the application corresponding service unit.
In one embodiment, 114a is after receiving request of access in the described request formation, can carry out buffer memory and ordering to it, different request of access is corresponding to different priority, because the Request Processing ability of service bus 114 is limited, therefore, after setting priority, the request of access that priority is high preferentially offers requesting processing 114b, and guaranteeing it by priority processing, and the lower request of access of priority can be postponed handling.In addition, described queuing process can also be carried out according to the time sequencing that request of access receives, and the request of access that receives earlier preferentially provides to requesting processing 114b.
The processing power of described service bus 114 is mainly determined by requesting processing 114b.Described request processing unit 114b in one embodiment can be for a plurality of, and to requesting processing n, at synchronization, each requesting processing is only handled a request of access as requesting processing 1, requesting processing 2.Therefore, the manageable request of access quantity of requesting processing 114b is no more than the concrete quantity of requesting processing at most.When one or more requesting processing are in idle condition, described request processing unit 114b is with regard to request of access formation 114a, check whether to keep among the described request formation 114a untreated request of access is arranged: if exist request of access still to be untreated, described request is handled subelement 114b and is called the highest request of access of priority, and described request of access is sent to corresponding flow processing unit 114c.Described request processing unit 114b can limit the quantity of the request of access handled simultaneously, has avoided a large amount of concurrent request of access to pour in transaction processing system simultaneously, causes system loading too high and paralyse.
For described flow processing unit 114c, wherein can include a plurality of flow processing unit such as flow processing unit 1, flow processing unit 2 to flow processing unit n.114b is similar with requesting processing, each flow processing unit synchronization is also only handled a request of access, but, described flow processing unit 114c is when handling request of access, the treatment scheme corresponding with described request of access that need provide based on described regular unit progressively handled request of access.Different step for treatment scheme, described flow processing unit 114c calls different Application service elements respectively, the for example Application service element that provides corresponding to bank of flow processing unit 1 and Application service element that flow processing unit 2 provides corresponding to storage, promptly respectively the Application service element of correspondence is sent call request according to the different phase that is in request of access, and handle this request of access by described Application service element, after the Application service element of a certain treatment step is handled, the result of request of access returns to flow processing unit 114c again, and unit 114c sends call request to next Application service element by described flow processing.After a plurality of treatment steps that comprise in the treatment scheme, described request of access is finished corresponding processing, and produces deal with data, and afterwards, described electronic transaction service platform is stored in described data storage cell with deal with data.As a preferred embodiment, the request of access that described flow processing unit 114c receives is through encryption, therefore, described flow processing unit 114c also is used for the request of access after encrypting is decrypted, and handles according to corresponding treatment scheme more afterwards.
Being example with the transaction of the large means of production below is elaborated to the course of work of the transaction processing system of present embodiment.With the steel trading is example, the transaction message that client is sent: the transaction message (corresponding to the dealing of the steel of reality, relevant outbound, warehouse-in and bank settlement etc.) that comprises steel stocks; The transaction message of contract (corresponding to the purpose of buying, sale).
Fig. 3 shows the schematic flow sheet of the contract transaction of present embodiment, in conjunction with Fig. 1, it sends the transaction message of contract transaction by client corresponding to certain user (buyer or the seller), its transaction message is converted to request of access (still being the contract transaction in the present embodiment) by described configuration management element 112, transfer to described service bus 114 afterwards, described service bus 114 sorts to it and handles, concrete processing procedure is then determined according to the processing rule of storage in the described regular unit 113, comprise that specifically its request type is " contract ", corresponding treatment scheme as shown in Figure 3.The relevant treatment flow process comprises: step S101, the standard contract issue, this step is handled the back via described service bus 114 and is sent call request to application corresponding service unit (the contract Application service element that provides as transaction processing system inside) and issue, and comprises standard element such as intensive good, exchange hour, loco, transaction value in the described standard contract; Step S102, the contract price inspection is passed through, and this step is also finished by described contract Application service element, if pass through then execution in step S120, can not issue contract, as passing through then execution in step S103, checks whether issue user's credit is enough; Step S103 relates to the inspection of credit, and the flow processing unit in the described service bus 114 calls the credit Application service element that bank provides accordingly, and issue user's credit is checked; If credit is enough, then execution in step S104 carries out standard contract credit and takies, and the credit Application service element that similar 114 pairs of banks of service bus provide calls, and a part of credit of issuing the user is taken; Step S105, standard contract generate successfully, and this step is finished by described contract Application service element; Step S106, the association of application closing unit, and step S107, whether the association of inspection application closing unit is examined and is passed through, above-mentioned two steps need be carried out association to the concrete closing unit of contract transaction, which, also finish by described contract Application service element as specifically being responsible for this contract is settled accounts by unit; If audit is not passed through, execution in step S130 then, the related failure of contract; Pass through as audit, then execution in step S108 produces related contract credit and takies, step S109, release standard contract credit takies, and above-mentioned 2 steps relate to user's credit, is finished by the credit Application service element that the flow processing unit in the described service bus 114 calls bank accordingly and provides; Execution in step S110 afterwards, related contract generates successfully, is finished by described contract Application service element.
Need to prove that the flow process of above-mentioned contract transaction is according to the processing rule in the described regular unit 113, and carries out uniform dispatching by described service bus 114, call that the application corresponding service unit finishes.Processing rule in the described regular unit 113 can be configured by the supvr of transaction processing system and upgrade on the one hand, effectively handles with the transaction message to the user, and can according to the actual requirements corresponding processing rule be changed and optimize; On the other hand, owing to have a large number of users to send various transaction message simultaneously in actual the use, described service bus 114 can be dispatched and asynchronous the processing a large amount of request of access, realize of the conversion of synchronous request of access, improved the treatment effeciency and the utilization factor of system to asynchronous processing procedure.
In addition, in above-mentioned contract transaction processing process, the inquiry of the storage data of the attribute data of the contract that relates to and relevant bank credit and more new capital finish by described data storage cell 13.
Fig. 4 shows the schematic flow sheet of the spot transaction of another embodiment, in conjunction with Fig. 1, comprising: step S201, seller user is sent the transaction message of the transaction of spoting sale by described client, and buyer user responds for this message by described client, wishes to buy in; Step S202 checks whether buyer's user credit is enough, and this step is finished by the credit Application service element that the flow processing unit in the described service bus 114 calls bank accordingly and provides; As enough, execution in step S203 then, spot transaction is initiated, step S204, the credit that produces buyer user takies, and this step is still finished by the credit Application service element that described bank provides; Execution in step S205 afterwards, the user of both parties confirms transaction, confirm that by the inner integrated stock of described transaction processing system Application service element finishes, specifically can confirm that by described stock Application service element is sent to separately the receipt of client and determines by both parties; Step S206 discharges the credit of buying in the user and takies, and the credit Application service element that is provided by described bank after the affirmation of obtaining both parties is finished; Execution in step S207 afterwards, the spot transaction success produces integration, provide by bank or the inner integrated integration Application service element of transaction processing system finish.Similarly, the deal with data of the storage data of the required inquiry of above steps and generation is finished by described data storage cell 13.
The transaction message of above-mentioned two embodiment is respectively contract transaction and spot transaction, in actual applications, can be complicated transaction message, as the combination of contract transaction with spot transaction, the request of access that is converted into transaction of relatively independent contract and spot transaction by described configuration management element is handled afterwards, thereby has realized utilizing the combination of existing processing rule to realize response to new transaction message.
Though the present invention with preferred embodiment openly as above; but it is not to be used for limiting the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can utilize the method and the technology contents of above-mentioned announcement that technical solution of the present invention is made possible change and modification; therefore; every content that does not break away from technical solution of the present invention; to any simple modification, equivalent variations and modification that above embodiment did, all belong to the protection domain of technical solution of the present invention according to technical spirit of the present invention.