CN110401697A - A kind of method, system and the equipment of concurrent processing HTTP request - Google Patents

A kind of method, system and the equipment of concurrent processing HTTP request Download PDF

Info

Publication number
CN110401697A
CN110401697A CN201910561882.1A CN201910561882A CN110401697A CN 110401697 A CN110401697 A CN 110401697A CN 201910561882 A CN201910561882 A CN 201910561882A CN 110401697 A CN110401697 A CN 110401697A
Authority
CN
China
Prior art keywords
http request
browsing process
currently processed
concurrent
browsing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910561882.1A
Other languages
Chinese (zh)
Inventor
李红雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910561882.1A priority Critical patent/CN110401697A/en
Publication of CN110401697A publication Critical patent/CN110401697A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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

Abstract

This application discloses a kind of methods of concurrent processing HTTP request, comprising: obtains the currently processed HTTP request quantity of browsing process;Judge whether HTTP request quantity is less than concurrent threshold value;It is handled if so, the HTTP request is forwarded to browsing process;If it is not, HTTP request is then added to buffer queue, and HTTP request quantity is obtained again;When the HTTP request quantity obtained again is less than concurrent threshold value, which is forwarded to browsing process and is handled.The application improves the oncurrent processing ability of browsing process, prevents in SSR operation because browsing process collapses the problem of caused service cannot respond to.The application additionally provides system, equipment and the computer readable storage medium of a kind of concurrent processing HTTP request simultaneously, has above-mentioned beneficial effect.

Description

