CN101917490A - Method and system for reading cache data - Google Patents
Method and system for reading cache data Download PDFInfo
- Publication number
- CN101917490A CN101917490A CN2010102825301A CN201010282530A CN101917490A CN 101917490 A CN101917490 A CN 101917490A CN 2010102825301 A CN2010102825301 A CN 2010102825301A CN 201010282530 A CN201010282530 A CN 201010282530A CN 101917490 A CN101917490 A CN 101917490A
- Authority
- CN
- China
- Prior art keywords
- data
- request
- buffer memory
- web server
- server
- 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.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a system for reading cache data. The method for reading cache data comprises the following steps: S1, a user sends out a page access request; S2, a web server receives the request and judges whether the page is involved with cache; S3, if so, the web server sends out a request for accessing cache data to an agency server; and S4, based on the request of the web server, the agency server establishes long connection with cache equipment and accesses the data, or accesses the data by using cache equipment which has established long connection with the agency server. The invention decreases the expense for establishing and destroying the frequent connection of the page program of which the life cycle is ultra short with the remote cache, and raises the access speed. In addition, since long connection is established between the agency service equipment and the cache equipment, the long connection can continue receiving the request and is reusable, thereby improving the communication efficiency. Besides, because of the use of the agency server, the invention saves a part of cache and lowers the cost.
Description
Technical field
The present invention relates to a kind of data cached method and system that read, be used for the data processing and the renewal of website, belong to the network service field.
Background technology
In the large-scale internet, applications, often need to handle in enormous quantities, high concurrent user access request, this performance to the website has proposed to compare higher requirement.The performance of website directly influences access speed, thereby therefore the visit capacity of having influence on and user experience realize that the importance that high performance web uses is self-evident.Its performance bottleneck is mainly reflected in high time-delay, the congested and server load, and buffer memory solves one of most important measure of performance issue exactly.
The access mode of traditional buffer memory realizes by setting up the short connected reference of tcp.When the user sends request, connect, obtain the needed data of user and discharge connection afterwards.But when visit capacity is big, need sets up continually with destroying and be connected, will consume the precious resources such as internal memory of buffer memory equipment like this, reduce the handling capacity of buffer memory, increase the buffer memory cost, the access speed of restriction buffer memory influences user's experience.
Summary of the invention
The objective of the invention is to, a kind of data cached method and system that read are provided, it is set up long ways of connecting by acting server and remote cache equipment and reads data cached, reduce the extremely short page program of life cycle and frequently remote cache foundation has been connected the expense that is caused with destroying, improve access speed, reduced the buffer memory cost.
For solving the problems of the technologies described above, the present invention adopts following technical scheme: a kind ofly read data cached method, may further comprise the steps:
S1, the user sends accessing page request;
S2, the web server receives request, judges whether the page relates to buffer memory;
S3, if the page relates to buffer memory, then the web server sends the request of accessed cache data to acting server;
S4, according to the request of web server, acting server is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
Described long the connection refers to can send a plurality of packets continuously on a TCP connects, TCP connect keep during, if there is not packet to send, needs both sides to send out and detect bag to keep this connection, need generally that do-it-yourself is online to be kept.Because proxy service device is long the connection with the foundation of buffer memory equipment, not just to have discharged connection as request end of short connection, this long connection can continue to receive asks, reusable, thereby has improved communication efficiency.
Aforesaid a kind of reading in the data cached method, the web server is when acting server sends the request of accessed cache data among the described step S3, and it is connected to short the connection.The web server is to all will set up short connection of agent equipment at every turn.Described short the connection is meant when communicating pair has data interaction, just sets up a TCP and connects, and after data are sent completely, then disconnect this TCP and connects.
Described web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
Aforesaid a kind of reading in the data cached method, described data cached, comprise web data, file data and webpage dynamic data.Data cachedly comprise that also other need the data in buffer type.Therefore, the present invention reads data cached method and uses very extensively, can be applied to all and relate to the data cached computer system that reads.
That realizes preceding method a kind ofly reads data cached system, comprising:
The access request module is used for the user and sends accessing page request;
The request judge module is used for the web server and receives the accessing page request that the user sends, and judges whether user to access pages relates to buffer memory;
Data demand module is used for when user to access pages relates to buffer memory, and the web server sends the request of accessed cache data to acting server;
Data access module is used for acting server and is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
Described long the connection refers to can send a plurality of packets continuously on a TCP connects, TCP connect keep during, if there is not packet to send, needs both sides to send out and detect bag to keep this connection, need generally that do-it-yourself is online to be kept.Because proxy service device is long the connection with the foundation of buffer memory equipment, not just to have discharged connection as request end of short connection, this long connection can continue to receive asks, reusable, thereby has improved communication efficiency.
Aforesaid a kind of reading in the data cached system, when described data demand module, web server sent the request of accessed cache data to acting server, it was connected to short the connection.The web server is to all will set up short connection of agent equipment at every turn.Described short the connection is meant when communicating pair has data interaction, just sets up a TCP and connects, and after data are sent completely, then disconnect this TCP and connects.
Described web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
Aforesaid a kind of reading in the data cached system, described data cached, comprise web data, file data and webpage dynamic data.Data cachedly comprise that also other need the data in buffer type.Therefore, it is very extensive that the present invention reads data cached system applies, can be applied to all and relate to the data cached computer system that reads.
Compared with prior art, the present invention sets up long ways of connecting by acting server and remote cache equipment and reads data cached, reduce the extremely short page program of life cycle and frequently remote cache foundation has been connected the expense that is caused with destroying, reduced the time that connects and spent of repeating, improved access speed, in addition, because proxy service device is long the connection with the foundation of buffer memory equipment, not to finish just to have discharged connection as request of short connection, this long connection can continue to receive request, reusable, thus communication efficiency improved; Also have,, saved part of cache, reduced cost because the utility model has used acting server.
If do not add proxy service device, what the web server was faced is a lot of buffer memory equipment, and the web server is very complicated with being connected of buffer memory equipment room.For example in a web server 100 processes are arranged, caching is arranged in each process 2 times, the web server may will be connected with 200 distributed buffer equipment so.If but having added acting server, the web server is connected with an acting server, and acting server connects with a plurality of different buffer memory equipment, and acting server has been born the task of complicated connection.The web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
Description of drawings
Fig. 1 is the workflow diagram of a kind of embodiment of the method for the invention;
Fig. 2 is the system schematic of a kind of embodiment of the present invention.
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Embodiment
Embodiments of the invention: a kind ofly read data cached method, may further comprise the steps:
S1, the user sends accessing page request;
S2, the web server receives request, judges whether the page relates to buffer memory;
S3, if the page relates to buffer memory, then the web server sends the request of accessed cache data to acting server;
S4, according to the request of web server, acting server is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
Described step S1 is meant that the user imports network address in browser, send the request of checking to this webpage.
Described long the connection refers to can send a plurality of packets continuously on a TCP connects, TCP connect keep during, if there is not packet to send, needs both sides to send out and detect bag to keep this connection, need generally that do-it-yourself is online to be kept.Because proxy service device is long the connection with the foundation of buffer memory equipment, not just to have discharged connection as request end of short connection, this long connection can continue to receive asks, reusable, thereby has improved communication efficiency.
The web server is when acting server sends the request of accessed cache data among the described step S3, and it is connected to short the connection.The web server is to all will set up short connection of agent equipment at every turn.Described short the connection is meant when communicating pair has data interaction, just sets up a TCP and connects, and after data are sent completely, then disconnect this TCP and connects.
Described web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
Described data cached, comprise web data, file data and webpage dynamic data.Data cachedly comprise that also other need the data in buffer type.Therefore, it is very extensive that the present invention reads data cached system applies, can be applied to all and relate to the data cached computer system that reads.
That realizes preceding method a kind ofly reads data cached system, and the schematic diagram of this system comprises referring to Fig. 2:
Described long the connection refers to can send a plurality of packets continuously on a TCP connects, TCP connect keep during, if there is not packet to send, needs both sides to send out and detect bag to keep this connection, need generally that do-it-yourself is online to be kept.Because proxy service device is long the connection with the foundation of buffer memory equipment, not just to have discharged connection as request end of short connection, this long connection can continue to receive asks, reusable, thereby has improved communication efficiency.
When described data demand module 13, web server sent the request of accessed cache data to acting server, it was connected to short the connection.The web server is to all will set up short connection of agent equipment at every turn.Described short the connection is meant when communicating pair has data interaction, just sets up a TCP and connects, and after data are sent completely, then disconnect this TCP and connects.
Described web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
Described data cached, comprise web data, file data and webpage dynamic data.Data cachedly comprise that also other need the data in buffer type.Therefore, it is very extensive that the present invention reads data cached system applies, can be applied to all and relate to the data cached computer system that reads.
If do not add proxy service device, what the web server was faced is a lot of buffer memory equipment, and the web server is very complicated with being connected of buffer memory equipment room.For example in a web server 100 processes are arranged, caching is arranged in each process 2 times, the web server may will be connected with 200 distributed buffer equipment so.If but having added acting server, the web server is connected with an acting server, and acting server connects with a plurality of different buffer memory equipment, and acting server has been born the task of complicated connection.The web server only is connected with an acting server, and the connecting interface that the web server is faced is simply single, and the efficient of connection is also higher.
The workflow of embodiments of the invention: (referring to Fig. 1)
S1, the user sends accessing page request;
S2, the web server receives request, judges whether the page relates to buffer memory;
S3, if the page relates to buffer memory, then the web server sends the request of accessed cache data to acting server;
S4, according to the request of web server, acting server is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
The example explanation: such as 10 buffer memory equipment are arranged, under short the connection, every the processing upper limit is 1000 times/S, if 10000 cache request/S are arranged simultaneously, average each buffer memory need be handled request just 1000/S, that has at this time reached the processing upper limit, if cache request reaches 20000/S, and the buffer memory equipment that then can only double.
If but disposed 50 proxy service devices, the request that average each proxy service device is received is exactly 200, each proxy service device 10 buffer memory services is to the back-end simultaneously submitted request to, 1000 of each buffer memory equipment average treatment, but because agency service is long the connection to buffer memory equipment, so buffer memory device processes speed can be faster, the capacity of processing can reach 2000/S even more.Even at this time reach 20000/S, do not need to increase again buffer memory equipment.Though increased by 50 agent equipments, agent equipment may be nearer from the web server, and the transmission time is short, and the agent equipment cost is lower, and reusability is more intense, and the equipment of can both acting as agent can provide other services again, thereby agency cost is lower.
Claims (6)
1. one kind is read data cached method, it is characterized in that, may further comprise the steps:
S1, the user sends accessing page request;
S2, the web server receives request, judges whether the page relates to buffer memory;
S3, if the page relates to buffer memory, then the web server sends the request of accessed cache data to acting server;
S4, according to the request of web server, acting server is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
2. a kind of data cached method that reads according to claim 1 is characterized in that: the web server is when acting server sends the request of accessed cache data among the described step S3, and it is connected to short the connection.
3. a kind of data cached method that reads according to claim 1 and 2 is characterized in that: described data cached, comprise web data, file data and webpage dynamic data.
4. that realizes the described method of claim 1~3 a kind ofly reads data cached system, it is characterized in that, comprising:
Access request module (1) is used for the user and sends accessing page request;
Request judge module (2) is used for the web server and receives the accessing page request that the user sends, and judges whether user to access pages relates to buffer memory;
Data demand module (3) is used for when user to access pages relates to buffer memory, and the web server sends the request of accessed cache data to acting server;
Data access module (4) is used for acting server and is connected and access data or the buffer memory equipment access data by being connected with acting server foundation length with the foundation of buffer memory equipment is long.
5. a kind of data cached system that reads according to claim 4 is characterized in that: when described data demand module (3), web server sent the request of accessed cache data to acting server, it was connected to short the connection.
6. according to claim 4 or 5 described a kind of data cached systems that read, it is characterized in that: described data cached, comprise web data, file data and webpage dynamic data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010282530.1A CN101917490B (en) | 2010-09-16 | 2010-09-16 | Method and system for reading cache data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010282530.1A CN101917490B (en) | 2010-09-16 | 2010-09-16 | Method and system for reading cache data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101917490A true CN101917490A (en) | 2010-12-15 |
CN101917490B CN101917490B (en) | 2014-01-01 |
Family
ID=43324872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010282530.1A Active CN101917490B (en) | 2010-09-16 | 2010-09-16 | Method and system for reading cache data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101917490B (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075584A (en) * | 2011-01-30 | 2011-05-25 | 中国科学院计算技术研究所 | Distributed file system and access method thereof |
CN102088485A (en) * | 2010-12-30 | 2011-06-08 | 用友软件股份有限公司 | Method and device for acquiring data |
CN102255879A (en) * | 2011-01-14 | 2011-11-23 | 北京开心人信息技术有限公司 | Method and system for realizing local cache of uncompleted input content by user |
CN102523177A (en) * | 2011-12-19 | 2012-06-27 | 北京新媒传信科技有限公司 | Method and system for realization of message push service |
CN102662993A (en) * | 2012-03-14 | 2012-09-12 | 北京神州数码思特奇信息技术股份有限公司 | A method for providing page data |
CN102789469A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Page updating method and system |
CN103618799A (en) * | 2013-12-04 | 2014-03-05 | 北京奇虎科技有限公司 | Browser caching processing method and system and proxy server |
CN103853577A (en) * | 2013-06-26 | 2014-06-11 | 携程计算机技术(上海)有限公司 | Loading method and device of website header navigation bar |
CN104009938A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Method and system for long connections based on router level |
CN104168255A (en) * | 2013-10-30 | 2014-11-26 | 深圳市邦彦信息技术有限公司 | Method and system for request message processing |
CN104468547A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Long connection establishing method, device and system |
CN105893429A (en) * | 2015-12-08 | 2016-08-24 | 乐视云计算有限公司 | Method and system for optimizing WEB cache |
CN106021384A (en) * | 2016-05-12 | 2016-10-12 | 广西尊达电子商务有限公司 | Web page caching method |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN106599721A (en) * | 2016-12-13 | 2017-04-26 | 微梦创科网络科技(中国)有限公司 | Cache-based data access method and apparatus |
CN106911732A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of website visiting accelerating method and device |
CN107220560A (en) * | 2017-06-22 | 2017-09-29 | 北京航空航天大学 | A kind of embedded system data completeness protection method expanded based on data buffer storage |
CN107682281A (en) * | 2017-09-15 | 2018-02-09 | 通鼎互联信息股份有限公司 | A kind of application management method of SDN switch and SDN switch |
CN109951560A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | Improve method, terminal and the storage medium of application service concurrency and application speed |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101237561A (en) * | 2008-01-09 | 2008-08-06 | 北京捷报互动科技有限公司 | Network video acceleration system and control method |
-
2010
- 2010-09-16 CN CN201010282530.1A patent/CN101917490B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101237561A (en) * | 2008-01-09 | 2008-08-06 | 北京捷报互动科技有限公司 | Network video acceleration system and control method |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102088485A (en) * | 2010-12-30 | 2011-06-08 | 用友软件股份有限公司 | Method and device for acquiring data |
CN102255879A (en) * | 2011-01-14 | 2011-11-23 | 北京开心人信息技术有限公司 | Method and system for realizing local cache of uncompleted input content by user |
CN102075584A (en) * | 2011-01-30 | 2011-05-25 | 中国科学院计算技术研究所 | Distributed file system and access method thereof |
CN102789469A (en) * | 2011-05-20 | 2012-11-21 | 腾讯科技(深圳)有限公司 | Page updating method and system |
CN102789469B (en) * | 2011-05-20 | 2016-01-06 | 腾讯科技(深圳)有限公司 | Method for updating pages and system |
CN102523177A (en) * | 2011-12-19 | 2012-06-27 | 北京新媒传信科技有限公司 | Method and system for realization of message push service |
CN102662993A (en) * | 2012-03-14 | 2012-09-12 | 北京神州数码思特奇信息技术股份有限公司 | A method for providing page data |
CN103853577A (en) * | 2013-06-26 | 2014-06-11 | 携程计算机技术(上海)有限公司 | Loading method and device of website header navigation bar |
CN103853577B (en) * | 2013-06-26 | 2016-12-28 | 上海携程商务有限公司 | The loading method of website head navigation bar and device |
CN104168255A (en) * | 2013-10-30 | 2014-11-26 | 深圳市邦彦信息技术有限公司 | Method and system for request message processing |
CN103618799A (en) * | 2013-12-04 | 2014-03-05 | 北京奇虎科技有限公司 | Browser caching processing method and system and proxy server |
CN103618799B (en) * | 2013-12-04 | 2018-11-30 | 北京奇安信科技有限公司 | Browser rs cache processing method, system and proxy server |
CN104009938B (en) * | 2014-06-17 | 2016-08-17 | 合一网络技术(北京)有限公司 | The long method and system connected based on route aspect |
CN104009938A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Method and system for long connections based on router level |
CN104468547A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Long connection establishing method, device and system |
CN106294365A (en) * | 2015-05-15 | 2017-01-04 | 阿里巴巴集团控股有限公司 | The page data processing method of a kind of single page web application and equipment |
CN105893429A (en) * | 2015-12-08 | 2016-08-24 | 乐视云计算有限公司 | Method and system for optimizing WEB cache |
CN106911732A (en) * | 2015-12-22 | 2017-06-30 | 阿里巴巴集团控股有限公司 | A kind of website visiting accelerating method and device |
CN106021384A (en) * | 2016-05-12 | 2016-10-12 | 广西尊达电子商务有限公司 | Web page caching method |
CN106599721A (en) * | 2016-12-13 | 2017-04-26 | 微梦创科网络科技(中国)有限公司 | Cache-based data access method and apparatus |
CN107220560A (en) * | 2017-06-22 | 2017-09-29 | 北京航空航天大学 | A kind of embedded system data completeness protection method expanded based on data buffer storage |
CN107682281A (en) * | 2017-09-15 | 2018-02-09 | 通鼎互联信息股份有限公司 | A kind of application management method of SDN switch and SDN switch |
WO2019052299A1 (en) * | 2017-09-15 | 2019-03-21 | 通鼎互联信息股份有限公司 | Sdn switch, and application and management method for sdn switch |
CN107682281B (en) * | 2017-09-15 | 2020-04-17 | 通鼎互联信息股份有限公司 | SDN switch and application management method thereof |
CN109951560A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | Improve method, terminal and the storage medium of application service concurrency and application speed |
CN109951560B (en) * | 2019-03-27 | 2023-11-14 | 努比亚技术有限公司 | Method, terminal and storage medium for improving concurrency and application speed of application service |
Also Published As
Publication number | Publication date |
---|---|
CN101917490B (en) | 2014-01-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101917490B (en) | Method and system for reading cache data | |
CN102438045B (en) | Method and system for pre-fetching web page, and method for accessing web page | |
CN102651861B (en) | Download method for mobile terminal, mobile terminal and proxy download server | |
Zhu et al. | Improving web sites performance using edge servers in fog computing architecture | |
CN101741986B (en) | Page cache method for mobile communication equipment terminal | |
CN102710748B (en) | Data capture method, system and equipment | |
CN104243481B (en) | A kind of method and system of power information acquisition advance data processing | |
CN100589489C (en) | Carry out defence method and the equipment that DDOS attacks at the web server | |
CN103546467B (en) | The method applying Modbus rtu protocol on TCP/IP network | |
CN103338249B (en) | Caching method and device | |
CN105721538A (en) | Data access method and apparatus | |
CN103455478A (en) | Webpage access accelerating method and device | |
WO2023029254A1 (en) | Data query method and apparatus, and device and medium | |
CN101763437A (en) | Method and device for realizing high-speed buffer storage | |
CN101808121A (en) | Method and device for writing server log of mobile terminal into database | |
CN201813401U (en) | System for reading buffer data | |
CN109376318A (en) | A kind of page loading method, computer readable storage medium and terminal device | |
WO2014034001A1 (en) | Web content prefetch control device, web content prefetch control program, and web content prefetch control method | |
CN101902485A (en) | Rewriting method of reversal Web agent link | |
CN110737857A (en) | back-end paging acceleration method, system, terminal and storage medium | |
CN103873597A (en) | Distributed webpage downloading method and system | |
CN102984203A (en) | Method and device and system for improving use ratio of high-cache device based on cloud computing | |
CN103345498A (en) | Webpage loading method, device and system based on transit server | |
WO2014180154A1 (en) | A method and apparatus for data communication | |
CN102907071A (en) | Data transmission method, mobile terminal, proxy server |
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 |