CN104270408A - Acceleration method for non-invasive WEB request - Google Patents

Acceleration method for non-invasive WEB request Download PDF

Info

Publication number
CN104270408A
CN104270408A CN201410445047.9A CN201410445047A CN104270408A CN 104270408 A CN104270408 A CN 104270408A CN 201410445047 A CN201410445047 A CN 201410445047A CN 104270408 A CN104270408 A CN 104270408A
Authority
CN
China
Prior art keywords
file
static resource
static
server
catalogue
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
Application number
CN201410445047.9A
Other languages
Chinese (zh)
Other versions
CN104270408B (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.)
Shanghai Youpi Network Technology Co ltd
Original Assignee
YUNNAN YUANXIN SHUTONG 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 YUNNAN YUANXIN SHUTONG TECHNOLOGY Co Ltd filed Critical YUNNAN YUANXIN SHUTONG TECHNOLOGY Co Ltd
Priority to CN201410445047.9A priority Critical patent/CN104270408B/en
Publication of CN104270408A publication Critical patent/CN104270408A/en
Application granted granted Critical
Publication of CN104270408B publication Critical patent/CN104270408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Abstract

The invention relates to the technical field of software, in particular to an acceleration method for a non-invasive WEB request. The acceleration method is characterized in that a deployment package is formed during adoption of each system or module, content is automatically extracted by the system, and then network equipment and a router are modified. According to the acceleration method for the non-invasive WEB request disclosed by the invention, an MD5 (Message Digest 5) algorithm is applied to a Web request acceleration process, so that the comparison difficulty is lowered greatly, circular comparison of each file is not required, comparison or file update at each time is not required, and the file transmission overhead is reduced; and an event notification mechanism is adopted, so that maintenance of a clustering environment is simplified greatly.

Description