A kind of method, system and the equipment of concurrent processing HTTP request
Technical field
This application involves web sphere, in particular to a kind of method, system, equipment and the calculating of concurrent processing HTTP request Machine readable storage medium storing program for executing.
Background technique
Some browsing browsing processes (such as phantomjs browsing process) for being capable of handling HTTP request are because being capable of height Simulation browser accesses (to anti-reflective crawler) and realizes the function of browsing (can save performance) without a head, therefore is widely used in backstage CSS/JS rendering, automatic test, the fields such as crawler.It is not only the stealthy browser on a backstage, provides CCS solution The functions such as analysis, DOM execute, HTML is rendered, COOKIE storage, while IO, API operating function abundant is additionally provided, so It is widely used in ECHARTS in operating system security enhancing system (Server Security Reinforcement, SSR) Figure rendering, the fields such as automatic test.
However, these browsing processes for being capable of handling HTTP request there is a problem of one it is fatal be exactly oncurrent processing ability It is too poor, if there is a large amount of concurrent request, then browsing process just will appear the case where cannot respond to, and then there is SSR fortune Because of the problem of service cannot respond to caused by the collapse of browsing process in row.
Therefore, how to improve the parallel processing capability of browsing process is the technology that those skilled in the art need to solve at present Problem.
Summary of the invention
The purpose of the application is to provide the method for concurrent processing HTTP request a kind of, system, equipment and computer-readable deposits Storage media, for improving the parallel processing capability of browsing process.
In order to solve the above technical problems, the application provides a kind of method of concurrent processing HTTP request, this method comprises:
Receive the HTTP request of input;
Obtain the currently processed HTTP request quantity of browsing process;
Judge whether the currently processed HTTP request quantity of the browsing process is less than the concurrent threshold value of the browsing process;
It is handled if so, the HTTP request received is forwarded to the browsing process;
If it is not, the HTTP request is then added to buffer queue, and it is currently processed to obtain the browsing process again HTTP request quantity;
When the currently processed HTTP request quantity of the browsing process is less than the concurrent threshold value, it is added to described slow The HTTP request for depositing queue is forwarded to the browsing process and is handled.
It is optionally, described to obtain the currently processed HTTP request quantity of browsing process, comprising:
The HTTP request quantity for calling counter progression currently processed to the browsing process in advance records;
When receiving the order for obtaining the currently processed HTTP request number of browsing process, the counter progression note is obtained The numerical value of record.
Optionally, the preparatory HTTP request quantity for calling counter progression currently processed to the browsing process carries out Record, comprising:
It carries out processing when the HTTP request received is forwarded to the browsing process or by described is added to caching When the HTTP request of queue is forwarded to the browsing process and is handled, the numerical value that the counter progression records is added one;
When the browsing process returns to processing result, the numerical value that the counter progression records is subtracted one.
The application also provides a kind of system of concurrent processing HTTP request, which includes:
Receiving module, HTTP request for receiving input;
Module is obtained, for obtaining the currently processed HTTP request quantity of browsing process;
Judgment module, for judge the currently processed HTTP request quantity of the browsing process whether be less than it is described browse into The concurrent threshold value of journey;
First forwarding module, for being less than the concurrent threshold value when the currently processed HTTP request quantity of the browsing process When, the HTTP request received is forwarded to the browsing process and is handled;
Cache module, for being greater than or equal to the concurrent threshold when the currently processed HTTP request quantity of the browsing process When value, the HTTP request is added to buffer queue, and obtains the currently processed HTTP request number of the browsing process again Amount;
Second forwarding module, for being less than the concurrent threshold value when the currently processed HTTP request quantity of the browsing process When, the HTTP request for being added to the buffer queue is forwarded to the browsing process and is handled.
Optionally, the acquisition module includes:
Call submodule, the HTTP request quantity for calling counter progression currently processed to the browsing process in advance It is recorded;
Acquisition submodule, for obtaining when receiving the order for obtaining the currently processed HTTP request number of browsing process The numerical value of the counter progression record.
Optionally, the calling submodule includes:
Rise in value unit, for carrying out processing or by institute when the HTTP request received is forwarded to the browsing process It states when being added to the HTTP request of buffer queue and being forwarded to the browsing process and handled, the counter progression is recorded Numerical value adds one;
Depreciation unit, the numerical value for when the browsing process returns to processing result, the counter progression to be recorded Subtract one.
The application also provides a kind of concurrent processing HTTP request equipment, which includes:
Memory, for storing computer program;
Processor, realizing the concurrent processing HTTP request as described in any of the above-described when for executing the computer program The step of method.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium Machine program realizes the method for the concurrent processing HTTP request as described in any of the above-described when the computer program is executed by processor The step of.
The method of concurrent processing HTTP request provided herein, comprising: receive the HTTP request of input;Acquisition browse into The currently processed HTTP request quantity of journey;Judge whether the currently processed HTTP request quantity of browsing process is less than browsing process Concurrent threshold value;It is handled if so, the HTTP request received is forwarded to browsing process;If it is not, then HTTP request is added It is added to buffer queue, and obtains the currently processed HTTP request quantity of browsing process again;When browsing process is currently processed When HTTP request quantity is less than concurrent threshold value, the HTTP request for being added to buffer queue is forwarded to browsing process and is handled.
Technical solution provided herein, by first obtaining the currently processed HTTP request quantity of browsing process, when When HTTP request quantity is less than concurrent threshold value, which is forwarded to browsing process and is handled;When HTTP request quantity When more than or equal to concurrent threshold value, which is added to buffer queue, and it is currently processed to obtain browsing process again HTTP request quantity;When the HTTP request quantity obtained again is less than concurrent threshold value, the HTTP for being added to buffer queue is asked It asks and is forwarded to browsing process and is handled, so that the HTTP request of browsing process processing is consistently less than or is equal to its concurrent threshold value, It avoids and the case where HTTP request discarding occurs, also avoid excessive HTTP while requesting browsing process that it is caused to occupy and is excessive Memory and cpu resource etc. improve the oncurrent processing ability of browsing process, prevent in SSR operation because the collapse of browsing process is led The problem of service of cause cannot respond to enhances the reliability of SSR.The application additionally provides a kind of concurrent processing HTTP simultaneously and asks System, equipment and the computer readable storage medium asked have above-mentioned beneficial effect, and details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 application 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 a kind of flow chart of the method for concurrent processing HTTP request provided by the embodiment of the present application;
Fig. 2 is a kind of practical manifestation mode of S103 in a kind of method of concurrent processing HTTP request provided by Fig. 1 Flow chart;
Fig. 3 is a kind of structure chart of the system of concurrent processing HTTP request provided by the embodiment of the present application;
Fig. 4 is the structure chart of the system of another kind concurrent processing HTTP request provided by the embodiment of the present application;
Fig. 5 is a kind of structure chart of concurrent processing HTTP request equipment provided by the embodiment of the present application.
Specific embodiment
The core of the application is to provide the method for concurrent processing HTTP request a kind of, system, equipment and computer-readable deposits Storage media, for improving the parallel processing capability of browsing process.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to FIG. 1, Fig. 1 is a kind of process of the method for concurrent processing HTTP request provided by the embodiment of the present application Figure.
It specifically comprises the following steps:
S101: the HTTP request of input is received;
It is single thread based on the browsing process of phantomjs in the prior art, no by taking phantomjs browsing process as an example Multithreading can be used to go to execute simultaneously, therefore can only concurrently be located by opening multiple phantomjs browsing processes simultaneously to realize Reason, however maximum open quantity (the i.e. concurrent threshold value) of phantomjs browsing process is usually 10 at present, it is super in concurrent request It just will appear the case where cannot respond in the case where crossing 10, and then occur in SSR operation because phantomjs browsing process collapses Service the problem of cannot respond to caused by bursting, thus present applicant proposes a kind of concurrent processing HTTP request method, be used for Solve the problems, such as this.
S102: the currently processed HTTP request quantity of browsing process is obtained;
After receiving the HTTP request of input, the currently processed HTTP request quantity of browsing process, purpose are first obtained It is to judge whether it can also handle the HTTP request received according to the currently processed HTTP request quantity of browsing process;
Optionally, mentioned herein to obtain the currently processed HTTP request quantity of browsing process, it specifically can be by obtaining The relative recording in system log is taken to determine.
S103: judge whether the currently processed HTTP request quantity of browsing process is less than the concurrent threshold value of browsing process;
If so, entering step S104;If it is not, then entering step S105;
When the currently processed HTTP request quantity of the process of browsing is less than the concurrent threshold value of browsing process, then prove clear at this time Concurrent threshold value has not yet been reached in the process of looking at, capable to handle the HTTP request received, and handles the HTTP request and be not in The case where cannot respond to enters step in S104 at this time, and the HTTP request received is forwarded to browsing process and is handled.
S104: the HTTP request received is forwarded to browsing process and is handled;
S105: being added to buffer queue for HTTP request, and obtains the currently processed HTTP request number of browsing process again Amount;
When the currently processed HTTP request quantity of the process of browsing is greater than or equal to the concurrent threshold value of browsing process, then prove Browsing process has reached concurrent threshold value at this time, has no ability to the HTTP request that processing receives, and handling the HTTP request may It will appear the case where cannot respond to, HTTP request be added to buffer queue at this time, and it is currently processed to obtain browsing process again HTTP request quantity;
The purpose mentioned herein for obtaining the currently processed HTTP request quantity of browsing process again is, asks by HTTP It asks and is added to buffer queue and then the secondary ability for judging browsing process and whether there is the processing HTTP request, if it is not, It continues waiting for, until browsing process has the ability for handling the HTTP request.
S106: when the currently processed HTTP request quantity of the process of browsing is less than concurrent threshold value, it is added to buffer queue HTTP request be forwarded to browsing process and handled.
Preferably, when receiving the new HTTP request of input, can also judge to ask in buffer queue with the presence or absence of HTTP It asks;
If so, new HTTP request is added in buffer queue;
If it is not, then returning to step S102.
Preferably, when the process of browsing has handled the HTTP request, processing result can also be back to designated position, with Just user checks.
Based on the above-mentioned technical proposal, the method for a kind of concurrent processing HTTP request provided herein, by first obtaining The currently processed HTTP request quantity of browsing process forwards the HTTP request when HTTP request quantity is less than concurrent threshold value It is handled to browsing process;When HTTP request quantity is greater than or equal to concurrent threshold value, which is added to caching Queue, and the currently processed HTTP request quantity of browsing process is obtained again;When the HTTP request quantity obtained again is less than simultaneously When sending out threshold value, the HTTP request for being added to buffer queue is forwarded to browsing process and is handled, so that browsing process processing HTTP request is consistently less than or is equal to its concurrent threshold value, avoids and the case where HTTP request discarding occurs, also avoids excessive HTTP requests browsing process that it is caused to occupy excessive memory and cpu resource etc. simultaneously, improves the concurrent processing energy of browsing process Power prevents from enhancing the reliability of SSR because browsing process collapses the problem of caused service cannot respond in SSR operation.
It is directed to the step S102 of an embodiment, wherein described obtain the currently processed HTTP request of browsing process Quantity specifically may be step as shown in Figure 2, be illustrated below with reference to Fig. 2.
Referring to FIG. 2, a kind of reality of the Fig. 2 for S102 in a kind of method of concurrent processing HTTP request provided by Fig. 1 The flow chart of manifestation mode.
Itself specifically includes the following steps:
S201: the HTTP request quantity for calling counter progression currently processed to browsing process in advance records;
Optionally, mentioned herein, the HTTP request quantity that counter progression is currently processed to browsing process is called in advance It is recorded, is specifically as follows:
It is asked when the HTTP request received is forwarded to browsing process being handled or being added to the HTTP of buffer queue It asks when being forwarded to browsing process and being handled, the numerical value that counter progression records is added one;
When the process of browsing returns to processing result, the numerical value that counter progression records is subtracted one.
S202: when receiving the order for obtaining the currently processed HTTP request number of browsing process, counter progression is obtained The numerical value of record.
Based on the above-mentioned technical proposal, the embodiment of the present application by calling counter progression currently processed to browsing process in advance HTTP request quantity recorded, when receiving the order for obtaining the currently processed HTTP request number of browsing process, obtain The numerical value of counter progression record, does not need calling system log, also omits the process for checking and screening log, greatly mention The high response speed for obtaining the currently processed HTTP request quantity process of browsing process.
Referring to FIG. 3, Fig. 3 is a kind of structure of the system of concurrent processing HTTP request provided by the embodiment of the present application Figure.
The system may include:
Receiving module 100, HTTP request for receiving input;
Module 200 is obtained, for obtaining the currently processed HTTP request quantity of browsing process;
Judgment module 300, for judging whether the currently processed HTTP request quantity of browsing process is less than browsing process Concurrent threshold value;
First forwarding module 400, for inciting somebody to action when the currently processed HTTP request quantity of the process of browsing is less than concurrent threshold value The HTTP request received is forwarded to browsing process and is handled;
Cache module 500, for when the currently processed HTTP request quantity of the process of browsing is greater than or equal to concurrent threshold value, HTTP request is added to buffer queue, and obtains the currently processed HTTP request quantity of browsing process again;
Second forwarding module 600, for inciting somebody to action when the currently processed HTTP request quantity of the process of browsing is less than concurrent threshold value The HTTP request for being added to buffer queue is forwarded to browsing process and is handled.
Referring to FIG. 4, Fig. 4 is the structure of the system of another kind concurrent processing HTTP request provided by the embodiment of the present application Figure.
The acquisition module 200 may include:
Submodule is called, the HTTP request quantity for calling counter progression currently processed to browsing process in advance carries out Record;
Acquisition submodule, for obtaining when receiving the order for obtaining the currently processed HTTP request number of browsing process The numerical value of counter progression record.
Further, which may include:
Rise in value unit, is handled or be added to caching for that the HTTP request received ought be forwarded to browsing process When the HTTP request of queue is forwarded to browsing process and is handled, the numerical value that counter progression records is added one;
Depreciation unit, for subtracting one for the numerical value that counter progression records when the process of browsing returns to processing result.
Each component part in system above can be applied in embodiment below:
Receiving module receives the HTTP request of input;Submodule is called to call counter progression current to browsing process in advance The HTTP request quantity of processing is recorded;When receiving the order for obtaining the currently processed HTTP request number of browsing process, Acquisition submodule obtains the numerical value of counter progression record;
Judgment module judges whether the currently processed HTTP request quantity of browsing process is less than the concurrent threshold value of browsing process; When the currently processed HTTP request quantity of the process of browsing is less than concurrent threshold value, HTTP request that the first forwarding module will receive Browsing process is forwarded to be handled;When the currently processed HTTP request quantity of the process of browsing is greater than or equal to concurrent threshold value, HTTP request is added to buffer queue by cache module, and obtains the currently processed HTTP request quantity of browsing process again;When When the currently processed HTTP request quantity of browsing process is less than concurrent threshold value, the second forwarding module is added to buffer queue HTTP request is forwarded to browsing process and is handled.
Referring to FIG. 5, Fig. 5 is a kind of structure chart of concurrent processing HTTP request equipment provided by the embodiment of the present application.
The concurrent processing HTTP request equipment 700 can generate bigger difference because configuration or performance are different, can wrap One or more processors (central processing units, CPU) 722 is included (for example, at one or more Manage device) and memory 732, one or more store storage medium 730 (such as one of application programs 742 or data 744 Or more than one mass memory unit).Wherein, memory 732 and storage medium 730 can be of short duration storage or persistent storage. The program for being stored in storage medium 730 may include one or more modules (diagram does not mark), and each module can wrap It includes to the series of instructions operation in device.Further, central processing unit 722 can be set to logical with storage medium 730 Letter executes the series of instructions operation in storage medium 730 in concurrent processing HTTP request equipment 700.
Concurrent processing HTTP request equipment 700 can also include one or more power supplys 727, one or more Wired or wireless network interface 750, one or more input/output interfaces 758, and/or, one or more operations System 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in the method for concurrent processing HTTP request described in above-mentioned Fig. 1 to Fig. 2 is by concurrent processing HTTP request Equipment is based on the structure shown in fig. 5 and realizes.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed device, device and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of module, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple module or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or module or Communication connection can be electrical property, mechanical or other forms.
Module may or may not be physically separated as illustrated by the separation member, show as module Component may or may not be physical module, it can and it is in one place, or may be distributed over multiple networks In module.Some or all of the modules therein can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application Or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program The medium of code.
Above to a kind of method of concurrent processing HTTP request provided herein, system, equipment and computer-readable Storage medium is described in detail.Specific case used herein explains the principle and embodiment of the application It states, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this skill For the those of ordinary skill in art field, under the premise of not departing from the application principle, several change can also be carried out to the application Into and modification, these improvement and modification also fall into the protection scope of the claim of this application.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment for including element.

