CN106657193B - A kind of request processing method, device, terminal device and server - Google Patents

A kind of request processing method, device, terminal device and server Download PDF

Info

Publication number
CN106657193B
CN106657193B CN201510734581.6A CN201510734581A CN106657193B CN 106657193 B CN106657193 B CN 106657193B CN 201510734581 A CN201510734581 A CN 201510734581A CN 106657193 B CN106657193 B CN 106657193B
Authority
CN
China
Prior art keywords
request
processed
merging
array
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510734581.6A
Other languages
Chinese (zh)
Other versions
CN106657193A (en
Inventor
刘鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510734581.6A priority Critical patent/CN106657193B/en
Publication of CN106657193A publication Critical patent/CN106657193A/en
Application granted granted Critical
Publication of CN106657193B publication Critical patent/CN106657193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms

Abstract

The embodiment of the present invention provides a kind of request processing method, device, terminal device and server, and wherein method includes: to collect request to be processed;When reaching scheduled request collection termination condition, merge collected request to be processed, generates to merge and request;Request will be merged and be sent to server, so that server calls check logic verifies merging request, after verification passes through, server parses the merging request, determine the service logic for handling each request to be processed, so that server calls handle the service logic of each request to be processed, each request to be processed is handled, the processing result of each request to be processed is obtained;Merging to the processing result of each request to be processed for server feedback is received, merging treatment generated is as a result, parse merging treatment as a result, obtaining the processing result of each request to be processed.The embodiment of the present invention alleviates the data processing pressure of server, improves the overall treatment efficiency of multiple requests by way of merging request.

Description

A kind of request processing method, device, terminal device and server
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of request processing method, device, terminal device and clothes Business device.
Background technique
The application function (the application such as application of WEB application, mobile phone terminal, the application of the end PC) loaded for realization terminal device, it is whole There can be frequently a large amount of request between end equipment and server to interact, for the request that terminal device is sent, server needs It is handled, feedback processing result;Therefore, how to frequently a large amount of request is made at optimization between terminal device and server Reason, improves the treatment effeciency of request, is always research point concerned by people.
Request between terminal device and server be mainly HTTP (HyperText Transfer Protocol, it is super literary This transport protocol) it requests, the characteristic based on HTTP request, current request processing mode is main are as follows: server is to terminal device The each request sent carries out authorization check, safety inspection, and after authorization check, safety inspection pass through, call request is corresponding Business logic processing request, exports processing result.
The present inventor has found that server requests carried out authorization check, safety to each in the course of the research The check logics such as inspection are essentially identical, and existing request processing mode carries out identical check logic to each request, will make Obtaining server, there are a large amount of repeated works, and server data processing pressure is higher, and influence the disposed of in its entirety effect of multiple requests Rate.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of request processing method, device, terminal device and server, with solution Certainly existing request processing mode carries out identical check logic to each request, brought server data processing pressure compared with Height, and the problem of the overall treatment efficiency of the multiple requests of influence.
To achieve the above object, the embodiment of the present invention provides the following technical solutions:
A kind of request processing method is applied to terminal device, which comprises
Collect request to be processed;
When reaching scheduled request collection termination condition, merge collected request to be processed, generates to merge and request;
Request will be merged and be sent to server, so that server calls check logic verifies merging request, After verification passes through, server parses the merging request, the service logic for handling each request to be processed is determined, so that server The service logic for handling each request to be processed is called, each request to be processed is handled, obtains the processing result of each request to be processed;
Receive merging to the processing result of each request to be processed for server feedback, merging treatment knot generated Fruit parses merging treatment as a result, obtaining the processing result of each request to be processed.
The embodiment of the present invention also provides a kind of request processing method, is applied to server, which comprises
After obtaining the merging request to be processed that terminal device is sent, merging request generated;
Check logic is called to verify merging request;
After verification passes through, the merging request is parsed, determines the service logic for handling each request to be processed;
Each request to be processed of business logic processing for handling each request to be processed is called, the processing of each request to be processed is obtained As a result;
The processing result of each request to be processed is merged, merging treatment result is generated and feeds back to terminal device.
The embodiment of the present invention also provides a kind of request processing unit, is applied to terminal device, and described device includes:
Collection module, for collecting request to be processed;
Merging module, it is raw for when reaching scheduled request collection termination condition, merging collected request to be processed It is requested at merging;
Request sending module is sent to server for that will merge request, so that server calls check logic is to described Merge request to be verified, after verification passes through, server parses the merging request, determines the industry for handling each request to be processed Logic of being engaged in handles each request to be processed, obtains each to be processed so that server calls handle the service logic of each request to be processed The processing result of request;
As a result parsing module, for receiving merging to the processing result of each request to be processed for server feedback, institute The merging treatment of generation is as a result, parse merging treatment as a result, obtaining the processing result of each request to be processed.
The embodiment of the present invention also provides a kind of terminal device, including request processing unit described above.
The embodiment of the present invention also provides a kind of request processing unit, is applied to server, and described device includes:
Merge request module, after the merging request to be processed for obtaining terminal device transmission, merging generated Request;
Correction verification module, for calling check logic to verify merging request;
Request analysis module determines for after verification passes through, parsing the merging request and handles each request to be processed Service logic;
Request processing module is obtained for calling each request to be processed of business logic processing for handling each request to be processed The processing result of each request to be processed;
Processing result merges feedback module, for merging to the processing result of each request to be processed, generates at merging Reason result simultaneously feeds back to terminal device.
The embodiment of the present invention also provides a kind of server, including request processing unit described above.
Based on the above-mentioned technical proposal, in request processing method provided in an embodiment of the present invention, terminal device is being generated wait locate When reason request, it is first to collect request to be processed, is not that the request to be processed of generation is directly sent to server process;When reaching When collecting termination condition to scheduled request, the combinable collected request to be processed of terminal device generates and merges request Concurrency It send to server;Server is verified to by the combined merging request unified call check logic of multiple requests to be processed, is exempted from It has gone to greatly simplify the checking process of multiple requests, and reduce to multiple processes to be processed for requesting to be verified respectively To the checking time of multiple requests;Meanwhile server can be requested by parsing the merging, be carried out to each request to be processed Processing obtains processing result, completes processing of the server to each request to be processed.As it can be seen that request provided in an embodiment of the present invention Processing method, during realizing the request that server to process terminal equipment is sent, by way of merging request, so that clothes Business device can uniformly be verified to by the combined merging request of multiple requests to be processed, eliminated and distinguished multiple requests to be processed The process verified, greatly alleviates the data processing pressure of server, and reduces the checking time of multiple requests, mentions The overall treatment efficiency of multiple requests is risen.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the hardware structure schematic diagram of demand processing system provided in an embodiment of the present invention;
Fig. 2 is the signaling process figure of request processing method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of request processing method provided in an embodiment of the present invention;
Fig. 4 is the method flow diagram of request to be processed collected by merging provided in an embodiment of the present invention;
Fig. 5 is the another method flow chart of request to be processed collected by merging provided in an embodiment of the present invention;
Fig. 6 is another flow chart of request processing method provided in an embodiment of the present invention;
Fig. 7 is another flow chart of request processing method provided in an embodiment of the present invention;
Fig. 8 is the flow chart of paging file caching method provided in an embodiment of the present invention;
Fig. 9 is the storage method flow chart of paging file provided in an embodiment of the present invention;
Figure 10 is the method flow diagram of reduction paging file provided in an embodiment of the present invention;
Figure 11 is the another flow chart of request processing method provided in an embodiment of the present invention;
Figure 12 is the method flow diagram that parsing provided in an embodiment of the present invention merges request;
Figure 13 is the another method flow chart that parsing provided in an embodiment of the present invention merges request;
Figure 14 is the flow chart of paged data update method provided in an embodiment of the present invention;
Figure 15 is the structural block diagram of request processing unit provided in an embodiment of the present invention;
Figure 16 is the structural block diagram of merging module provided in an embodiment of the present invention;
Figure 17 is another structural block diagram of request processing unit provided in an embodiment of the present invention;
Figure 18 is another structural block diagram of request processing unit provided in an embodiment of the present invention;
Figure 19 is the another structural block diagram of request processing unit provided in an embodiment of the present invention;
Figure 20 is another structural block diagram again of request processing unit provided in an embodiment of the present invention;
Figure 21 is the hardware block diagram of terminal device provided in an embodiment of the present invention;
Figure 22 is another structural block diagram again of request processing unit provided in an embodiment of the present invention;
Figure 23 is the structural block diagram of request analysis module provided in an embodiment of the present invention;
Figure 24 is the another another structural block diagram of request processing unit provided in an embodiment of the present invention;
Figure 25 is the hardware block diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the hardware structure schematic diagram of demand processing system provided in an embodiment of the present invention, and processing system is requested shown in Fig. 1 System can be used for implementing request processing method provided in an embodiment of the present invention, to realize the data processing pressure for reducing server, mention Rise the overall treatment efficiency of multiple requests;
Referring to Fig.1, which may include: terminal device 10 and server 20;Terminal device 10 can be The user side equipments such as mobile phone, tablet computer, PC (personal computer);Server 20 is network side equipment, can be by separate unit service Device is realized, can also be realized by the server farm that multiple servers form;
Based on demand processing system shown in Fig. 1, Fig. 2 shows the signalings of request processing method provided in an embodiment of the present invention Flow chart, referring to figs. 1 and 2, which may include:
Step S10, terminal device collects request to be processed;
Optionally, the settable request pond of terminal device, to collect request to be processed;It needs to send out when terminal device generates one It send to when the request to be processed of server process, request to be processed is not sent to server immediately by terminal device, but will Request to be processed is collected in request pond;The generation of request to be processed can be triggered by user's operation.
Step S11, to be processed collected by terminal device merging to ask when reaching scheduled request collection termination condition It asks, generates and merge request;
Optionally, the embodiment of the present invention can periodically collect request to be processed, when reaching the predetermined collection period, terminal Equipment can will collect in the period, to be processed collected by request pond to request to merge, and generate and merge request;
Optionally, the embodiment of the present invention may also set up predetermined request collect number, when request pond collected by number of requests reach When collecting number to predetermined request, terminal device can merge request to be processed collected by request pond, generate and merge request;
Optionally, the embodiment of the present invention also collects the receipts that number carries out request to be processed in combination with predetermined collection period and request Collection;The period is collected when reaching predetermined, or, when number of requests collected by request pond reaches predetermined request collection number, terminal device Request to be processed collected by request pond can be merged, generate and merge request;
It may include service logic mark that request server deals in single request and request server deal with Pending data;When terminal device merges collected request to be processed, the embodiment of the present invention can be by each request to be processed Service logic mark merges, and the pending data of each request to be processed is merged;
Meanwhile for avoid merge bring request collision problem, the settable separator of the embodiment of the present invention, merge respectively to When the service logic mark of processing request, identified using each service logic of separators, merge each request to be processed to When handling data, using each pending data of separators;
Step S12, terminal device is sent to server for request is merged;
Step S13, server calls check logic verifies merging request, after verification passes through, server The merging request is parsed, determines the service logic for handling each request to be processed;
Optionally, after parsing the merging request, the service logic mark of each request to be processed is can be obtained in server, and each The pending data of request to be processed;Server can be identified by the service logic of each request to be processed, determine processing respectively wait locate Manage the service logic of request.
Step S14, server calls handle the service logic of each request to be processed, handle each request to be processed, obtain each The processing result of request to be processed;
Optionally, server can call the service logic of each request to be processed to identify corresponding service logic, processing respectively to The pending data for handling request, obtains the processing result of each request to be processed;
Optionally, the corresponding business of service logic mark that asynchronous mode calls each request to be processed can be used in server Logic, to handle the pending data of each request to be processed.
Step S15, server merges the processing result of each request to be processed, generates merging treatment result;
Optionally, the mode for merging the processing result of each request to be processed can be the processing result of each request to be processed It is ranked up combination.
Step S16, merging treatment result is fed back to terminal device by server;
Step S17, terminal device parses merging treatment as a result, obtaining the processing result of each request to be processed.
Optionally, if merging treatment is the result is that the collection sequence according to request to be processed is ranked up combination, terminal is set It is standby to determine the processing result of each request to be processed according to the sequence for managing result everywhere in merging treatment result.
Process can be seen that in request processing method provided in an embodiment of the present invention as shown in Figure 2, and terminal device is generating It is first to collect request to be processed when request to be processed, is not that the request to be processed of generation is directly sent to server process; When reaching scheduled request collection termination condition, the combinable collected request to be processed of terminal device generates and merges request And it is sent to server;Server carries out school to by the combined merging request unified call check logic of multiple requests to be processed It tests, eliminates to multiple processes to be processed for requesting to be verified respectively, greatly simplify the checking process of multiple requests, and Reduce the checking time to multiple requests;Meanwhile server can be requested by parsing the merging, to each request to be processed It is handled, obtains processing result, complete processing of the server to each request to be processed.As it can be seen that provided in an embodiment of the present invention Request processing method by way of merging request, makes during realizing the request that server to process terminal equipment is sent Obtaining server can uniformly verify to by the combined merging request of multiple requests to be processed, eliminate to multiple requests to be processed The process verified respectively, when greatly alleviating the data processing pressure of server, and reducing the verification of multiple requests Between, improve the overall treatment efficiency of multiple requests.
Below with the angle of terminal device, request processing method provided in an embodiment of the present invention is introduced, is hereafter retouched The request processing method stated can correspond to each other reference with signaling process content above.
Fig. 3 is the flow chart of request processing method provided in an embodiment of the present invention, and this method can be applied to terminal device, is joined According to Fig. 3, this method may include:
Step S100, request to be processed is collected;
Optionally, the embodiment of the present invention can collect request to be processed by setting request pond.
Step S110, to be processed collected by terminal device merging to ask when reaching scheduled request collection termination condition It asks, generates and merge request;
Optionally, the embodiment of the present invention can collect the period reaching predetermined, or, number of requests collected by request pond reaches When predetermined request collects number, determines that currently reaching scheduled request collects termination condition, can will request to be processed collected by pond Request merges, and generates and merges request;
It may include service logic mark that request server deals in single request and request server deal with Pending data;Terminal device can identify the service logic of each request to be processed when merging collected request to be processed It merges, the pending data of each request to be processed is merged;
Meanwhile for avoid merge bring request collision problem, the settable separator of the embodiment of the present invention, merge respectively to When the service logic mark of processing request, identified using each service logic of separators, merge each request to be processed to When handling data, using each pending data of separators.
Step S120, terminal device is sent to server for request is merged, so that server calls check logic is to described Merge request to be verified, after verification passes through, server parses the merging request, determines the industry for handling each request to be processed Logic of being engaged in handles each request to be processed, obtains each to be processed so that server calls handle the service logic of each request to be processed The processing result of request;
Step S130, merging to the processing result of each request to be processed for server feedback, conjunction generated are received And processing result, merging treatment is parsed as a result, obtaining the processing result of each request to be processed.
Optionally, Fig. 4 shows the method flow diagram of request to be processed collected by merging provided in an embodiment of the present invention, Referring to Fig. 4, this method may include:
Step S200, the service logic mark of each request to be processed is merged, and using separators respectively wait locate The service logic mark of reason request;
Optionally, when merging each service logic mark, to be identified convenient for the service logic of each request to be processed of differentiation, this Inventive embodiments can sequentially merge the service logic mark of each request to be processed according to the collection sequence of request to be processed, and Using each service logic mark of separators;
Obviously, the embodiment of the present invention can also (one to be processed for setting request mark in each service logic of merging mark The corresponding request mark of request), with the request mark identified by service logic, distinguish corresponding to each service logic mark Request to be processed.
Step S210, the pending data by each request to be processed merges, and each to be processed using separators The pending data of request.
Optionally, when merging each pending data, for the pending data convenient for distinguishing each request to be processed, the present invention Embodiment can sequentially merge the pending data of each request to be processed, and use and divide according to the collection sequence of request to be processed Separate each service logic mark every symbol;
Obviously, request mark can also be arranged in the embodiment of the present invention in each pending data of merging, by be processed The request of data identifies, and distinguishes request to be processed corresponding to each pending data
Optionally, step S200 and step S210 can be performed simultaneously, and can also successively be executed, can be not bright between two steps Aobvious sequencing.
Optionally, service logic mark may include: business logic modules mark and service logic action identification;According to asking Business logic modules mark in asking, server can navigate to the corresponding class of business logic modules (class);According in request Service logic action identification, server can navigate to the open member method (public member method) in such;From And the open member method in the class for passing through positioned business logic modules deals with the pending data of request;Business is patrolled Collecting module is that the functional module of a certain service logic is executed in server;
To avoid merging bring request collision problem, the settable level-one separator of the embodiment of the present invention and two fire resisting divisions Symbol, level-one separator can be used for separating business logic modules mark, the service logic action identification and wait locate of each request to be processed Manage data;And due to being also possible to carry other multiple parameters in each request, it is each that second level separators can be used The parameter of request to be processed.
Corresponding, Fig. 5 shows the another method stream of request to be processed collected by merging provided in an embodiment of the present invention Journey, referring to Fig. 5, this method may include:
Step S300, the business logic modules mark of each request to be processed is merged, and using level-one separator point It is identified every the business logic modules of each request to be processed;
Each business logic modules mark can sequentially merge according to the collection sequence of request to be processed, alternatively, can be in each business Setting request mark in logic module mark.
Step S310, the service logic action identification by each request to be processed merges, and using level-one separator point Every the service logic action identification of each request to be processed;
Each service logic action identification can sequentially merge according to the collection sequence of request to be processed, alternatively, can be in each business Setting request mark in logical action mark.
Step S320, the pending data by each request to be processed merges, and using level-one separators respectively to Handle the pending data of request;
Each pending data can sequentially merge according to the collection sequence of request to be processed, alternatively, can be in pending data Setting request mark.
Step S330, using the parameter of each request to be processed of second level separators.
The parameter of each request to be processed can sequentially merge according to the collection sequence of request to be processed, alternatively, can be respectively wait locate Manage the corresponding request mark of setting in the parameter of request.
Optionally, step S300- step S330 is regarded as the merging treatment branch to different data in request, step It can be without apparent sequencing between S300- step S330.
For ease of understanding, the instruction information identified using m as business logic modules, a are the instruction of service logic action identification Information, d are the instruction information of pending data, and s1 is the instruction information of level-one separator, and s2 is that the instruction of second level separator is believed Breath;Adjustment is visually actually needed in the concrete form of above-mentioned instruction information;
Assuming that the entry file of request is http://www.abc.com/do.php;
Two requests to be processed that need to merge are as follows:
Request 1, the request for the user information that inquiry ID is 1:
Http:// www.abc.com/do.php m=mUser&a=getUserInfo&d=1;
Request 2, the request for the merchandise news that inquiry ID is 1000:
Http:// www.abc.com/do.php m=mGoods&a=getGoodsInfo&d=1000;
After then merging above-mentioned two request to be processed, it can obtain merging request:
Http:// www.abc.com/do.php m=mUser_mGoods&a=getUserInfo_ GetGoodsInfo&d=1_1000&s1=_&s2=@;
As can be seen that merging the business logic modules mark (mUser) of request 1 in request and requesting 2 service logic mould Block identification (mGoods) is merged, and is separated using level-one separator " _ ";Merge in request, request 1 and request The merging position of 2 business logic modules mark, which uses, indicates information " m " instruction, and merges in request, requests 1 and request 2 Business logic modules are identified to be merged according to the sequencing of request;
The service logic action identification (getUserInfo) of request 1 and the service logic action identification of request 2 (getGoodsInfo) merged, and separated using level-one separator " _ ";Merge in request, request 1 and request The merging position of 2 service logic action identification, which uses, indicates information " a " instruction, and merges in request, requests 1 and request 2 Service logic action identification merges according to the sequencing of request;
The pending data (1) of request 1 and the pending data (1000) of request 2 are merged, and use level-one Separator " _ " separates;Merge in request, the merging position of the pending data of request 1 and request 2 is using instruction information " d " instruction, and merge in request, the pending data of request 1 and request 2 merges according to the sequencing of request;
Meanwhile being separated by parameter of the second level separator s2 to request 1 and request 2.
After merging request, which is sent to server, to be received by server, server can parse the merging request, obtain each The service logic of request to be processed identifies and the pending data of each request to be processed, to pass through the industry of each request to be processed Business logical identifier, determines the service logic for handling each request to be processed;And then the service logic of each request to be processed is called to identify Corresponding service logic handles the pending data of each request to be processed, obtains the processing result of each request to be processed;
Server can distinguish each request to be processed by the merging sequence that service logic identifies when parsing merges request Service logic mark;Alternatively, identifying by the request that service logic identifies, the service logic mark of each request to be processed is distinguished Know;
Server can also distinguish the to be processed of each request to be processed by the merging sequence of pending data in merging request Data;Alternatively, the request by pending data identifies, the pending data of each request to be processed is distinguished;
Server feeds back to terminal device after need to merging to the processing result of each request to be processed again, the conjunction fed back And processing result can be one-dimension array, is sorted and is combined by the processing result of each request to be processed;Sequence can be according to each to be processed The sequence in merging request is requested to determine;
If the processing result of above-mentioned request 1 is [0, { id:1, name: ' user ', sex: ' male ' }], above-mentioned request 2 Processing result is [0, { id:1000, name: ' commodity 1 ', price:100 }];Server can sequentially group be combined by two processing results [[0, { id:1, name: ' user ', sex: ' male ' }], [0, { id:1000, name: ' commodity 1 ', price:100 }]], it obtains Merge the corresponding merging treatment result of request;
Obviously, the corresponding request mark of each processing result can also be arranged in server in merging treatment result, to merge The processing result of each request to be processed is distinguished in processing result.
Terminal device can merge the sequence in request according to each request to be processed after receiving merging treatment result, The processing result of each request to be processed is sequentially parsed from merging treatment result;It such as requests 1 and 2 sequence is requested to be asked in merging It is that request 1 is prior to request 2 in asking;Then server is merging the sequence in request according to request 1 and request 2, is combined into request 1 With request 2 merging treatment result after, terminal device can sequentially be parsed from merging treatment result request 1 processing result and The processing result of request 2 obtains server to the processing result of request 1 and to the processing result of request 2;
Obviously, terminal device can also be identified by the request of each processing result in merging treatment result, at parsing merging After managing result, the corresponding request to be processed of each processing result is determined.
It is worth noting that, if it is to reach predetermined to collect the period that termination condition is collected in setting request, or, collected request Quantity reaches predetermined request and collects number, it is also possible to which there are some problems:
It such as collects that the period is too short, then requests combined utilization rate lower, predetermined request has not yet been reached in request, and to collect number (maximum Accumulative total) then merge;
Excessive cycle is collected, request will cause biggish subjective delay, and request is handled not in time.
Therefore in the embodiment of the present invention, the collection period can be needed be adjusted by practical business scene, need to guarantee to postpone It in acceptable range, improves collect the period as far as possible, tradeoff collects the period and collects the pros and cons of quantity;Preferably, receiving Collecting the period can be 200 milliseconds, and 200 milliseconds are most of service request acceptable delay time;
In addition, an optimization optinal plan as request processing, the embodiment of the present invention can be higher for response time requirement Request addition forbid merge identify, terminal device to have forbid merge identify request, do not collect in request pond, but To have and the request for merging mark is forbidden to be sent to server as individual request;
Corresponding, whether terminal device can determine whether to carry in request to be processed to forbid merging and identify, if so, terminal is set It is standby that request to be processed is sent to server, if it is not, then request to be processed can be collected by terminal device.
Preferably, Fig. 6 shows another flow chart of request processing method provided in an embodiment of the present invention, this method application In terminal device, referring to Fig. 6, this method may include:
Step S400, judge whether to carry in request to be processed to forbid merging and identify, if so, step S410 is executed, if It is no, execute step S420;
Step S410, request to be processed is sent to server;
Step S420, request to be processed is collected into request pond;
Step S430, when reaching the predetermined collection period, or, the collected request in request pond, quantity, which reaches, please make a reservation for seek receipts When collecting number, the business logic modules of each request to be processed in pond will be requested to identify, sequentially merged according to the collection sequence of request, and Using each business logic modules mark of level-one separators;The service logic of each request to be processed in pond will be requested to act mark Know, sequentially merges according to the collection sequence of request, and use each service logic action identification of level-one separators;It will request pond In each request to be processed pending data, according to request collection sequence sequentially merge, and using level-one separators it is each Pending data;And the parameter using each request to be processed in second level separators request pond, it generates and merges request;
Step S440, request will be merged and is sent to server, so that server calls check logic requests the merging It is verified, after verification passes through, server parses the merging request, so that the business of each request to be processed of server calls Logic module identifies corresponding business logic modules, executes corresponding service logical action to pending data and identifies corresponding business Logical action obtains the processing result of each request to be processed;
Step S450, receive server feedback merges merging generated to the processing result of each request to be processed Processing result sequentially parses the processing result of each request to be processed from merging treatment result;Wherein, each request to be processed Processing result generates merging treatment result after merging the sequence in request and being combined according to each request to be processed.
Request processing method provided in an embodiment of the present invention, by way of merging request, so that server can be to by more The combined merging request of a request to be processed is uniformly verified, and is eliminated to multiple mistakes to be processed for requesting to be verified respectively Journey, greatly alleviates the data processing pressure of server, and reduces the checking time of multiple requests, improves multiple requests Overall treatment efficiency;
Request processing method provided in an embodiment of the present invention improves the treatment effeciency of request in addition to combinable redundancy logic, Server load is reduced, outside the response speed for improving request on the whole, the connection number of terminal device and server can be also reduced, mention High network application response speed, this effect on mobile terminal are more prominent.
Optionally, terminal device also describes file using the paging of local cache, realizes to the paging in table data The acquisition of data;Table data such as items list, game ranking list, medal list etc. weekly, due to the data volume of table data It is larger, it is understood that there may be the case where thousands of, therefore table data can be used Paging system realization, i.e., table data can by point Page file is constituted;
Corresponding, Fig. 7 shows another flow chart of request processing method provided in an embodiment of the present invention, and this method can answer For terminal device, referring to Fig. 7, this method may include:
Step S500, when premises equipment requests paged data, the paging file of local cache is transferred;
The optional form of expression of paging file can be list_ { page } .js).
Step S510, data corresponding with requested paged data are determined from the paging file of local cache, are returned Identified data.
Optionally, the version of the paging file of local cache can be described file description by paging, and paging describes file storage There is the letter such as total page number, number of data lines of Version Description information, more new information and table data of the paging file of table data Breath;Fig. 8 shows paging file caching method provided in an embodiment of the present invention, and referring to Fig. 8, this method may include:
Step S600, terminal device describes the latest version information of file to server demand paging;
Optionally, terminal device can periodically describe the latest version information of file to server demand paging;It can also be with It is to preset several request time nodes, when reaching a certain request time node, then requests a latest version information;
Step S610, the latest version information of server feedback is received;
It is stored with paging in server and describes file, (such as when the data in paging file change in the server When increasing, delete, modifying), the paging file that data change occurs will generate new version number, meanwhile, point stored in server Corresponding informance in page description file also can accordingly update;There are the paging files of data change, will lead to paging and describe file The middle version for describing the paging file changes.
Step S620, the version information that the paging of the latest version information and local cache describes file is compared It is right;
Paging, which describes file, to be cached in terminal device, and the optional form of expression that paging describes file is version.js。
If version step S630, compared is inconsistent, there is the paged data updated to server pull in terminal device, with The paged data pulled updates the paging file of local cache, and caching, there is the paging of the latest version information to describe text Part.
Optionally, the inconsistent local paging file that not there is no caching of terminal device that can be of the version of comparison is (as the first time Into the case where application), alternatively, locally there is the paging file of caching, but the version of the paging file of local cache in terminal device This is inconsistent with latest edition;
It can be the paging file of the latest version information description and point of local cache there are the paged data of update In the version of the paging file of page description file description, paged data corresponding to inconsistent version.
Optionally, the request of latest version information, pulling for the paged data of update are related to terminal device and server Between request interaction;In embodiments of the present invention, the request of latest version information, or, the pulling for paged data updated can It is carried out in a manner of merging request, the mode that can also separately be requested carries out.
Since the renewal frequency of table data is lower, terminal device can by the paging file of local cache, realize to point The request of page data saves the step of server is accessed in demand paging data, so that the request to paged data is changed into Access to terminal device local static resource improves the request efficiency of paged data;And utilize terminal kimonos The caching at business device end will not cause caching bring paged data delay, lead to the problem that paged data is inconsistent;
Meanwhile in the embodiment of the present invention, the paging file of local cache only can be after paging describes the version change of file Resetting refreshes, so that the utilization of maximum possible can be obtained in caching;And Buffer Utilization depends on the change frequency of paging file, For the paging file not changed for a long time, Buffer Utilization is high, even without initiation network request;In concrete application In, user it is non-first enter in application, can by the paging file of caching, obtain quickly application response experience, even if The request of paged data can also be realized under the network environment of the relatively poor environment of network or mobile terminal.
Optionally, since the data volume of table data is larger, the embodiment of the present invention can in a manner of sparse matrix storage table Show the paging file of table data;Corresponding, Fig. 9 shows the storage method process of paging file provided in an embodiment of the present invention Figure, this method can be applied to terminal device, and referring to Fig. 9, this method may include:
Step S700, for the object array in paging file, the general character key assignments of each object in object array, composition are extracted Key assignments array;
Object array is Key (key assignments)-value (value) array, includes key assignments and the corresponding value of each key assignments;
Such as object array:
[
{id:1,name:'Bill'},
{id:2,name:'Lucy'},
{id:3,name:'Tom'}
]
Wherein, id:1, name:'Bill'} be first object, id:2, name:'Lucy'} be second object, { id:3, name:'Tom'} are third object, totally 3 objects, key assignments id, name;The corresponding value of key assignments is each id corresponding Value (the corresponding value 1 of id in such as first object) and corresponding value (the corresponding value of name in such as first object of each name Bill);
The general character key assignments of each object is id, name in object array, the general character key assignments of each object is formed key assignments array, then Key assignments array can be obtained: [' id', ' name'].
Step S710, the respective value for extracting the key assignments of each object, forms the value array of each object;
{ respective value of the key assignments of id:1, name:'Bill'} is 1, Bill to object, and object be { id:2, name:'Lucy'}'s The respective value of key assignments is 2, Lucy, and { respective value of the key assignments of id:3, name:'Tom'} is 3, Tom to object;Extract each object The respective value of key assignments, and the respective value of the key assignments of an object forms a value array, then the value array of each object can be obtained:
[1,'Bill'],
[2,'Lucy'],
[3,'Tom']
Step S720, using key assignments array as the one-dimensional of storage array, the value array group of each object is combined into storage array Two dimension, obtain storage array.
Carrying out depth-compression to the value array of each object can obtain so that the respective value of the key assignments of all objects is successively spliced Two-dimensional storage array can be then obtained using key assignments array as the first dimension of storage array to the second dimension of storage array:
[
['id','name'],
1,'Bill',2,'Lucy',3,'Tom'
]
Paging file can be stored in a manner of sparse matrix storing array, extremely by primary object array above Store array transformation, can the quantity amount to paging file compress, reduce the storage data quantity of paging file;By showing above Example can be seen that the data volume for storing array is only the 68% of paging file data volume, so that data volume is greatly compressed.
Corresponding, the embodiment of the present invention is also provided with the mechanism that storage array is reduced to paging file;Figure 10 is shown The method flow diagram of reduction paging file provided in an embodiment of the present invention, referring to Fig.1 0, this method may include:
Step S800, the key assignments for the one-dimensional key assignments array of array will be stored being included, the object array as paging file In each object key assignments;
Step S810, the respective value that will store the key assignments that the two-dimensional value array of array is included, is sequentially filled with and mutually copes with The value of the key assignments of elephant restores the object array of paging file.
By method shown in Figure 10, it is paging that the embodiment of the present invention, which can store the key assignments that the key assignments array of array is included, The field information of file, the respective value for the key assignments that the value array using storage array is included, the key assignments of each object of cyclic pac king Value, realize the reduction of the object array of paging file.
Optionally, request processing method provided in an embodiment of the present invention can be applied to be developed by Chinese Tencent general Integrating system (General Ticket System, GTS);After terminal device accesses General integral system server, it can experience The following function of being provided by integrating system server:
Game service marketing activity, accumulated point exchanging, acquisition and circulation;
Building and the medal honor system for supporting game service, while generating accumulated point exchanging and circulation;
Game service commodity exchange can be used gaming point redemption and obtain specified game articles;
Account binding, the contact details (such as mobile phone and address) of user are bound and are verified, and regular PUSH message is reminded User participates in latest activity, while providing convenient for the reward in kind of subsequent sweepstake;
Using request processing method provided in an embodiment of the present invention, realize terminal device and General integral system server it Between data interaction when, at least following advantage can be brought:
General integral system server (can be merged) system to the merging request that terminal device is sent by multiple requests to be processed One is verified, and is eliminated to multiple processes to be processed for requesting to be verified respectively, is greatly alleviated General integral system The data processing pressure of server, and the checking time of multiple requests is reduced, improve the overall treatment efficiency of multiple requests;
Terminal device, can be real by the paging file (paging file of caching is provided by General integral system) of local cache Now quick paged data request;
The mode for introducing sparse matrix stores the paging file of General integral system, can reduce the storage pressure of paging file Power.
Below with the angle of server, request processing method provided in an embodiment of the present invention is introduced, is described below Request processing method can with above with terminal device angle describe request processing method correspond to each other reference.
Figure 11 is the another flow chart of request processing method provided in an embodiment of the present invention, and this method can be applied to service Device, referring to Fig.1 1, this method may include:
Step S900, after obtaining the merging request to be processed that terminal device is sent, merging request generated;
Optionally, the service logic of each request to be processed can be identified and be merged by terminal device, and using separator point It is identified every the service logic of each request to be processed, the pending data of each request to be processed is merged, and use separator Separate the pending data of each request to be processed, to generate merging request.
Step S910, check logic is called to verify merging request;
Step S920, after verification passes through, the merging request is parsed, determines that the business for handling each request to be processed is patrolled Volume;
Optionally, the service logic mark and each request to be processed for merging each request to be processed in request can be parsed Pending data;
Step S930, each request to be processed of business logic processing for handling each request to be processed is called, is obtained each to be processed The processing result of request;
Optionally, server can call the service logic of each request to be processed to identify corresponding service logic, processing respectively to The pending data for handling request, obtains the processing result of each request to be processed;
Server can be used asynchronous mode and the service logic of each request to be processed called to identify corresponding service logic, with The pending data of each request to be processed is handled.
Step S940, the processing result of each request to be processed is merged, generate merging treatment result and feeds back to end End equipment.
Optionally, Figure 12 shows the parsing provided in an embodiment of the present invention method flow diagram for merging request, reference Figure 12, this method may include:
Step S1000, determine merge request in service logic mark merging position, split out separator separated it is each The service logic of request to be processed identifies;
Optionally, the instruction information that the merging position of service logic mark can be identified with service logic determines;Each business is patrolled Collecting mark can sequentially merge according to the collection sequence of request to be processed, corresponding, the conjunction that server can be identified according to service logic And sequence, split out the service logic mark for each request to be processed that separator is separated;
Optionally, each service logic identifies settable request mark, and corresponding, server can be identified according to each service logic Request mark, split out each request to be processed that separator is separated service logic mark.
Step S1010, determine the merging position for merging pending data in request, split out that separator separated respectively to Handle the pending data of request.
Optionally, the merging position of pending data can be determined with the instruction information of pending data;Each pending data Can sequentially it merge according to the collection sequence of request to be processed, corresponding, server can be torn open according to the merging sequence of pending data Separate the pending data for each request to be processed that separator is separated;
Optionally, the settable request mark of each pending data, corresponding, server can asking according to each pending data Mark is sought, each pending data for each request to be processed that separator is separated is split out.
Optionally, service logic mark may include business logic modules mark and service logic action identification, merge In request, level-one separators, the business of each request to be processed is can be used in the business logic modules mark of each request to be processed Level-one separators can be used in logical action mark, and level-one separator point can be used in the pending data of each request to be processed Every second level separators can be used in the parameter of each request to be processed;
Corresponding, Figure 13 shows the parsing provided in an embodiment of the present invention another method flow chart for merging request, Referring to Fig.1 3, this method may include:
Step S1100, it determines the merging position for merging business logic modules mark in request, splits out level-one separator institute The business logic modules mark of each request to be processed separated;
The merging position of business logic modules mark can be determined by the instruction information that business logic modules identify (as instruction is believed Breath can be for m);Server can be according to the request mark for the merging sequence or business logic modules mark that business logic modules identify Know, splits out the business logic modules mark for each request to be processed that level-one separator is separated.
Step S1110, it determines the merging position for merging service logic action identification in request, splits out level-one separator institute The service logic action identification of each request to be processed separated;
The merging position of service logic action identification can be determined by the instruction information of service logic action identification (such as instruction letter Breath can be for a);Server can be according to the merging sequence of service logic action identification or the request mark of service logic action identification Know, splits out the service logic action identification for each request to be processed that level-one separator is separated.
Step S1120, it determines the merging position for merging pending data in request, splits out what level-one separator was separated The pending data of each request to be processed;
The merging position of pending data can be determined with the instruction information of pending data (as instruction information can be for d); Server can split out level-one separator and divide according to the merging sequence of pending data or the request mark of pending data Every each request to be processed pending data.
Step S1130, the parameter for each request to be processed that second level separator is separated is split out.
Server can be according to the request mark of the parameter of the merging sequence or each request to be processed of the parameter of each request to be processed Know, splits out the parameter for each request to be processed that level-one separator is separated.
Optionally, after the business logic modules mark and service logic action identification for parsing each request to be processed, clothes Be engaged in device can the business logic modules of request to be processed identify corresponding business logic modules, corresponding industry is executed to pending data Logical action of being engaged in identifies corresponding service logic movement, realizes the pending data for handling each request to be processed.
Optionally, server can merge after the processing result for obtaining each request to be processed according to each request to be processed Sequence in request combines the processing result of each request to be processed, obtains merging treatment result;Server can also be in merging treatment As a result the corresponding request mark of each processing result of setting in, to distinguish the processing knot of each request to be processed in merging treatment result Fruit.
Request processing method provided in an embodiment of the present invention realizes the conjunction of redundancy logic by way of merging request And the treatment effeciency of request is improved, server load is reduced, improves the response speed of request on the whole.
Optionally, the paging file of table data can be stored in server and the paging of table data describes file, so that The paging that obtaining terminal device can describe to store in the version and server of file by comparing the paging of local cache describe file Latest edition, realize that the paged data for existing and updating pulls update;
Corresponding, Figure 14 shows the flow chart of paged data update method provided in an embodiment of the present invention, and this method can Applied to server, referring to Fig.1 4, this method may include:
Step S1200, the demand paging that receiving terminal apparatus is sent describes the information of the latest version information of file;
Step S1210, the latest version information is fed back into terminal device;
Step S1220, the version of file is described in the paging that terminal device compares the latest version information and local cache When this information is inconsistent, what receiving terminal apparatus was sent pulls the request in the presence of the paged data updated;
Step S1230, the paged data that there is update is sent to terminal device, so that terminal device is to be pulled Paged data update local cache paging file.
Optionally, it is corresponding can also to cache the latest version information when determining that the version compared is inconsistent for terminal device Paging file is described.
Optionally, to reduce the storage data quantity of paging file in the server, sparse square is can be used in the embodiment of the present invention The mode of battle array stores paging file in the server;Corresponding, server can extract pair the object array in paging file As the general character key assignments of object each in array, key assignments array is formed;The respective value for extracting the key assignments of each object forms the value of each object Array;Using key assignments array as the one-dimensional of storage array, the value array group of each object is combined into the two dimension of storage array, in conjunction with number The peacekeeping two dimension of group, obtains storage array.
Optionally, server can will also store array reducing component page file;Corresponding, server can will store array one The key assignments that the key assignments array of dimension is included, the key assignments as each object in the object array of paging file;It will storage array two dimension The value array key assignments that is included respective value, be sequentially filled with the value of the key assignments of corresponding object, restore pair of paging file As array.
Request processing unit provided in an embodiment of the present invention is introduced below, request processing unit described below can With above with terminal device angle describe request processing method correspond to each other reference.
Figure 15 is the structural block diagram of request processing unit provided in an embodiment of the present invention, which can be applied to terminal and set It is standby, referring to Fig.1 5, the apparatus may include:
Collection module 100, for collecting request to be processed;
Merging module 110, for when reaching scheduled request and collecting termination condition, merging collected to be processed ask It asks, generates and merge request;
Request sending module 120 is sent to server for that will merge request, so that server calls check logic is to institute It states merging request to be verified, after verification passes through, server parses the merging request, determines and handles each request to be processed Service logic handles each request to be processed, obtains respectively wait locate so that server calls handle the service logic of each request to be processed Manage the processing result of request;
As a result parsing module 130, for receiving merging to the processing result of each request to be processed for server feedback, Merging treatment generated is as a result, parse merging treatment as a result, obtaining the processing result of each request to be processed.
Optionally, the request to be processed may include: service logic mark and pending data;Figure 16 shows this hair A kind of alternative construction for the merging module 110 that bright embodiment provides, referring to Fig.1 6, merging module 110 may include:
Logical identifier combining unit 111 for merging the service logic mark of each request to be processed, and uses and divides Separate the service logic mark of each request to be processed every symbol;
Optionally, the embodiment of the present invention, can be according to the collection sequence of request to be processed when merging service logic mark, will The service logic mark of each request to be processed sequentially merges, alternatively, corresponding to request to be processed for the mark setting of each service logic Request mark, request mark one request to be processed of correspondence.
Data combination unit 112, for merging the pending data of each request to be processed, and using separator point Every the pending data of each request to be processed.
Optionally, the embodiment of the present invention, can be according to the collection sequence of request to be processed when merging pending data, will be each The pending data of request to be processed sequentially merges, alternatively, for each pending data setting request corresponding with request to be processed Mark.
Optionally, the service logic mark may include: business logic modules mark and service logic action identification;
Corresponding, logical identifier combining unit 111 is particularly used in, and the business logic modules of each request to be processed are identified It merges, and is identified using the business logic modules of each request to be processed of level-one separators;And by each request to be processed Service logic action identification merge, and using each request to be processed of level-one separators service logic act mark Know;
Optionally, the embodiment of the present invention, can be suitable according to the collection of request to be processed when merging business logic modules mark Sequence sequentially merges the business logic modules of each request to be processed mark, alternatively, for the setting of each business logic modules mark with to The corresponding request mark of processing request;
It, can be according to the collection sequence of request to be processed, by each request to be processed when merging service logic action identification Service logic action identification sequentially merges, alternatively, for each service logic action identification setting request corresponding with request to be processed Mark;
Data combination unit 112 is particularly used in, and the pending data of each request to be processed is merged, and uses one Fire resisting division symbol separates the pending data of each request to be processed;
Optionally, the embodiment of the present invention, can be according to the collection sequence of request to be processed when merging pending data, will be each The pending data of request to be processed sequentially merges, alternatively, for each pending data setting request corresponding with request to be processed Mark;
Corresponding, merging module 110 can also be used in, using the parameter of each request to be processed of second level separators.
Optionally, as a result parsing module 130 is particularly used in, and is merging the sequence in request according to each request to be processed, The processing result of each request to be processed is sequentially parsed from merging treatment result;Or, the request according to each processing result identifies, The processing result of request to be processed corresponding with request mark, a request mark corresponding one are parsed from merging treatment result A request to be processed.
Optionally, collection module 100 can only to do not carry forbid merge identify request to be processed be collected;Specifically , whether collection module 100 can determine whether to carry in request to be processed to forbid merging and identify, and not carry taboo if it is not, then collecting Only merge the request to be processed of mark;
It is corresponding, it is identified if being carried in request to be processed and forbidding merging, will can directly carry and forbid merging identifying Request to be processed be sent to server.
Figure 17 shows another structures of request processing unit provided in an embodiment of the present invention, in conjunction with Figure 15 and Figure 17 institute Show, which can also include:
Caching transfers module 140, for transferring the paging file of local cache when premises equipment requests paged data;
Paged data return module 150, for the determining and requested paged data from the paging file of local cache Corresponding data return to identified data.
Optionally, Figure 18 shows the process of caching of paging file provided in an embodiment of the present invention, and Figure 18 is that the present invention is real Another structural block diagram of the request processing unit of example offer is applied, in conjunction with shown in Figure 17 and Figure 18, which can also include:
Latest edition obtains module 160, for describing the latest version information of file to server demand paging, receives clothes The latest version information for device feedback of being engaged in;
Version comparison module 170, for the paging of the latest version information and local cache to be described to the version of file Information is compared;
There is the paging updated to server pull if the version for comparison is inconsistent in data pull cache module 180 Data, the paging file of local cache is updated with the paged data pulled, and caches point with the latest version information Page description file.
Optionally, the embodiment of the present invention can store paging file with sparse matrix;Figure 19 shows the embodiment of the present invention and mentions The another structural block diagram of the request processing unit of confession, in conjunction with shown in Figure 15 and Figure 19, which can also include:
Key assignments extraction module 190, for for the object array in paging file, extracting being total to for each object in object array Property key assignments, form key assignments array;
It is worth extraction module 200, the respective value of the key assignments for extracting each object forms the value array of each object;
Store array generation module 210, for using key assignments array as store array it is one-dimensional, by the value array of each object Group is combined into the two dimension of storage array, obtains storage array.
Optionally, Figure 20 shows the process for the paging file that reduction is stored with sparse matrix, and Figure 20 is that the present invention is implemented Another structural block diagram again for the request processing unit that example provides, in conjunction with shown in Figure 15 and Figure 20, which can also include:
Key assignments recovery module 220, the key assignments for will store the one-dimensional key assignments array of array and included, as paging file Object array in each object key assignments;
Value recovery module 230 is sequentially filled for that will store the respective value for the key assignments that the two-dimensional value array of array is included For the value of the key assignments of corresponding object, the object array of paging file is restored.
The embodiment of the present invention also provides a kind of terminal device, which may include request processing dress described above It sets.
Using terminal device provided in an embodiment of the present invention, can by way of merging request so that server can to by Multiple combineds merging requests of request to be processed are uniformly verified, and are eliminated and are verified respectively to multiple requests to be processed Process, greatly alleviates the data processing pressure of server, and reduces the checking time of multiple requests, improves multiple ask The overall treatment efficiency asked;Meanwhile by the paging file of local cache, it can be achieved that quickly paged data request;It introduces dilute The mode for dredging matrix stores paging file, reduces the storage pressure of paging file.
Figure 21 shows the hardware block diagram of terminal device provided in an embodiment of the present invention, and referring to Figure 21, which is set Standby may include: processor 1, communication interface 2, memory 3 and communication bus 4;
Wherein processor 1, communication interface 2, memory 3 complete mutual communication by communication bus 4;
Optionally, communication interface 2 can be the interface of communication module, such as the interface of gsm module;
Processor 1, for executing program;
Memory 3, for storing program;
Program may include program code, and said program code includes computer operation instruction.
Processor 1 may be a central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.
Memory 3 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile Memory), a for example, at least magnetic disk storage.
Wherein, program can be specifically used for:
Collect request to be processed;
When reaching scheduled request collection termination condition, merge collected request to be processed, generates to merge and request;
Request will be merged and be sent to server, so that server calls check logic verifies merging request, After verification passes through, server parses the merging request, the service logic for handling each request to be processed is determined, so that server The service logic for handling each request to be processed is called, each request to be processed is handled, obtains the processing result of each request to be processed;
Receive merging to the processing result of each request to be processed for server feedback, merging treatment knot generated Fruit parses merging treatment as a result, obtaining the processing result of each request to be processed.
Below with the angle of server, request processing unit provided in an embodiment of the present invention is introduced, is described below Request processing unit can with above with server side describe request processing method correspond to each other reference.
Figure 22 is that another structural block diagram, device again of request processing unit provided in an embodiment of the present invention can be applied to take Business device, reference Figure 22, the apparatus may include:
Merge request module 300, after the merging request to be processed for obtaining terminal device transmission, conjunction generated And it requests;
Correction verification module 310, for calling check logic to verify merging request;
Request analysis module 320 parses the mergings request for after verification passes through, and determines and handles each to be processed ask The service logic asked;
Request processing module 330 is obtained for calling each request to be processed of business logic processing for handling each request to be processed To the processing result of each request to be processed;
Processing result merges feedback module 340, for merging to the processing result of each request to be processed, generates and merges Processing result simultaneously feeds back to terminal device.
Optionally, the request to be processed may include: service logic mark and pending data;Figure 23 shows this hair A kind of alternative construction for the request analysis module 320 that bright embodiment provides, referring to Figure 23, request analysis module 320 may include:
Service logic identifies determination unit 321, for determining the merging position for merging service logic mark in request, splits The service logic for each request to be processed that separator is separated out identifies;
Optionally, can according to service logic identify merging sequence, or, according to each service logic mark request mark, Split out the service logic mark for each request to be processed that separator is separated, request mark correspondence one to be processed to ask It asks;
The instruction information that the merging position of service logic mark can be identified with service logic determines.
Pending data determination unit 322 is split out point for determining the merging position for merging pending data in request Every the pending data for each request to be processed that symbol is separated.
Optionally, it can be split according to the merging sequence of pending data or, the request according to each pending data identifies The pending data for each request to be processed that separator is separated out;
The merging position of pending data can be determined with the instruction information of pending data.
Corresponding, request processing module 330 is particularly used in, and calls the service logic mark of each request to be processed corresponding Service logic handles the pending data of each request to be processed.
Optionally, the service logic mark may include: business logic modules mark and service logic action identification;
Service logic mark determination unit 321 is particularly used in, and determines the conjunction for merging business logic modules mark in request And position, split out the business logic modules mark for each request to be processed that level-one separator is separated;And it determines and merges request The merging position of middle service logic action identification, the service logic for splitting out each request to be processed that level-one separator is separated are dynamic It makes a check mark;
Business logic modules mark mergings position can by business logic modules mark instruction information determine, service logic The merging position of action identification can be determined by the instruction information of service logic action identification;
Optionally, it can be identified according to the request for the merging sequence or business logic modules mark that business logic modules identify, Split out the business logic modules mark for each request to be processed that level-one separator is separated;It can be according to service logic action identification Merging sequence or service logic action identification request mark, split out each request to be processed that level-one separator is separated Service logic action identification;
Pending data determination unit 322 is particularly used in, and is determined the merging position for merging pending data in request, is torn open Separate the pending data for each request to be processed that level-one separator is separated;
The merging position of pending data can be determined with the instruction information of pending data;
Optionally, a fraction can be split out according to the merging sequence of pending data or the request mark of pending data Every the pending data for each request to be processed that symbol is separated;
Further, the also removable parameter for separating each request to be processed that second level separator is separated of request analysis module 320; Optionally, it can be split according to the request mark of the parameter of the merging sequence or each request to be processed of the parameter of each request to be processed The parameter for each request to be processed that second level separator is separated out;
Corresponding, request processing module 330 is particularly used in, and is called the business logic modules of request to be processed to identify and is corresponded to Business logic modules, corresponding service logical action executed to pending data identify corresponding service logic and act.
Optionally, processing result merges feedback module 340 and is particularly used in, according to each request to be processed in merging request Sequence, combine the processing result of each request to be processed;Or, the corresponding request of each processing result is arranged in merging treatment result Mark.
Optionally, server according to the request of terminal device, can also feed back the paged data of update to terminal device;Figure 24 For the another another structural block diagram of request processing unit provided in an embodiment of the present invention, which can be applied to server, in conjunction with figure 22 and Figure 24, the apparatus may include:
Latest edition feedback module 350, the demand paging for receiving terminal apparatus transmission describe the latest edition of file The latest version information is fed back to terminal device by the information of information;
Request of data receiving module 360 is updated, for comparing the latest version information and local cache in terminal device Paging describe file version information it is inconsistent when, what receiving terminal apparatus was sent pull asking in the presence of the paged data updated It asks;
Data feedback module 370 is updated, for the paged data that there is update to be sent to terminal device, so as to end End equipment updates the paging file of local cache with the paged data pulled.
Optionally, in the server, the embodiment of the present invention can store paging file with sparse matrix;As shown in figure 19, In On the basis of server shown in Figure 22, server can also include:
Key assignments extraction module, for extracting the general character of each object in object array for the object array in paging file Key assignments forms key assignments array;
It is worth extraction module, the respective value of the key assignments for extracting each object forms the value array of each object;
Store array generation module, for using key assignments array as store array it is one-dimensional, by the value array group of each object It is combined into the two dimension of storage array, obtains storage array.
Optionally, server can also restore the paging file stored with sparse matrix;As shown in figure 20, it is taken shown in Figure 22 It is engaged on the basis of device, server can also include:
Key assignments recovery module, the key assignments for will store the one-dimensional key assignments array of array and included, as paging file The key assignments of each object in object array;
Value recovery module is sequentially filled with for that will store the respective value for the key assignments that the two-dimensional value array of array is included The value of the key assignments of corresponding object restores the object array of paging file.
The embodiment of the present invention also provides a kind of server, which may include above-mentioned to ask described in server side Seek processing unit.
Figure 25 shows the hardware block diagram of server provided in an embodiment of the present invention, and referring to Figure 25, which can To include: processor 1 ', communication interface 2 ', memory 3 ' and communication bus 4 ';
Wherein processor 1 ', communication interface 2 ', memory 3 ' complete mutual communication by communication bus 4 ';
Processor 1 ', for executing program;
Wherein, program can be specifically used for:
After obtaining the merging request to be processed that terminal device is sent, merging request generated;
Check logic is called to verify merging request;
After verification passes through, the merging request is parsed, determines the service logic for handling each request to be processed;
Each request to be processed of business logic processing for handling each request to be processed is called, the processing of each request to be processed is obtained As a result;
The processing result of each request to be processed is merged, merging treatment result is generated and feeds back to terminal device.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (30)

