CN105956030A - WEB system and WEB request processing method - Google Patents

WEB system and WEB request processing method Download PDF

Info

Publication number
CN105956030A
CN105956030A CN201610261435.0A CN201610261435A CN105956030A CN 105956030 A CN105956030 A CN 105956030A CN 201610261435 A CN201610261435 A CN 201610261435A CN 105956030 A CN105956030 A CN 105956030A
Authority
CN
China
Prior art keywords
resource
web
static resource
static
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.)
Pending
Application number
CN201610261435.0A
Other languages
Chinese (zh)
Inventor
刘增辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610261435.0A priority Critical patent/CN105956030A/en
Publication of CN105956030A publication Critical patent/CN105956030A/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
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The invention provides a WEB system and a WEB request processing method. The WEB system comprises a static resource server and a WEB container, wherein static resources are deployed in the static resource server; dynamic resources are deployed in the WEB container; the static resource server is used for obtaining a first static resource from the static resources according to a WEB request sent by an external client, sending the WEB request to the WEB container connected with the static resource server, receiving a target dynamic resource returned by the WEB container connected with the static resource server, and sending the first static resource and the target dynamic resource to the client; and the WEB container is used for receiving the WEB request sent by the static resource server, obtaining the target dynamic resource from the dynamic resources according to the WEB request, and sending the target dynamic resource to the corresponding static resource server. According to the scheme, the WEB service response speed can be increased.

Description