The accelerated method that non-intrusion type WEB asks
Technical field
The present invention relates to software technology field, particularly relate to the accelerated method that a kind of non-intrusion type WEB asks.
Background technology
Along with going deep into of enterprise operation system application, business system scale constantly expands, and software complexity constantly promotes.This proposes new problem to the exploitation of information system, integrated, deployment, upgrading etc., proposes new requirement to the high efficiency of system architecture and autgmentability.
Information system is divided into several part usually: 1) background program, and connection data storehouse, does business.2) some service logic, the controls etc., 3 on foreground) be presented to the page info (UI part) of user, comprise picture, layout, pattern, js file.Js file also can comprise service logic.The picture of program itself, layout, pattern, js file, normally static.Common static resource part contains picture file (.jpg .gif .png .bmp), pattern file (.css), js file (.js).
In order to good Consumer's Experience, intrasystem page info (UI part) along with picture, pattern and client script JS file day by day complicated, this type of Web request occupy a large amount of network traffics.And the effect of these contents usually just in order to increase system, do not comprise service logic.
In existing information system, there is a large amount of pictures (.jpg .gif .png etc.), pattern (.css), client script (.js).According to J2EE specification, these files all exist under the WEB-INF catalogue of Software deployment bag for access.After deployment completes, program and these static files are all put in a reservoir, and when user accesses, container directly responds user.Such mode just brings drawback:
1. static resource file needs Internet Transmission file, therefore can take many network bandwidths.Service logic and these static resources are at same container, and take identical bandwidth, therefore a large amount of bandwidth is taken by static resource file.The bandwidth of service logic is just occupied.So traffic handing capacity, concurrent capability will decline.
2. the network bandwidth is that second aspect is server thread on the one hand.Because the page of a usual system, comprises the static resources such as a lot of picture and pattern, because script deployment way is all put together.Each access, runs container and all can take a server thread.The thread that such service logic itself needs is just occupied.
3. when a lot of large business system is optimized also consider static resource to be separated.But need manually to recognize, extract.After extraction, need manually to build static resource server, carry out complicated configuration.
Summary of the invention
Existence is asked for existing non-intrusion type WEB ... problem, the present invention proposes the accelerated method of a kind of non-intrusion type WEB request.
The invention provides the accelerated method that a kind of non-intrusion type WEB asks, based on J2EE application standard, it is characterized in that:
1) by the High Availabitity relevant parameter of the page definition program of manager: between minimum and maximum operation node area;
2), after having defined, carry out deployment by system and wrap biography;
3) upload after verification completes, system background carries out decompress(ion) and verification: verification content comprises bibliographic structure, Engineering describing symbol file and static resource catalogue;
4) system communicates with state server, upgrades state server state, writes up-to-date deployment package informatin;
5) after status service upgrades, all static resources perceive event notice, carry out the contrast of static resource catalogue, synchronous or renewal, and whether comparing result decides file and upgrade, and cover and delete.
6) routing rule of network is revised.User is separated in static resource service automatically for the access of static resource, is separated with the access link of service logic.
Decompress(ion) in described step 3) and checking procedure, it is characterized in that system carries out logical operation, the normalization of analysis package structure, judges whether bibliographic structure meets specification, whether there is WEB-INF, whether there is Engineering describing file and whether there is static resource catalogue.
Update strategy in described step 5), after it is characterized in that extracted file, whether contrast current static server there is the catalogue of this application system, file is the need of amendment or renewal to adopt the contrast of MD5 algorithm to determine: do not change if file MD5 spy detects code, then do not need again to be separated this file, the performance of raising program, ensure that the correctness of separation; Recognition system title and reference address, automatically extract static resource file, automatically service logic and static resource file access be balanced to different terminals;
Event notification mechanism in described step 5), is characterized in that first Deployment Manager can first inform state recording module, the current state of register system, version when certain application program carries out disposing/upgrading; Then carry out bag checking, verify without exception after, the server being just sent to system is disposed; Change state server state simultaneously.All static resource servers, because have employed action listener mechanism, all can receive the event notice of system code change; Once receive, this change static server is just direct in Deployment Manager catalogue, carries out file contrast; MD5 code does not meet, and directly carries out file and covers renewal; If MD5 code is consistent, then think that file does not change.
Concrete, to static resource file abstracting method be: the conventional catalogue such as image, static, css below scanning WEB-INF, find all names with the file of js, css, jpg, bmp, png, gif form, this class file is disposed decompress(ion) bag from Java, and by file copy to static resource server; First contrast on current static server, whether had the catalogue of this application system; If had, proving this application has not been dispose first time, then need each file under documents catalogue; Contrast adopts MD5 condition code to carry out, if MD5 code does not mate, then program is thought needs re-synchronization file.
The reference address of recognition system, the method for amendment access equalizer is automatically: each information system has the web reference address of response after disposing; Same, static resource also needs oneself reference address; In order to seamless docking, make user imperceptible, system will change network equilibrium and routing rule automatically; If Operational Visit, then balanced road service server, if need access static resource, then jumps to static resource server.
The accelerated method that non-intrusion type WEB of the present invention asks, its beneficial effect is:
1) ask accelerator by MD5 algorithm application in Web, greatly save the difficulty of contrast, do not need each file of circulation contrast, do not need to contrast at every turn or carry out file update, reduce file transfer expense.No matter be new deployment or renewal below, programmed logic can both be unified: the file lacked is just direct to be as the criterion with Deployment Manager, and alternative document is as the criterion with up-to-date file MD5 code.
2) with event notification mechanism, the maintenance of cluster environment is greatly simplified.All states are all be sent to state server, and other action listeners person listens to event, just processes.
Accompanying drawing explanation
Fig. 1 is the logic diagram of non-intrusion type web request accelerated method of the present invention.
Fig. 2 is module assignment of the present invention and flow chart.
Embodiment
Embodiment 1: non-intrusion type web request accelerated method of the present invention carries out under following environment: client uses readware hardware balanced, uses Nginx software balanced.
1) by the High Availabitity relevant parameter of the page definition program of manager: between minimum and maximum operation node area;
2), after having defined, carry out deployment by system and wrap biography.Set up one to each system or module and dispose bag, each deployment Bao Jun contains service logic and static resource file; Uploaded by system and dispose bag, system scan disposes bag, extracts static resource file.
3) upload after verification completes, system background carries out decompress(ion) and verification: verification content comprises bibliographic structure, Engineering describing symbol file and static resource catalogue.System carries out logical operation, the normalization of analysis package structure, judges whether bibliographic structure meets specification, whether there is WEB-INF, whether there is Engineering describing file and whether there is static resource catalogue.
4) system communicates with state server, upgrades state server state, writes up-to-date deployment package informatin;
5) after status service upgrades, all static resources perceive event notice, carry out the contrast of static resource catalogue, synchronous or renewal, and whether comparing result decides file and upgrade, and cover and delete.Whether contrast current static server there is the catalogue of this application system, file is the need of amendment or renewal to adopt the contrast of MD5 algorithm to determine: do not change if file MD5 spy detects code, then do not need again to be separated this file, improve the performance of program, ensure that the correctness of separation; Recognition system title and reference address, automatically extract static resource file, automatically service logic and static resource file access be balanced to different terminals; When certain application program carries out disposing/upgrading, first Deployment Manager can first inform state recording module, the current state of register system, version; Then carry out bag checking, verify without exception after, the server being just sent to system is disposed; Change state server state simultaneously.All static resource servers, because have employed action listener mechanism, all can receive the event notice of system code change; Once receive, this change static server is just direct in Deployment Manager catalogue, carries out file contrast; MD5 code does not meet, and directly carries out file and covers renewal
6) routing rule of network is revised.User is separated in static resource service automatically for the access of static resource, is separated with the access link of service logic.
Concrete, to static resource file abstracting method be: the conventional catalogue such as image, static, css below scanning WEB-INF, find all names with the file of js, css, jpg, bmp, png, gif form, this class file is disposed decompress(ion) bag from Java, and by file copy to static resource server; First contrast on current static server, whether had the catalogue of this application system; If had, proving this application has not been dispose first time, then need each file under documents catalogue; Contrast adopts MD5 condition code to carry out, if MD5 code does not mate, then program is thought needs re-synchronization file.
The reference address of recognition system, the method for amendment access equalizer is automatically: each information system has the web reference address of response after disposing; Same, static resource also needs oneself reference address; In order to seamless docking, make user imperceptible, system will change network equilibrium and routing rule automatically; If Operational Visit, then balanced road service server, if need access static resource, then jumps to static resource server.

