CN103237003B - To the method and apparatus that the high flowing of access in network responds - Google Patents

To the method and apparatus that the high flowing of access in network responds Download PDF

Info

Publication number
CN103237003B
CN103237003B CN201310029961.0A CN201310029961A CN103237003B CN 103237003 B CN103237003 B CN 103237003B CN 201310029961 A CN201310029961 A CN 201310029961A CN 103237003 B CN103237003 B CN 103237003B
Authority
CN
China
Prior art keywords
access request
static page
webserver
client
static
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.)
Expired - Fee Related
Application number
CN201310029961.0A
Other languages
Chinese (zh)
Other versions
CN103237003A (en
Inventor
孙贵成
李春
陈燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING INTELACTIVE TECHNOLOGY Co Ltd
Original Assignee
BEIJING INTELACTIVE 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 BEIJING INTELACTIVE TECHNOLOGY Co Ltd filed Critical BEIJING INTELACTIVE TECHNOLOGY Co Ltd
Priority to CN201310029961.0A priority Critical patent/CN103237003B/en
Publication of CN103237003A publication Critical patent/CN103237003A/en
Application granted granted Critical
Publication of CN103237003B publication Critical patent/CN103237003B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of method and apparatus that high flowing of access in network is responded.The method mainly comprises: simulate by networking component the access request that client sends to the webserver, access request described in described webserver process, output response data stream; Generate static page corresponding to described access request according to described response traffic, described static page and described access request are carried out association store at network side; Described static page is returned to described client after receiving the real access request that client sends to the described webserver by the described webserver.The embodiment of the present invention drastically increases the response speed between the webserver and client, avoids a large number of users because nontransaction information or the direct access web server of private information, greatly reduces the pressure of server, improves the performance of system.

Description

To the method and apparatus that the high flowing of access in network responds
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method and apparatus that high flowing of access in network is responded.
Background technology
Along with the development of internet industry, the user of the Internet gets more and more, operation based on the Internet is also more and more frequent, therefore people's hope that internet system is expressed very large, require more and more higher, require also more and more higher to the performance of web server system, Consumer's Experience.
How web server system, when the access of super large customer volume, improves client and the mutual speed of Website server, provides the response speed of client browser just to become a key issue of web server system.The effective scheme of above-mentioned key issue is not also solved in prior art.
Summary of the invention
The embodiment provides a kind of method and apparatus that high flowing of access in network is responded, to improve the response speed between the webserver and client.
To the method that the high flowing of access in network responds, comprising:
The access request that client sends to the webserver is simulated, access request described in described webserver process, output response data stream by networking component;
Generate static page corresponding to described access request according to described response traffic, described static page and described access request are carried out association store at network side;
Described static page is returned to described client after receiving the real access request that client sends to the described webserver by the described webserver.
To the device that the high flowing of access in network responds, comprising:
Networking component module, for simulating the access request that client sends to the webserver;
Access request processing module, for the treatment of described access request, output response data stream;
Static page generates and memory module, for generating static page corresponding to described access request according to described response traffic, described static page and described access request is carried out association store at network side;
Static page output module, after receiving real access request that client sends to the described webserver, returns to described client by described static page.
The technical scheme provided as can be seen from the embodiment of the invention described above, the embodiment of the present invention is by static page corresponding to the access request that prestores client at network side, the browser of client only needs to resolve the most basic html file, without the need to resolving complicated dynamic routine file, greatly improve the response speed between the webserver and client, avoid a large number of users because nontransaction information or the direct access web server of private information, greatly reduce the pressure of server, improve the performance of system, the use of user is allowed to become more smooth, more friendly.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of handling process schematic diagram to the method that the high flowing of access in network responds that Fig. 1 provides for the embodiment of the present invention one;
A kind of concrete structure schematic diagram to the device that the high flowing of access in network responds that Fig. 2 provides for the embodiment of the present invention two.
Embodiment
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
The main thought of the embodiment of the present invention is, utilize networking component to imitate client and generate individual access request, the result returned above-mentioned access request according to the webserver generates static page, then allow all client-access webservers time all access static pages.
A kind of handling process schematic diagram to the method that the high flowing of access in network responds that this embodiment provides as shown in Figure 1, comprises following treatment step:
Step 11, to be simulated the access request that client sends to the webserver by networking component, access request described in described webserver process, output response data stream.
Arrange at network side and be used for simulant-client and send the networking component of access request to the webserver, this networking component can be Http(HypertextTransferProtocol, HTML (Hypertext Markup Language)) URL(Universal Resource Locator, UniversalResourseLocator) Connection assembly, can develop above-mentioned networking component by network programming language such as Asp, Jsp, Java on concrete
Described networking component can comprise static parameter configuration module, Dynamical parameter configuration module, generic resource locating module, access request constructing module, access request transmission processing module.
Described static parameter configuration module is for configuring the static parameter of client, and this static parameter must comprise the IP address of client, optionally can also comprise the information such as the user name of client, authority.
Described Dynamical parameter configuration module is used for configuring dynamic parameter corresponding to described access request.Above-mentioned dynamic parameter is determined according to the particular content of Webpage corresponding to described access request, and such as, when including the select button of multiple option in above-mentioned Webpage, above-mentioned dynamic parameter can be concrete option information.Can not have dynamic parameter in a Webpage, therefore, above-mentioned dynamic parameter is optional, is defaulted as sky.
Described generic resource locating module is used for configuring URL address corresponding to described access request, and this URL address illustrates the network address of Webpage corresponding to above-mentioned access request.
Described access request constructing module is used for according to described static parameter, dynamic parameter, URL address, and the network configuration information of operation system that will access of described access request constructs the access request that client sends to the webserver.
Described access request transmission processing module is used for sending described access request to the webserver.
Access request described in described webserver process, output response data stream, the bytes of stream data of the Webpage that this response traffic will be accessed for above-mentioned access request.
Step 12, generate static page corresponding to described access request according to described response traffic, described static page and described access request are carried out association store at network side.
Receive described response traffic at network side by browser, described browser, by response traffic described in software parses tool parses, generates the Webpage that described access request is corresponding.This Webpage is generally the pages such as Asp, Jsp, and the pages such as above-mentioned browser resolves above-mentioned Asp, Jsp need to consume the regular hour.
In embodiments of the present invention, using Webpage corresponding for the access request of above-mentioned generation as static page, described browser is utilized to obtain the source code of described static page, by this source code and URL address corresponding to described access request, the static page database of dynamic parameter association store in the memory of network side.Above-mentioned memory can be RAM(randomaccessmemory, random asccess memory), DRAM(DynamicRandomAccessMemory, dynamic random access memory), SDRAM(SynchronousDynamicRandomAccessMemory, synchronous DRAM).
After the static page that the webserver is corresponding to concrete business has carried out amendment, according to the particular content of described amendment, the source code corresponding to the described static page stored in described static page database has been revised accordingly.
Such as, when needing the content upgrading portal website, website optimize personnel sign in Website Background Management System, web site contents is edited to operations such as (add, delete), after being updated successfully, concrete Webpage for website optimize human users carries out the content update of corresponding static page, the content update of this static page can directly have been come by the source code that the static page of amendment storage is corresponding, also again can send access request by above-mentioned networking component, regenerate static page and come.The use that the operation of this static page can not affect external user also can not increase the operation easier of website optimize personnel, meanwhile up-to-date content can be reflected in time in face of user with the fastest speed, and unrestricted to simultaneously online number of users,
Step 13, the described webserver obtain URL address corresponding to described real access request, dynamic parameter after receiving the real access request that client sends to the described webserver;
The described webserver for key word of the inquiry, carries out matching inquiry with URL address corresponding to described real access request, dynamic parameter in described static page database.
Step 14, to judge that in described static page database whether matching inquiry arrives the source code of corresponding static page, if so, then perform step 15; Otherwise, perform step 16.
Described source code is sent to the browser of described client by step 15, the described webserver, generates static page to make the browser of described client according to described source code.
Step 16, after not having matching inquiry to arrive corresponding source code, the described webserver is according to the real access request of normal flow processing, output response data stream, described response traffic is sent to the browser of described client, after making response traffic described in the browser resolves of described client, generates static page.
Embodiment two
A kind of concrete structure to the device that the high flowing of access in network responds that this embodiment provides as shown in Figure 2, comprises following module:
Networking component module 21, for simulating the access request that client sends to the webserver;
Access request processing module 22, for the treatment of described access request, output response data stream;
Static page generates and memory module 23, for generating static page corresponding to described access request according to described response traffic, described static page and described access request is carried out association store at network side;
Static page output module 24, after receiving real access request that client sends to the described webserver, returns to described client by described static page.
Concrete, described networking component module 21, comprises static parameter configuration module, Dynamical parameter configuration module, generic resource locating module, access request constructing module, access request transmission processing module,
Described static parameter configuration module is for configuring the static parameter of client, and this static parameter is the address comprising client;
Described Dynamical parameter configuration module is used for configuring dynamic parameter corresponding to described access request, and this dynamic parameter is defaulted as sky;
Described generic resource locating module is used for configuring Universal Resource Locator URL address corresponding to described access request;
Described access request constructing module is used for going out according to described static parameter, dynamic parameter, URL address architecture the access request that client sends to the webserver;
Described access request transmission processing module is used for sending described access request to the webserver.
Concrete, described static page generates and memory module 23, specifically for receiving described response traffic by browser, response traffic described in described browser resolves, generate the static page that described access request is corresponding, described browser is utilized to obtain the source code of described static page, by this source code and URL address corresponding to described access request, dynamic parameter association store in the memory of network side.
After the static page that the webserver is corresponding to concrete business has carried out amendment, according to the particular content of described amendment, the source code corresponding to the described static page stored in described server has been revised accordingly.
Concrete, described static page output module 24, after receiving real access request that client sends to the described webserver, obtains URL address corresponding to described real access request, dynamic parameter;
With URL address corresponding to described real access request, dynamic parameter for key word of the inquiry, matching inquiry is carried out in described static page database, after matching inquiry has arrived corresponding static page, described source code is sent to the browser of described client, generates static page to make the browser of described client according to described source code;
After not having matching inquiry to arrive corresponding static page, process described real access request, output response data stream, described response traffic is sent to the browser of described client, to make the normal dynamic page of the browser resolves of described client.
The detailed process high flowing of access in network responded with the device of the embodiment of the present invention and preceding method embodiment similar, repeat no more herein.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the equipment in embodiment can describe according to embodiment and be distributed in the equipment of embodiment, also can carry out respective change and be arranged in the one or more equipment being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
In sum, the embodiment of the present invention is by static page corresponding to the access request that prestores client at network side, the browser of client only needs to resolve the most basic html file, without the need to resolving complicated dynamic routine file, greatly improve the response speed between the webserver and client, avoid a large number of users because nontransaction information or the direct access web server of private information, greatly reduce the pressure of server, improve the performance of system, allow the use of user become more smooth, more friendly.
Networking component in the embodiment of the present invention wraps without the need to relying on third party jar, use simple, convenient, be easy to safeguard, lower to the technical requirement of software developer, for system architecture, operation technique without any Compulsory Feature.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1., to the method that the high flowing of access in network responds, it is characterized in that, comprising:
The access request that client sends to the webserver is simulated, access request described in described webserver process, output response data stream by networking component;
Generate static page corresponding to described access request according to described response traffic, described static page and described access request are carried out association store at network side;
Described static page is returned to described client, comprises after receiving the real access request that client sends to the described webserver by the described webserver:
The described webserver obtains URL address corresponding to described real access request, dynamic parameter after receiving the real access request that client sends to the described webserver;
The described webserver with URL address corresponding to described real access request, dynamic parameter for key word of the inquiry, matching inquiry is carried out in described static page database, after matching inquiry arrives the source code of corresponding static page, described source code is sent to the browser of described client by the described webserver, generates static page to make the browser of described client according to described source code.
2. the method responded the high flowing of access in network according to claim 1, is characterized in that, described simulate by networking component the access request that client sends to the webserver and comprises:
Arrange at network side and be used for simulant-client and send the networking component of access request to the webserver, described networking component comprises static parameter configuration module, Dynamical parameter configuration module, generic resource locating module, access request constructing module, access request transmission processing module
Described static parameter configuration module is for configuring the static parameter of client, and this static parameter is the address comprising client;
Described Dynamical parameter configuration module is used for configuring dynamic parameter corresponding to described access request, and this dynamic parameter is defaulted as sky;
Described generic resource locating module is used for configuring Universal Resource Locator URL address corresponding to described access request;
Described access request constructing module is used for going out according to described static parameter, dynamic parameter, URL address architecture the access request that client sends to the webserver;
Described access request transmission processing module is used for sending described access request to the webserver.
3. the method that the high flowing of access in network is responded according to claim 2, it is characterized in that, described generates static page corresponding to described access request according to described response traffic, described static page and described access request is carried out association store at network side and comprises:
Described response traffic is received by browser, response traffic described in described browser resolves, generate the static page that described access request is corresponding, described browser is utilized to obtain the source code of described static page, by the disk of this source code and URL address corresponding to described access request, the storage static page of dynamic parameter association store in the memory of network side.
4. the method that the high flowing of access in network is responded according to claim 3, it is characterized in that, described method also comprises:
After the static page that the webserver is corresponding to concrete business has carried out amendment, according to the particular content of described amendment, the source code corresponding to the described static page stored in described static page database has been revised accordingly.
5. the method that the high flowing of access in network is responded according to any one of Claims 1-4, it is characterized in that, after the described webserver receives the real access request that client sends to the described webserver, described static page is returned to described client, also comprises:
The described webserver with URL address corresponding to described real access request, dynamic parameter for key word of the inquiry, matching inquiry is carried out in described static page database, after not having matching inquiry to arrive corresponding source code, the real access request of described webserver process, output response data stream, described response traffic is sent to the browser of described client, after making response traffic described in the browser resolves of described client, generates static page.
6., to the device that the high flowing of access in network responds, it is characterized in that, comprising:
Networking component module, for simulating the access request that client sends to the webserver;
Access request processing module, for the treatment of described access request, output response data stream;
Static page generates and memory module, for generating static page corresponding to described access request according to described response traffic, described static page and described access request is carried out association store at network side;
Static page output module, after receiving real access request that client sends to the described webserver, returns to described client by described static page,
Described static page output module, after receiving real access request that client sends to the described webserver, obtains URL address corresponding to described real access request, dynamic parameter;
With URL address corresponding to described real access request, dynamic parameter for key word of the inquiry, matching inquiry is carried out in described static page database, after matching inquiry arrives the source code of corresponding static page, described source code is sent to the browser of described client, generates static page to make the browser of described client according to described source code.
7. the device responded the high flowing of access in network according to claim 6, is characterized in that:
Described networking component module, comprises static parameter configuration module, Dynamical parameter configuration module, generic resource locating module, access request constructing module, access request transmission processing module,
Described static parameter configuration module is for configuring the static parameter of client, and this static parameter is the address comprising client;
Described Dynamical parameter configuration module is used for configuring dynamic parameter corresponding to described access request, and this dynamic parameter is defaulted as sky;
Described generic resource locating module is used for configuring Universal Resource Locator URL address corresponding to described access request;
Described access request constructing module is used for going out according to described static parameter, dynamic parameter, URL address architecture the access request that client sends to the webserver;
Described access request transmission processing module is used for sending described access request to the webserver.
8. the device responded the high flowing of access in network according to claim 6, is characterized in that:
Described static page generates and memory module, specifically for receiving described response traffic by browser, response traffic described in described browser resolves, generate the static page that described access request is corresponding, described browser is utilized to obtain the source code of described static page, by this source code and URL address corresponding to described access request, the static page database of dynamic parameter association store in the memory of network side.
9. the device responded the high flowing of access in network according to claim 8, is characterized in that:
Described static page generates and memory module, after also having carried out amendment for the static page corresponding to concrete business when the webserver, according to the particular content of described amendment, the source code corresponding to the described static page stored in described static page database is revised accordingly.
10. the device responded the high flowing of access in network according to any one of claim 6 to 9, is characterized in that:
With URL address corresponding to described real access request, dynamic parameter for key word of the inquiry, matching inquiry is carried out in described static page database, after not having matching inquiry to arrive corresponding static file, process described real access request, output response data stream, described response traffic is sent to the browser of described client, after making response traffic described in the browser resolves of described client, generates static page.
CN201310029961.0A 2013-01-17 2013-01-25 To the method and apparatus that the high flowing of access in network responds Expired - Fee Related CN103237003B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310029961.0A CN103237003B (en) 2013-01-17 2013-01-25 To the method and apparatus that the high flowing of access in network responds

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201310018093 2013-01-17
CN201310018093.6 2013-01-17
CN2013100180936 2013-01-17
CN201310029961.0A CN103237003B (en) 2013-01-17 2013-01-25 To the method and apparatus that the high flowing of access in network responds

Publications (2)

Publication Number Publication Date
CN103237003A CN103237003A (en) 2013-08-07
CN103237003B true CN103237003B (en) 2016-04-06

Family

ID=48885020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310029961.0A Expired - Fee Related CN103237003B (en) 2013-01-17 2013-01-25 To the method and apparatus that the high flowing of access in network responds

Country Status (1)

Country Link
CN (1) CN103237003B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331511B (en) * 2014-11-24 2018-02-09 飞狐信息技术(天津)有限公司 Static page update method and device
CN105516295A (en) * 2015-12-03 2016-04-20 腾讯科技(深圳)有限公司 Network request processing method and device
CN105634972A (en) * 2016-01-29 2016-06-01 四川长虹电器股份有限公司 Method for improving access efficiency of Web client
CN107239973B (en) * 2017-06-06 2020-07-28 睿智合创(北京)科技有限公司 System monitoring and early warning method
CN109936605B (en) * 2017-12-18 2021-11-05 北京京东尚科信息技术有限公司 Method and device for loading interface data
CN112860772B (en) * 2019-11-12 2023-05-26 武汉微品致远信息科技有限公司 Static file substitution service storage information class data processing system
CN111199427B (en) * 2019-12-31 2023-09-29 上海移为通信技术股份有限公司 Grouping management method and device for network users, electronic equipment and storage medium
CN111722848B (en) * 2020-06-25 2021-10-08 物鼎安全科技(武汉)有限公司 Network component identification method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724586A (en) * 2012-07-05 2012-10-10 百视通网络电视技术发展有限责任公司 Page caching method and page caching system based on internet protocol television (IPTV)
CN102868719A (en) * 2012-06-29 2013-01-09 北京奇虎科技有限公司 Network access method and server based on cache

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868719A (en) * 2012-06-29 2013-01-09 北京奇虎科技有限公司 Network access method and server based on cache
CN102724586A (en) * 2012-07-05 2012-10-10 百视通网络电视技术发展有限责任公司 Page caching method and page caching system based on internet protocol television (IPTV)

Also Published As

Publication number Publication date
CN103237003A (en) 2013-08-07

Similar Documents

Publication Publication Date Title
CN103237003B (en) To the method and apparatus that the high flowing of access in network responds
CN103942225B (en) A kind of resource transfer method, client and the system of mixed type applications client
TWI670611B (en) Web file sending method, webpage rendering method and device, webpage rendering system
US8499099B1 (en) Converting data into addresses
CN106202085A (en) The method of information search, device and electronic equipment is carried out according to particular topic
JP4849929B2 (en) Scenario creation program
CN109561078A (en) A kind of exterior chain url resource transfer method and device
US20100049842A1 (en) Computing Environment Arranged to Support Predetermined URL Patterns
CN101697139A (en) Method, device and registry for remote procedure call
CN105095526B (en) URL structure processing method, device and system
US10943063B1 (en) Apparatus and method to automate website user interface navigation
US8332467B2 (en) Lightweight RRD extension framework
CN102567400B (en) Method for realizing Web visit and Web server
US20120331038A1 (en) Systems and methods for processing web service piped network requests
CN110266661A (en) A kind of authorization method, device and equipment
CN104391868A (en) Staticizing device and method for dynamic page
CN106126693A (en) The sending method of the related data of a kind of webpage and device
US11860963B2 (en) Enhanced methods and systems for automated skill generation and management
JP5347429B2 (en) Uniform resource locator rewriting method and apparatus
CN105022619A (en) Code processing method and device
CN104021124A (en) Method, device and system used for processing webpage data
CN109670100B (en) Page data capturing method and device
CN103905434A (en) Method and device for processing network data
CN104680063B (en) A kind of information intercepting method and terminal
CN103347069A (en) Method and device for realizing network access

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160406

Termination date: 20220125

CF01 Termination of patent right due to non-payment of annual fee