CN107094179A - A kind of website visiting request processing method - Google Patents

A kind of website visiting request processing method Download PDF

Info

Publication number
CN107094179A
CN107094179A CN201710372679.0A CN201710372679A CN107094179A CN 107094179 A CN107094179 A CN 107094179A CN 201710372679 A CN201710372679 A CN 201710372679A CN 107094179 A CN107094179 A CN 107094179A
Authority
CN
China
Prior art keywords
request
website
return information
caching
website visiting
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
CN201710372679.0A
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.)
Zhejiang Profile Information Technology Co Ltd
Original Assignee
Zhejiang Profile Information 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 Zhejiang Profile Information Technology Co Ltd filed Critical Zhejiang Profile Information Technology Co Ltd
Priority to CN201710372679.0A priority Critical patent/CN107094179A/en
Publication of CN107094179A publication Critical patent/CN107094179A/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/50Network services
    • H04L67/56Provisioning of proxy services
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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

The present invention provides a kind of website visiting request processing method, system and proxy server.Wherein method includes:When proxy server receives the website visiting request for coming from client, next access request is predicted;Judge the return information with the presence or absence of the next access request in caching;If being not present, during the return information for obtaining the next access request from website background server is stored in the caching.The present invention is by predicting next access request, it is possible to increase the response speed of request, lifts Consumer's Experience.

Description

