Embodiment
With reference to figure 1, be the system schematic of the data handling system of embodiment of the present invention.
Described data handling system comprises server 102 and database 103.Described server 102 is configured to carry out alternately with subscriber equipment 101, thereby can provide various types of services for the user.
Wherein, can connect by diverse network between subscriber equipment 101 and the server 102, realize data communication.Described network can adopt existing diverse network technology to be implemented, and this does not give unnecessary details.During concrete enforcement, can adopt B/S (Browse/Server) or C/S (Client/Server) framework between described subscriber equipment 101 and the server 102.
Subscriber equipment 101 is used to realize receive mutual with the user user's operational order and present the result to the user; Realize with server 102 between communicate by letter, send request to server 102, the data that processing receives from server 102.
In the specific implementation, subscriber equipment 101 can be the electronic equipment that possesses with user's interactive function, data processing and communication function, for example PC terminal and portable terminal etc.
Described database 103 provides subscriber identity information and service desired data for server 102, realizes data processing with auxiliary described server 102.Database 103 can be accepted the operations such as inquiry, deletion, interpolation, statistics and backup of server 102.The operator that described database 103 can be a server 102 is owned, can be deployed in this locality of server 102, also can be deployed in far-end, and can realize mutual between the server 102 by network.
Server 102 realizations are mutual with subscriber equipment 101, are responsible for receiving the request that subscriber equipment 101 sends; Obtain related data according to the correlation parameter in the described request from database 103, handle aforementioned request; As required result is fed back to subscriber equipment 101 and/or new database 103 more.
Particularly, described server 102 comprises pretreatment unit 1023 and processing unit 1024.Wherein, described pretreatment unit 1023 is used for the concurrent data processing request from a plurality of subscriber equipmenies is carried out pre-service; The data processing request that described processing unit 1024 is used for passing through according to pre-service is obtained the service desired data from database, generates the result corresponding with described data processing request.
Particularly, described pre-service can be based on default processing quantity, allows to pass through in the data processing request of this predetermined number scope, enters follow-up processing, refuses other data processing request.
Particularly, described pre-service also can be the data processing request in the buffer memory predetermined number scope, refuses other data processing request; According to key messages such as COS, conditions of service and/or user characteristicses data in buffer is handled request and comprehensively judge, determine to enter the data processing request of subsequent treatment, refuse other data processing request.Therefore, unaccepted data processing request comprises that not entering data in buffer handles request, also comprises entering unaccepted data processing request behind the buffer memory.
With reference to figure 3, in another embodiment, described server 102 comprises processing unit 1021 and data buffer storage unit 1022.Wherein, described data buffer storage unit 1022 is used for the required key message of data cached processing; Described processing unit 1021 is used for carrying out pre-service according to data processing request and the required key message of described data processing from subscriber equipment 101; For the data processing request that pre-service is passed through, from database, obtain the service desired data, generate the result corresponding with described data processing request.
Particularly, described key message can be the user's of the data processing request correspondence that sends of COS, conditions of service, subscriber equipment a user characteristics etc.
Particularly, described pre-service can be the data processing request in the buffer memory predetermined number scope, refuses other data processing request; According to COS, conditions of service, user characteristics data in buffer is handled request and comprehensively judge, determine to enter the data processing request of subsequent treatment, refuse other data processing request.Therefore, unaccepted data processing request comprises that not entering data in buffer handles request, also comprises entering unaccepted data processing request behind the buffer memory.
In one embodiment of the present of invention, described data handling system is a networked shopping system.Under this kind situation, server 102 is after the concurrent commercial articles ordering request that receives from a plurality of subscriber equipmenies 101, and the application characteristic of shopping Network Based carries out pre-service and response to the commercial articles ordering request; From database 103, obtain corresponding user and commodity data according to the commercial articles ordering request that pre-service is passed through,, subsequently the result is returned to subscriber equipment 101 based on the described commercial articles ordering request of the data processing of obtaining.
Wherein, the described pre-service of present embodiment is meant: server 102 is according to the feature of shopping at network, the required critical data of analyzing and processing commercial articles ordering, with the metadata cache of key in main memory; After receiving the commercial articles ordering request of subscriber equipment 101 transmissions, directly carry out pre-service earlier, fast response according to the critical data in the main memory; The commercial articles ordering request that pre-service is passed through is handled on data integrity ground in the binding data storehouse 103 again.
Wherein, but in the database 103 data of storage comprise subscriber identity information, user's order form information, Business Information with and merchandising information etc.
Wherein, but subscriber identity information, Business Information and merchandising information can be to come from the information that user (or businessman) provides, or the information of operating personnel's typing, or other equipment or the system transmissions information of coming etc., can handle accordingly through server, this does not give unnecessary details.
User's order form information is handled the back by described data handling system and is generated.On specific implementation, the information of described user's order form can be represented with a record, including but not limited to information such as user account, order goods sign, order goods quantity, order goods unit price, order date, order time and subscription process times.Usually, corresponding record of single order goods.A user can order multiple commodity, record of every kind of corresponding respectively order of goods order.A user also can repeatedly order a kind of commodity, each record of correspondence of ordering.
In the present embodiment, the course of work of aforementioned data disposal system generally can be: the subscriber equipment 101 of user's operation sends the commercial articles ordering request to server 102; Server 102 is after the concurrent commercial articles ordering request that receives from a plurality of subscriber equipmenies 101, and the application characteristic of shopping Network Based carries out pre-service and response to the commercial articles ordering request; Obtain corresponding user and commodity data according to the commercial articles ordering request that pre-service is passed through from database 103, the commercial articles ordering request that described pre-service is passed through based on the data processing of obtaining returns to the result subscriber equipment 101 subsequently.
With reference to figure 4, a kind of embodiment of the concurrent control preprocess method of described data handling system comprises:
Step S11, server receive the concurrent data processing request from a plurality of subscriber equipmenies, carry out pre-service;
Wherein, described pre-service can be the type according to the required key message of data processing, extracts the information of respective type in the data processing request, determines to allow the data processing request of passing through according to the information that extracts and the required key message of data processing.
Particularly, described key message can be the user's of the data processing request correspondence that sends of COS, conditions of service, subscriber equipment a user characteristics etc.
For example, a kind of processing mode is, content in the data processing request and the conditions of service in the key message are compared, and the pre-service result of former data processing request being positioned at the conditions of service scope for passing through, is refused other data processing request.
In addition, the processing that is set forth in also can be based on default processing quantity, allow to pass through in the data processing request of this predetermined number scope, enter follow-up processing, refuse other data processing request.
Step S12 for the data processing request that pre-service is passed through, obtains corresponding service desired data from database;
Step S13, based on described service desired data, the request of data that server passes through pre-service is handled, and generates corresponding result;
Step S14 is according to described result new database more.
Step S15 feeds back to subscriber equipment with described result.
Among a kind of embodiment, described data handling system is an internet trading system.With reference to figure 5, in this embodiment, concurrent control preprocess method comprises:
Step S101, subscriber equipment sends user's logging request to server.
Carry necessary username and password information in the described logging request.
Step S102, the username and password coupling in the logging request that server lookup database, the information whether record arranged and the subscriber equipment that receives send; If the record of coupling is arranged, authentication success, otherwise authentication failure.
If be proved to be successful, but the merchandising information of server in can Query Database, and send to subscriber equipment.
Step S103, server sends the authentication result to subscriber equipment, and buffer memory checking result and identity information.
After subscriber equipment is received the checking result, judge whether authentication is successful.If authentication is unsuccessful, then can re-execute step S101, S102 and S103, initiate authentication once more.If the authentication success, execution in step S104.
Step S104, but subscriber equipment presents merchandising information to the user.
Step S105, subscriber equipment receives user's operation information, generates subscription request (for example commercial articles ordering list), and it is sent to server.
After step S106, server receive the commercial articles ordering list, adopt concurrent control pretreatment mode process user subscription request, and result sends to subscriber equipment.
Wherein, described processing procedure specifically comprises: server is put into order form pre-service formation with pending subscription request;
With the quick pre-service subscription request of the mode of first-in first-out, send the pre-service result of subscription request according to the critical data in the internal memory to subscriber equipment;
Particularly, described critical data can be the type of merchandise, commodity amount, user characteristics etc.For example, a kind of processing mode is, quantity in user's subscription request and commodity amount are compared, and the pre-service result of preceding several user's subscription request that meet user characteristics that the quantity summation is positioned at the commodity amount scope refuses other user's subscription request for passing through.
The subscription request that pre-service is passed through is put into the formation of order form system handles, and the data in the binding data storehouse are handled subscription request with the mode ground of first-in first-out; According to the result related data in the new database more, result is sent to subscriber equipment.
Step S107, subscriber equipment presents net result to the user.
With reference to shown in Figure 6, be the synoptic diagram of the server in the embodiment of the present invention.
Described server comprises critical data administrative unit 201, pre-service queue management unit 202, concurrent control pretreatment unit 203, system handles queue management unit 204 and system processing unit 205.
Critical data administrative unit 201 is used for analyzing required critical data according to data processing request, and maintenance is consistent with critical data in the database.
Pre-service queue management unit 202 is used for when mass data is handled Intra-request Concurrency, is principle with the first-in first-out, manages in the mode of formation and waits for pretreated data processing request, and data processing request is put into data processing request pre-service formation.
Concurrent control pretreatment unit 203 is used for from data processing request pre-service formation, is principle with the first-in first-out, and according to the critical data in the critical data administrative unit 201, preprocessed data is handled request and response terminal equipment fast.
The major function of system handles queue management unit 204 is that management is by the data processing request of concurrent control pretreatment unit 203 pre-service successes.For example, be principle with the first-in first-out, with the pending data processing request such as mode management of formation, pretreated data processing request is put into the formation of data processing request system handles.
System processing unit 205 is used for according to pretreated result, and the data in the binding data storehouse are handled the data processing request that pre-service is passed through.
Because in the preprocessing process, critical data in the critical data administrative unit 201 of institute's foundation constantly with database in be consistent, so the data processing request of pre-service success in fact also can successfully obtain handling usually.
Because in the preprocessing process, the database of inoperation reality, so processing speed is very fast, the time of response shortens greatly, user's stand-by period shortens dramatically.
The method in the embodiment of the present invention that those skilled in the art will appreciate that can realize by hardware mode, also can be realized by the hardware such as software mode processor controls that comprise computer program.Described computer program can be stored in the various existing storage mediums, and this does not give unnecessary details.
Though the present invention by the preferred embodiment explanation as above, these preferred embodiments are not in order to limit the present invention.Those skilled in the art without departing from the spirit and scope of the present invention, should have the ability various corrections and additional are made in this preferred embodiment, and therefore, protection scope of the present invention is as the criterion with the scope of claims.And the implication of the term of using among the present invention, words and claim can not only limit to its literal and common implication and go to understand, and also should comprise the implication and the notion that conform to technology of the present invention.