A kind of WEB system and the processing method of WEB request
Technical field
The present invention relates to field of computer technology, the place asked particularly to a kind of WEB system and WEB Reason method.
Background technology
WEB (webpage) system, as a kind of reality mode of internet function, is that user accesses website Carrier.User sends WEB by browser and asks, and WEB system is asked according to the WEB of user, The static resource included by the accessed page and dynamic resource return to browser, thus open up on a web browser The page that existing user is to be accessed.
At present, the static resource in WEB system and dynamic resource are all deployed in same WEB container, When user sends WEB request every time, WEB container is according to WEB request of loading static resource and obtains Dynamic resource, then returns to user to complete WEB service by static resource and dynamic resource.
It is directed to existing WEB system, owing to static resource is all deployed in same with dynamic resource In WEB container, after the WEB receiving user asks, WEB container both needs to load required Static resource, needs again to run corresponding program to obtain dynamic resource, causes the load of WEB container The heaviest, needed for needing the longer time to return dynamic resource, thus the response speed of WEB service Spend slower.
Summary of the invention
Embodiments provide a kind of WEB system and the processing method of WEB request, it is possible to increase The response speed of WEB service.
Embodiments provide a kind of WEB system, including: static resource server and WEB hold Device, is deployed with static resource in described static resource server, be deployed with dynamically in described WEB container Resource;
Described static resource server, for receiving the WEB request that the client of outside sends, according to Described WEB request obtains the first static resource from described static resource, and described WEB request is sent out Give connected WEB container, after receiving the target dynamic resource that described connected WEB container returns, Described first static resource and described target dynamic resource are sent to described client;
Described WEB container, for receiving the described WEB request that described static resource server sends, From described dynamic resource, described target dynamic resource is obtained according to described WEB request, and by described mesh Mark dynamic resource is sent to the static resource server of correspondence.
Preferably,
Described static resource server, the described static resource after storing packet transaction, wherein, institute State static resource be divided into the packet of at least one project according to affiliated project or drawn according to Format Type It is divided at least one format packets.
Preferably,
When described static resource is divided into the packet of at least one project,
Described static resource server, for according to belonging to the static resource needed for described WEB request Project, obtains described first static resource from corresponding described project packet;
When described static resource is divided at least one format packets,
Described static resource server, the form of the static resource needed for asking according to described WEB Type, obtains described first static resource from corresponding described format packets.
Preferably,
Described WEB container includes: at least one WEB container and integral unit, each of which institute State and WEB container is all deployed with described dynamic resource;
Each described WEB container, asks institute for obtaining described WEB from described dynamic resource Need a part for dynamic resource as sub-goal dynamic resource, and described sub-goal dynamic resource is sent to Described integral unit;
Described integral unit, dynamic for receiving the described sub-goal of each described WEB container return Resource, is integrated into described target dynamic resource by each described sub-goal dynamic resource, and by described target Dynamic resource is sent to described static resource server, and wherein said target dynamic resource includes described WEB Whole dynamic resources needed for request.
Preferably,
Described static resource server includes: Apache Server or Nginx server.
Preferably,
Described WEB container includes: Tomcat server.
Preferably,
Described static resource server, is further used for asking to described WEB container according to described WEB Send the second static resource;
Described WEB container, for according to described WEB request and described second static resource, to accordingly Dynamic resource carry out calculation process, form described target dynamic resource.
The embodiment of the present invention additionally provides a kind of any one WEB system pair utilizing the present embodiment to provide WEB request carries out the method processed, and is deployed to by static resource in described static resource server, will be dynamic State resource deployment, in described WEB container, also includes:
The WEB sent by the client outside the reception of described static resource server is asked, according to institute State WEB request from described static resource, obtain the first static resource, and described access information is sent To described WEB container;
Asked by WEB described in described WEB container reception, according to described WEB request from described dynamic State resource obtains target dynamic resource, and described target dynamic resource is sent to the static resource of correspondence Server;
Described target dynamic resource is received by described static resource server, and by the described first static money Source and described target dynamic resource are sent to described client.
Preferably,
Described from described static resource, obtain the first static resource include according to described WEB request:
When described static resource is divided into the packet of at least one project, according to described WEB request letter The project belonging to static resource needed for breath, obtains described first static from corresponding described project packet Resource;
When described static resource is divided at least one format packets, needed for described solicited message The Format Type belonging to static resource, from corresponding described format packets, obtain the described first static money Source.
Preferably,
When described WEB container includes at least one WEB container and integral unit,
Described according to described WEB request acquisition target dynamic resource from described dynamic resource, and by institute State target dynamic resource to be sent to described static resource server and include:
From described dynamic resource, described WEB request is obtained required by WEB container each described A part for dynamic resource is as sub-goal dynamic resource, and described sub-goal dynamic resource is sent to institute State integral unit;
The described sub-goal being received the return of each described WEB container by described integral unit is dynamically provided Source, is integrated into described target dynamic resource by each described sub-goal dynamic resource, and described target is moved State resource is sent to described static resource server, and wherein said target dynamic resource includes described WEB Whole dynamic resources needed for request.
Preferably,
Farther include after described access information is sent to described WEB container: by described quiet State Resource Server, sends the second static resource according to described WEB request to described WEB container;
Described from described dynamic resource, obtain target dynamic resource according to described WEB request and include: be logical Cross described WEB container, according to described WEB solicited message and described second static resource, to accordingly Dynamic resource carries out calculation process, forms described target dynamic resource.
Embodiments provide a kind of WEB system and the processing method of WEB request, WEB system System includes static resource server and WEB system container, disposes static resource in static resource server, Disposing dynamic resource in WEB container, static resource server is used for receiving WEB asks and obtains institute The static resource needed, and WEB request is sent to WEB container, needed for WEB container is used for obtaining Dynamic resource, and required dynamic resource is sent to static resource server, static resource services Required dynamic resource and static resource are sent to client by device.So, static resource is arranged into quiet In state Resource Server, static resource server the static resource needed for obtaining, WEB container is merely responsible for Obtaining dynamic resource, owing to reducing the load of WEB container, WEB container can be in relatively short period of time Interior acquisition dynamic resource, thus improve the response speed of WEB service.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, not On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic diagram of a kind of WEB system that one embodiment of the invention provides;
Fig. 2 is the process flow figure of a kind of WEB request that one embodiment of the invention provides;
Fig. 3 is the process flow figure of a kind of WEB request that another embodiment of the present invention provides;
Fig. 4 is the schematic diagram of a kind of WEB system cluster that one embodiment of the invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments, based on Embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, embodiments provide a kind of WEB system, including: at least one is quiet State Resource Server 101 and at least one WEB container 102, each described static resource server 101 are connected with a described WEB container 102, are deployed with static state in described static resource server 101 Resource, is deployed with dynamic resource in described WEB container 102;
Described static resource server 101, for receiving the WEB request that the client of outside sends, root From described static resource, obtain the first static resource according to described WEB request, and described WEB is asked It is sent to the WEB container 102 being connected, receives the target that described connected WEB container 102 returns After dynamic resource, described first static resource and described target dynamic resource are sent to described client;
Described WEB container 102, for receiving the described WEB that described static resource server 101 sends Request, obtains described target dynamic resource according to described WEB request from described dynamic resource, and will Described target dynamic resource is sent to the static resource server 101 of correspondence.
Embodiments provide a kind of WEB system, WEB system include static resource server and WEB system container, disposes static resource in static resource server, disposes dynamically in WEB container Resource, static resource server is used for receiving the static resource needed for WEB asks and obtains, and by WEB Request is sent to WEB container, and WEB container is for obtaining required dynamic resource, and is moved by required State resource is sent to static resource server, by static resource server by required dynamic resource and static state Resource is sent to client.So, static resource is arranged in static resource server, static state provides Static resource needed for source server acquisition, WEB container is merely responsible for obtaining dynamic resource, owing to reducing The load of WEB container, WEB container can obtain dynamic resource in the short period of time, thus improve The response speed of WEB service.
In an embodiment of the invention, in static resource server, can be according to belonging to static resource Project static resource is divided into the packet of at least one project, or can be according to the form of static resource Static resource is divided at least one format packets by type.So, many by static resource is divided into Individual packet rear portion is deployed in static resource server, it is simple to be managed static resource, and it is right to improve WEB system carries out the convenience of operation management.
In an embodiment of the invention, it is divided at least one when static resource according to affiliated project During project packet, according to the project belonging to WEB request, from corresponding project packet, obtain first quiet State resource;When static resource is divided at least one format packets according to radical type, according to WEB The Format Type of the required static resource of request, obtains the first static resource from corresponding format packets.This Sample, is grouped static resource rear portion and is deployed in static resource server, when obtain needed for static resource time, Only need in corresponding project packet or format packets, to read static resource according to WEB request, reduce quiet State Resource Server obtains hunting zone during required static resource, improves the speed obtaining static resource, Ensure to get the first required static resource before WEB container returns target dynamic resource, and then Guarantee to improve the response speed of WEB service.
In an embodiment of the invention, WEB container can include at least one WEB container and whole Closing unit, be deployed with dynamic resource in each WEB container, static resource server is permissible Sending WEB request to each WEB container, each WEB container is according to the WEB received One branch of the required dynamic resource of acquisition request WEB request, each WEB container is obtained by integral unit The dynamic resource taken carries out being integrally formed the whole dynamic resources needed for WEB request, i.e. target dynamic money Source, and target dynamic resource is sent to static resource server.So, the process of dynamic resource is obtained Can carry out in multiple WEB containers, each WEB container only obtains required dynamic resource A part, and the process that each WEB container obtains dynamic resource is carried out simultaneously, such that it is able to Shorten WEB container further and obtain the time needed for dynamic resource, improve the sound of WEB service further Answer speed.
In an embodiment of the invention, static resource server can use Apache Server or Nginx server.Owing to Apache Server and Nginx server all have well with WEB container Compatibility, using Apache Server or Nginx server as can ensure that static resource server And the stability of data interaction between WEB container, thus improve the reliability of WEB system.
In an embodiment of the invention, WEB container can use Tomcat server, due to Tomcat server has good dynamic resource operational capability, using Tomcat server as WEB Sub-container obtains dynamic resource, can improve the speed that dynamic resource obtains further, thus carry further The response speed of high WEB service.
In an embodiment of the invention, static resource server is sending WEB request to WEB container After, send the second static resource according to WEB request to WEB container, wherein the second static resource is WEB container obtains static resource required during the required dynamic resource of WEB request, WEB container reception After the second static resource, according to WEB request and the second static resource, corresponding dynamic resource is carried out Calculation process, forms the target dynamic resource needed for WEB request.By static resource server to WEB Container sends the mode of static resource, it is not necessary to dispose static resource in WEB container, is ensureing WEB On the premise of container can normally obtain the required dynamic resource of WEB request, reduce the CPU of WEB container And EMS memory occupation, it is ensured that the operational capability of WEB container.
As in figure 2 it is shown, one embodiment of the invention provides and a kind of utilizes what the embodiment of the present invention provided to appoint WEB is asked the method processed by a kind of WEB system of anticipating, including:
Step 201: static resource is deployed in described static resource server, by dynamic resource deployment In described WEB container;
Step 202: the WEB sent by the client outside the reception of described static resource server is asked, From described static resource, obtain the first static resource according to described WEB request, and access letter by described Breath is sent to described WEB container;
Step 203: asked by WEB described in described WEB container reception, please according to described WEB Seek acquisition target dynamic resource from described dynamic resource, and described target dynamic resource is sent to correspondence Static resource server;
Step 204: receive described target dynamic resource by described static resource server, and by described First static resource and described target dynamic resource are sent to described client.
Embodiments provide the processing method of a kind of WEB request, by static resource and dynamically provide Source is deployed in static resource server and WEB container respectively, obtains quiet by static resource server State resource, obtains dynamic resource by WEB container, static resource server by static resource and move State resource is sent to client.Owing to the acquisition of static resource completes in static resource server, and WEB container is merely responsible for obtaining dynamic resource, reduces the load of WEB container, relative to prior art WEB container can obtain dynamic resource in the short period of time such that it is able in the short period of time will Static resource and dynamic resource needed for WEB request are sent to client, improve the sound of WEB service Answer speed.
In an embodiment of the invention, when the static resource being deployed in static resource server is according to institute Genus project or Format Type are divided into multiple packet, when obtaining static resource by static resource server, According to the project belonging to the required static resource of WEB request or the Format Type of correspondence, from corresponding project Packet or format packets obtain the first static resource needed for WEB request.So, according to affiliated item Static resource is disposed by mesh or Format Type, on the one hand is easy to be managed static resource, improves WEB system carried out the convenience of operation management;On the other hand, the required first static money is being obtained During source, it is only necessary to scan in corresponding packet, reduce the scope searching element particular static resource, from And improve static resource server and obtain the time needed for static resource, it is ensured that return at WEB container Get the first required static resource before target dynamic resource, and then ensure the response of WEB service Speed.
In an embodiment of the invention, when WEB container obtains target dynamic resource, can be by multiple WEB container obtains dynamic resource simultaneously, and each WEB container obtains the one of target dynamic resource Part, integrates the dynamic resource that each WEB container gets finally by integral unit, Form the whole dynamic resources needed for WEB request.So, only obtain due to each WEB container A part for required static resource, and each WEB container runs simultaneously, thus further shorten WEB container obtains the time of required dynamic resource, improves the response speed of WEB service further.
In an embodiment of the invention, the static money of response is needed when WEB container obtains dynamic resource During source, the second static resource needed for WEB container is sent by static resource server according to WEB request To WEB container, the second static resource that WEB container is asked according to WEB and received, to accordingly Dynamic resource carry out computing, it is thus achieved that WEB request needed for target dynamic resource.So without at WEB Container is disposed static resource, is ensureing that WEB container can normally obtain the required dynamically money of WEB request On the premise of source, reduce CPU and the EMS memory occupation of WEB container, it is ensured that the computing energy of WEB container Power.
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specifically real The present invention is described in further detail to execute example.
As it is shown on figure 3, embodiments provide the processing method of a kind of WEB request, the method May comprise steps of:
Step 301: receive the WEB request that client sends by static resource server.
In an embodiment of the invention, when user needs to conduct interviews some webpage, Yong Hutong Cross client static resource server in WEB system and send corresponding WEB request.
Such as, when user needs to conduct interviews a specific webpage A, user is clicked on by browser The link of this webpage A, or by the network address at address field input webpage A, browser is according to user's webpage The network address of A sends WEB request to static resource server.
Step 302: obtain the first static resource by static resource server.
In an embodiment of the invention, use Apache Server or Nginx server as static state Resource Server, is deployed with static resource, and static resource is according to affiliated in static resource server The Format Type of project or correspondence is divided into the packet of multiple project or format packets.Static resource server After receiving the WEB request that client sends, according to the project belonging to this WEB request or required static state The form of resource, obtains the first required static resource from corresponding project packet or format packets.
Such as, employing Apache Server is as static resource server, in static resource server It is deployed with the project of being applied to 1 and the static resource of project 2, according to the project belonging to each static resource, The all static resources belonging to project 1 are divided into one group and are grouped 1 as project, project 2 will be belonged to All static resources are divided into one group as packet 2.Send when static resource server receives browser WEB request after, if this WEB request belongs to the scope of project 1, then search in project packet 1 The first static resource needed for this WEB of rope request;If this WEB request belongs to the scope of project 2, In project packet 2, then search for the first static resource needed for this WEB request.
The most such as, in static resource server, the static resource of storage has multiple format type, specifically wraps Include the forms such as js, html, png, img, according to the Format Type of each static resource, by js form Static resource is divided into one group, as format packets 1;The static resource of html form is divided into one group, As format packets 2;The static resource of png and img form is divided into one group, as format packets 3.After static resource server receives the WEB request that browser sends, ask institute according to WEB The type of each static resource needed, obtains the first required static resource from corresponding format packets. Such as, WEB request needs the file 2 of file 1 and png form and the file 3 of js form, then from Search file in format packets 1, search 2 and file 3 from format packets 3.
Step 303: WEB solicited message and the second static resource are sent to by static resource server WEB container.
In an embodiment of the invention, static resource server receive client send WEB please After asking, when determining that WEB container obtains target dynamic resource according to this WEB request, required second is static Resource, obtains the second static resource from all static resources, after getting the second static resource, and will WEB request and the second static resource are sent to WEB container, the method wherein obtaining the second static resource Identical with the method obtaining the first static resource, do not repeating.
Such as, according to WEB request, static resource server determines that WEB container is obtaining target dynamic money Needing the static resource utilized to include file 4 and file 5 during source, static resource server gets file 4 After file 5, file 4, file 5 and WEB request are all sent to WEB container.
Step 304:WEB container reception WEB request and the second static resource, ask according to WEB And second static resource obtain target dynamic resource.
In an embodiment of the invention, Web container includes multiple WEB container and integral unit, Each WEB container is deployed with dynamic resource.The WEB request that static resource server sends And second static resource be transferred to each WEB container, use Tomcat server as WEB Sub-container.The WEB request and second that each WEB container reception sends to static resource server After static resource, determine required whole dynamic resources according to WEB request, each WEB container Obtaining a part of dynamic resource in whole dynamic resource, different WEB subelements obtain different dynamic Resource, the dynamic resource that each WEB subelement gets is integrated by integral unit, forms WEB Whole dynamic resources needed for request, i.e. target dynamic resource.Each WEB container is dynamic in acquisition During state resource, according to WEB request and the second static resource, corresponding dynamic resource is carried out computing, Get corresponding required dynamic resource.
Such as, WEB container includes 3 WEB containers, respectively WEB container 1, WEB Sub-container 2 and WEB container 3.Dynamic resource needed for WEB request includes file 6, file 7 And file 8, then WEB container 1 is with file 4 as input value, the dynamic resource of operating file 6 correspondence, Form file 6;WEB container 2 with file 5 as input value, the dynamic resource of operating file 7 correspondence, Form file 7;The dynamic resource of direct operating file 8 correspondence of WEB easy 3, forms file 8. File 7 that file 6 that WEB container 1 is formed by integral unit, WEB container 2 are formed and The file 8 that WEB container 3 is formed is integrated together, and is formed and includes file 6, file 7 and file 8 Target dynamic resource.
Step 305: target dynamic resource is sent to static resource server by WEB container.
In an embodiment of the invention, the target dynamic money needed for WEB container gets WEB request Behind source, the target dynamic resource got is sent to static resource server.
Such as, the target including file 6, file 7 and file 8 is moved by the integral unit in WEB container State resource is sent to static resource manager.
Step 306: the first static resource and target dynamic resource are sent to by static resource server Client.
In an embodiment of the invention, static resource server is receiving the mesh that WEB container returns Mark dynamic resource after, by target dynamic resource and get in step 302 first static resource send To client.
Such as, static resource file 1, file 2 and the literary composition needed for WEB is asked by static resource server Part 3, and required dynamic resource file 6, file 7 and file 8 be sent to browser.
Step 307: show institute according to the static resource received and dynamic resource to user by client Need webpage.
In an embodiment of the invention, the static resource needed for WEB is asked by static resource server And after dynamic resource is sent to client, client is formed according to the static resource received and dynamic resource Corresponding webpage, this webpage is the webpage that user is to be accessed.
Such as, browser is according to the static resource file 1 received, file 2 and file 3, and receives Dynamic resource file 6, file 7 and the file 8 arrived, forms webpage A, to user displayed web page A's Content.
As shown in Figure 4, one embodiment of the invention provides a kind of WEB system cluster, including: extremely A few static resource server 401 and at least one WEB container 402;
One end of each static resource server 401 is connected with the client 403 of at least one outside, The other end is connected with each WEB container 402, and each WEB container 402 includes at least one WEB Sub-container 4021 and an integral unit 4022;
Each static resource server 401 is deployed with static resource, each WEB container 4021 In be deployed with dynamic resource.
Static resource server 401 is used for receiving the solicited message that connected client 403 sends, according to The first static resource needed for solicited message acquisition, obtains WEB request and WEB container 402 dynamically The second static resource needed for resource is sent at least one the WEB container 402 being connected, and by whole The target dynamic resource and the first static resource that close unit 4022 return are sent to send the visitor that WEB asks Family end 403;
Each WEB container 402 is used for by least one WEB container 4021 according to receiving WEB request and the second static resource obtain the part of required dynamic resource, and pass through integral unit The dynamic resource that each WEB container 4021 obtains is integrated into required target dynamic resource by 4022, And target dynamic resource is sent to the static resource server 401 being connected.
Each embodiment that the present invention provides, at least has the advantages that
1, in the embodiment of the present invention, WEB system includes static resource server and WEB system container, In static resource server, dispose static resource, WEB container is disposed dynamic resource, static money Source server is for receiving the static resource needed for WEB asks and obtains, and WEB request is sent to WEB container, WEB container is for obtaining required dynamic resource, and is sent by required dynamic resource To static resource server, static resource server required dynamic resource and static resource are sent to Client.So, static resource is arranged in static resource server, static resource server obtains Taking required static resource, WEB container is merely responsible for obtaining dynamic resource, owing to reducing WEB container Load, WEB container can obtain dynamic resource in the short period of time, thus improves WEB clothes The response speed of business.
2, in the embodiment of the present invention, when disposing static resource in static resource server, can be according to quiet Static resource is divided into multiple packet by project or the Format Type of correspondence belonging to state resource, is obtaining institute When needing the first static resource and the second static resource, it is only necessary to the static state needed for searching in corresponding packet Resource, on the one hand improves the convenience that WEB system carries out operation management, on the other hand improves Obtain the first static resource and the speed of the second static resource, it is ensured that return target dynamic at WEB container Get the first required static resource before resource, and then guarantee to improve the response of WEB service Speed.
3, in the embodiment of the present invention, a WEB container can include multiple WEB container, is obtaining When taking target dynamic resource, each WEB container only obtains a part for target dynamic resource, will The static resource that each WEB container gets forms target quiescent resource, due to respectively after integrating Individual WEB container can obtain required dynamic resource simultaneously, shortens WEB container further and obtains dynamically Time needed for resource, improve the response speed of WEB service further.
4, in the embodiment of the present invention, WEB container can be obtained mesh according to WEB request by static resource The second static resource required during mark dynamic resource sends jointly to WEB container with WEB request, it is not necessary to In WEB container, dispose static resource, ensureing that WEB container can normally obtain WEB and ask institute On the premise of needing dynamic resource, reduce CPU and the EMS memory occupation of WEB container, it is ensured that WEB container Operational capability.
It should be noted that in this article, the relational terms of such as first and second etc be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply this Relation or the order of any this reality is there is between a little entities or operation.And, term " includes ", " comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or equipment not only include those key elements, but also include the brightest Other key elements really listed, or also include intrinsic for this process, method, article or equipment Key element.In the case of there is no more restriction, statement " include a 〃 " and limit Key element, it is not excluded that there is also another in including the process of described key element, method, article or equipment Outer same factor.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in embodied on computer readable Storage medium in, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned Storage medium include: various Jie that can store program code such as ROM, RAM, magnetic disc or CD In matter.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate this The technical scheme of invention, is not intended to limit protection scope of the present invention.All spirit in the present invention and former Any modification, equivalent substitution and improvement etc. done within then, are all contained in protection scope of the present invention.