A kind of website visiting request processing method
Technical field
Field, more particularly to a kind of website visiting request processing method, agency's clothes are accessed the present invention relates to internet site Business device and system.
Background technology
When the access request amount of website is increased, the load of Website server will become very heavy, so as to cause processing The speed of website visiting request is greatly reduced, and has a strong impact on Consumer's Experience.Especially when accessed data are big data, much HTTP(HTTP, HyperText Transfer Protocol) request calculating need take considerable time.
In the prior art, in order to improve the speed that processing website visiting is asked, generally using buffering scheme and distributed meter Calculation scheme.Wherein, buffering scheme refers to build caching between Website server and accessed database to store conventional quilt Data are accessed, when Website server receives website visiting request, accessed data are preferentially obtained from caching, to improve place Manage speed.However, more and more with the personal page of different clients, buffering scheme loses possess originally efficient gradually. If substantial amounts of data processed result is all stored on caching, it will take substantial amounts of memory source, service performance is influenceed.
In addition, distributed computing approach refers to be jointly processed by a website visiting request with multiple stage computers, to improve place Manage speed.However, this scheme needs continuously to increase hardware to solve performance issue, therefore very expend hardware money Source.Moreover, when hardware is added to a certain degree, improving the effect of processing speed can't significantly improve.
The content of the invention
The present invention provides a kind of website visiting request processing method, system and proxy server, the sound to improve request Speed is answered, Consumer's Experience is lifted.
One aspect of the present invention provides a kind of website visiting request processing method, including:
When proxy server receives the website visiting request for coming from client, next access request is predicted;
Judge the return information with the presence or absence of the next access request in caching;
If being not present, the return information for obtaining the next access request from website background server is stored in the caching In.
Another aspect of the present invention provides a kind of proxy server, including:
Front end request analyser, the website visiting request of client is come from for receiving;
Prediction processor, for according to website visiting request next access request of prediction;
Caching, for storing the return information of the website visiting request and the return information of the next access request; The front end request analyser is additionally operable to judge to whether there is in the caching return information of the next access request;If It is not present, then is sent to website background server and obtain request;
Processor is returned, is asked and described next of return according to described obtain by the website background server for receiving The return information of access request, and be stored in the caching.
Further aspect of the present invention provides a kind of website visiting demand processing system, including above-mentioned proxy server and on State website background server.
In the present invention, because proxy server is connect according to the website visiting request next access of prediction for coming from client Request, and corresponding return information preservation is obtained in advance in the buffer, therefore when next access request really arrives, just may be used So that corresponding return information is promptly returned into client, so as to greatly improve the response speed of request, user is lifted Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of website visiting request processing method embodiment one of the present invention;
Fig. 2 is the flow chart of website visiting request processing method embodiment two of the present invention;
Fig. 3 is the structural representation of website visiting demand processing system embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is the flow chart of website visiting request processing method embodiment one of the present invention, as illustrated, at least including Following steps:
Step 110, when proxy server receives the website visiting request for coming from client, next access request is predicted.
Wherein, client can be webpage, mobile phone application(APP), the equipment such as smart machine;Website visiting request specifically may be used Think HTTP(HTTP, HyperText Transfer Protocol) request;Next access request refers to work as Before receive next of the website visiting request website visiting request that may arrive, specific prediction process can be according to net The business demand for access request of standing, using N-gram algorithms, SVM algorithm, feedforward neural network algorithm, ELM algorithms, ANNOY is calculated Method, the prediction such as K-means algorithms, the clustering algorithm or deep learning algorithm next access request.
For example, analysis daily record(log)Request time, order and the customer information of request, so as to predict under user One request, active is calculated in advance.For another example pre-recorded substantial amounts of user's custom, in some page, mostly Number people can click on " lower one page ", then the user that prediction is newly accessed can also click on " lower one page " in the page.For another example, a certain class User likes clicking on " product is discussed in detail " button in the page, and another kind of user likes clicking on " contact method " button.It is different User type, predict the outcome and be also possible to difference.
Step 120, the return information in caching with the presence or absence of the next access request is judged.
Wherein, if it is judged that being the return information of an access request in the presence of in the buffer, illustrate before this The return information was obtained from website background server and was still preserved in the buffer, then need not do especially handling;If sentenced Disconnected result then continues executing with following step 210 for the return information of next access request is not present in the buffer.
Step 130, the return information for obtaining the next access request from website background server is stored in described slow In depositing.
Wherein, above-mentioned website background server is the computer that service is provided for the website, such as web host, according to institute State after next access request searches for the corresponding return information of lookup on Local or Remote server and be supplied to proxy server. Specifically, website background server both can be single server or Distributed Calculation cluster.Also, behind website Caching server can also be set between platform server and the database of remote server.
In the present embodiment methods described, prediction is asked according to the website visiting for coming from client because proxy server connects Next access request, and corresponding return information preservation is obtained in advance in the buffer, therefore when next access request is real During arrival, just corresponding return information can promptly be returned to client, so as to greatly improve the response speed of request Degree, lifts Consumer's Experience.And in the case where reaching same performance, it can reduce and safeguard into substantial amounts of saving hardware resource This.In addition, this method does not repel existing buffering scheme and distributed computing approach yet, when with prior art Collaboration When, it can further improve performance.
Fig. 2 is the flow chart of website visiting request processing method embodiment two of the present invention, as illustrated, at least including Following steps:
Step 210, judge when the proxy server receives the website visiting request in the caching with the presence or absence of described The return information of website visiting request.
If in the presence of having obtained next access request by the prediction of the method for above-described embodiment one and obtained phase in advance The return information answered is preserved in the buffer, hereafter performs step 230;If being not present, step 220 is performed.
Step 220, after scheduled duration is waited, step 210 is performed again, judges to whether there is the net in the caching The return information for access request of standing.
Wherein, if the return information that the website visiting is asked is not present in caching, it is likely that be above-described embodiment one Prediction process do not terminate, also have not enough time in the return information deposit caching by the request of the website visiting of acquisition, therefore can be with Wait the deterministic process for performing step 210 after scheduled duration again.If judged result is changed into existing, step 230 is performed;
If after the judgement of predetermined number of times, judged result, which is remained as, to be not present, it is likely that be the prediction of above-described embodiment one During could not Accurate Prediction to this website visiting ask, in order to avoid period of reservation of number is too long, this step can be jumped out, Then perform following step 221.It should be noted that the waiting process of step 220 is optional, can also be without wait Directly perform step 221.
Step 221, the return information for obtaining the website visiting request from the website background server is stored in described In caching.Hereafter step 230 is continued executing with.
Step 230, the return information website visiting asked returns to the client.
The present embodiment methods described is using the return information pre-saved in above method embodiment one in the buffer to visitor The request at family end is responded, so as to improve response speed, improves Consumer's Experience.
Fig. 3 is the structural representation of website visiting demand processing system embodiment of the present invention, as shown in the figure the system At least include proxy server(Proxy Server)10 and website background server 20, at least one client 30 is via agency Server 10 is communicated to connect with website background server 20, to realize the above method.
Wherein, the front end request analyser in proxy server 10(Request Analyzer)11 receive and come from visitor During the website visiting request at family end 30, by prediction processor(Predictor)12 is next according to website visiting request prediction Bar access request.As illustrated, also including caching in the proxy server 10(Cache)13, for storing the website visiting The return information of the return information of request and the next access request.
After prediction processor 12 predicts next access request, judged by front end request analyser 11 in caching 13 With the presence or absence of the return information of the next access request;If illustrating before this from website background server 20 Obtained the return information and be still stored in caching 13, then need not do and especially handle;If being not present, front end request point Parser 11 sends to website background server 20 and obtains request;The website background server 20 obtains request to generation according to described Reason server 10 returns to the return information of the next access request;Return to processor(Response Handler)14 receive The return information of the next access request returned by website background server 20, and be stored in the caching 13.
In system described in the present embodiment, because proxy server 10 is connect according to the website visiting request for coming from client 30 Next access request is predicted, and obtains corresponding return information in advance and is stored in caching 13, therefore when next access please Look for the truth positive arrival when, just corresponding return information can promptly be returned to client 30, so as to greatly improve request Response speed, lifted Consumer's Experience.And in the case where reaching same performance, it can be dropped with substantial amounts of saving hardware resource Low-maintenance cost.In addition, the system does not repel existing buffering scheme and distributed computing approach yet, assisted when with prior art During with running, performance can be further improved.
Further optionally, when front end request analyser 11 receives the website visiting request, it can also judge described slow Deposit the return information asked in 13 with the presence or absence of the website visiting;If the front end request analyser 11 is judged described slow The return information that there is the website visiting request in 13 is deposited, then can be asked the website visiting by the return processor 14 The return information asked returns to the client 30.
On the other hand, if front end request analyser 11 is judged website visiting request is not present in the caching 13 Return information, then can wait scheduled duration after, judge again it is described caching 13 in the presence or absence of the website visiting please The return information asked, retransmits described obtain and asks afterwards;Or can also be directly transmitted without wait the acquisition please Ask.It for details, reference can be made to the related description of above-mentioned steps 220.
Specifically, above-mentioned acquisition request can be by request creator(Request Creator)15 be the adaptation net Stand background server 20 interface and create.In addition, the proxy server 10 can also include data storage(Storage) 16, the request content for preserving the website visiting request can for example be included:Corresponding client identity information is asked, no With the succession between request, digraph between request etc..For another example when prediction processor 12 is carried out using clustering algorithm During prediction, data storage 16 can also deposit the classification results of the clustering of solicited message.Conventional data storage 16 It is relevant database, receives the http request that the clients 30 such as webpage, mobile phone A PP, smart machine are sent.Meanwhile, front end please Analyzer 11 is asked also to write request content in data storage 16, so that prediction processor 12 carries out dynamic data analysis.
The system is responded by being pre-stored in request of the return information to client 30 cached in 13, so that Response speed is improved, Consumer's Experience is improved.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of website visiting request processing method, it is characterised in that including:
When proxy server receives the website visiting request for coming from client, next access request is predicted;
Judge the return information with the presence or absence of the next access request in caching;
If being not present, the return information for obtaining the next access request from website background server is stored in the caching In.
2. according to the method described in claim 1, it is characterised in that the proxy server receives the website visiting request When also include:
Judge the return information asked in the caching with the presence or absence of the website visiting;
If in the presence of the return information for asking the website visiting returns to the client.
3. method according to claim 2, it is characterised in that judging please with the presence or absence of the website visiting in the caching Also include after the return information asked:If being not present, after scheduled duration is waited, judge to whether there is institute in the caching again State the return information of website visiting request.
4. according to the method in claim 2 or 3, it is characterised in that judge in the caching with the presence or absence of website visit Also include after the return information for asking request:If being not present, the website visiting request is obtained from the website background server Return information be stored in the caching.
5. according to the method described in claim 1, it is characterised in that next access request of the prediction includes:According to described The business demand of website visiting request, using N-gram algorithms, clustering algorithm or deep learning algorithm the prediction next visit Ask request.
6. a kind of proxy server, it is characterised in that including:
Front end request analyser, the website visiting request of client is come from for receiving;
Prediction processor, for according to website visiting request next access request of prediction;
Caching, for storing the return information of the website visiting request and the return information of the next access request; The front end request analyser is additionally operable to judge to whether there is in the caching return information of the next access request;If It is not present, then is sent to website background server and obtain request;
Processor is returned, is asked and described next of return according to described obtain by the website background server for receiving The return information of access request, and be stored in the caching.
7. proxy server according to claim 6, it is characterised in that:
The front end request analyser is additionally operable to, and when receiving the website visiting request, judges whether deposited in the caching The return information asked in the website visiting;
The return processor is additionally operable to, if the front end request analyser judges that there is the website in the caching visits The return information of request is asked, then the return information asked the website visiting returns to the client.
8. proxy server according to claim 7, it is characterised in that the front end request analyser is additionally operable to:If sentencing Break and the return information that the website visiting is asked is not present in the caching, then after scheduled duration is waited, judge again The return information asked in the caching with the presence or absence of the website visiting;And/or send the acquisition request.
9. proxy server according to claim 6, it is characterised in that also include:
Creator is asked, the acquisition request of the interface for creating the adaptation website background server;
Data storage:Request content for preserving the website visiting request.
10. a kind of website visiting demand processing system, it is characterised in that including:
Proxy server any one of claim 6~9;And
The website background server.
CN201710372679.0A 2017-05-24 2017-05-24 A kind of website visiting request processing method Pending CN107094179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710372679.0A CN107094179A (en) 2017-05-24 2017-05-24 A kind of website visiting request processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710372679.0A CN107094179A (en) 2017-05-24 2017-05-24 A kind of website visiting request processing method