Claims (4)

1. the invention provides the accelerated method that a kind of non-intrusion type WEB asks, based on J2EE application standard, it is characterized in that:
1) by the High Availabitity relevant parameter of the page definition program of manager: between minimum and maximum operation node area;
2), after having defined, carry out deployment by system and wrap biography;
3) upload after verification completes, system background carries out decompress(ion) and verification: verification content comprises bibliographic structure, Engineering describing symbol file and static resource catalogue;
4) system communicates with state server, upgrades state server state, writes up-to-date deployment package informatin;
5) after status service upgrades, all static resources perceive event notice, carry out the contrast of static resource catalogue, synchronous or renewal, and whether comparing result decides file and upgrade, and cover and delete;
6) routing rule of network is revised;
User is separated in static resource service automatically for the access of static resource, is separated with the access link of service logic.
2. the decompress(ion) in the non-intrusion type WEB as claimed in claim 1 accelerated method step 3) of asking and checking procedure, it is characterized in that system carries out logical operation, the normalization of analysis package structure, judges whether bibliographic structure meets specification, whether there is WEB-INF, whether there is Engineering describing file and whether there is static resource catalogue.
3. the update strategy in the non-intrusion type WEB as claimed in claim 1 accelerated method step 5) of asking, after it is characterized in that extracted file, whether contrast current static server there is the catalogue of this application system, file is the need of amendment or renewal to adopt the contrast of MD5 algorithm to determine: do not change if file MD5 spy detects code, then do not need again to be separated this file, the performance of raising program, ensure that the correctness of separation; Recognition system title and reference address, automatically extract static resource file, automatically service logic and static resource file access be balanced to different terminals.
4. the event notification mechanism in the accelerated method step 5) that the non-intrusion type WEB as described in claim 1 or 3 asks, it is characterized in that when certain application program carries out disposing/upgrading, first Deployment Manager can first inform state recording module, the current state of register system, version; Then carry out bag checking, verify without exception after, the server being just sent to system is disposed; Change state server state simultaneously;
All static resource servers, because have employed action listener mechanism, all can receive the event notice of system code change; Once receive, this change static server is just direct in Deployment Manager catalogue, carries out file contrast; MD5 code does not meet, and directly carries out file and covers renewal; If MD5 code is consistent, then think that file does not change.
CN201410445047.9A 2014-09-03 2014-09-03 The accelerated method of non-intrusion type WEB requests Active CN104270408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410445047.9A CN104270408B (en) 2014-09-03 2014-09-03 The accelerated method of non-intrusion type WEB requests

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410445047.9A CN104270408B (en) 2014-09-03 2014-09-03 The accelerated method of non-intrusion type WEB requests

Publications (2)

Publication Number Publication Date
CN104270408A true CN104270408A (en) 2015-01-07
CN104270408B CN104270408B (en) 2018-06-05

Family

ID=52161897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410445047.9A Active CN104270408B (en) 2014-09-03 2014-09-03 The accelerated method of non-intrusion type WEB requests

Country Status (1)

Country Link
CN (1) CN104270408B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389931A (en) * 2018-04-12 2019-10-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that file end to end is issued based on container

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
US7788291B2 (en) * 2007-09-25 2010-08-31 Barracuda Networks, Inc. Web accelerator apparatus, system, and method
CN102184266A (en) * 2011-06-27 2011-09-14 武汉大学 Method for automatically generating dynamic wireless application protocol (WAP) website for separation of page from data
CN102804166A (en) * 2009-06-03 2012-11-28 克德科软件股份有限公司 Web page optimization
CN102915327A (en) * 2012-09-05 2013-02-06 吴小军 Double track synchronous synergy website system with dynamic/static webpage
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
CN103905472A (en) * 2012-12-25 2014-07-02 中国移动通信集团江苏有限公司 Cloud storage method and system for access through webpage mode

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101126977A (en) * 2007-08-28 2008-02-20 激动集团股份有限公司 ISAPI based WEB static page generation method
US7788291B2 (en) * 2007-09-25 2010-08-31 Barracuda Networks, Inc. Web accelerator apparatus, system, and method
CN102804166A (en) * 2009-06-03 2012-11-28 克德科软件股份有限公司 Web page optimization
CN102184266A (en) * 2011-06-27 2011-09-14 武汉大学 Method for automatically generating dynamic wireless application protocol (WAP) website for separation of page from data
CN102915327A (en) * 2012-09-05 2013-02-06 吴小军 Double track synchronous synergy website system with dynamic/static webpage
CN103905472A (en) * 2012-12-25 2014-07-02 中国移动通信集团江苏有限公司 Cloud storage method and system for access through webpage mode
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389931A (en) * 2018-04-12 2019-10-29 北京京东尚科信息技术有限公司 A kind of method and apparatus that file end to end is issued based on container

Also Published As

Publication number Publication date
CN104270408B (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN109542865B (en) Method, device, system and medium for synchronizing configuration files of distributed cluster system
CN102404338B (en) File synchronization method and device
CN106462430B (en) Application upgrade package obtaining method and device
CN102349062B (en) Method and system for synchronizing browser caches across devices and web services
US9680964B2 (en) Programming model for installing and distributing occasionally connected applications
US10521116B2 (en) System and method for managing object store
CN108683668B (en) Resource checking method, device, storage medium and equipment in content distribution network
WO2019201039A1 (en) Method and system for updating application and application server
JP5575071B2 (en) Information processing apparatus, information processing method, and program
CN107210924B (en) Method and apparatus for configuring a communication system
US9596313B2 (en) Method, terminal, cache server and system for updating webpage data
US20150227605A1 (en) Information processing terminal, synchronization control method, and computer-readable recording medium
CN112417049B (en) Cross-chain interaction method and system based on block chain all-in-one machine
US20160352811A1 (en) Streaming zip
CN102394873A (en) Authority management system of track traffic integration monitoring and method thereof
WO2022267175A1 (en) Information processing method and apparatus, and computer device and storage medium
CN106850724B (en) Data pushing method and device
WO2021136233A1 (en) Service upgrading method, device and system
CN106354832A (en) System, equipment and method for data release
CN111459416B (en) Distributed storage-based thermal migration system and migration method thereof
CN104270408A (en) Acceleration method for non-invasive WEB request
KR20130038734A (en) Method and apparatus for managing application programs of terminals, method and apparatus for managing application programs in a terminal
CN103491113B (en) A kind of synchronous method, the apparatus and system of information fusion file
CN115993979A (en) Configuration conversion method, smooth upgrading method, device, equipment and storage medium
CN112691382B (en) Resource processing method, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 650000 Yunnan province Haiyuan Kunming high tech Development Zone, Road No. 1520, Yunnan University of science and Technology Park, Overseas Students Pioneer Park a A building fourth floor No. 422-5

Applicant after: Yunnan Stockholm Digital Technology Co.,Ltd.

Address before: 650000 Yunnan province Kunming Chuncheng Road No. 219 Yunnan far letter digital communication technology Co. Ltd.

Applicant before: YUNNAN YUANXIN SHUTONG TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230801

Address after: Room 02, 6th Floor, Building 1, No. 5709 Shenjiang Road and No. 26 Qiuyue Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 200020

Patentee after: Shanghai Youpi Network Technology Co.,Ltd.

Address before: No. 422-5, 4th Floor, Building A, Phase I, University Science Park, No. 1520 Haiyuan Middle Road, High tech Development Zone, Kunming City, Yunnan Province, 650000

Patentee before: Yunnan Stockholm Digital Technology Co.,Ltd.

TR01 Transfer of patent right