Claims (8)

1. a kind of method of concurrent processing HTTP request characterized by comprising
Receive the HTTP request of input;
Obtain the currently processed HTTP request quantity of browsing process;
Judge whether the currently processed HTTP request quantity of the browsing process is less than the concurrent threshold value of the browsing process;
It is handled if so, the HTTP request received is forwarded to the browsing process;
If it is not, the HTTP request is then added to buffer queue, and the currently processed HTTP of the browsing process is obtained again Number of requests;
When the currently processed HTTP request quantity of the browsing process is less than the concurrent threshold value, it is added to the caching team The HTTP request of column is forwarded to the browsing process and is handled.
2. the method according to claim 1, wherein described obtain the currently processed HTTP request number of browsing process Amount, comprising:
The HTTP request quantity for calling counter progression currently processed to the browsing process in advance records;
When receiving the order for obtaining the currently processed HTTP request number of browsing process, the counter progression record is obtained Numerical value.
3. according to the method described in claim 2, it is characterized in that, the preparatory calling counter progression is to the browsing process Currently processed HTTP request quantity is recorded, comprising:
It carries out processing when the HTTP request received is forwarded to the browsing process or by described is added to buffer queue HTTP request when being forwarded to the browsing process and being handled, the numerical value of the counter records is added one;
When the browsing process returns to processing result, the numerical value that the counter progression records is subtracted one.
4. a kind of system of concurrent processing HTTP request characterized by comprising
Receiving module, HTTP request for receiving input;
Module is obtained, for obtaining the currently processed HTTP request quantity of browsing process;
Judgment module, for judging whether the currently processed HTTP request quantity of the browsing process is less than the browsing process Concurrent threshold value;
First forwarding module, for when the currently processed HTTP request quantity of the browsing process be less than the concurrent threshold value when, The HTTP request received is forwarded to the browsing process to handle;
Cache module, for being greater than or equal to the concurrent threshold value when the currently processed HTTP request quantity of the browsing process When, the HTTP request is added to buffer queue, and obtain the currently processed HTTP request quantity of the browsing process again;
Second forwarding module, for when the currently processed HTTP request quantity of the browsing process be less than the concurrent threshold value when, The HTTP request for being added to the buffer queue is forwarded to the browsing process and is handled.
5. system according to claim 4, which is characterized in that the acquisition module includes:
Submodule is called, the HTTP request quantity for calling counter progression currently processed to the browsing process in advance carries out Record;
Acquisition submodule, for when receiving the order for obtaining the currently processed HTTP request number of browsing process, described in acquisition The numerical value of counter progression record.
6. system according to claim 5, which is characterized in that the calling submodule includes:
Rise in value unit, for carrying out processing or adding described when the HTTP request received is forwarded to the browsing process When the HTTP request for being added to buffer queue is forwarded to the browsing process and is handled, numerical value that the counter progression is recorded Add one;
Depreciation unit, for subtracting one for the numerical value that the counter progression records when the browsing process returns to processing result.
7. a kind of concurrent processing HTTP request equipment characterized by comprising
Memory, for storing computer program;
Processor realizes that the concurrent processing HTTP as described in any one of claims 1 to 3 is asked when for executing the computer program The step of method asked.
8. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the concurrent processing HTTP request as described in any one of claims 1 to 3 when the computer program is executed by processor Method the step of.
CN201910561882.1A 2019-06-26 2019-06-26 A kind of method, system and the equipment of concurrent processing HTTP request Pending CN110401697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910561882.1A CN110401697A (en) 2019-06-26 2019-06-26 A kind of method, system and the equipment of concurrent processing HTTP request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910561882.1A CN110401697A (en) 2019-06-26 2019-06-26 A kind of method, system and the equipment of concurrent processing HTTP request