Publications (1)

Publication Number Publication Date
CN107094179A true CN107094179A (en) 2017-08-25

Family

ID=59639665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710372679.0A Pending CN107094179A (en) 2017-05-24 2017-05-24 A kind of website visiting request processing method

Country Status (1)

Country Link
CN (1) CN107094179A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104528A (en) * 2018-10-29 2020-05-05 浙江宇视科技有限公司 Picture obtaining method and device and client

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040088155A1 (en) * 2002-10-31 2004-05-06 John Kerr Method and apparatus for localization of applications
US20080133716A1 (en) * 1996-12-16 2008-06-05 Rao Sunil K Matching network system for mobile devices
CN103139278A (en) * 2011-12-05 2013-06-05 北京网康科技有限公司 Network resource pre-fetching and cache accelerating method and device thereof
CN103905439A (en) * 2014-03-25 2014-07-02 重庆邮电大学 Webpage browsing accelerating method based on home gateway
CN104320448A (en) * 2014-10-17 2015-01-28 张维加 Method and device for accelerating caching and prefetching of computing device based on big data
CN104486350A (en) * 2014-12-24 2015-04-01 电子科技大学 Network content acceleration method based on user behavior

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133716A1 (en) * 1996-12-16 2008-06-05 Rao Sunil K Matching network system for mobile devices
US20040088155A1 (en) * 2002-10-31 2004-05-06 John Kerr Method and apparatus for localization of applications
CN103139278A (en) * 2011-12-05 2013-06-05 北京网康科技有限公司 Network resource pre-fetching and cache accelerating method and device thereof
CN103905439A (en) * 2014-03-25 2014-07-02 重庆邮电大学 Webpage browsing accelerating method based on home gateway
CN104320448A (en) * 2014-10-17 2015-01-28 张维加 Method and device for accelerating caching and prefetching of computing device based on big data
CN104486350A (en) * 2014-12-24 2015-04-01 电子科技大学 Network content acceleration method based on user behavior

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104528A (en) * 2018-10-29 2020-05-05 浙江宇视科技有限公司 Picture obtaining method and device and client
CN111104528B (en) * 2018-10-29 2023-05-16 浙江宇视科技有限公司 Picture acquisition method and device and client