1. a kind of request processing method, which is characterized in that be applied to terminal device, which comprises
Collect request to be processed;Single request to be processed includes at least: pending data and its instruction information;
When reaching scheduled request collection termination condition, merge collected request to be processed, generates to merge and request;The conjunction And in requesting, the merging position of the pending data of different requests to be processed is indicated using same instruction information;
Request will be merged and be sent to server, so that server calls check logic uniformly verifies merging request, After verification passes through, server parses the merging request, the service logic for handling each request to be processed is determined, so that server The service logic for handling each request to be processed is called, each request to be processed is handled, obtains the processing result of each request to be processed;
Merging to the processing result of each request to be processed for server feedback is received, merging treatment generated is as a result, solution Merging treatment is analysed as a result, obtaining the processing result of each request to be processed.
2. request processing method according to claim 1, which is characterized in that the request to be processed includes: service logic Mark and pending data;
Collected by the merging it is to be processed request include:
The service logic mark of each request to be processed is merged, and using each service logic mark of separators;And it will The pending data of each request to be processed merges, and uses each pending data of separators.
3. request processing method according to claim 2, which is characterized in that identify the service logic of each request to be processed When merging, according to the collection sequence of request to be processed, each service logic mark is sequentially merged, alternatively, being patrolled for each business It collects mark and request mark corresponding with request to be processed is set, a request, which identifies, corresponds to a request to be processed;
It, will be each to be processed according to the collection sequence of request to be processed when the pending data of each request to be processed is merged Data sequentially merge, alternatively, request mark corresponding with request to be processed is arranged for each pending data.
4. request processing method according to claim 2, which is characterized in that the service logic mark includes: that business is patrolled Collect module id and service logic action identification;
The service logic by each request to be processed, which identifies to merge, includes:
The business logic modules mark of each request to be processed is merged, and uses each service logic mould of level-one separators Block identification;And the service logic action identification of each request to be processed is merged, and use each business of level-one separators Logical action mark;
The pending data by each request to be processed, which merges, includes:
The pending data of each request to be processed is merged, and uses each pending data of level-one separators;
The method also includes:
Using the parameter of each request to be processed of second level separators.
5. request processing method according to claim 4, which is characterized in that by the business logic modules of each request to be processed When mark merges, according to the collection sequence of request to be processed, each business logic modules mark is sequentially merged, alternatively, being Each business logic modules mark is arranged request corresponding with request to be processed and identifies, and a request, which identifies, to be corresponded to one and to be processed ask It asks;
It, will be each according to the collection sequence of request to be processed when the service logic action identification of each request to be processed is merged Service logic action identification sequentially merges, alternatively, for each service logic action identification setting request corresponding with request to be processed Mark;
It, will be each to be processed according to the collection sequence of request to be processed when the pending data of each request to be processed is merged Data sequentially merge, alternatively, request mark corresponding with request to be processed is arranged for each pending data;
The parameter of each request to be processed is sequentially merged according to the collection sequence of request to be processed, alternatively, being each request to be processed Parameter setting request to identify accordingly.
6. request processing method according to claim 1, which is characterized in that it is described collect it is to be processed request include:
Judge whether to carry in request to be processed to forbid merging and identify;
Forbid merging the request to be processed identified if it is not, then collecting and not carrying;
Server is sent to if so, will carry and forbid merging the request to be processed identified.
7. request processing method according to claim 1, which is characterized in that the method also includes:
When premises equipment requests paged data, the paging file of local cache is transferred;
Data corresponding with requested paged data are determined from the paging file of local cache, return to identified data.
8. request processing method according to claim 7, which is characterized in that the process of caching of the paging file includes:
The latest version information of file is described to server demand paging;
Receive the latest version information of server feedback;
The latest version information is compared with the version information that the paging of local cache describes file;
If the version compared is inconsistent, there is the paged data updated to server pull, is updated with the paged data pulled The paging file of local cache, and caching, there is the paging of the latest version information to describe file.
9. request processing method according to claim 7 or 8, which is characterized in that the method also includes: with sparse matrix Store paging file;
It is described to include: with sparse matrix storage paging file
For the object array in paging file, the general character key assignments of each object in object array is extracted, forms key assignments array;
The respective value for extracting the key assignments of each object forms the value array of each object;
Using key assignments array as the one-dimensional of storage array, the value array group of each object is combined into the two dimension of storage array, is deposited Store up array.
10. request processing method according to claim 9, which is characterized in that the method also includes: reduction is with sparse square The paging file of battle array storage;
The reduction with the paging file that sparse matrix stores includes:
The key assignments for the one-dimensional key assignments array of array will be stored being included, the key as each object in the object array of paging file Value;
The respective value for the key assignments that the two-dimensional value array of array is included will be stored, is sequentially filled with the value of the key assignments of corresponding object, Restore the object array of paging file.
11. a kind of request processing method, which is characterized in that be applied to server, which comprises
After obtaining the merging request to be processed that terminal device is sent, merging request generated;Single request to be processed is at least wrapped It includes: pending data and its instruction information;In the merging request, different requests to be processed are indicated using same instruction information Pending data merging position;
Unified call check logic verifies merging request;
After verification passes through, the merging request is parsed, determines the service logic for handling each request to be processed;
Each request to be processed of business logic processing for handling each request to be processed is called, the processing knot of each request to be processed is obtained Fruit;
The processing result of each request to be processed is merged, merging treatment result is generated and feeds back to terminal device.
12. request processing method according to claim 11, which is characterized in that the request to be processed includes: that business is patrolled Collect mark and pending data;The parsing merging is requested
It determines the merging position for merging service logic mark in request, splits out the industry for each request to be processed that separator is separated Business logical identifier;
Determine merge request in pending data merging position, split out each request to be processed that separator is separated wait locate Manage data.
13. request processing method according to claim 12, which is characterized in that the merging according to service logic mark is suitable Sequence, or, the request mark according to each service logic mark, splits out the service logic for each request to be processed that separator is separated Mark, a request identify a corresponding request to be processed;
Merging sequence according to pending data splits out separator and is separated or, the request according to each pending data identifies Each request to be processed pending data.
14. request processing method according to claim 12, which is characterized in that the service logic mark is patrolled including business Collect module id and service logic action identification;
The determining merging position for merging service logic mark in request, splits out each request to be processed that separator is separated Service logic mark include:
Determine merge request in business logic modules mark merging position, split out level-one separator separated it is each to be processed The business logic modules of request identify;And determine the merging position for merging service logic action identification in request, split out level-one The service logic action identification for each request to be processed that separator is separated;
The determining merging position for merging pending data in request, splits out each request to be processed that separator is separated Pending data includes:
It determines the merging position for merging pending data in request, splits out each request to be processed that level-one separator is separated Pending data;
The method also includes:
Split out the parameter for each request to be processed that second level separator is separated.
15. request processing method according to claim 14, which is characterized in that the merging according to business logic modules mark Sequentially or the request of business logic modules mark identifies, and splits out the business for each request to be processed that level-one separator is separated Logic module mark;
According to the merging sequence of service logic action identification or the request mark of service logic action identification, a fraction is split out Every the service logic action identification for each request to be processed that symbol is separated;
According to the merging sequence of pending data or the request mark of pending data, split out what level-one separator was separated The pending data of each request to be processed;
The request mark of the parameter of the merging sequence or each request to be processed of parameter according to each request to be processed, splits out two The parameter for each request to be processed that fire resisting division symbol is separated.
16. request processing method according to claim 11, which is characterized in that the method also includes:
The demand paging that receiving terminal apparatus is sent describes the information of the latest version information of file;
The latest version information is fed back into terminal device;
When the version information that the paging that terminal device compares the latest version information and local cache describes file is inconsistent, What receiving terminal apparatus was sent pulls the request in the presence of the paged data updated;
The paged data that there is update is sent to terminal device, so that terminal device is updated with the paged data pulled The paging file of local cache.
17. request processing method according to claim 16, which is characterized in that the method also includes: with sparse matrix Store paging file;
It is described to include: with sparse matrix storage paging file
For the object array in paging file, the general character key assignments of each object in object array is extracted, forms key assignments array;
The respective value for extracting the key assignments of each object forms the value array of each object;
Using key assignments array as the one-dimensional of storage array, the value array group of each object is combined into the two dimension of storage array, is deposited Store up array.
18. request processing method according to claim 17, which is characterized in that the method also includes: reduction is with sparse The paging file of matrix storage;
The reduction with the paging file that sparse matrix stores includes:
The key assignments for the one-dimensional key assignments array of array will be stored being included, the key as each object in the object array of paging file Value;
The respective value for the key assignments that the two-dimensional value array of array is included will be stored, is sequentially filled with the value of the key assignments of corresponding object, Restore the object array of paging file.
19. a kind of request processing unit, which is characterized in that be applied to terminal device, described device includes:
Collection module, for collecting request to be processed;Single request to be processed includes at least: pending data and its instruction letter Breath;
Merging module, for merging collected request to be processed, generating and close when reaching scheduled request collection termination condition And it requests;In the merging request, the merging of the pending data of different requests to be processed is indicated using same instruction information Position;
Request sending module is sent to server for that will merge request, so that server calls check logic is to the merging Request is uniformly verified, and after verification passes through, server parses the merging request, determines the industry for handling each request to be processed Logic of being engaged in handles each request to be processed, obtains each to be processed so that server calls handle the service logic of each request to be processed The processing result of request;
As a result parsing module is generated for receiving merging to the processing result of each request to be processed for server feedback Merging treatment as a result, parsing merging treatment as a result, obtaining the processing result of each request to be processed.
20. request processing unit according to claim 19, which is characterized in that the request to be processed includes: that business is patrolled Collect mark and pending data;
The merging module includes:
Logical identifier combining unit, for merging the service logic mark of each request to be processed, and using separator point It is identified every each service logic;
Data combination unit, for the pending data of each request to be processed to be merged, and using separators respectively to Handle data.
21. request processing unit according to claim 19, which is characterized in that further include:
Caching transfers module, for transferring the paging file of local cache when premises equipment requests paged data;
Paged data return module, for determining count corresponding with requested paged data from the paging file of local cache According to data determined by return.
22. request processing unit according to claim 21, which is characterized in that further include:
Latest edition obtains module, and for describing the latest version information of file to server demand paging, it is anti-to receive server The latest version information of feedback;
Version comparison module, the version information for the paging of the latest version information and local cache to be described to file carry out It compares;
There is the paged data updated to server pull if the version for comparison is inconsistent in data pull cache module, with The paged data pulled updates the paging file of local cache, and caching, there is the paging of the latest version information to describe text Part.
23. the request processing unit according to claim 21 or 22, which is characterized in that further include:
Key assignments extraction module, for extracting the general character key assignments of each object in object array for the object array in paging file, Form key assignments array;
It is worth extraction module, the respective value of the key assignments for extracting each object forms the value array of each object;
Array generation module is stored, for using key assignments array as the one-dimensional of storage array, the value array group of each object to be combined into The two dimension for storing array obtains storage array;
And
Key assignments recovery module, the key assignments for will store the one-dimensional key assignments array of array and included, the object as paging file The key assignments of each object in array;
It is worth recovery module, for the respective value for the key assignments that the two-dimensional value array of array is included will to be stored, is sequentially filled with corresponding The value of the key assignments of object restores the object array of paging file.
24. a kind of terminal device, which is characterized in that including the described in any item request processing units of claim 19-23.
25. a kind of request processing unit, which is characterized in that be applied to server, described device includes:
Merge request module, after the merging request to be processed for obtaining terminal device transmission, merging request generated; Single request to be processed includes at least: pending data and its instruction information;In the merging request, using same instruction information Come indicate different requests to be processed pending data merging position;
Correction verification module verifies merging request for unified call check logic;
Request analysis module determines the business for handling each request to be processed for after verification passes through, parsing the merging request Logic;
Request processing module, for calling each request to be processed of business logic processing for handling each request to be processed, obtain respectively to Handle the processing result of request;
Processing result merges feedback module, for merging to the processing result of each request to be processed, generates merging treatment knot Fruit simultaneously feeds back to terminal device.
26. request processing unit according to claim 25, which is characterized in that the request to be processed includes: that business is patrolled Collect mark and pending data;The request analysis module includes:
Service logic identifies determination unit, for determining the merging position for merging service logic mark in request, splits out separation Accord with the service logic mark of each request to be processed separated;
Pending data determination unit splits out separator institute for determining the merging position for merging pending data in request The pending data of each request to be processed separated;
The request processing module is specifically used for, and the service logic of each request to be processed is called to identify corresponding service logic, place Manage the pending data of each request to be processed.
27. request processing unit according to claim 25, which is characterized in that further include:
Latest edition feedback module, the demand paging for receiving terminal apparatus transmission describe the letter of the latest version information of file Breath, feeds back to terminal device for the latest version information;
Request of data receiving module is updated, the paging for comparing the latest version information and local cache in terminal device is retouched State file version information it is inconsistent when, receiving terminal apparatus send pull in the presence of update paged data request;
Data feedback module is updated, for the paged data that there is update to be sent to terminal device, so as to terminal device The paging file of local cache is updated with the paged data pulled.
28. request processing unit according to claim 27, which is characterized in that further include:
Key assignments extraction module, for extracting the general character key assignments of each object in object array for the object array in paging file, Form key assignments array;
It is worth extraction module, the respective value of the key assignments for extracting each object forms the value array of each object;
Array generation module is stored, for using key assignments array as the one-dimensional of storage array, the value array group of each object to be combined into The two dimension for storing array obtains storage array;
And
Key assignments recovery module, the key assignments for will store the one-dimensional key assignments array of array and included, the object as paging file The key assignments of each object in array;
It is worth recovery module, for the respective value for the key assignments that the two-dimensional value array of array is included will to be stored, is sequentially filled with corresponding The value of the key assignments of object restores the object array of paging file.
29. a kind of server, which is characterized in that including the described in any item request processing units of claim 25-28.
30. a kind of storage medium, which is characterized in that be stored with executable software module, the software in the storage medium Module is performed realization: such as the described in any item request processing methods of claim 1-10, alternatively, such as claim 11-18 Described in any item request processing methods.
CN201510734581.6A 2015-11-02 2015-11-02 A kind of request processing method, device, terminal device and server Active CN106657193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510734581.6A CN106657193B (en) 2015-11-02 2015-11-02 A kind of request processing method, device, terminal device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510734581.6A CN106657193B (en) 2015-11-02 2015-11-02 A kind of request processing method, device, terminal device and server