Publications (1)

Publication Number Publication Date
CN110401697A true CN110401697A (en) 2019-11-01

Family

ID=68323507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910561882.1A Pending CN110401697A (en) 2019-06-26 2019-06-26 A kind of method, system and the equipment of concurrent processing HTTP request

Country Status (1)

Country Link
CN (1) CN110401697A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858046A (en) * 2020-07-13 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN111880864A (en) * 2020-07-30 2020-11-03 平安国际智慧城市科技股份有限公司 Model calling method, system, computer equipment and storage medium based on HTTP
CN112925617A (en) * 2021-01-28 2021-06-08 长沙市到家悠享网络科技有限公司 Data processing method, device and system
CN114244902A (en) * 2022-02-28 2022-03-25 北京金堤科技有限公司 High-concurrency service request processing method and device, electronic equipment and storage medium
CN114338539A (en) * 2022-01-11 2022-04-12 平安科技(深圳)有限公司 Concurrency control method and device, network equipment and readable storage medium
CN115037802A (en) * 2022-06-02 2022-09-09 北京百度网讯科技有限公司 Request processing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009505A1 (en) * 2001-07-03 2003-01-09 International Business Machines Corporation Method, system, and product for processing HTTP requests based on request type priority
CN103995738A (en) * 2013-02-15 2014-08-20 三星电子株式会社 Terminal apparatus, server, browser of terminal apparatus operating system and method of operating browser
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN105262826A (en) * 2015-10-29 2016-01-20 福建天晴数码有限公司 Method and system for adjusting interface processing amount
CN106131208A (en) * 2016-08-09 2016-11-16 中南大学 A kind of HTTP height concurrent data transfer method in data center network
CN106411777A (en) * 2016-09-27 2017-02-15 福建中金在线信息科技有限公司 Method and system for processing high concurrent data
CN106547566A (en) * 2016-11-24 2017-03-29 恒生电子股份有限公司 Communications service process pool management method and system
CN107544849A (en) * 2017-09-30 2018-01-05 北京天元创新科技有限公司 A kind of WEB server concurrency management method and system
CN109325197A (en) * 2018-08-17 2019-02-12 百度在线网络技术(北京)有限公司 Method and apparatus for extracting information
CN109450975A (en) * 2018-10-10 2019-03-08 海南高灯科技有限公司 Concurrency performance optimization method, device, electronic equipment, readable storage medium storing program for executing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030009505A1 (en) * 2001-07-03 2003-01-09 International Business Machines Corporation Method, system, and product for processing HTTP requests based on request type priority
CN103995738A (en) * 2013-02-15 2014-08-20 三星电子株式会社 Terminal apparatus, server, browser of terminal apparatus operating system and method of operating browser
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN105262826A (en) * 2015-10-29 2016-01-20 福建天晴数码有限公司 Method and system for adjusting interface processing amount
CN106131208A (en) * 2016-08-09 2016-11-16 中南大学 A kind of HTTP height concurrent data transfer method in data center network
CN106411777A (en) * 2016-09-27 2017-02-15 福建中金在线信息科技有限公司 Method and system for processing high concurrent data
CN106547566A (en) * 2016-11-24 2017-03-29 恒生电子股份有限公司 Communications service process pool management method and system
CN107544849A (en) * 2017-09-30 2018-01-05 北京天元创新科技有限公司 A kind of WEB server concurrency management method and system
CN109325197A (en) * 2018-08-17 2019-02-12 百度在线网络技术(北京)有限公司 Method and apparatus for extracting information
CN109450975A (en) * 2018-10-10 2019-03-08 海南高灯科技有限公司 Concurrency performance optimization method, device, electronic equipment, readable storage medium storing program for executing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
庄建南: "5.4.4 模块独立性", 《科技软件工程概论》 *
王路群: "6.3.5 单一职责原则", 《面向对象软件工程》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858046A (en) * 2020-07-13 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN111880864A (en) * 2020-07-30 2020-11-03 平安国际智慧城市科技股份有限公司 Model calling method, system, computer equipment and storage medium based on HTTP
CN111880864B (en) * 2020-07-30 2023-12-26 平安国际智慧城市科技股份有限公司 HTTP-based model calling method, system, computer device and storage medium
CN112925617A (en) * 2021-01-28 2021-06-08 长沙市到家悠享网络科技有限公司 Data processing method, device and system
CN114338539A (en) * 2022-01-11 2022-04-12 平安科技(深圳)有限公司 Concurrency control method and device, network equipment and readable storage medium
CN114244902A (en) * 2022-02-28 2022-03-25 北京金堤科技有限公司 High-concurrency service request processing method and device, electronic equipment and storage medium
CN114244902B (en) * 2022-02-28 2022-05-17 北京金堤科技有限公司 High-concurrency service request processing method and device, electronic equipment 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
CN110401697A (en) A kind of method, system and the equipment of concurrent processing HTTP request
US9641413B2 (en) Methods and computer program products for collecting storage resource performance data using file system hooks
US10404556B2 (en) Methods and computer program products for correlation analysis of network traffic in a network device
US10904112B2 (en) Automatic capture of detailed analysis information based on remote server analysis
US8984125B2 (en) Computer program, method, and information processing apparatus for analyzing performance of computer system
US10298469B2 (en) Automatic asynchronous handoff identification
CN109672627A (en) Method for processing business, platform, equipment and storage medium based on cluster server
CN110704277B (en) Method for monitoring application performance, related equipment and storage medium
CN103679022B (en) Virus scan method and apparatus
US8645532B2 (en) Methods and computer program products for monitoring the contents of network traffic in a network device
US20140143777A1 (en) Resource Scheduling Method and Device
CN102377799B (en) Mobile phone browser server end and realize the method for the two thread mode of browser
WO2014194704A1 (en) A grouping processing method and system
CN103444236A (en) Managing a portal application
CN108519987A (en) A kind of data persistence method and apparatus
CN110247823A (en) A kind of fault detection method, device and relevant device
CN110515938B (en) Data aggregation storage method, equipment and storage medium based on KAFKA message bus
CN115828256B (en) Unauthorized and unauthorized logic vulnerability detection method
CN109117247B (en) Virtual resource management system and method based on heterogeneous multi-core topology perception
CN107666401A (en) A kind of configuration information obtaining method and terminal
CN103457980B (en) Terminal unit data acquisition methods
CN106933718B (en) Method for monitoring performance and device
US9479579B2 (en) Grouping processing method and system
CN108540575A (en) A kind of network request dispatching method and device
CN107193488A (en) A kind of distributed system data Redistribution method and its device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191101