Similar Documents

Publication Publication Date Title
US11539809B2 (en) Push notification delivery system with feedback analysis
US11704496B2 (en) Analysis of a topic in a communication relative to a characteristic of the communication
US7519566B2 (en) Method and apparatus for automatically and continuously updating prediction models in real time based on data mining
CN104834675B (en) A kind of Query Optimization method based on user behavior analysis
CN102571932B (en) For application on site, user provides status service
CN105453042A (en) Pre-fetching content for service-connected applications
JP2012504288A (en) Evaluating online marketing efficiency
CN107463434A (en) Distributed task processing method and device
US20210004693A1 (en) Real-Time On the Fly Generation of Feature-Based Label Embeddings Via Machine Learning
EP3602319A1 (en) Dynamic content loading selection
AU2019331371A1 (en) System and method for providing customer specified webpage configuration
WO2017173063A1 (en) Updating messaging data structures to include predicted attribute values associated with recipient entities
Chen et al. A proactive resource allocation method based on adaptive prediction of resource requests in cloud computing
CN108961034A (en) System and method, storage medium based on user behavior certification
CN110020310A (en) Method, apparatus, terminal and the storage medium of resource load
CN107291826A (en) File search processing method and processing device
CN107094179A (en) A kind of website visiting request processing method
Borzemski et al. Business-oriented admission control and request scheduling for e-commerce websites
Sindhu et al. Computational offloading framework using caching and cloud service selection in mobile cloud computing
CN110413918A (en) Data transmission method for uplink, device, equipment and storage medium
CN106716969A (en) Technologies for pre-action execution
US11889153B2 (en) System and method for integration of automatic response generating systems with non-API applications
US20230367557A1 (en) System and method for intelligently generating code for use in integrating automated response generating systems with non-api applications
US20240007421A1 (en) Utilizing machine learning models to generate interactive digital text threads with personalized digital text reply options
CN107181740A (en) The distribution method and device of business work order

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: 20170825