CN104298723A - Method for achieving page staticizing in website - Google Patents

Method for achieving page staticizing in website Download PDF

Info

Publication number
CN104298723A
CN104298723A CN201410496077.2A CN201410496077A CN104298723A CN 104298723 A CN104298723 A CN 104298723A CN 201410496077 A CN201410496077 A CN 201410496077A CN 104298723 A CN104298723 A CN 104298723A
Authority
CN
China
Prior art keywords
data
staticize
web
web page
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410496077.2A
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.)
Blue Shield Information Security Technology Co Ltd
Bluedon Information Security Technologies Co Ltd
Original Assignee
Blue Shield Information Security 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 Blue Shield Information Security Technology Co Ltd filed Critical Blue Shield Information Security Technology Co Ltd
Priority to CN201410496077.2A priority Critical patent/CN104298723A/en
Publication of CN104298723A publication Critical patent/CN104298723A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for achieving page staticizing in a website. According to the method, webpage requests are divided into webpage requests not affecting data and webpage requests affecting the data. The webpage requests not affecting the data are connected without a background program and a database. For the webpage requests affecting the data, the current accessed address is obtained after the normal service logical processing is finished, webpage file information and staticizing rule information mapped in a storage module are obtained, and staticizing generation is carried out. According to the method, the data variance is kept, and the performance bottleneck frequently encountered in large-capacity and high-concurrency access in the system is solved.

Description

A kind of website realizes the method for page staticize
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method that website realizes page staticize.
Background technology
At the development along with production informatization and networking, the system addresses based on B/S framework and is applied to industry-by-industry more and more widely without installing, distributing the feature such as easy.Dynamic website technology captures significant market rapidly.Generation due to dynamic page is the content adopting database, so the immutability of web page contents theme can not ensure.Cause the reading difficulty of search engine like this, namely an incessantly eternal theme grabbed by search engine, therefore can not be input in the buffer memory (cache) in search engine, simultaneously, high concurrent access also can cause multi-pass operations database simultaneously, finally affects the response speed of webpage and the Consumer's Experience of client.So be badly in need of a kind of technology to solve the problems referred to above.
The patent No. is that the patent of invention of CN201010105969.7 discloses a kind of WEB staticize of dynamic page solution based on J2EE, step comprises: 1) generate application simulation client-requested by static page, transmit a request to original dynamic page, and the output stream in response object is directed to local file; 2) WEB application reads the static page generated by " static page generates application "; After static page is generated, user will the static page of redirect response to the access of the dynamic page address of WEB application.This method adopts the staticize of dynamic page solution based on J2EE, and program is not made an amendment, and just can be good at reducing the pressure of application server and the competition of database connection resource.Compare the dynamic page of original direct access WEB application, the cpu utilization rate of the peak period of WEB server has dropped to 60% by original 100%.Correlation function has dropped to 0%, because at this moment do not have DataBase combining to the competition of database connection resource by original 80%.Fast response time under high concurrent environment.
This technology filters all request url addresses with filtrator filter, some webpage being carried out staticize in configuration file, decreasing and connecting the operation of database, but increasing the handling property loss of background program by mating.
Summary of the invention
The object of the invention is the shortcoming or the deficiency that need the operation of a large amount of operating database and programmed logic computing in order to solve accessed web page in prior art, have employed a kind of method that website realizes page staticize, thus achieve the operation reduced database, reduce the logical process to code.
Website realizes a method for page staticize, and its idiographic flow is as follows:
S1. all web-page requests of whole website are divided into two kinds, a kind of is do not affect data, and a kind of is affect data;
S2. staticize Rule Information, web page files information, related information is stored by memory module; The relation of mapping request address and web page files, the relation of mapping request address and staticize rule;
S3. allow the web-page requests not affecting data without background program and DataBase combining;
S4. affect the web-page requests of data, after regular traffic logical process completes, obtain current accessed address, and obtain the web page files information and staticize Rule Information that map in memory module;
S5. staticize process generates: obtain current latest data, corresponding web page files is carried out templatedly regenerating file according to corresponding staticize rule and latest data, and covers original web page files.
Wherein, it is the static url address of suffix that the web-page requests not affecting data directly adopts with html.
The beneficial effect that technical solution of the present invention is brought: technical solution of the present invention adopts a kind of staticize solution, achieves the operation reduced database, reduces the logical process to code.Both maintain the variability of data, solve again the performance bottleneck that system often can run in Large Copacity and high Concurrency Access.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, 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.
Fig. 1 is normal dynamic web page access process flow diagram in prior art;
Fig. 2 is staticize webpage flow chart of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Normal dynamic web page browsing process is request of access, and----background program--database manipulation--returns response webpage to application server.Idiographic flow as shown in Figure 1.
Main innovate point of the present invention is to adopt a kind of new-type website staticize development plan, and its flow process as shown in Figure 2.The direct access static page of the method, decreases database manipulation and server performance loss.
Its specific implementation step is as follows:
1. all web-page requests of whole website are divided into two kinds, a kind of is do not affect data, and a kind of is affect data.
2. store staticize Rule Information, web page files information, related information by memory module.The relation of mapping request address and web page files, the relation of mapping request address and staticize rule.
3. the web-page requests not affecting data directly adopts the url address as test.html, allows this request without background program and DataBase combining.
4. affect the web-page requests of data, after regular traffic logical process completes, obtain current accessed address, and obtain the web page files information and staticize Rule Information that map in memory module.
5. staticize process generates: obtain current latest data, corresponding web page files is carried out templatedly regenerating file according to corresponding staticize rule and latest data, and covers original web page files.
General query site operation proportion is maximum, adopts this kind of scheme only just to need programmed logic process and database manipulation when data change, avoids the operation of most repeating data storehouse and programmed logic computing.Web page access reads and web page files generation is parallel work-flow, does not interfere with each other.
The method that a kind of website provided the embodiment of the present invention above realizes page staticize is described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (4)

