CN108073580A - A kind of processing method and processing device based on page concurrent request - Google Patents
A kind of processing method and processing device based on page concurrent request Download PDFInfo
- Publication number
- CN108073580A CN108073580A CN201610981153.8A CN201610981153A CN108073580A CN 108073580 A CN108073580 A CN 108073580A CN 201610981153 A CN201610981153 A CN 201610981153A CN 108073580 A CN108073580 A CN 108073580A
- Authority
- CN
- China
- Prior art keywords
- request
- page data
- data request
- concurrent
- page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of processing method and processing devices based on page concurrent request, are related to Internet technical field, and main purpose is to control the concurrent quantity of page data request and according to the sequential processes page data request of priority.The main technical solution of the present invention is:The concurrent quantity of maximum of page data request is set;Judge whether the quantity of currently processed page data request reaches the concurrent quantity of maximum;If reaching, pending page data request is preserved to request ordered set, the page data request asked in ordered set is ranked up according to preset priority;If the page data request that high priority not up to, is extracted from the request ordered set is handled.Present invention is mainly used for the concurrent requests in the processing page.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of processing methods and dress based on page concurrent request
It puts.
Background technology
AJAX (asynchronous JavaScript and XML, Asynchronous Javascript And XML) refers to a kind of establishment
The web development technologies of interaction network page application.And AJAX request then refers to the XMLHttpRequest objects provided using browser
Data are obtained from backstage.At present in the exploitation of front end page, data are obtained from backstage by using AJAX request, are then shown
It in the page, can so accomplish page Local hydrodynamic unit, reach good interaction effect.
When developing the page, it will usually be divided into multiple functional blocks according to each business function of the page and be developed, respectively
A functional block obtains data from backstage by AJAX request alone and shows.When page complexity sharply increases, module splits ten
When dividing complicated and careful, multiple AJAX requests are often simultaneously emitted by a page, and since browser can be sent parallel
AJAX request limited amount, when the quantity that AJAX request is simultaneously emitted by is more than this quantity, additional request can always etc.
It treats, causes page address portions functional response slow, until can just be responded after the completion of AJAX request, this has seriously affected interaction so that
Page display data is very slow.
It is that multiple AJAX requests in the page are integrated into one to solve the excessive scheme of the concurrent quantity of AJAX request at present
AJAX request a, it is desirable that interface of rear end returns to the data of multiple functional units.However, multiple AJAX requests are merged into one
After a request, the data which includes are inevitable very huge, can not solve the problems, such as that request feedback data is slow,
Cannot user interface be responded with prestissimo.In addition, this mode will bring adverse effect for the code function division of rear end,
So that become responsibility not single for back end interface function, in demand shift, code becomes difficult to safeguard.
The content of the invention
In view of this, the present invention provides a kind of processing method and processing device based on page concurrent request, and main purpose is
Control the concurrent quantity of page data request and according to the sequential processes page data request of priority.
In order to achieve the above objectives, present invention generally provides following technical solutions:
On the one hand, the present invention provides a kind of processing method based on page concurrent request, this method includes:
The concurrent quantity of maximum of page data request is set;
Judge whether the quantity of currently processed page data request reaches the concurrent quantity of maximum;
If reaching, pending page data request is preserved to request ordered set, it is described to ask in ordered set
Page data request be ranked up according to preset priority;
If the page data request that high priority not up to, is extracted from the request ordered set is handled.
Preferably, whether the quantity for judging currently processed page data request reaches the maximum concurrent quantity bag
It includes:
Judge whether the quantity of currently processed page data request reaches described maximum concurrent according to preset time interval
Quantity;
Alternatively, judge whether the quantity of currently processed page data request reaches when there is new page data request generation
To the concurrent quantity of maximum.
Preferably, it is described when the quantity for judging currently processed page data request reaches the maximum concurrent quantity
Method further includes:
Detect the quantity performed of currently processed page data request;
According to the quantity performed from it is described request ordered set in extract high priority page data request carry out from
Reason.
Preferably, described preserve pending page data request to request ordered set includes:
The data structure of object in the request ordered set is set;
Pending page data request is preserved into the request ordered set according to the data structure.
Preferably, when the quantity of currently processed page data request is not up to the maximum concurrent quantity, the side
Method further includes:
When pending page data request is not present in the request ordered set, then obtain newly-generated in the page
Page data request is handled.
On the other hand, the present invention also provides a kind of processing unit based on page concurrent request, which includes:
Setting unit, for setting the concurrent quantity of maximum of page data request;
Judging unit is set for judging whether the quantity of currently processed page data request reaches the setting unit
The concurrent quantity of maximum;
Storage unit judges that the quantity of currently processed page data request reaches maximum simultaneously for working as the judging unit
When sending out quantity, pending page data request is preserved to request ordered set, the page number asked in ordered set
It is ranked up according to request according to preset priority;
Extraction unit judges that the quantity of currently processed page data request is not up to maximum for working as the judging unit
During concurrent quantity, the page data request that high priority is extracted from the request ordered set is handled.
Preferably, the judging unit includes:
First judgment module, for whether judging the quantity of currently processed page data request according to preset time interval
Reach the concurrent quantity of maximum;
Second judgment module, for judging currently processed page data request when there is new page data request generation
Quantity whether reach the concurrent quantity of maximum.
Preferably, described device further includes:
Detection unit, the quantity for judging currently processed page data request in the judging unit reach it is described most
During big concurrent quantity, the quantity performed of currently processed page data request is detected;
The extraction unit is additionally operable to, according to the quantity performed that the detection unit detects from the request ordered set
The page data request of extraction high priority is handled.
Preferably, the storage unit includes:
Setup module, for setting the data structure of object in the request ordered set;
Memory module, for being preserved pending page data request according to the data structure that the setup module is set
Into the request ordered set.
Preferably, described device further includes:
Acquiring unit, for being not up to the maximum number of concurrent in the quantity for judging currently processed page data request
Amount, and in the request ordered set page newly-generated in the page is obtained there is no during pending page data request
Request of data is handled.
According to a kind of processing method and processing device based on page concurrent request that the invention described above is proposed, at setting
The concurrent quantity of page data request is managed to ensure that each request handled simultaneously carries out data with sufficient process resource
Transmitting-receiving operation, meanwhile, in the page occur more than concurrent quantity request of data when, by pre-setting the difference in the page
The priority-level of request of data determines the request of data of priority processing.Multiple requests are merged into one compared with existing
Ask the way that is handled, it is of the invention then be the priority processing grade that the request of data is first set before request of data generates
Not, so as to ensure that important data content preferentially can be updated and shown, and can be with to the limitation of parallel data number of requests
The configuration of effective control bandwidth resource, so as to ensure that individual data asks to obtain fast and effeciently feedback response, to update the page
In data.Therefore, the present invention is mainly high by focusing on priority in substantial amounts of concurrent request in handling the page
Request of data preferentially updates significant data in the page, and user is allowed to feel that page data being capable of quick newer usage experience.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will be apparent understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of process flow figure based on page concurrent request that the embodiment of the present invention proposes;
Fig. 2 shows another process flow figure based on page concurrent request that the embodiment of the present invention proposes;
Fig. 3 shows a kind of processing unit composition frame chart based on page concurrent request that the embodiment of the present invention proposes;
Fig. 4 shows another processing unit composition frame chart based on page concurrent request that the embodiment of the present invention proposes.
Specific embodiment
Exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to be best understood from the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of processing method based on page concurrent request, as shown in Figure 1, this method application
In there are the page of a large amount of concurrent data requests, to improve the renewal rate of data in the page, this embodiment of the present invention is carried
For following specific steps:
The 101st, the concurrent quantity of maximum of page data request is set.
Generally, display the page browser itself there is page data request concurrent quantity limitation, this be because
More for the request of parallel processing, required process resource is also bigger, and under conditions of process resource is certain, it is parallel to locate
The request of reason is fewer, then the process resource that single request is distributed is also bigger, also faster for the speed that handles the request.
In embodiments of the present invention, the concurrent quantity of set maximum is within the concurrent quantity limited in browser
One setting value, the value is can be adjusted according to specific content in the page, i.e., when the page is complex, it is possible to create and
When the quantity of hair request of data is larger, which can be set as to a larger value, so as to the more numbers of processing simultaneously
According to request, and when the page is relatively simple, then the value can be set as to a smaller value, to increase individual data request
Process resource, improve processing speed.
102nd, judge whether the quantity of currently processed page data request reaches the concurrent quantity of maximum of setting.
In the data request process of the processing page, system can first count the page data request in being presently processing
Quantity judges that it is concurrent whether currently processed page data request quantity has reached in step 101 set maximum with this
Quantity if reaching, illustrates that system allows while the page data request of processing is to reach the upper limit, performs step 103 at this time;If
Not up to, then illustrate also there are the process resource for handling new page data request in system, at this point, performing step 104.
103rd, pending page data request is preserved to request ordered set.
According to the judgement of step 102, when the quantity for the page data request that system is being handled reaches the maximum of setting simultaneously
When sending out quantity, if just the page data request is preserved to request and is arranged there are still pending page data request in system
In ordered sets.Wherein, request ordered set is the page data request that can not be currently handled for memory page, and the set
Have the function of to be ranked up the request object in set.
It should be noted that in embodiments of the present invention, page data request just carries corresponding priority in generation
Index, the index are used for the significance level of representation page request of data, and the higher instruction page request of data of priority to be sent
Or the data received are more important.And for priority, rule is specifically set during page animation really, for example, one
There is the newer data content of needs, it is necessary to by sending number there are two mac functions in a page, and in each block
Updated according to request, that is to say, that the page during application is shown may concurrent two request of data update correspondence
Area's data in the block.And to distinguish the priority of two request of data, it is necessary to when making the page, just set each block
Priority index, so each block will exist the block corresponding priority index mark when generating request of data
In request of data, the request of data with priority index is obtained.
104th, the page data request that high priority is extracted from request ordered set is handled.
According to the judgement of step 102, when the quantity for the page data request that system is being handled is not reaching to setting most
During big concurrent quantity, system extraction page data request will be handled from request ordered set.Wherein, the page number of extraction
It is extracted according to request according to the order of priority from high to low, to ensure the priority processing to important request, in addition, the page of extraction
Request of data quantity is then that the difference for the quantity being presently processing according to maximum concurrent quantity with system extracts, and is protected with this
Demonstrate,prove the pending page data request in processing request ordered set as much as possible.
The processing based on page concurrent request used by the embodiment of the present invention is can be seen that with reference to above-mentioned realization method
Method, each request for ensureing to handle simultaneously by setting the concurrent quantity of processing page data request is with sufficient place
The transmitting-receiving operation that resource carries out data is managed, meanwhile, when occurring the request of data more than concurrent quantity in the page, by setting in advance
The priority-level of the request of the different data in the page is put to determine the request of data of priority processing.Compared with it is existing will be multiple
Request merges into one and asks the way handled, and the embodiment of the present invention is then first to set the number before request of data generation
According to the priority processing rank of request, so as to ensure that important data content preferentially can be updated and shown, and to parallel data
The limitation of number of requests can effective control bandwidth resource configuration, so as to ensure that individual data is asked to obtain fast and effeciently instead
Feedback response, to update the data in the page.Therefore, the embodiment of the present invention is in substantial amounts of concurrent request in handling the page, mainly
It is the request of data high by focusing on priority, preferentially updates significant data in the page, user is allowed to feel page data
It being capable of quick newer usage experience.
According to the explanation of above-described embodiment, the processing method proposed by the present invention based on page concurrent request can be seen
Work is increased a kind of scheduling mechanism of concurrent request in the processing method of existing page data request, by concurrently please
The Optimized Operation asked realizes the quick update of page data.Below for the specific reality of the more detailed explanation scheduling mechanism
Existing mode, the embodiment of the present invention using the page of AJAX request especially to be illustrated, in the data of the embodiment of the present invention
In demand processing system, increase the scheduler of AJAX request, above-mentioned scheduling mechanism is performed by the scheduler, it is specific as schemed
Shown in 2, the step of performing the scheduling mechanism, includes:
The 201st, the concurrent quantity of maximum of AJAX request is set.
In embodiments of the present invention, scheduler when setting the maximum concurrent quantity of AJAX request can according to actual demand into
Row adjustment in real time, for example, in an identical page, the quantity of AJAX request that in different times may be concurrent in section is not
Together, for this purpose, the concurrent quantity of maximum of the page can respectively be set for the different periods.
202nd, judge whether the quantity of currently processed AJAX request reaches the concurrent quantity of maximum of setting.
Scheduler is while the maximum concurrent quantity of AJAX request is determined, AJAX that the system that can record is presently processing
The quantity of request, and compare the size of the two.When the quantity handled is maximum concurrent quantity, then step 203 is performed, and
When the quantity handled is less than maximum concurrent quantity, then step 204 is performed.
It should be noted that judge whether the quantity of currently processed AJAX request reaches the maximum of setting simultaneously for triggering
Send out quantity condition, the embodiment of the present invention do not limit be judged in real time or be according to AJAX request number current in system
The variation of amount and the judgement carried out.Wherein, judge in real time in belonging in a manner that preset time interval is judged
One kind, that is, when preset time interval is sufficiently small, it is possible to it is considered as real-time judgement, the setting for time interval,
It then needs to be treated with a certain discrimination according to the specific environment of web application;And for the variation according to AJAX request quantity current in system
Judged, can be triggered according to whether there is new AJAX request in the page, i.e., this is just carried out there are new AJAX request
The judgement of step or whether complete to trigger according to the AJAX request being presently processing, i.e., there are at least one places
The judgement of this step is just carried out when managing the AJAX request completed.
203rd, pending AJAX request is preserved to request ordered set.
In this step, scheduler can preserve currently pending AJAX request to request ordered set, that is, will be big
It is preserved in the AJAX request of maximum concurrent quantity to request ordered set.Wherein, ordered set is asked when preserving AJAX request,
Need the data structure of setting standard, that is, by AJAX request according to the object data structure set by request ordered set into
Row storage, and when scheduler extracts corresponding AJAX request from the request ordered set, it is also desirable to according to the data knot
Structure reduces AJAX request.It should be noted that the main contents in the data structure include the priority and phase of AJAX request
The parameter of pass, such as call back function when call back function when asking successfully, request failure.In this regard, the embodiment of the present invention provides
A kind of specific data structure is as follows:
In the data structure, priority represents priority, and the smaller priority of number is higher, and ajaxPara represents AJAX
Parameter needed for request:Callbacks.done represents call back function during AJAX request success, and callbacks.fail is represented
Call back function when AJAX request fails.
204th, the quantity performed of currently processed AJAX request is detected.
According to the judgement of step 202, i.e., when the quantity for judging currently processed AJAX request is maximum concurrent quantity, adjust
Device is spent while step 203 is performed, the AJAX request being presently processing can be also monitored, to determine that these AJAX please
Seeking Truth no completion processing, after having AJAX request completion processing, illustrate the quantity of currently processed AJAX request already less than
Maximum concurrent quantity, at this point, performing step 205.Wherein, the quantity for AJAX request being extracted from request ordered set depends on institute
Detect the quantity for the AJAX request that processing is completed.
205th, the AJAX request that high priority is extracted from request ordered set is handled.
Wherein, the logic for extracting AJAX request is extracted successively from high to low according to the order of priority, and when multiple
When the priority of AJAX request is identical, is then preserved to the time in request ordered set according to AJAX request and extracted successively, i.e., first
The AJAX request advantage distillation of deposit.
In addition, when ask in ordered set be not present pending AJAX request when or extraction AJAX request number
When amount is more than the AJAX request quantity preserved in request ordered set, then AJAX request newly-generated in the page is obtained.Namely
It says, when extracting AJAX request, preferentially extracts pending AJAX request from request ordered set.
Further, as the realization to the above method, an embodiment of the present invention provides one kind to be based on page concurrent request
Processing unit, the device embodiment is corresponding with preceding method embodiment, for ease of read, present apparatus embodiment is no longer to foregoing
Detail content in embodiment of the method is repeated one by one, it should be understood that before the device in the present embodiment can correspond to realization
State the full content in embodiment of the method.The device is for handling the page there are a large amount of concurrent data requests, to improve the page
The renewal rate of middle data, specifically as shown in figure 3, the device includes:
Setting unit 31, for setting the concurrent quantity of maximum of page data request;
Judging unit 32, for judging whether the quantity of currently processed page data request reaches the setting unit 31
The concurrent quantity of maximum of setting;
Storage unit 33 judges that the quantity of currently processed page data request reaches most for working as the judging unit 32
During big concurrent quantity, pending page data request is preserved to request ordered set, the page asked in ordered set
Face request of data is ranked up according to preset priority;
Extraction unit 34 judges that the quantity of currently processed page data request is not up to for working as the judging unit 32
During maximum concurrent quantity, the page data request that high priority is extracted from the request ordered set is handled.
Further, as shown in figure 4, the judging unit 32 includes:
First judgment module 321, for judging the quantity of currently processed page data request according to preset time interval
Whether the maximum concurrent quantity is reached;
Second judgment module 322, for judging currently processed page data when there is new page data request generation
Whether the quantity of request reaches the concurrent quantity of maximum.
Further, as shown in figure 4, described device further includes:
Detection unit 35, for judging that the quantity of currently processed page data request reaches institute in the judging unit 32
When stating maximum concurrent quantity, the quantity performed of currently processed page data request is detected;
The extraction unit 34 is additionally operable to, and is collected according to the quantity performed that the detection unit 35 detects from the request sequence
The page data request that high priority is extracted in conjunction is handled.
Further, as shown in figure 4, the storage unit 33 includes:
Setup module 331, for setting the data structure of object in the request ordered set;
Memory module 332, for being asked pending page data according to the data structure that the setup module 331 is set
Preservation is asked into the request ordered set.
Further, as shown in figure 4, described device further includes:
Acquiring unit 36, for being not up to the maximum number of concurrent in the quantity for judging currently processed page data request
Amount, and the extraction unit 34 cannot obtain page from when asking extract pending page data request in ordered set
Newly-generated page data request is handled in face.
In conclusion the processing method and processing device based on page concurrent request used by the embodiment of the present invention, by setting
The concurrent quantity of processing page data request is put to ensure that each request handled simultaneously is carried out with sufficient process resource
The transmitting-receiving operation of data, meanwhile, when occurring the request of data more than concurrent quantity in the page, by pre-setting in the page
The priority-level of different data request determines the request of data of priority processing.Multiple requests are merged into compared with existing
One is asked the way handled, and the embodiment of the present invention is then first to set the excellent of the request of data before request of data generation
Rank is first handled, so as to ensure that important data content preferentially can be updated and shown, and to parallel data number of requests
Limitation can effective control bandwidth resource configuration, so as to ensure that individual data asks to obtain fast and effeciently feedback response,
Update the data in the page.Therefore, the embodiment of the present invention mainly passes through concentration in substantial amounts of concurrent request in handling the page
The high request of data of processing priority preferentially updates significant data in the page, user is allowed to feel that page data can quickly more
New usage experience.
The processing unit based on page concurrent request includes processor and memory, and above-mentioned setting unit judges list
Member, storage unit and extraction unit etc. in memory, memory are stored in by processor execution as program unit storage
In above procedure unit realize corresponding function.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, by adjusting kernel parameter the concurrent quantity of page data request is controlled to realize and with the sequential processes page of priority
Face request of data.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
It is first when being performed on data processing equipment, being adapted for carrying out present invention also provides a kind of computer program product
The program code of beginningization there are as below methods step:The concurrent quantity of maximum of page data request is set;Judge currently processed page
Whether the quantity of face request of data reaches the concurrent quantity of maximum;If reaching, pending page data request is preserved
To request ordered set, the page data request in the request ordered set is ranked up according to preset priority;If not
Reach, then the page data request that high priority is extracted from the request ordered set is handled.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
Also there are other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the application
Form.It is deposited moreover, the application can be used to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
It these are only embodiments herein, be not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.
Claims (10)
1. a kind of processing method based on page concurrent request, which is characterized in that the described method includes:
The concurrent quantity of maximum of page data request is set;
Judge whether the quantity of currently processed page data request reaches the concurrent quantity of maximum;
If reaching, pending page data request is preserved to request ordered set, the page asked in ordered set
Face request of data is ranked up according to preset priority;
If the page data request that high priority not up to, is extracted from the request ordered set is handled.
2. the according to the method described in claim 1, it is characterized in that, quantity for judging currently processed page data request
Whether reaching the maximum concurrent quantity includes:
Judge whether the quantity of currently processed page data request reaches the concurrent quantity of maximum according to preset time interval;
Alternatively, judge whether the quantity of currently processed page data request reaches institute when there is new page data request generation
State maximum concurrent quantity.
3. it according to the method described in claim 2, it is characterized in that, is reached in the quantity for judging currently processed page data request
During to the maximum concurrent quantity, the method further includes:
Detect the quantity performed of currently processed page data request;
The page data request for extracting high priority from the request ordered set according to the quantity performed is handled.
4. according to the method described in claim 1, it is characterized in that, described preserve pending page data request to request
Ordered set includes:
The data structure of object in the request ordered set is set;
Pending page data request is preserved into the request ordered set according to the data structure.
5. according to the method described in claim 1, it is characterized in that, the quantity in currently processed page data request is not up to
During the concurrent quantity of the maximum, the method further includes:
When pending page data request is not present in the request ordered set, then the page newly-generated in the page is obtained
Request of data is handled.
6. a kind of processing unit based on page concurrent request, which is characterized in that described device includes:
Setting unit, for setting the concurrent quantity of maximum of page data request;
Judging unit is set most for judging whether the quantity of currently processed page data request reaches the setting unit
Big concurrent quantity;
Storage unit judges that the quantity of currently processed page data request reaches maximum number of concurrent for working as the judging unit
During amount, pending page data request is preserved to request ordered set, the page data asked in ordered set please
It asks and is ranked up according to preset priority;
Extraction unit judges that the quantity of currently processed page data request is not up to maximum concurrently for working as the judging unit
During quantity, the page data request that high priority is extracted from the request ordered set is handled.
7. device according to claim 6, which is characterized in that the judging unit includes:
First judgment module, for judging whether the quantity of currently processed page data request reaches according to preset time interval
The concurrent quantity of maximum;
Second judgment module, for when there is the number that currently processed page data request is judged during new page data request generation
Whether amount reaches the concurrent quantity of maximum.
8. device according to claim 7, which is characterized in that described device further includes:
Detection unit, the quantity for judging currently processed page data request in the judging unit reach the maximum simultaneously
When sending out quantity, the quantity performed of currently processed page data request is detected;
The extraction unit is additionally operable to, and is extracted according to the quantity performed that the detection unit detects from the request ordered set
The page data request of high priority is handled.
9. device according to claim 6, which is characterized in that the storage unit includes:
Setup module, for setting the data structure of object in the request ordered set;
Memory module, for being preserved pending page data request to institute according to the data structure that the setup module is set
It states in request ordered set.
10. device according to claim 6, which is characterized in that described device further includes:
Acquiring unit, for being not up to the concurrent quantity of maximum in the quantity for judging currently processed page data request, and
And when pending page data request is not present in the request ordered set, obtaining page data newly-generated in the page please
It asks and is handled.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610981153.8A CN108073580A (en) | 2016-11-08 | 2016-11-08 | A kind of processing method and processing device based on page concurrent request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610981153.8A CN108073580A (en) | 2016-11-08 | 2016-11-08 | A kind of processing method and processing device based on page concurrent request |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108073580A true CN108073580A (en) | 2018-05-25 |
Family
ID=62154045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610981153.8A Pending CN108073580A (en) | 2016-11-08 | 2016-11-08 | A kind of processing method and processing device based on page concurrent request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108073580A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743386A (en) * | 2018-12-29 | 2019-05-10 | 乐蜜有限公司 | Session request sending method, device, electronic equipment and storage medium |
CN110888704A (en) * | 2019-11-08 | 2020-03-17 | 北京浪潮数据技术有限公司 | High-concurrency interface processing method, device, equipment and storage medium |
CN112559050A (en) * | 2019-09-25 | 2021-03-26 | 北京国双科技有限公司 | Method and device for processing concurrency number of client asynchronous request information |
CN113852663A (en) * | 2021-08-18 | 2021-12-28 | 北京达佳互联信息技术有限公司 | Network request processing method and device and network request processing system |
CN115037801A (en) * | 2022-03-14 | 2022-09-09 | 阿里巴巴(中国)有限公司 | Priority adjustment method, electronic device, and storage medium |
CN115037802A (en) * | 2022-06-02 | 2022-09-09 | 北京百度网讯科技有限公司 | Request processing method and device, electronic equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040152586A1 (en) * | 2003-02-05 | 2004-08-05 | Ou John Di-Yi | Combined cracking and selective hydrogen combustion for catalytic cracking |
CN101345961A (en) * | 2008-08-04 | 2009-01-14 | 中兴通讯股份有限公司 | Method for implementing multimedia engine concurrency control on mobile terminal |
CN103516536A (en) * | 2012-06-26 | 2014-01-15 | 重庆新媒农信科技有限公司 | Server service request parallel processing method based on thread number limit and system thereof |
CN103581232A (en) * | 2012-07-26 | 2014-02-12 | 中国移动通信集团公司 | Web page transmission method, web page displaying device and system including device |
CN104657212A (en) * | 2015-02-13 | 2015-05-27 | 北京亚信数据有限公司 | Task scheduling method and system |
-
2016
- 2016-11-08 CN CN201610981153.8A patent/CN108073580A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040152586A1 (en) * | 2003-02-05 | 2004-08-05 | Ou John Di-Yi | Combined cracking and selective hydrogen combustion for catalytic cracking |
CN101345961A (en) * | 2008-08-04 | 2009-01-14 | 中兴通讯股份有限公司 | Method for implementing multimedia engine concurrency control on mobile terminal |
CN103516536A (en) * | 2012-06-26 | 2014-01-15 | 重庆新媒农信科技有限公司 | Server service request parallel processing method based on thread number limit and system thereof |
CN103581232A (en) * | 2012-07-26 | 2014-02-12 | 中国移动通信集团公司 | Web page transmission method, web page displaying device and system including device |
CN104657212A (en) * | 2015-02-13 | 2015-05-27 | 北京亚信数据有限公司 | Task scheduling method and system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109743386A (en) * | 2018-12-29 | 2019-05-10 | 乐蜜有限公司 | Session request sending method, device, electronic equipment and storage medium |
CN109743386B (en) * | 2018-12-29 | 2021-11-02 | 卓米私人有限公司 | Session request sending method and device, electronic equipment and storage medium |
CN112559050A (en) * | 2019-09-25 | 2021-03-26 | 北京国双科技有限公司 | Method and device for processing concurrency number of client asynchronous request information |
CN110888704A (en) * | 2019-11-08 | 2020-03-17 | 北京浪潮数据技术有限公司 | High-concurrency interface processing method, device, equipment and storage medium |
CN113852663A (en) * | 2021-08-18 | 2021-12-28 | 北京达佳互联信息技术有限公司 | Network request processing method and device and network request processing system |
CN113852663B (en) * | 2021-08-18 | 2024-07-16 | 北京达佳互联信息技术有限公司 | Network request processing method, device and system |
CN115037801A (en) * | 2022-03-14 | 2022-09-09 | 阿里巴巴(中国)有限公司 | Priority adjustment method, electronic device, and storage medium |
CN115037802A (en) * | 2022-06-02 | 2022-09-09 | 北京百度网讯科技有限公司 | Request processing method and device, electronic equipment and storage medium |
CN115037802B (en) * | 2022-06-02 | 2024-03-08 | 北京百度网讯科技有限公司 | Request processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108073580A (en) | A kind of processing method and processing device based on page concurrent request | |
US10007461B1 (en) | Redistributing data in a distributed storage system based on attributes of the data | |
US9535751B2 (en) | Resource selection advisor mechanism | |
CN107196900A (en) | A kind of method and device for verification of knowing together | |
CN109074284A (en) | For increasing and decreasing the method and system and computer program product of resource in proportion | |
US10785087B2 (en) | Modifying computer configuration to improve performance | |
CN106878370A (en) | The update method and equipment of a kind of local cache | |
CN108255886B (en) | Evaluation method and device of recommendation system | |
CN106844055A (en) | A kind of execution method and apparatus of task | |
CN106528189A (en) | Backup task starting method and device and electronic equipment | |
US10657022B2 (en) | Input and output recording device and method, CPU and data read and write operation method thereof | |
US11948050B2 (en) | Caching of machine learning model training parameters | |
CN106909454B (en) | Rule processing method and equipment | |
CN109412865B (en) | Virtual network resource allocation method, system and electronic equipment | |
CN113296951B (en) | Resource allocation scheme determining method and equipment | |
CN109639672A (en) | The method and system for preventing Replay Attack based on JWT data | |
CN106990998A (en) | Virtual machine monitoring method and device | |
US10701413B2 (en) | Real-time sub-second download and transcode of a video stream | |
Jha et al. | A cost-efficient multi-cloud orchestrator for benchmarking containerized web-applications | |
US20240106626A1 (en) | Execution of homomorphically encrypted code using dynamically selected blocks | |
CN108073607A (en) | URL processing method and processing devices | |
CN109782978A (en) | List content choosing method and device | |
CN110489211A (en) | Back method and device based on filter Driver on FSD frame | |
US12117936B1 (en) | Prefetch of microservices for incoming requests | |
US20240113945A1 (en) | Continuously improving api service endpoint selections via adaptive reinforcement learning |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180525 |