Publications (2)

Publication Number Publication Date
CN106657193A CN106657193A (en) 2017-05-10
CN106657193B true CN106657193B (en) 2019-11-19

Family

ID=58810940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510734581.6A Active CN106657193B (en) 2015-11-02 2015-11-02 A kind of request processing method, device, terminal device and server

Country Status (1)

Country Link
CN (1) CN106657193B (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623788B (en) * 2017-09-22 2020-10-27 海南飞特同创科技有限公司 Method and device for improving application starting speed and computer readable storage medium
CN107766088A (en) * 2017-09-27 2018-03-06 努比亚技术有限公司 Interface optimization method, system and computer-readable recording medium
CN107733879A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 Client terminal start-up method, mobile terminal and computer storage media
CN107872571A (en) * 2017-10-27 2018-04-03 努比亚技术有限公司 Interface requests method, interface requests response method, mobile terminal and server
CN107729215A (en) * 2017-10-30 2018-02-23 努比亚技术有限公司 Interface interchange method, mobile terminal and computer-readable recording medium
CN109842646A (en) * 2017-11-27 2019-06-04 北京京东尚科信息技术有限公司 The treating method and apparatus of network request
CN107967183A (en) * 2017-11-29 2018-04-27 努比亚技术有限公司 A kind of application interface merges operation method, mobile terminal and computer-readable recording medium
CN108037959B (en) * 2017-11-30 2021-01-01 努比亚技术有限公司 Intelligent interface merging method, mobile terminal and computer readable storage medium
CN108304302B (en) * 2017-12-22 2021-08-24 努比亚技术有限公司 Interface merging method, equipment and computer readable storage medium
CN108306856B (en) * 2017-12-26 2021-01-01 努比亚技术有限公司 Interface merging method, client, server and computer readable storage medium
CN109660612A (en) * 2018-12-11 2019-04-19 北京潘达互娱科技有限公司 A kind of request processing method and server
CN109617974B (en) * 2018-12-21 2021-12-28 珠海金山办公软件有限公司 Request processing method and device and server
CN109451076B (en) * 2018-12-29 2022-03-25 卓米私人有限公司 Network request merging processing method and device and electronic equipment
CN111600920B (en) * 2019-02-21 2024-03-05 北京京东尚科信息技术有限公司 JS-based data request proxy method, device, equipment and readable storage medium
CN110781120B (en) * 2019-10-23 2023-02-28 山东华芯半导体有限公司 Method for realizing cross-4 KB transmission of AXI bus host equipment
CN111092877B (en) * 2019-12-12 2022-09-02 北京金山云网络技术有限公司 Data processing method and device, electronic equipment and storage medium
CN114157661B (en) * 2020-09-07 2024-01-16 北京奇艺世纪科技有限公司 Data request method, data processing method, related device, equipment and system
CN112926002A (en) * 2021-03-10 2021-06-08 工银科技有限公司 Service request processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719153A (en) * 2009-12-09 2010-06-02 中国工商银行股份有限公司 Device and method for carrying out transmission processing on massive data files
CN103401909A (en) * 2013-07-24 2013-11-20 迈普通信技术股份有限公司 Data interaction method and system based on BS (browser/server), client end and server
CN104573035A (en) * 2015-01-16 2015-04-29 杭州犀照科技有限公司 Caching service method and device and news information obtaining method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719153A (en) * 2009-12-09 2010-06-02 中国工商银行股份有限公司 Device and method for carrying out transmission processing on massive data files
CN103401909A (en) * 2013-07-24 2013-11-20 迈普通信技术股份有限公司 Data interaction method and system based on BS (browser/server), client end and server
CN104573035A (en) * 2015-01-16 2015-04-29 杭州犀照科技有限公司 Caching service method and device and news information obtaining method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于GPU的稀疏矩阵向量乘优化;白洪涛,欧阳丹彤,李熙铭,李亭,何丽莉;《计算机科学》;20100831;第37卷(第8期);第168-181页 *

Also Published As

Publication number Publication date
CN106657193A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657193B (en) A kind of request processing method, device, terminal device and server
TWI337715B (en) Method and system for complex event processing
CN104424229B (en) A kind of calculation method and system that various dimensions are split
CN111459986B (en) Data computing system and method
CN106815254B (en) Data processing method and device
CN109558397B (en) Data processing method, device, server and computer storage medium
CN106412034B (en) Method for processing business and device
CN110233741B (en) Service charging method, device, equipment and storage medium
CN110764936A (en) Data acquisition method and device
CN110619701A (en) Queuing channel recommendation method and device, storage medium and electronic equipment
CN110334072A (en) A kind of distributed file system, file updating method and device
CN112256954A (en) Message pushing processing method and related system
CN110222253A (en) A kind of collecting method, equipment and computer readable storage medium
CN112905928A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN111367690A (en) Method and device for supporting combined API service calling
CN111210340A (en) Automatic task processing method and device, server and storage medium
CN108898482B (en) Multi-product signing method and device
CN107592553A (en) A kind of compression of images agency balance processing method and processing device
CN112286662B (en) Task pushing method, device and equipment based on shared resources and storage medium
CN109857934A (en) Software module cache prefetching method, apparatus and medium based on user behavior analysis
CN111274203B (en) System and method for storing telephone bill
CN111625375B (en) Account reservation method and device, storage medium and electronic equipment
CN111414567B (en) Data processing method and device
CN111198986B (en) Information transmission method, device, electronic equipment and storage medium
CN110471922A (en) Expansion of content method, equipment and the computer readable storage medium of accounting nodes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant