Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation
Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described
Embodiment be only this specification a part of the embodiment, instead of all the embodiments.The embodiment of base in this manual,
Every other embodiment obtained by those of ordinary skill in the art without making creative efforts, all should belong to
The range of this specification protection.
In view of existing data processing method, the server for being responsible for data processing usually can be due to current to be treated
The reasons such as data volume is larger or own processing capabilities are limited lead to not have timely completed the number that client requests progress
According to processing, data processing can not be caused overtime by the corresponding result data of feedback user at the appointed time.And at this data
In the case where reason time-out, it is based on existing method, user can not obtain in time the current specific data processing of understanding by client
Situation also can not be adjusted correspondingly or control to data handling procedure as the case may be, and can only helplessly one
The result data of straight waiting for server feedback, therefore there is a problem of interactive experience difference.
For the basic reason for generating the above problem, this specification considers after generating data processing request, and is sending
Before data processing request carries out data processing, Mr. indicates the identity information of the data processing request, and then can pass through body
Part information indicates data processing corresponding to specific data processing request and data processing request.It is carrying out at data
When reason process, client can detecte the result data that data processing request whether is received in the first preset time, with certainly
It moves, efficiently identify out whether data processing corresponding to the data processing request time-out occurs.Go out in the data processing of discovery
When existing time-out, client can further send the label for carrying and handling corresponding identity information with the timeout datum and ask
It asks, so that server can mark corresponding to the label of data processing request indicated by identity information according to marking request to pass through
Timeout datum processing.And the relevant intermediate data in timeout datum processing treatment process is recorded, such as current schedules data,
Currently available intermediate result data and processing status data etc..And client-side then can be according to the preset time interval
Timing sends inquiry request to server, and server then it is newest can to obtain the destination request according to inquiry request each time
Intermediate data feed back to client, then user is showed by client, so that user can understand in time, grasp the data
Specific disposition is handled, while also providing the reference frame being adjusted to the data processing for user, so as to keep away
Exempt from the prolonged blank of user in case of overtime to wait, solves the situation of the time-out of data processing present in existing method
Lower client can not obtain disposition, the technical problem of interactive experience difference of the data processing of time-out in time, reach can it is timely,
Efficiently to the intermediate data of the data processing of client feedback time-out, the skill of the interactive experience in data handling procedure is improved
Art effect.
This specification embodiment provides a kind of data processing method, and the data processing method specifically can be applied to wrap
In system architecture containing server and client side.It can be as shown in fig.1, wherein, above-mentioned server be responsible for progress user and be passed through
The required data processing carried out of client, and corresponding result data is fed back, above-mentioned server and client side can specifically lead to
It crosses wired or wireless mode to couple, to carry out the interaction of data.
Specifically, above-mentioned client can be used for obtaining data processing request, and generate the body of the data processing request
Part information;The data processing request for carrying corresponding identity information is sent to server.Correspondingly, above-mentioned server is for connecing
The data processing request is received and responded, corresponding data processing is carried out, to obtain corresponding result data.
When specifically carrying out data processing, above-mentioned client can be also used for detecting whether to receive in the first preset time
The result data of data processing request;Determine be not received by the result data in the first preset time in the case where, to
Server sends label request;Wherein, the label request carries the identity information of the data processing request.Correspondingly,
Above-mentioned server can be also used for requesting for data processing request corresponding to the identity information to be labeled as according to the label
Destination request, and record intermediate data relevant to data processing corresponding to the destination request.
Further, above-mentioned client periodically can send the to the server with user at interval of the second preset time
One inquiry request, wherein first inquiry request carries the identity information of destination request.Correspondingly, above-mentioned server is also
It can be used for being obtained according to first inquiry request and return to the intermediate data of destination request.Client can be in time in this way
The intermediate data of destination request is shown, to user so that user could be aware that specific processing condition data.
In the present embodiment, the server can be a kind of applied to data processing backstage side, can be realized number
According to the server of the functions such as transmission, data processing.Specifically, the server can have data operation, storage function for one
The electronic equipment of energy and network interaction function;Or run in the electronic equipment, it is data processing, storage and network
Interaction provides the software program supported.In the present embodiment, the quantity of the server is not limited specifically.The server
It is specifically as follows a server, or several servers, alternatively, the server cluster formed by several servers.
In the present embodiment, the client can be a kind of applied to user side, can be realized data acquisition, data
The headend equipment of the functions such as transmission.Specifically, the client for example can for desktop computer, tablet computer, laptop,
Smart phone, digital assistants, intelligent wearable device, shopping guide's terminal, television set with network access functions etc..Alternatively, institute
Stating client may be the software application that can be run in above-mentioned electronic equipment.For example, it may be run on mobile phone
Certain APP etc..
It should be noted that data processing method provided by this specification embodiment can be applied cited by above-mentioned
The system for including specific client end and server is that one kind schematically illustrates.When it is implemented, according to concrete application scene,
Above-mentioned data processing method can also be applied to include page front end (can be understood as another type of client) with
And in the business processing framework of background system (can be understood as another type of server).In this regard, this specification does not limit
It is fixed.
It, can be as shown in fig.2, the data processing method provided using this specification embodiment in a Sample Scenario
Carry out specific data processing.
In this Sample Scenario, user is the technical staff of certain website, and technical staff wants to call at the backstage of the website
The server of reason system modifies processing to A order data.When it is implemented, the desk-top of oneself can be used in technical staff
Computer operate for the modification of A order data as client.For example, what can be shown by click client orders
Single modification icon, and the design parameter etc. to be modified of requirement is inserted in the modification frame of pop-up.Client can receive and respond
The aforesaid operations generation of technical staff is used to indicate the data processing request modified to A order data.
It, can also be according to preset create-rule, for the data while client generates above-mentioned data processing request
Processing request generates unique identity information (such as identity ID) to indicate the data processing request.For example, can be according to above-mentioned
Data processing request and the specific operation information of user carry out corresponding operation according to preset create-rule, obtain a fortune
Calculation value: identity ID of the ihu2019111fj as the data processing request.The data processing request for carrying identity ID is sent out again
Give the background server of the website.
Server receive it is above-mentioned carry the data processing request of identity information after, above-mentioned data processing can be responded
Request calls corresponding calculation resources, such as processing thread etc., starts to carry out at data corresponding to above-mentioned data processing request
Reason, i.e., the above-mentioned modification for A order data are handled, after requiring to complete the modification processing of A order data according to user, feedback
Modified A order data data as a result.
It should be noted that server is while carrying out above-mentioned data processing, it can also be by above-mentioned data processing request, number
Corresponding relationship is established with identity information entrained by above-mentioned data processing request respectively according to the corresponding data processing of processing request.
Identification signal be can use in this way as index, indicate corresponding data processing request and data processing.
Client will start after sending above-mentioned data processing request to server for detecting whether overtime is first
It is engaged in (being referred to as time-out check task).Based on the task, client will record down while sending data processing request
Send the data processing request sending time (such as record sending time: 10:05:03), and using the sending time as
Initial time starts to calculate whether in the first preset time (such as from initial time in 10 seconds) receive server feedback
The data processing request result data.
If client detects to receive corresponding result data in the first preset time, it may determine that the data
There is not time-out in the corresponding data processing of processing request.For example, client receives server feedback in 10:05:11
Modified A order data when.If client's degree is detected without receiving corresponding result data in the first preset time,
It then may determine that time-out occurs in data processing corresponding to the data processing request.For example, client is gone back in 10:05:13
It is not received by modified A order data.
In this Sample Scenario, client does not receive modified order data in the first preset time, judgement
The data processing has had already appeared time-out.At this moment user couple can not be also supplied to by not completing the data processing due to server
The result data answered, and user relatively worries due to not receiving result data in defined first preset time,
Want to know about the specific disposition of the data processing.
Based on the demand, client will start the second task (being referred to as timing query task) for inquiry.
Specifically, client can first determine to be not received by the data processing request of result data in the first preset time (i.e.
Data processing request corresponding to the data processing of time-out) identity information, and corresponding mark is generated according to above-mentioned identity information
Note request, wherein label request carries above-mentioned identity information.Above-mentioned label request is sent to server.
Server can parse to obtain the above-mentioned number for being used to indicate time-out by data after receiving above-mentioned label request
According to the identity information of the corresponding data processing request of processing, so can according to the identity information as index from carrying out
Multiple data processings corresponding to corresponding data processing request is found in data processing request, and the data processing is asked
Label is sought, as destination request.For example, server can be according to identity IDihu2019111fj from the multiple data handled
It finds in the corresponding data processing request of processing and modifies the data processing request of processing to A order data, and in the number
It requests that preset label label is arranged as destination request according to processing.It can be asked by the preset label label with lock onto target
Ask and destination request corresponding to data processing, so as to be supervised to data handling procedure corresponding to destination request
Control.
Further, server first can also establish corresponding data record sheet for the destination request.Wherein, above-mentioned data
Record sheet can recorde the identity information of the destination request.It can be while carrying out data processing corresponding to destination request
The intermediate data relevant to data processing in data handling procedure is recorded in the data record sheet, for example, data processing
The progress data of the intermediate result data, data processing that are generated in journey, status data of data handling procedure etc..
And in client-side, it is based on the second task, client is at interval of the second preset time (such as every 5 seconds), just
First inquiry request of intermediate data of the meeting according to the generation of the identity information of destination request for inquiring acquisition destination request, and to
Server sends the first inquiry request.Wherein, above-mentioned first inquiry request can carry the identity of destination request to be checked
Information.
Server after receiving the first inquiry request, can the identity information according to entrained by the first inquiry request, look for
To the data record sheet of the destination request, and obtained by inquiry data record sheet when playing this section of current time from start recording
Intermediate data of the interior intermediate data recorded as destination request, and the intermediate data of above-mentioned destination request is fed back into visitor
Family end.Certainly, when it is implemented, server is during also the available last time inquires and recorded in current time this period
Between intermediate data etc. of the data as destination request.In this regard, this specification is not construed as limiting.
For example, server is obtained by data record list corresponding to inquiry IDihu2019111fj from 10:05:13
The processing status data recorded in (i.e. the time of start recording) to this period between 10:05:18 (i.e. current time)
(such as: 10:05:15 has modified the i-th row data, 10:05:16 has modified jth column data etc.), processing progress data (such as: it is complete
At modification 23% etc.), processing environment data (having invoked No. 2 threads, No. 2 threads are currently at congestion status etc.), intermediate result
Data (such as the i-th row data and jth column data that modification is completed etc.) etc., and using above-mentioned intermediate data as destination request
Intermediate data is sent to client.
Client can show above-mentioned intermediate data, although so not after receiving above-mentioned intermediate data to user
Can the result data final to user feedback in time, but by showing that above-mentioned intermediate data can allow user to understand in time
To the concrete condition of data processing corresponding to the destination request, avoids the prolonged blank of user and wait.At the same time it can also
To be subsequent control be adjusted correspondingly to data processing corresponding to destination request reference frame is provided.
For example, client can show following intermediate data to technical staff: current server is for A order data
Modification progress, and processing environment data during modification: No. 2 threads are had invoked, No. 2 threads are currently at congestion status
Deng.May determine that by above-mentioned processing environment data causes a reason of the time-out of data processing corresponding to destination request may
For No. 2 threads more congestion at present that the data processing is called, the data processing is caused not complete in time.
In this case, if it is desired to treatment effeciency is improved, to be completed at data corresponding to destination request as early as possible
Reason can whether there is current more idle thread in first detection service device.For example, detecting No. 1 in current server
Thread is more idle.At this moment corresponding adjusting parameter can be generated: No. 2 that data processing corresponding to destination request is called
Thread is changed to Line 1 journey, and above-mentioned adjusting parameter is sent to server.
Server, can be according to above-mentioned adjusting parameter after receiving above-mentioned adjusting parameter, will be corresponding to destination request
No. 2 threads that data processing is called are replaced with current more idle Line 1 journey, continue target by Line 1 journey and ask
Corresponding data processing is asked, so as to improve treatment effeciency, shortens the waiting time of final result data.
In another Sample Scenario, in order to meet the personalized inquiry need of data processing of the different user for time-out
It asks, client can also support user voluntarily to inquire the intermediate data of destination request.
For example, as shown in fig.3, technical staff can be looked by clicking the query icon sending instruction that client is shown
The operation of inquiry.Client determines that user wants corresponding to the destination request of some time-out of inquiry after receiving aforesaid operations
An inquiry instruction can be generated in data processing, to acquire an inquiry instruction.Meanwhile client can also be shown
Input frame is preset out.Technical staff can input the identity ID of the destination request to be inquired by presetting input frame:
ihu2019111fj.At the same time it can also be needed to choose the specific intermediate data patterns for wanting to inquire according to oneself.For example, can
To choose the intermediate data that technical staff more pays close attention to: processing environment data in above-mentioned default input frame.
And then client can be indicated according to above-mentioned inquiry and the identity ID of destination request to be checked and be chosen
Intermediate data generates the second inquiry request, and the second inquiry request is sent to server.
Server after receiving above-mentioned second inquiry request, can according to the second inquiry request, from identity ID:
Recorded processing environment data are obtained in the corresponding data record sheet of ihu2019111fj: having invoked No. 2 threads, No. 2 threads
It is currently at congestion status etc. and feeds back to client, then technical staff is showed by client, so that technical staff
The intermediate data in oneself treatment process of interest can be targetedly obtained, interactive experience is further improved.
By above-mentioned Sample Scenario as it can be seen that the data processing method that this specification provides, due to by before data processing,
Mr. carrys out data processing corresponding to designation date processing request and data processing request at corresponding identity information;In number
According in treatment process, detecting whether to receive result data in the first preset time judge whether data processing is overtime automatically,
The label request for carrying corresponding identity information is sent in case of overtime, and target when so as to server-tag excess of export is asked
It asks, and records the intermediate data of destination request;It is looked into further through the identity information based on destination request generated first is sent
Request is ask, shows user to obtain the intermediate data of destination request of time-out from server in time, to solve existing
Have data processing present in method time-out in the case where client can not obtain in time time-out data processing disposition,
The technical problem of interactive experience difference, reach can in time, efficiently to the intermediate data of the data processing of client feedback time-out, change
It has been apt to the technical effect of the interactive experience in data handling procedure.
As shown in fig.4, this specification embodiment provides a kind of data processing method, wherein this method concrete application
In client-side.When it is implemented, this method may include the following contents.
S41: data processing request is obtained, and generates the identity information of the data processing request.
In the present embodiment, above-mentioned data processing request be specifically understood that the server to responsible data processing request into
The request data of the corresponding data processing of row.
In the present embodiment, above-mentioned client specifically can also be front end page, correspondingly, server can also be backstage
Operation system.That is, the above method can also be applied in the interaction scenarios of front end page and Batch Processing system.Certainly, above-mentioned
Cited application scenarios are that one kind schematically illustrates.When it is implemented, as the case may be can also be by above method application
It is related in interactive application scenarios in other.In this regard, this specification is not construed as limiting.
In the present embodiment, specifically can be understood as one kind is used to indicate data to above-mentioned identity information (such as identity ID etc.)
Handle the character group of request.Wherein, the identity information of different data processing requests is different.It is subsequent, above-mentioned body can also be utilized
Part information carrys out the corresponding data processing of designation date processing request.
In the present embodiment, when it is implemented, client can acquire the operation data of user, such as acquisition user to certain
The pressing operation of a icon clicking operation or some button to client, and it is corresponding according to above-mentioned operation data generation
Data processing request;Client also can receive the order data that user is inputted by input frame, and according to mentioned order data
Generate corresponding data processing request etc..
Client generate corresponding data processing request while, client can also according to preset create-rule,
Corresponding identity information is generated for the data processing request.For example, client can will generate number according to preset time rule
Splice according to the serial number of processing request and the ID number of user, using spliced character group as the body of the data processing request
Part information etc..Certainly, the generating mode of above-mentioned cited identity information is that one kind schematically illustrates.When it is implemented, root
The identity information of data processing request can also be generated using other suitable generating modes according to concrete condition.In this regard, this theory
Bright book is not construed as limiting.
S42: the data processing request is sent to server, wherein the data processing request carries identity information,
The server carries out data processing for responding the data processing request, to return to the number of results of the data processing request
According to.
In the present embodiment, when it is implemented, client can be by the above-mentioned data processing request for carrying identity information
It is sent to server.Server can first establish data processing request after receiving above-mentioned data processing request, and will
The corresponding relationship of data processing corresponding to the data processing request of progress and the identity information.It is subsequent in this way to pass through identity
Information determines corresponding data processing request and corresponding data processing.Then server can be according to above-mentioned data at
Reason request, carries out corresponding data processing, to obtain result data.
Wherein, the above results data specifically can be understood as a kind of server and want anti-after completing corresponding data processing
The data for client of feeding.Specifically, the above results data specifically can be finally obtained one in a kind of data handling procedure
A specific data are also possible to a kind of prompt information etc. for prompting data processing to complete.For the above results data
Particular content, this specification are not construed as limiting.
In the present embodiment, client is sending the same of the above-mentioned data processing request for carrying identity information to server
When, it will record down the sending time of the data processing request, also so as to the subsequent sending time that can handle request with combined data
Determine whether data processing time-out.
S43: it detects whether to receive the result data in the first preset time;It is determining in the first preset time
In the case where being not received by the result data, label request is sent to server;Wherein, the label request carries
The identity information of data processing request is stated, the server is also used to will be corresponding to the identity information according to label request
Data processing request be labeled as destination request, and record relevant to data processing corresponding to destination request mediant
According to.
In the present embodiment, above-mentioned first preset time specifically can be understood as a kind of time threshold for judging whether time-out
Value.When client is from sending time, receives result data not yet more than the first preset time, it can be determined that gone out
Time-out is showed.It is opposite, when client is from sending time, result data is had received in the first preset time, can be sentenced
It is disconnected overtime without occurring.Wherein, the specific duration of above-mentioned first preset time can require and the place of server according to user
Rationality energy flexible setting.In this regard, this specification is not construed as limiting.
In the present embodiment, above-mentioned label request specifically can be understood as a kind of data that request server time-out will occur
(such as can mark and be) is marked in processing request, to distinguish the request data of other data processing requests.
In the present embodiment, corresponding to the data processing request that above-mentioned intermediate data specifically can be understood as and be labeled
The relevant data of data handling procedure.Specifically, above-mentioned intermediate data may include: the status data of data processing, at data
The progress data of reason, the environmental data of data processing, the intermediate result data etc. in processing processing.Certainly, above-mentioned cited
Intermediate data be that one kind schematically illustrates.When it is implemented, may be incorporated into other types and content as the case may be
Data as above-mentioned intermediate data.In this regard, this specification is not construed as limiting.
In the present embodiment, when it is implemented, detecting whether to receive the result data in the first preset time, tool
When body is implemented, it may include: client timing from sending time, detect whether to receive at data in the first preset time
The result data of reason request judges the data processing request institute if receiving the result data in the first preset time
There is not time-out in corresponding data processing, stops subsequent processing.If not receiving the result in the first preset time
Data then judge that time-out occurs in data processing corresponding to the data processing request, and then can carry out subsequent processing.
In the present embodiment, in the case where determination is not received by result data in the first preset time, Ke Yixian
The data processing request identity information is obtained, and corresponding label is generated according to the identity information and is requested, wherein above-mentioned label is asked
Seek the identity information that can carry the data processing request that result data is not received by the first preset time.Again to service
Device sends above-mentioned label request.
Server can find correspondence according to the entrained identity information of label request after receiving above-mentioned label request
Data processing request, and by the data processing request be labeled as destination request.Specifically, server can be by above-mentioned number
Default label is set according to processing request to mark destination request etc..Certainly, the mode of above-mentioned cited label destination request
Only one kind schematically illustrates.When it is implemented, as the case may be target can also be marked using other suitable modes
Request.In this regard, this specification is not construed as limiting.
By marking destination request, server can be more efficiently to the data processing request having timed, out, i.e. mesh
The corresponding data processing of mark request is monitored.Specifically, server can establish data record sheet for destination request,
In, the identity information of destination request is also carried in above-mentioned data record sheet.Server is carrying out number corresponding to destination request
When according to processing, the mediant relevant to data processing for the treatment of process appearance can be recorded in the data record sheet simultaneously
According in case subsequent use.
S44: the second preset time of interval, Xiang Suoshu server send the first inquiry request, wherein first inquiry is asked
The identity information for carrying destination request is sought, the server is also used to obtain according to first inquiry request and returns to target
The intermediate data of request.
In the present embodiment, above-mentioned first inquiry request specifically can be understood as client timing asking to server transmission
Seek the request data for obtaining the intermediate data of destination request.Wherein, destination request can be carried in above-mentioned first inquiry request
Identity information.
In the present embodiment, above-mentioned second preset time specifically can be understood as one kind and judge whether that needing to send first looks into
Ask the time threshold of request.Usually from the last time sends the first inquiry request, at interval of second preset time, client
First inquiry request can be sent to server.Wherein, the specific duration of above-mentioned second preset time can be according to user
The normal time-consuming length of degree of concern and data processing to data processing determines.For example, if user is to the data processing
Progress attention rate it is higher, the duration of the second preset time can be arranged will be relatively short, such as is set as 1 second.
If attention rate is lower, the duration of the second preset time can be arranged relatively long, such as be set as 30 seconds etc..
In addition, in order to meet the individual demand of user, client can also provide setting interface for user, be set by this
Interface is set, user can need to be arranged according to oneself suitable duration as above-mentioned second preset time.
In the present embodiment, above-mentioned the second preset time of interval, Xiang Suoshu server sends the first inquiry request, specific real
Shi Shi may include: client at interval of second preset time, and the body for once carrying destination request is sent to server
First inquiry request of part information reaches automatic to obtain the newest intermediate data of data processing corresponding to destination request
It is timed poll.
Correspondingly, server receive client transmission the second inquiry request after, can be according to the first inquiry request
Entrained identity information determines the corresponding data record sheet for carrying common identity information, and inquires the data record
Table obtains intermediate data of the intermediate data as destination request of the data processing, feeds back to user.
Specifically, server can will play institute in current time this period from the start recording time in data record sheet
Record all intermediate data feed back to user together as the intermediate data of destination request, can also by data record sheet oneself
The receiving time of last first inquiry request plays the intermediate data recorded in current time this period and asks as target
The intermediate data asked feeds back to user, can also be by certain several class in data list according to some period of user setting
The intermediate data of type feeds back to user etc. as the intermediate data of destination request.
S45: receiving and shows the intermediate data of the destination request.
In the present embodiment, client is after the intermediate data for receiving the destination request that server is fed back, Ke Yitong
Cross the intermediate data that client shows destination request to user.Although user can't get final number of results in this way
According to, but pass through the intermediate data of shown destination request, data processing corresponding to destination request can be recognized in time
Newest processing condition data avoids blank waiting;It can also be using the intermediate data of shown destination request as reference number
According to control being adjusted correspondingly to data processing corresponding to destination request, to improve treatment effeciency according to specified context.
Therefore the data processing method that this specification embodiment provides, due to by before data processing, sir
Carry out data processing corresponding to designation date processing request and data processing request at corresponding identity information;At data
It during reason, detects whether to receive result data in the first preset time automatically, judges whether data processing is overtime, super
In the case of send carry corresponding identity information label request, destination request when so as to server-tag excess of export, and
Record the intermediate data of destination request;It is asked further through the identity information sent based on destination request the first inquiry generated
It asks, user is showed to obtain the intermediate data of destination request of time-out from server in time, to solve existing side
Client can not obtain the disposition of the data processing of time-out, interaction in time in the case where the time-out of data processing present in method
Experience difference technical problem, reach can in time, efficiently to the intermediate data of the data processing of client feedback time-out, improve
The technical effect of interactive experience in data handling procedure.
In one embodiment, in the case where determination is not received by the result data in the first preset time,
After sending label request to server, the method is when it is implemented, can also include the following contents: inquiry instruction is received, with
And the identity information of destination request;The inquiry instruction is responded, and generates second according to the identity information of the destination request and looks into
Ask request;Second inquiry request is sent to server, wherein the server is also used to ask according to second inquiry
It asks, obtains and return the intermediate data of destination request;Receive and show the intermediate data of the destination request.
In the present embodiment, above-mentioned inquiry instruction specifically can be understood as a kind of being needed to pass through triggering by user according to user
The inquiry generated for destination request is operated to indicate.Above-mentioned second inquiry request be specifically understood that according to by user institute
The request data of the intermediate data of the inquiry instruction request inquiry destination request of triggering.
In the present embodiment, user can as the case may be and process demand, in no first inquiry request that sends
In period, inquiry instruction is generated by triggering, and then generate and send corresponding second inquiry request to inquire destination request
Intermediate data.
In the present embodiment, when it is implemented, client can receive and respond the preset trigger action of Client-initiated,
Generate corresponding inquiry instruction.Wherein, above-mentioned preset trigger action can specifically include: user customer shown certain
What the clicking operation of a preset icon, the pressing operation of the key in user customer or user were inputted by client
Speech polling instruction etc..
Client can also show corresponding default input frame, Yong Huke to user while generating above-mentioned inquiry instruction
With the identity information for wanting the destination request of inquiry by presetting input frame input.Certainly, when it is implemented, client can also be with
The identity information that user wants the destination request of inquiry is obtained using other modes.For example, client can open it is built-in
In the radio equipment (such as built-in microphone) of client, and the destination request for wanting inquiry is said by voice guide user
Identity information etc..In this regard, this specification is not construed as limiting.
Client may further generate after the identity confidence and inquiry instruction for obtaining above-mentioned destination request for mesh
Mark the second inquiry request of request, wherein the second inquiry request can carry the identity that user wants the destination request of inquiry
Information.And above-mentioned second inquiry request is sent to server.
Server, can the letter of the identity according to entrained by the second inquiry request after receiving above-mentioned second inquiry request
Breath finds corresponding data record sheet, and the intermediate data of destination request is obtained by inquiry data record sheet, feeds back to client
End.
In one embodiment, the identity information of above-mentioned reception inquiry instruction and destination request, when it is implemented, can
To include the following contents: responding preset trigger action and generate inquiry instruction, and show default input frame;By it is described preset it is defeated
Enter the identity information that frame receives the destination request.
In the present embodiment, client is in addition to that can pass through the desired inquiry of above-mentioned default input frame reception user's input
Outside the identity information of destination request, the selection information of user can also be received by default input, for example, when user is selected
Between section, the selected intermediate data of user etc..And then corresponding second inquiry request can be generated according to above-mentioned selection information
To obtain the intermediate data for meeting the user individual requirement, to improve interactive experience.
For example, user can select second time period and processing progress data alternatively information in default input frame.
Client can generate corresponding second inquiry request in conjunction with above-mentioned selection information, and send this request to server.Service
Device can select information after receiving above-mentioned second inquiry request according to included in the second inquiry request, selective
Ground is from the processing progress data recorded in second time period are extracted as in destination request in the data record sheet of destination request
Between data feedback to client.
In one embodiment, after receiving and showing the intermediate data of the destination request, the method specific implementation
When, can also include the following contents: according to the intermediate data of the destination request, the adjustment generated for the destination request be joined
Number;The adjusting parameter is sent to the server, wherein the server is also used to adjust target according to the adjusting parameter
The corresponding data processing of request.
In the present embodiment, in order to further increase interactive experience, and also to data-handling efficiency is improved, Huo Zheman
Process demand under sufficient different scenes, client can also according to the intermediate data fed back, in conjunction with user process demand and
The factors such as performance parameter, the current operating conditions of server, the processing feelings based on the corresponding data processing of current goal request
Condition determines the optimization processing scheme for being more suitable for above-mentioned data processing, and is based on above-mentioned optimization processing scheme, generates corresponding tune
Whole parameter.And above-mentioned adjusting parameter is sent to server.
Wherein, above-mentioned adjusting parameter specifically can be understood as a kind of for the data processing corresponding to current goal request
The supplemental characteristic being adjusted.Specifically, above-mentioned adjusting parameter may include at least one of: the setting parameter of priority,
Handle thread replacement parameter, the pause instruction of data processing etc..Certainly, it should be noted that above-mentioned cited adjustment ginseng
Number is that one kind schematically illustrates.When it is implemented, according to circumstances may be incorporated into other kinds of parameter as above-mentioned adjustment
Parameter.In this regard, this specification is not construed as limiting.
You need to add is that when it is implemented, client can also be only responsible for showing above-mentioned intermediate data to user, by with
As the case may be, corresponding adjusting parameter is voluntarily arranged, then joined received adjustment by client in family on the client
Number is sent to server.
Server, can the data according to corresponding to adjusting parameter adjustment destination request after receiving above-mentioned adjusting parameter
Processing improves data-handling efficiency, further increases friendship so that the data processing can be carried out according to optimization processing scheme
Mutually experience.
Therefore the data processing method that this specification embodiment provides, due to leading to the offer of this specification embodiment
Data processing method, due to being requested by the way that before data processing, Mr. carrys out designation date processing at corresponding identity information, with
And data processing corresponding to data processing request;In data processing, it is detected whether in the first preset time automatically
Result data is received, judges whether data processing is overtime, sends the mark for carrying corresponding identity information in case of overtime
Note request, destination request when so as to server-tag excess of export, and record the intermediate data of destination request;Further through transmission base
In the identity information of destination request the first inquiry request generated, so that the destination request of time-out is obtained from server in time
Intermediate data show user, thus solve data processing present in existing method time-out in the case where client can not
Disposition, the technical problem of interactive experience difference for obtaining the data processing of time-out in time, reach can it is timely, efficiently to client
The intermediate data of the data processing of end feedback time-out, improves the technical effect of the interactive experience in data handling procedure;It is also logical
It crosses and corresponding adjusting parameter is generated and sent according to the intermediate data of the destination request for the time-out fed back, so as to according to tool
Body scene more preferably more efficiently carries out data processing corresponding to destination request by above-mentioned adjusting parameter control server, mentions
High data-handling efficiency, further improves the interactive experience in data handling procedure.
As shown in fig.5, this specification embodiment additionally provides a kind of data processing method, this method is applied particularly to take
Business device side, this method is when it is implemented, may include the following contents.
S51: the label request that client is sent is received, wherein the label request carries the body of data processing request
Part information, the label request are the number of results that client is not received by the data processing request in the first preset time
It is generated and sent in the case where;
S52: requesting according to the label, and data processing request corresponding to institute's identity information is labeled as destination request;
S53: the intermediate data of destination request is recorded.
In one embodiment, the intermediate data of above-mentioned record destination request, when it is implemented, may include in following
Hold: establishing the data record sheet for being directed to the destination request;It acquires relevant to data processing corresponding to the destination request
Intermediate data, and the intermediate data is recorded in the data record sheet.
In one embodiment, after the intermediate data of record destination request, the method is when it is implemented, can also wrap
It includes the following contents: receiving the first inquiry request, wherein first inquiry request carries the identity information of destination request, institute
Stating the first inquiry request is what the second preset time of client interval generated and sent;According to first inquiry request, inquiry
The data record sheet obtains the intermediate data of the destination request;The intermediate data is sent to client.
In one embodiment, after the intermediate data of record destination request, the method is when it is implemented, can also wrap
It includes the following contents: receiving the second inquiry request, wherein second inquiry request carries the identity information of destination request, institute
State what the second inquiry request was generated for client according to the identity information of received inquiry instruction and destination request;According to
Second inquiry request, inquires the data record sheet, obtains the intermediate data of the destination request;Institute is sent to client
State intermediate data.
In one embodiment, the method is when it is implemented, can also include the following contents: receiving and be directed to the target
The adjusting parameter of request;According to the adjusting parameter, data processing corresponding to the destination request is adjusted.
In one embodiment, before receiving the label request that client is sent, the method is when it is implemented, can be with
Including the following contents: obtaining data processing request, wherein the data processing request carries identity information;According to the number
It is requested according to processing, data processing is carried out, to obtain the result data of the data processing request.
This specification embodiment additionally provides a kind of data processing method, this method be applied particularly to include server and
In the system of client, this method is when it is implemented, may include the following contents.
Client obtains data processing request, and generates the identity information of the data processing request;
User end to server sends the data processing request, wherein the data processing request carries identity letter
Breath;
Server responds the data processing request and carries out data processing, to obtain the number of results of the data processing request
According to;
Client detects whether to receive the result data in the first preset time;It is determining in the first preset time
In the case where being inside not received by the result data, label request is sent to server;Wherein, the label request carries
The identity information of the data processing request;
Server requests to ask data processing request corresponding to the identity information labeled as target according to the label
It asks, and records intermediate data relevant to data processing corresponding to the destination request;
The second preset time of client interval, Xiang Suoshu server send the first inquiry request, wherein first inquiry
Request carries the identity information of destination request;
Server obtains according to first inquiry request and sends the intermediate data of destination request;
Client receives and shows the intermediate data of the destination request.
In one embodiment, the method is when it is implemented, can also include the following contents: client connects according to
The inquiry of receipts indicates and the identity information of destination request generates the second inquiry request;User end to server sends described the
Two inquiry requests;Server obtains and sends the intermediate data of destination request according to second inquiry request.
Therefore the data processing method that this specification embodiment provides, before data processing, client is first generated
Corresponding identity information carrys out data processing corresponding to designation date processing request and data processing request;In data processing
In the process, client detects whether to receive result data in the first preset time automatically, judges whether data processing is overtime,
The label request for carrying corresponding identity information is sent in case of overtime, and target when so as to server-tag excess of export is asked
It asks, and records the intermediate data of destination request by server;The identity information based on destination request is sent further through client
First inquiry request generated shows use to obtain the intermediate data of destination request of time-out from server in time
Family, so that the data of time-out can not be obtained in time by solving client in the case where the time-out of data processing present in existing method
Disposition, the technical problem of interactive experience difference of processing, reach can in time, efficiently at the data of client feedback time-out
The intermediate data of reason improves the technical effect of the interactive experience in data handling procedure.
This specification embodiment also provides a kind of client, including processor and is used for storage processor executable instruction
Memory, the processor can be according to instruction execution following steps when being embodied: obtaining data processing request, and generate
The identity information of the data processing request;The data processing request is sent to server, wherein the data processing request
Identity information is carried, the server carries out data processing for responding the data processing request, to return to the data
Handle the result data of request;It detects whether to receive the result data in the first preset time;It is pre- first determining
If in the case where being not received by the result data in the time, sending label request to server;Wherein, the label request
The identity information of the data processing request is carried, the server is also used to request to believe the identity according to the label
The corresponding data processing request of breath is labeled as destination request, and records related to data processing corresponding to the destination request
Intermediate data;It is spaced the second preset time, Xiang Suoshu server sends the first inquiry request, wherein first inquiry is asked
The identity information for carrying destination request is sought, the server is also used to obtain according to first inquiry request and returns to target
The intermediate data of request;Receive and show the intermediate data of the destination request.
In order to more accurately complete above-metioned instruction, as shown in fig.6, this specification embodiment additionally provide it is another
Kind specific client, wherein the client includes network communications port 601, processor 602 and memory 603, above-mentioned
Structure is connected by Internal cable, so that each structure can carry out specific data interaction.
Wherein, the network communications port 601 specifically can be used for obtaining data processing request, and generate the data
Handle the identity information of request.
The processor 602 specifically can be used for sending the data processing request to server, wherein the data
Processing request carries identity information, and the server carries out data processing for responding the data processing request, to return
The result data of the data processing request;It detects whether to receive the result data in the first preset time;In determination
In the case where being not received by the result data in the first preset time, label request is sent to server;Wherein, described
Label request carries the identity information of the data processing request, and the server is also used to be requested according to the label by institute
Data processing request corresponding to identity information is stated labeled as destination request, and is recorded and data corresponding to the destination request
Handle relevant intermediate data;It is spaced the second preset time, Xiang Suoshu server sends the first inquiry request, wherein described the
One inquiry request carries the identity information of destination request, and the server is also used to be obtained simultaneously according to first inquiry request
Return to the intermediate data of destination request;Receive and show the intermediate data of the destination request.
The memory 603 specifically can be used for the corresponding instruction repertorie that storage processor 602 is based on.
In the present embodiment, the network communications port 601 can be is bound from different communication protocol, so as to
To send or receive the virtual port of different data.For example, the network communications port can be responsible for carrying out web data communication
No. 80 ports, be also possible to be responsible for carry out FTP data communication No. 21 ports, can also be responsible for carry out email data communication
No. 25 ports.In addition, the network communications port can also be the communication interface or communication chip of entity.For example, it can
Think mobile radio network communication chip, such as GSM, CDMA;It can also be Wifi chip;It can also be Bluetooth chip.
In the present embodiment, the processor 602 can be implemented in any suitable manner.For example, processor can be adopted
The computer readable program code for taking such as microprocessor or processor and storage that can be executed by (micro-) processor is (such as soft
Part or firmware) computer-readable medium, logic gate, switch, specific integrated circuit (Application Specific
Integrated Circuit, ASIC), programmable logic controller (PLC) and the form etc. for being embedded in microcontroller.This specification is simultaneously
It is not construed as limiting.
In the present embodiment, the memory 603 may include many levels, in digital display circuit, as long as two can be saved
Binary data can be memory;In integrated circuits, the circuit with store function of a not no physical form
It is memory, such as RAM, FIFO;In systems, the storage equipment with physical form is also memory, such as memory bar, TF card
Deng.
This specification embodiment also provides a kind of server, including processor and is used for storage processor executable instruction
Memory, the processor be embodied when can be according to instruction execution following steps: receive client send label ask
It asks, wherein the label request carries the identity information of data processing request, and the label request is that client is pre- first
If being generated and sent in the case where the result data for being not received by the data processing request in the time;According to the label
Data processing request corresponding to institute's identity information is labeled as destination request by request;Record the intermediate data of destination request.
This specification embodiment additionally provides a kind of computer storage medium based on above-mentioned data processing method, the meter
Calculation machine storage medium is stored with computer program instructions, is performed realization in the computer program instructions: obtaining at data
Reason request, and generate the identity information of the data processing request;The data processing request is sent to server, wherein institute
It states data processing request and carries identity information, the server carries out data processing for responding the data processing request,
To return to the result data of the data processing request;It detects whether to receive the result data in the first preset time;
In the case where determination is not received by the result data in the first preset time, label request is sent to server;Its
In, the label request carries the identity information of the data processing request, and the server is also used to according to the label
Data processing request corresponding to the identity information is labeled as destination request by request, and record and the destination request institute are right
The relevant intermediate data of the data processing answered;It is spaced the second preset time, Xiang Suoshu server sends the first inquiry request,
In, first inquiry request carries the identity information of destination request, and the server is also used to according to first inquiry
Request and the intermediate data for returning to destination request;Receive and show the intermediate data of the destination request.
This specification embodiment additionally provides another computer storage medium based on above-mentioned data processing method, described
Computer storage medium is stored with computer program instructions, is performed realization in the computer program instructions: receiving client
The label request that end is sent, wherein the label request carries the identity information of data processing request, and the label request is
Client generates and sends in the case where being not received by the result data of the data processing request in the first preset time
's;It is requested according to the label, data processing request corresponding to institute's identity information is labeled as destination request;Record target is asked
The intermediate data asked.
In the present embodiment, above-mentioned storage medium includes but is not limited to random access memory (Random Access
Memory, RAM), read-only memory (Read-Only Memory, ROM), caching (Cache), hard disk (Hard DiskDrive,
) or storage card (Memory Card) HDD.The memory can be used for storing computer program instructions.Network communication unit
It can be according to standard setting as defined in communication protocol, for carrying out the interface of network connection communication.
In the present embodiment, the function and effect of the program instruction specific implementation of computer storage medium storage, can be with
Explanation is compareed with other embodiment, details are not described herein.
As shown in fig.7, this specification embodiment additionally provides a kind of data processing equipment on software view, the dress
It sets and can specifically include construction module below:
Module 701 is obtained, specifically can be used for obtaining data processing request, and generate the identity of the data processing request
Information;
First sending module 702 specifically can be used for sending the data processing request to server, wherein the number
Identity information is carried according to processing request, the server carries out data processing for responding the data processing request, to return
Return the result data of the data processing request;
Detection module 703 specifically can be used for detecting whether receiving the result data in the first preset time;?
In the case that determination is not received by the result data in the first preset time, label request is sent to server;Wherein,
The label request carries the identity information of the data processing request, and the server is also used to be requested according to the label
Data processing request corresponding to the identity information is labeled as destination request, and corresponding to record and the destination request
The relevant intermediate data of data processing;
Second sending module 704, specifically can be used for being spaced the second preset time, and Xiang Suoshu server sends the first inquiry
Request, wherein first inquiry request carries the identity information of destination request, and the server is also used to according to described the
One inquiry request obtains and returns to the intermediate data of destination request;
Display module 705 specifically can be used for receiving and showing the intermediate data of the destination request.
In one embodiment, it when it is implemented, obtaining module 701, specifically can be also used for receiving inquiry instruction, and
The identity information of destination request;And the inquiry instruction is responded, and generate second according to the identity information of the destination request and look into
Ask request;
Second sending module 704 specifically can be also used for sending second inquiry request to server, wherein described
Server is also used to obtain and return the intermediate data of destination request according to second inquiry request.
In one embodiment, above-mentioned acquisition module 701 can specifically include following structural unit:
First generation unit specifically can be used for responding preset trigger action and generate inquiry instruction, and show preset it is defeated
Enter frame;
First receiving unit specifically can be used for receiving the identity letter of the destination request by the default input frame
Breath.
In one embodiment, described device can also include specifically adjustment module, specifically can be used for according to the mesh
The intermediate data of request is marked, the adjusting parameter for being directed to the destination request is generated;The adjusting parameter is sent to the server,
Wherein, the server is also used to the data processing according to corresponding to adjusting parameter adjustment destination request.
In one embodiment, the adjusting parameter includes at least one of: the setting parameter of priority, processing thread
Replace parameter, the pause instruction of data processing etc..
It should be noted that unit, device or module etc. that above-described embodiment illustrates, specifically can by computer chip or
Entity is realized, or is realized by the product with certain function.For convenience of description, it describes to divide when apparatus above with function
It is described respectively for various modules.It certainly, can be the function of each module in same or multiple softwares when implementing this specification
And/or realized in hardware, the module for realizing same function can also be realized by the combination of multiple submodule or subelement etc..With
Upper described Installation practice is only schematical, for example, the division of the unit, only a kind of logic function is drawn
Point, there may be another division manner in actual implementation, such as multiple units or components may be combined or can be integrated into separately
One system, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling or straight
Connecing coupling or communication connection can be through some interfaces, and the indirect coupling or communication connection of device or unit can be electrical property,
Mechanical or other forms.
Therefore the data processing equipment that this specification embodiment provides, due to by passing through before data processing
Mr. module is obtained to come at data corresponding to designation date processing request and data processing request at corresponding identity information
Reason;In data processing, it detects whether to receive result data in the first preset time automatically by detection module, sentence
Whether disconnected data processing is overtime, sends the label request for carrying corresponding identity information, in case of overtime so as to server
The destination request of time-out is marked, and records the intermediate data of destination request;It is sent further through the second sending module and is based on mesh
Identity information the first inquiry request generated of request is marked, to obtain in overtime destination request from server in time
Between data show user, thus solve data processing present in existing method time-out in the case where client can not be timely
Disposition, the technical problem of interactive experience difference for obtaining the data processing of time-out, reaching can be timely, efficiently anti-to client
The intermediate data for presenting the data processing of time-out, improves the technical effect of the interactive experience in data handling procedure.
As shown in fig.8, this specification embodiment additionally provides another data processing equipment on software view, it should
Device can specifically include construction module below:
Receiving module 801 specifically can be used for receiving the label request of client transmission, wherein the label request is taken
Identity information with data processing request, the label request are described in client is not received by the first preset time
It is generated and sent in the case where the result data of data processing request;
Mark module 802 specifically can be used for being requested according to the label, by data processing corresponding to institute's identity information
Request marks are destination request;
Logging modle 803 specifically can be used for recording the intermediate data of destination request.
In one embodiment, above-mentioned logging modle 803 can specifically include following structural unit:
Unit is established, specifically can be used for establishing the data record sheet for being directed to the destination request;
Recording unit specifically can be used for acquiring mediant relevant to data processing corresponding to the destination request
According to, and the intermediate data is recorded in the data record sheet.
In one embodiment, it can also include enquiry module when above-mentioned apparatus is embodied, specifically can be used for receiving
First inquiry request, wherein first inquiry request carries the identity information of destination request, and first inquiry request is
The second preset time of client interval generates and sends;According to first inquiry request, the data record sheet is inquired, is obtained
Take the intermediate data of the destination request;The intermediate data is sent to client.
In one embodiment, above-mentioned enquiry module when it is implemented, can be also used for receive the second inquiry request,
In, second inquiry request carries the identity information of destination request, and second inquiry request is by client according to connecing
What the inquiry instruction of receipts and the identity information of destination request generated;According to second inquiry request, the data note is inquired
Table is recorded, the intermediate data of the destination request is obtained;The intermediate data is sent to client.
In one embodiment, above-mentioned apparatus specifically can also include adjustment module, specifically can be used for receiving for institute
State the adjusting parameter of destination request;According to the adjusting parameter, data processing corresponding to the destination request is adjusted.
In one embodiment, above-mentioned apparatus can also include specifically processing module, specifically can be used for obtaining at data
Reason request, wherein the data processing request carries identity information;According to the data processing request, data processing is carried out,
To obtain the result data of the data processing request.
Although being based on routine or nothing present description provides the method operating procedure as described in embodiment or flow chart
Creative means may include more or less operating procedure.The step of enumerating in embodiment sequence is only numerous steps
One of rapid execution sequence mode does not represent and unique executes sequence.When device or client production in practice executes,
Can be executed according to embodiment or the execution of method shown in the drawings sequence or parallel (such as parallel processor or multithreading
The environment of processing, even distributed data processing environment).The terms "include", "comprise" or its any other variant are intended to
Cover non-exclusive inclusion, so that the process, method, product or the equipment that include a series of elements not only include those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, product or setting
Standby intrinsic element.In the absence of more restrictions, being not precluded is including process, method, the product of the element
Or there is also other identical or equivalent elements in equipment.The first, the second equal words are used to indicate names, and are not offered as appointing
What specific sequence.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete
Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable
Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind
Hardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.Or
Person even, can will be considered as realizing the device of various functions either the software module of implementation method can be hardware again
Structure in component.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey
Sequence module.Generally, program module include routines performing specific tasks or implementing specific abstract data types, programs, objects,
Component, data structure, class etc..This specification can also be practiced in a distributed computing environment, in these distributed computing rings
In border, by executing task by the connected remote processing devices of communication network.In a distributed computing environment, program mould
Block can be located in the local and remote computer storage media including storage equipment.
By the description of above embodiment it is found that those skilled in the art can be understood that this specification can
It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution sheet of this specification
The part that contributes to existing technology can be embodied in the form of software products in other words in matter, which produces
Product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are with so that a computer is set
Standby (can be personal computer, mobile terminal, server or the network equipment etc.) execute each embodiment of this specification or
Method described in certain parts of embodiment.
Each embodiment in this specification is described in a progressive manner, the same or similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.This specification can be used for
In numerous general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device
Or portable device, laptop device, multicomputer system, microprocessor-based system, set top box, programmable electronics set
Standby, network PC, minicomputer, mainframe computer, distributed computing environment including any of the above system or equipment etc..
Although depicting this specification by embodiment, it will be appreciated by the skilled addressee that there are many become for this specification
Shape and the spirit changed without departing from this specification, it is desirable to which the attached claims include these deformations and change without departing from this
The spirit of specification.