CN101976257A - Concurrency control pre-processing method for data processing system - Google Patents

Concurrency control pre-processing method for data processing system Download PDF

Info

Publication number
CN101976257A
CN101976257A CN 201010527344 CN201010527344A CN101976257A CN 101976257 A CN101976257 A CN 101976257A CN 201010527344 CN201010527344 CN 201010527344 CN 201010527344 A CN201010527344 A CN 201010527344A CN 101976257 A CN101976257 A CN 101976257A
Authority
CN
China
Prior art keywords
data
service
data processing
request
processing request
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.)
Pending
Application number
CN 201010527344
Other languages
Chinese (zh)
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.)
XIBEN NEW LINE STOCK CO Ltd
Original Assignee
XIBEN NEW LINE STOCK 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 XIBEN NEW LINE STOCK CO Ltd filed Critical XIBEN NEW LINE STOCK CO Ltd
Priority to CN 201010527344 priority Critical patent/CN101976257A/en
Publication of CN101976257A publication Critical patent/CN101976257A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a concurrency control pre-processing method for a data processing system. The method comprises the following steps of: pre-processing concurrency data processing requests from a plurality of user devices; for the data processing requests passing the pre-processing, acquiring data required by the corresponding services from a database; and processing the data requests passing the pre-processing based on the data required by the services to generate corresponding processing results.

Description

The concurrent control preprocess method of data handling system
Technical field
The invention belongs to technical field of data processing, especially relate to a kind of concurrent control preprocess method of data handling system.
Background technology
For large-scale data handling system, can receive usually from the lot of data of different terminal equipment and handle request, handle accordingly at described data processing request, and to the terminal device feedback processing result of correspondence.
As shown in Figure 1, in the prior art, data handling system generally comprises server 910 and database 920.The request that server 910 receives from terminal device 930 is obtained corresponding data and is handled from database 920, generate result.Also described result can be fed back to terminal device 930 in case of necessity.
In some cases, server 910 may receive the concurrent request from a plurality of terminal devices 930.In the prior art, in order to guarantee the consistance of data, server 910 adopts the concurrency control method of data lock usually, and concurrent operations is converted to serial operation.
The defective of this kind prior art is: because each processing of request need be operated a certain amount of data in the Relational database, need the regular hour expense, so tend to cause many terminal devices need wait for the long time, thereby cause the user experience poor effect.In addition, adopt the concurrency control method accessing database of data lock to cause deadlock situation easily, thus cause can not normal process from the request of terminal device.
In the prior art, a kind of common concurrent request system that relates to is electronic trading system, for example networked shopping system.At issue market scare commodity or when the commodity of sizable price advantage are arranged, may have a large amount of buyers by terminal device lower network order form in extremely short time.At this moment, the webserver need carry out concurrent operations and control to the database of cyber ordering list correspondence.
Summary of the invention
The technical matters of this solution is to provide a kind of concurrent control preprocess method of data handling system, can improve the control efficiency to the concurrent visit of data.
The concurrent control preprocess method of a kind of data handling system that embodiment of the present invention provides comprises:
Concurrent data processing request from a plurality of subscriber equipmenies is carried out pre-service;
For the data processing request that pre-service is passed through, from database, obtain corresponding service desired data;
Based on described service desired data, the request of data that pre-service is passed through is handled, generate corresponding result.
Alternatively, also comprise: the pre-service result is fed back to corresponding subscriber equipment.
Alternatively, described pre-service comprises: according to the type of the required key message of data processing, extract the information of respective type in the data processing request, determine to allow the data processing request of passing through according to the information that extracts and the required key message of data processing.
Alternatively, described key message comprises COS, conditions of service and/or user characteristics.
Alternatively, also comprise: according to described result new database more.
Alternatively, also comprise: described result is fed back to subscriber equipment.
Alternatively, described data processing request is the commercial articles ordering request; Described key message comprises the type of merchandise, commodity amount, commodity price, user characteristics.
Alternatively, described service desired data comprises: but subscriber identity information, user's order form information, Business Information and/or merchandising information.
Compared with prior art, the beneficial effect of the concurrent control preprocess method of embodiments of the present invention is: use concurrent control pre-service mechanism, effectively improve the control efficiency to the concurrent visit of data; Thereby reduce the response time of voice and packet data concurrent service, shorten user's stand-by period; And then raising voice and packet data concurrent service user's experience index.
Description of drawings
Fig. 1 is the synoptic diagram of the data handling system of prior art;
Fig. 2 is the system schematic of the data handling system of embodiment of the present invention;
Fig. 3 is the system schematic of the data handling system of another embodiment of the present invention;
Fig. 4 is the synoptic diagram of concurrent control preprocess method in the embodiment of the present invention;
Fig. 5 is the synoptic diagram of concurrent control preprocess method in an embodiment of the present invention;
Fig. 6 is the synoptic diagram of a kind of embodiment of server in the data handling system of the present invention.
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.

Claims (8)

1. the concurrent control preprocess method of a data handling system is characterized in that, comprising:
Concurrent data processing request from a plurality of subscriber equipmenies is carried out pre-service;
For the data processing request that pre-service is passed through, from database, obtain corresponding service desired data;
Based on described service desired data, the request of data that pre-service is passed through is handled, generate corresponding result.
2. concurrent control preprocess method as claimed in claim 1 is characterized in that, also comprises: the pre-service result is fed back to corresponding subscriber equipment.
3. concurrent control preprocess method as claimed in claim 1, it is characterized in that, described pre-service comprises: according to the type of the required key message of data processing, extract the information of respective type in the data processing request, determine to allow the data processing request of passing through according to the information that extracts and the required key message of data processing.
4. concurrent control preprocess method as claimed in claim 3 is characterized in that described key message comprises COS, conditions of service and/or user characteristics.
5. as each described concurrent control preprocess method of claim 1 to 4, it is characterized in that, also comprise: according to described result new database more.
6. as each described concurrent control preprocess method of claim 1 to 4, it is characterized in that, also comprise: described result is fed back to subscriber equipment.
7. concurrent control preprocess method as claimed in claim 1 is characterized in that described data processing request is the commercial articles ordering request; Described key message comprises the type of merchandise, commodity amount, commodity price, user characteristics.
8. concurrent control preprocess method as claimed in claim 7 is characterized in that, described service desired data comprises: but subscriber identity information, user's order form information, Business Information and/or merchandising information.
CN 201010527344 2010-10-29 2010-10-29 Concurrency control pre-processing method for data processing system Pending CN101976257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010527344 CN101976257A (en) 2010-10-29 2010-10-29 Concurrency control pre-processing method for data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010527344 CN101976257A (en) 2010-10-29 2010-10-29 Concurrency control pre-processing method for data processing system

Publications (1)

Publication Number Publication Date
CN101976257A true CN101976257A (en) 2011-02-16

Family

ID=43576143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010527344 Pending CN101976257A (en) 2010-10-29 2010-10-29 Concurrency control pre-processing method for data processing system

Country Status (1)

Country Link
CN (1) CN101976257A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871923A (en) * 2016-06-15 2016-08-17 腾讯科技(深圳)有限公司 Information processing method, information recording nodes and participation nodes

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581142A (en) * 2003-08-06 2005-02-16 松下电器产业株式会社 Method, server and subscriber machine used in subscriber machine-server distribution type system
CN101661574A (en) * 2008-08-27 2010-03-03 国际商业机器公司 System, method and device for event processing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581142A (en) * 2003-08-06 2005-02-16 松下电器产业株式会社 Method, server and subscriber machine used in subscriber machine-server distribution type system
CN101661574A (en) * 2008-08-27 2010-03-03 国际商业机器公司 System, method and device for event processing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871923A (en) * 2016-06-15 2016-08-17 腾讯科技(深圳)有限公司 Information processing method, information recording nodes and participation nodes

Similar Documents

Publication Publication Date Title
CN102035879B (en) Server and data processing system using same
CN103765423B (en) Gathering transaction data associated with locally stored data files
CN101968815B (en) Processing method of concurrent requests
CN101410800B (en) System and method for a software distribution service
CN100535857C (en) System and method for updating installation components in a networked environment
TW200412115A (en) Device independent authentication system and method
CN101145150B (en) Batch file processing method and system
US20080080760A1 (en) Aggregation of Check Image Data
US8745088B2 (en) System and method of performing risk analysis using a portal
CN102932391A (en) Method and device for processing data in peer to server/peer (P2SP) system, and P2SP system
CN106251202A (en) Maliciously order recognition methods and device
CN108989040B (en) Information processing method and device based on block chain
CN101447064B (en) Auditing management system and auditing management method
CN104320482A (en) Bank teller front-end system
CN105138709A (en) Remote evidence taking system based on physical memory analysis
CN106547538A (en) A kind of intelligent operation management system based on Django
CN104657841A (en) Express item delivery method, delivery processing method, express cabinet terminal and service system
CN109271410A (en) Extracting method, device and the computer readable storage medium of bank receipt
CN111382985A (en) To-do message integrated pushing system and working method
CN106372874A (en) Internet of things mobile finance payment system based on cloud platform
CN108614882A (en) A kind of file management method and system based on server
CN104618410B (en) Resource supplying method and apparatus
CN101968816A (en) Data processing system and server
US6820073B1 (en) System and method for multiple pass cooperative processing
CN100382493C (en) System and method for realizing service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: XIBEN NEW LINE E-COMMERCE CO., LTD.

Free format text: FORMER OWNER: XIBEN NEW LINE CO., LTD

Effective date: 20120202

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 200437, room 2, building 990, 201 East Sports Club Road, Shanghai, Hongkou District

Applicant after: West Ben Shinkansen Ltd.

Address before: 200437, room 2, building 990, 201 East Sports Club Road, Shanghai, Hongkou District

Applicant before: XiBen New Line Stock Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 200437 HONGKOU, SHANGHAI TO: 215434 SUZHOU, JIANGSU PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20120202

Address after: 215434 No. 88, Binjiang Avenue, Port Development Zone, Taicang port, Jiangsu Province

Applicant after: XiBen New Line Stock Co.,Ltd.

Address before: 200437, room 2, building 990, 201 East Sports Club Road, Shanghai, Hongkou District

Applicant before: West Ben Shinkansen Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110216