Claims (10)

1. a WEB system, it is characterised in that including: static resource server and WEB container, Described static resource server is deployed with static resource, described WEB container is deployed with dynamic resource;
Described static resource server, for receiving the WEB request that the client of outside sends, according to Described WEB request obtains the first static resource from described static resource, and described WEB request is sent out Give connected WEB container, after receiving the target dynamic resource that described connected WEB container returns, Described first static resource and described target dynamic resource are sent to described client;
Described WEB container, for receiving the described WEB request that described static resource server sends, From described dynamic resource, described target dynamic resource is obtained according to described WEB request, and by described mesh Mark dynamic resource is sent to the static resource server of correspondence.
WEB system the most according to claim 1, it is characterised in that
Described static resource server, the described static resource after storing packet transaction, wherein, institute State static resource be divided into the packet of at least one project according to affiliated project or drawn according to Format Type It is divided at least one format packets.
WEB system the most according to claim 2, it is characterised in that
When described static resource is divided into the packet of at least one project,
Described static resource server, for according to belonging to the static resource needed for described WEB request Project, obtains described first static resource from corresponding described project packet;
When described static resource is divided at least one format packets,
Described static resource server, the form of the static resource needed for asking according to described WEB Type, obtains described first static resource from corresponding described format packets.
WEB system the most according to claim 1, it is characterised in that
Described WEB container includes: at least one WEB container and integral unit, each of which institute State and WEB container is all deployed with described dynamic resource;
Each described WEB container, asks institute for obtaining described WEB from described dynamic resource Need a part for dynamic resource as sub-goal dynamic resource, and described sub-goal dynamic resource is sent to Described integral unit;
Described integral unit, dynamic for receiving the described sub-goal of each described WEB container return Resource, is integrated into described target dynamic resource by each described sub-goal dynamic resource, and by described target Dynamic resource is sent to described static resource server, and wherein said target dynamic resource includes described WEB Whole dynamic resources needed for request.
WEB system the most according to claim 4, it is characterised in that
Described static resource server includes: Apache Server or Nginx server;
And/or,
Described WEB container includes: Tomcat server.
6. according to described WEB system arbitrary in claim 1 to 5, it is characterised in that
Described static resource server, is further used for asking to described WEB container according to described WEB Send the second static resource;
Described WEB container, for according to described WEB request and described second static resource, to accordingly Dynamic resource carry out calculation process, form described target dynamic resource.
7. one kind utilizes arbitrary described WEB system in claim 1 to 6 to carry out WEB request The method processed, it is characterised in that be deployed to by static resource in described static resource server, will be dynamic State resource deployment, in described WEB container, also includes:
The WEB sent by the client outside the reception of described static resource server is asked, according to institute State WEB request from described static resource, obtain the first static resource, and described access information is sent To described WEB container;
Asked by WEB described in described WEB container reception, according to described WEB request from described dynamic State resource obtains target dynamic resource, and described target dynamic resource is sent to the static resource of correspondence Server;
Described target dynamic resource is received by described static resource server, and by the described first static money Source and described target dynamic resource are sent to described client.
Method the most according to claim 7, it is characterised in that described ask according to described WEB From described static resource, obtain the first static resource include:
When described static resource is divided into the packet of at least one project, according to described WEB request letter The project belonging to static resource needed for breath, obtains described first static from corresponding described project packet Resource;
When described static resource is divided at least one format packets, needed for described solicited message The Format Type belonging to static resource, from corresponding described format packets, obtain the described first static money Source.
Method the most according to claim 7, it is characterised in that when described WEB container include to When a few WEB container and integral unit,
Described according to described WEB request acquisition target dynamic resource from described dynamic resource, and by institute State target dynamic resource to be sent to described static resource server and include:
From described dynamic resource, described WEB request is obtained required by WEB container each described A part for dynamic resource is as sub-goal dynamic resource, and described sub-goal dynamic resource is sent to institute State integral unit;
The described sub-goal being received the return of each described WEB container by described integral unit is dynamically provided Source, is integrated into described target dynamic resource by each described sub-goal dynamic resource, and described target is moved State resource is sent to described static resource server, and wherein said target dynamic resource includes described WEB Whole dynamic resources needed for request.
10. according to described method arbitrary in claim 7 to 9, it is characterised in that
Farther include after described access information is sent to described WEB container: by described quiet State Resource Server, sends the second static resource according to described WEB request to described WEB container;
Described from described dynamic resource, obtain target dynamic resource according to described WEB request and include: be logical Cross described WEB container, according to described WEB solicited message and described second static resource, to accordingly Dynamic resource carries out calculation process, forms described target dynamic resource.
CN201610261435.0A 2016-04-25 2016-04-25 WEB system and WEB request processing method Pending CN105956030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610261435.0A CN105956030A (en) 2016-04-25 2016-04-25 WEB system and WEB request processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610261435.0A CN105956030A (en) 2016-04-25 2016-04-25 WEB system and WEB request processing method

Publications (1)

Publication Number Publication Date
CN105956030A true CN105956030A (en) 2016-09-21

Family

ID=56915350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610261435.0A Pending CN105956030A (en) 2016-04-25 2016-04-25 WEB system and WEB request processing method

Country Status (1)

Country Link
CN (1) CN105956030A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN107911459A (en) * 2017-11-21 2018-04-13 桂林爱家购股份有限公司 A kind of Web page storage device
CN109254804A (en) * 2018-09-10 2019-01-22 郑州云海信息技术有限公司 A kind of static resource loading method, device, equipment and readable storage medium storing program for executing
CN110866197A (en) * 2019-11-19 2020-03-06 中国民航信息网络股份有限公司 Method and device for accessing departure front-end client based on WEB application program
CN111562989A (en) * 2020-07-14 2020-08-21 北京东方通软件有限公司 Method and device for separate deployment of dynamic resources and static resources
CN112035174A (en) * 2019-05-16 2020-12-04 杭州海康威视数字技术股份有限公司 Method, apparatus and computer storage medium for running web service
CN112637074A (en) * 2019-10-08 2021-04-09 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN113630434A (en) * 2021-06-19 2021-11-09 特瓦特能源科技有限公司 Processing method for client access request and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729598A (en) * 2009-11-18 2010-06-09 福建星网锐捷网络有限公司 Method and system for increasing Web service response speed and network processor
US20110265081A1 (en) * 2010-04-26 2011-10-27 Vmware, Inc. Droplet execution engine for dynamic server application deployment
US20120185835A1 (en) * 2011-01-13 2012-07-19 Levy Klots Static Resource Processing
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
CN105227630A (en) * 2015-08-27 2016-01-06 浪潮电子信息产业股份有限公司 A kind of based on APACHE, MOD_JK, TOMCAT load balancing implementation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729598A (en) * 2009-11-18 2010-06-09 福建星网锐捷网络有限公司 Method and system for increasing Web service response speed and network processor
US20110265081A1 (en) * 2010-04-26 2011-10-27 Vmware, Inc. Droplet execution engine for dynamic server application deployment
US20120185835A1 (en) * 2011-01-13 2012-07-19 Levy Klots Static Resource Processing
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN104965764A (en) * 2015-06-02 2015-10-07 百度在线网络技术(北京)有限公司 Static resource processing method and apparatus
CN105227630A (en) * 2015-08-27 2016-01-06 浪潮电子信息产业股份有限公司 A kind of based on APACHE, MOD_JK, TOMCAT load balancing implementation

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN107465722B (en) * 2017-07-04 2021-07-09 创新先进技术有限公司 Web access realization method and device
CN107911459A (en) * 2017-11-21 2018-04-13 桂林爱家购股份有限公司 A kind of Web page storage device
CN109254804A (en) * 2018-09-10 2019-01-22 郑州云海信息技术有限公司 A kind of static resource loading method, device, equipment and readable storage medium storing program for executing
CN112035174A (en) * 2019-05-16 2020-12-04 杭州海康威视数字技术股份有限公司 Method, apparatus and computer storage medium for running web service
CN112637074A (en) * 2019-10-08 2021-04-09 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN112637074B (en) * 2019-10-08 2023-04-28 中国移动通信集团浙江有限公司 Web static resource coordination method, device and distribution system
CN110866197A (en) * 2019-11-19 2020-03-06 中国民航信息网络股份有限公司 Method and device for accessing departure front-end client based on WEB application program
CN110866197B (en) * 2019-11-19 2022-08-19 中国民航信息网络股份有限公司 Method and device for accessing departure front-end client based on WEB application program
CN111562989A (en) * 2020-07-14 2020-08-21 北京东方通软件有限公司 Method and device for separate deployment of dynamic resources and static resources
CN113630434A (en) * 2021-06-19 2021-11-09 特瓦特能源科技有限公司 Processing method for client access request and server

Similar Documents

Publication Publication Date Title
CN105956030A (en) WEB system and WEB request processing method
CN106528432B (en) The construction method and device of test scene data bury a test method
CN107423085A (en) Method and apparatus for application deployment
US10382313B2 (en) Test building for testing server operation
US11095578B2 (en) Technology for chat bot translation
CN113765980A (en) Current limiting method, device, system, server and storage medium
CN108563469A (en) page loading method, device, storage medium and terminal device
CN110365724A (en) Task processing method, device and electronic equipment
CN111770128B (en) Message management method and device
US10318559B2 (en) Generation of graphical maps based on text content
CN111241180A (en) Information processing method, device, equipment and storage medium
CN107408055A (en) code cache system
CN113408254A (en) Page form information filling method, device, equipment and readable medium
US10685027B2 (en) Search system
CN106254092A (en) A kind of method for early warning, Apparatus and system
WO2022057425A1 (en) Identifying siem event types
CN115221936A (en) Record matching in a database system
US20170220936A1 (en) Identifying Linguistically Related Content for Corpus Expansion Management
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
US20220092186A1 (en) Security information analysis device, system, method and program
CN112181407A (en) Service implementation processing method, device, system, electronic equipment and storage medium
US11657226B2 (en) Detecting and mitigating bias in natural language processing
CN105095517A (en) Method and device for sorting favorites of browser
CN113568657A (en) Icon configuration method, icon configuration system, electronic device, and medium
CN115098391A (en) Page detection method, device, equipment and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921