1. website realizes a method for page staticize, it is characterized in that, the idiographic flow of the method is as follows:
S1. all web-page requests of whole website are divided into two kinds, a kind of is do not affect data, and a kind of is affect data;
S2. staticize Rule Information, web page files information, related information is stored by memory module; The relation of mapping request address and web page files, the relation of mapping request address and staticize rule;
S3. allow the web-page requests not affecting data without background program and DataBase combining;
S4. affect the web-page requests of data, after regular traffic logical process completes, obtain current accessed address, and obtain the web page files information and staticize Rule Information that map in memory module;
S5. staticize process generates: obtain current latest data, corresponding web page files is carried out templatedly regenerating file according to corresponding staticize rule and latest data, and covers original web page files.
2. method according to claim 1, is characterized in that, it is the static url address of suffix that the web-page requests not affecting data directly adopts with html.
3. method according to claim 1, is characterized in that, database manipulation and sequential operation only just have triggering when data movement.
4. method according to claim 1, is characterized in that, web page access reads and web page files generation is parallel work-flow, does not interfere with each other.
CN201410496077.2A 2014-09-24 2014-09-24 Method for achieving page staticizing in website Pending CN104298723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410496077.2A CN104298723A (en) 2014-09-24 2014-09-24 Method for achieving page staticizing in website

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410496077.2A CN104298723A (en) 2014-09-24 2014-09-24 Method for achieving page staticizing in website

Publications (1)

Publication Number Publication Date
CN104298723A true CN104298723A (en) 2015-01-21

Family

ID=52318448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410496077.2A Pending CN104298723A (en) 2014-09-24 2014-09-24 Method for achieving page staticizing in website

Country Status (1)

Country Link
CN (1) CN104298723A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994139A (en) * 2015-06-10 2015-10-21 丁大砾 System capable of quickly responding to high-concurrency network request
CN105634972A (en) * 2016-01-29 2016-06-01 四川长虹电器股份有限公司 Method for improving access efficiency of Web client
CN110516185A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 The processing method and processing device of dynamic website

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064932A (en) * 2012-12-24 2013-04-24 乐视网信息技术(北京)股份有限公司 System and method for processing static page

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064932A (en) * 2012-12-24 2013-04-24 乐视网信息技术(北京)股份有限公司 System and method for processing static page

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
张光清: ""Java EE门户网站性能优化技术的研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
白万民 等: ""W eb应用中的网页静态化技术研究"", 《西安工业大学学报》 *
赵志勤 等: ""面向数据分析的Web页面静态化方法研究与实现"", 《实践与经验》 *
霍珊: ""页面静态化技术的研究"", 《消费导刊》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104994139A (en) * 2015-06-10 2015-10-21 丁大砾 System capable of quickly responding to high-concurrency network request
CN104994139B (en) * 2015-06-10 2018-03-13 丁大砾 A kind of system and method to high concurrent network request quick response
CN105634972A (en) * 2016-01-29 2016-06-01 四川长虹电器股份有限公司 Method for improving access efficiency of Web client
CN110516185A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 The processing method and processing device of dynamic website
CN110516185B (en) * 2019-08-09 2022-04-22 济南浪潮数据技术有限公司 Method and device for processing dynamic website

Similar Documents

Publication Publication Date Title
US11580441B2 (en) Model training method and apparatus
CN102307206B (en) Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
CN105144121A (en) Caching content addressable data chunks for storage virtualization
US9785378B2 (en) Tracking transformed memory pages in virtual machine chain migration
CN103856567A (en) Small file storage method based on Hadoop distributed file system
CN106339508B (en) WEB caching method based on paging
US9563569B2 (en) Memory transformation in virtual machine live migration
RU2646349C2 (en) Data processing method and system
TW201220197A (en) for improving the safety and reliability of data storage in a virtual machine based on cloud calculation and distributed storage environment
EP3161662B1 (en) Optimized browser render process
Pande et al. Enhanced web application and browsing performance through service-worker infusion framework
CN102722405B (en) Counting method and system in high concurrent and multithreaded application
CN104391868A (en) Staticizing device and method for dynamic page
CN104462224A (en) Cloud disc file online editing method
CN104298723A (en) Method for achieving page staticizing in website
CN103106261B (en) Based on the distributed enquiring method of arrowband cloud data, services
CN103294799A (en) Method and system for parallel batch importing of data into read-only query system
CN102929943B (en) data output method and device
CN104571946A (en) Memory device supporting quick query of logical circuit and access method of memory device
CN104408178A (en) Device and method for WEB control loading
CN105404672A (en) Webpage data storage and operation system and method
US9760577B2 (en) Write-behind caching in distributed file systems
Phan Cloud Databases for Internet-of-Things Data
Chihoub et al. A scalability comparison study of data management approaches for smart metering systems
CN102495710B (en) Method for processing data read-only accessing request

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150121

WD01 Invention patent application deemed withdrawn after publication