Movatterモバイル変換


[0]ホーム

URL:


CN107305576A - The pseudo- static treatment method and apparatus of the page - Google Patents

The pseudo- static treatment method and apparatus of the page
Download PDF

Info

Publication number
CN107305576A
CN107305576ACN201610262573.0ACN201610262573ACN107305576ACN 107305576 ACN107305576 ACN 107305576ACN 201610262573 ACN201610262573 ACN 201610262573ACN 107305576 ACN107305576 ACN 107305576A
Authority
CN
China
Prior art keywords
page
server
terminal
database
mentioned
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
CN201610262573.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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co LtdfiledCriticalBeijing Jingdong Century Trading Co Ltd
Priority to CN201610262573.0ApriorityCriticalpatent/CN107305576A/en
Publication of CN107305576ApublicationCriticalpatent/CN107305576A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

This application discloses the pseudo- static treatment method and apparatus of the page.One embodiment of methods described includes:The page browsing request that user is sent by terminal is received, the page browsing request includes network address;Determine the Virtual network operator belonging to the terminal;Judge the page that the network address is specified whether is cached with the CDN server of the Virtual network operator;If so, the page directly then is returned into the terminal;If it is not, searching whether there is the page in default memory database;If it is present the page is returned into the terminal;If there is no, then inquiry whether there is the page in specified database server, and the page is then returned into the terminal in response to there is the page in database server, or the page is then obtained according to the network address in response to the page is not present in database server, and the acquired page is returned into the terminal.The embodiment reduces the load of server.

Description

The pseudo- static treatment method and apparatus of the page
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, especially relates toAnd the pseudo- static treatment method and apparatus of the page.
Background technology
In web development processes, in order to preferably alleviate server load pressure, typically all by pageFace content generation static page.But sometimes for showing some information in real time, or with dynamicWhen state script solves some problems, web site contents cannot be shown with static mode.UsingPseudo- static technique exploitation web can solve the above problems.Wherein, pseudo- static state is relatively true quietIt is with html (Hyper Text Markup Language, HTML) for stateThe static page form displaying of one class, but be with asp (Active Server Page, dynamic in factThe server page) dynamic script of a class carrys out development process.However, the puppet of the existing pageIn static treatment method, occur in large-scale big flow high concurrent website because substantial amounts of user asksNeed dynamic render caused by the load of server when becoming big, consumption increase and page responseBetween it is slow the problems such as.
The content of the invention
The purpose of the application is the pseudo- static treatment method and dress for proposing a kind of improved pagePut, to solve the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of pseudo- static treatment method of page, methods describedIncluding:Receive the page browsing request that user is sent by terminal, the page browsing request bagInclude network address;Determine the Virtual network operator belonging to the terminal;Judge in the Virtual network operatorWhether the page that the network address specify is cached with content delivery network service device;If so, thenThe page is directly returned into the terminal;If it is not, in default memory databaseIn search whether there is the page;If it is present the page is returned into the terminal,And write the page in the caching of content delivery network service device of the Virtual network operator;If it does not exist, then inquiry whether there is the page in specified database server, andAnd the page is then returned into the terminal in response to there is the page in database server,Or page is then obtained according to the network address in response to the page is not present in database serverFace, and the acquired page is returned into the terminal.
In certain embodiments, it is described or in response in the database server be not present instituteState the page and the page then obtained according to the network address, and the acquired page is returned into the terminal,Afterwards, methods described also includes:The acquired page is write to the memory database and instituteIn the content delivery network service device for stating Virtual network operator.
In certain embodiments, it is described or in response in the database server be not present instituteState the page and the page then obtained according to the network address, and the acquired page is returned into the terminal,Including:The data of the page are obtained according to the network address;According to the data of the page to instituteThe page is stated to be rendered;The page after rendering is respectively written into the content point of the Virtual network operatorThe caching for sending out the webserver is neutralized in the database server;The page after rendering will be returnedReturn the terminal.
In certain embodiments, it is described if it does not exist, then being looked into the database serverAsk and whether there is the page, and in response to there is the page in the database serverThe page is then returned into the terminal, including:When in the memory database be not present instituteWhen stating the page, inquire about whether the page does persistence in the database server;If instituteState the page and do persistence, then the page is write to the content distributing network of the Virtual network operatorIn the caching of server;Institute is set in the content delivery network service device of the Virtual network operatorState the cache-time of the page;The page is returned into the terminal.
In certain embodiments, the memory database is to be provided to support by server cluster,Wherein described server cluster includes the multiple web application servers for handling same task.InstituteState the server for the same service of processing that memory database is made up of multiple web application serversCluster.
In certain embodiments, it is described if it is not, in the memory database search beNo have a page, including:The server is set by default Reverse ProxyWeb application servers weight in cluster carries out reverse proxy to realize the server clusterWeb application server load balancings;Obtain each web server in the server clusterLoad;According to the load of each web server and weight in the server cluster by the pageFace browse request is transferred to separate unit web application servers in the server cluster;DescribedSearch whether there is the page in web application servers.
Second aspect, this application provides a kind of pseudo- static treatment device of page, receiving unit,It is configured to receive the page browsing request that user is sent by terminal, the page browsing requestIncluding network address;Terminal attaching determining unit, is configured to determine the network fortune belonging to the terminalSeek business;Judging unit, is configured to judge the content distributing network clothes in the Virtual network operatorThe page that the network address is specified whether is cached with business device;Processing unit, is configured to:ResponseJudge to cache in the content delivery network service device of the Virtual network operator in the judging unitThere is the page that the network address is specified, the page is directly returned into the terminal;In response to instituteJudging unit is stated to judge not cache in the content delivery network service device of the Virtual network operatorThere is the page that the network address is specified, search whether there is the page in default memory databaseFace;If it is present the page is returned into the terminal, and the page is write into instituteIn the caching of content delivery network service device for stating Virtual network operator;If it does not exist, then instituteState inquiry in database server and whether there is the page, and taken in response to the databaseThere is the page in business device and the page is then returned into the terminal, or in response to the numberThe page is then obtained according to the network address according to the page is not present in the server of storehouse, and will be acquiredThe page return to the terminal.
In certain embodiments, processing unit is further configured to:In response to the dataThe page is not present in the server of storehouse the page is then obtained according to the network address, and will be acquiredThe page returns to the terminal, afterwards, the acquired page is write to the memory database andIn the content delivery network service device of the Virtual network operator.
In certain embodiments, processing unit includes rendering module, and the rendering module configuration is usedIn:The data of the page are obtained according to the network address;According to the data of the page to describedThe page is rendered;The page after rendering is respectively written into the content distribution of the Virtual network operatorThe caching of the webserver is neutralized in the database server;The page after rendering is returnedThe terminal.
In certain embodiments, the processing unit is further configured to following steps and existedInquiry whether there is the page in the database server, and in response to the databaseThere is the page in server and the page is then returned into the terminal:When in the internal memory numberDuring according to the page is not present in storehouse, the page is inquired about in the database server whetherDo persistence;If the page does persistence, the page is write into the Virtual network operatorContent delivery network service device caching in;In the content distributing network of the Virtual network operatorThe cache-time of the page is set in server;The page is returned into the terminal.
In certain embodiments, the memory database is to be provided to support by server cluster,Wherein described server cluster includes the multiple web application servers for handling same task.
In certain embodiments, processing unit includes searching modul, and the searching modul configuration is usedSearch whether there is the page in the memory database in as follows:By pre-If Reverse Proxy set the web application server weights in the server cluster to enterThe web application server load balancings of the server cluster are realized in row reverse proxy;ObtainThe load of each web server in the server cluster;According in the server clusterEach web server is loaded and page browsing request is transferred to the server set by weightSeparate unit web application servers in group;Search whether there is institute in the web application serversState the page.
The pseudo- static treatment method and apparatus for the page that the application is provided, the net asked by userContent delivery network service device, the internal memory number of location respectively from the Virtual network operator belonging to user terminalObtained according to the page searched in storehouse or database server specified by network address, or by above-mentioned network addressTo the object data of the page, the page is rendered according to object data, afterwards, the page terminal is returned into,Avoid each page browsing request from all entering Mobile state to render, reduce the load of database server.
Brief description of the drawings
Retouched by reading with reference to the detailed of being made to non-limiting example of being made of the following drawingsState, other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow of one embodiment of the pseudo- static treatment method of the page according to the applicationFigure;
Fig. 3 is showing for an application scenarios of the pseudo- static treatment method of the page according to the applicationIt is intended to;
Fig. 4 is the stream of another embodiment of the pseudo- static treatment method of the page according to the applicationCheng Tu;
Fig. 5 is the structure of one embodiment of the pseudo- static treatment device of the page according to the applicationSchematic diagram;
Fig. 6 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of serverThe structural representation of system.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that, specific embodiment described herein is used only for explaining related invention, rather than to the hairBright restriction.It also should be noted that, illustrate only for the ease of description, in accompanying drawing withAbout the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the applicationIn feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodimentsApplication.
Fig. 1, which is shown, can apply the pseudo- static treatment method or the puppet of the page of the page of the applicationThe exemplary system architecture 100 of the embodiment of static treatment device.
As shown in figure 1, system architecture 100 can include terminal device 101, network 102, pipeManage server 103, content distributing network (Content Delivery Network, CDN) serviceDevice 104, memory database 105 and database server 106.Network 102 in terminal to setThe standby medium that communication link is provided between 101 and management server 103.Network 102 can be wrappedInclude various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can with using terminal equipment 101 by network 102 and management server 103 withCDN server 104, memory database 105 and database server 106 are interacted, withReceive or send message etc..Various telecommunication customer end applications can be installed on terminal device 101,Such as application of web browser applications, searching class, JICQ, mailbox client, societyHand over platform software etc..
Terminal device 101 can be that the various electronics browsed with display screen and supported web page are setIt is standby, including but not limited to smart mobile phone, tablet personal computer, pocket computer on knee and desk-top meterCalculation machine etc..
Management server 103 is used for the server that the page browsing request to user is managed,For example the backstage management of webpage that the webpage that terminal device 101 is asked provides service support is servicedDevice.Backstage management of webpage server such as can ask the page browsing received to arrive at the data linkCDN server 104, memory database 105 or database server 106 analyze etc.Reason, and result (such as Webpage data cached or page data) of after rendering is anti-Feed terminal device.
CDN server 104 is that one kind can be avoided being possible to influence data on internet as far as possibleThe bottleneck and link of transmission speed and stability, make the service faster, more stable of content transmissionDevice.
Memory database 105 is that data are placed on to the database directly operated in internal memory, to improveThe stability and data-handling capacity and service ability of system, are that the page browsing request of user is carriedFor processing service.
Database server 106 provides service for the page request of user, and these services can beTo the inquiry of collection of document, renewal, transaction management, index, query optimization, safe and multi-purposeFamily access control etc..
It should be noted that the pseudo- static treatment method one for the page that the embodiment of the present application is providedAs performed by management server 103, correspondingly, the pseudo- static treatment device of the page is typically setIn management server 103.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only signalProperty.According to needs are realized, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the one of the pseudo- static treatment method of the page according to the application is shownThe flow 200 of individual embodiment.The pseudo- static treatment method of the described page, comprises the following steps:
Step 201, the page browsing request that user is sent by terminal is received.
In the present embodiment, the electronic equipment (example of the pseudo- static treatment method operation of the page thereonManagement server as shown in Figure 1) wired connection mode or radio connection can be passed throughWeb page browsing, the terminal inquired about are carried out using it receive the accessing page request of user from user,Wherein, above-mentioned accessing page request includes the address that user expects the Webpage of access, i.e.,Network address.In practice, network address typically by URL (Uniform Resource Locator,URL) represent.It is pointed out that above-mentioned radio connection can include but is not limited to3G/4G connections, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections, UWB(ultra wideband) is connected and other currently known or exploitation in the future wireless connection sidesFormula.
Generally, user accesses Webpage using the web browser installed in terminal, at this moment,User can be by directly inputting the chain in the webpage presented in network address or webpage clicking browserFetch to server and initiate accessing page request.In the present embodiment, the above-mentioned page can includeHtml forms, xhtml forms, asp forms, php forms, jsp forms, shtml forms,The page of nsp forms, the webpage of xml forms or other following forms by exploitation.
Step 202, the Virtual network operator belonging to terminal is determined.
In the present embodiment, above-mentioned electronic equipment (such as the server shown in Fig. 1) can be fromThe Virtual network operator belonging to subscriber terminal equipment is determined in the information of the terminal device of user.ThisIn, the information of terminal device can be the IP information of terminal device.Virtual network operator is to carryFor 2G and the operation entity of above network service, wherein, network service can be mobile networkService and/or broadband network services.
Step 203, judge that network address whether is cached with the CDN server of Virtual network operator to be referred toThe fixed page.
In the present embodiment, determine based on the network address obtained in step 201 and in step 202.The Virtual network operator belonging to terminal gone out, above-mentioned electronic equipment can first where user networkSearched in the CDN server of operator specified by the network address that above-mentioned user is sent by terminalThe page whether there is.If being cached with above-mentioned net in the CDN server of above-mentioned Virtual network operatorThe page that location is specified, directly returns to the caching page user of terminal device, the page of userBrowse request terminates.Here, the CDN server of network yarn operator is used for the clothes for responding userBusiness request, and using GSLB technology pointed to the service request of user nearest from userServer working properly on, directly in response to the request of user in above-mentioned server.
Step 204, search whether there is the above-mentioned page in memory database, if it does,The above-mentioned page is then returned into terminal, and the page is write to the CDN server of Virtual network operatorIn caching.
In the present embodiment, the judged result based on step 203, if network fortune where userThe page specified by above-mentioned network address is not deposited, it is necessary to judge in internal memory number in the CDN server for seeking businessThe page in being asked according to the page browsing in storehouse with the presence or absence of above-mentioned user specified by network address, if,There is the page specified by network address in above-mentioned memory database, the page is returned into user.Here, memory database can be to provide the database directly operated in internal memory, for example, redisDatabase, here, redis databases are that the use increased income an ANSI C language is write, propped upHold network, can based on internal memory also can persistence log type, Key-Value databases.In internal memoryThere is the page specified by above-mentioned network address in database refers to the above-mentioned page in the form of static pageIt is cached in memory database.Judge signified with the presence or absence of above-mentioned network address in above-mentioned memory databaseThe fixed page, can be searched by the given address of network address in memory database, can be withThe above-mentioned page is judged whether by comparing the data cached ID of internal storage data place.
In some optional implementations of the present embodiment, above-mentioned memory database is by servicingDevice cluster provides what is supported, wherein above-mentioned server cluster includes handling the multiple of same taskWeb application servers.Here, server cluster is made up of multiple web application servers,Unified management control is provided, same service is carried out, is a service from the point of view of clientDevice.It can carry out parallel computation to obtain using multiple web application servers in memory databaseVery high calculating speed is obtained, can also be backuped with multiple web application servers, so thatAny one the web application server failure whole system supported is provided for memory databaseOr it can normally run, improve overall stability.The above-mentioned page is delayed in the form of static pageIt is stored in web application servers;Judge in memory database with the presence or absence of the page specified by network addressFace, can be by judging whether be cached with the above-mentioned page in any of the above-described web application servers.
It is above-mentioned to be searched in memory database in some optional implementations of the present embodimentWith the presence or absence of the above-mentioned page to be realized by following process:Pass through default Reverse ProxyWeb application servers weight in server cluster is set to carry out reverse proxy to realize internal storage dataWeb application server load balancings in storehouse;Obtain in the server cluster for supporting memory databaseThe load of each web server;User is sent according to the load of each web server and weightPage browsing request be transferred to separate unit web application servers in server cluster;Should in webWith searching whether there is the above-mentioned page in server.Here, default Reverse Proxy connectsThe page browsing request sent by user, is then forwarded a request in above-mentioned server clusterWeb application servers, and the result obtained from web application servers is returned into above-mentioned endEnd.Wherein, Reverse Proxy can be above-mentioned management server, can also beNginx (" engine x ") loaded server, nginx is a high performance HTTP and reverse generationManage server.
To ensure that the web application servers in above-mentioned server cluster can timely respond to user's hairThe request sent, here it is possible to by judging the application clothes of each web in above-mentioned server clusterBusiness device weight and loading condition determine the web application services for responding above-mentioned page browsing requestDevice.As an example, the hyperlink request that can send user is small to loading, or weight is bigIn web application servers.
Step 205, inquiry whether there is the above-mentioned page in database server, and respondThere is the above-mentioned page in database server and the page is then returned into terminal, or in response to dataThe above-mentioned page is not present in the server of storehouse the page is then obtained according to network address, and by the acquired pageReturn to terminal.
In the present embodiment, the result based on step 204, if be not present in memory databaseThe above-mentioned page, above-mentioned electronic equipment can be inquired about in specified database server whether there isThe above-mentioned page.Here, database server can be for the static page of storage, XML dataOr binary stream data etc., the data with storage model can also be stored.In specified dataInquiry whether there is the above-mentioned page in the server of storehouse, can be cached in above-mentioned database serverThe regional search of static page whether there is the page specified by above-mentioned network address, if it is presentThe page is returned into above-mentioned terminal, if it does not, being taken by above-mentioned network address in above-mentioned databaseIt is engaged in obtaining the page specified by network address in device, the page got is returned into above-mentioned terminal.It is above-mentionedThe page can be the static page in buffer zone in database server, can also be modelThe binary data of data or other forms, above-mentioned electronic equipment is according to above-mentioned network address and databaseNo. ID of data, gets the page specified by network address in server.
In some optional implementations of the present embodiment, above-mentioned electronic equipment is in response to dataThe above-mentioned page is not present in the server of storehouse, the page is obtained according to above-mentioned network address, and will be acquiredThe page returns to terminal, and afterwards, the acquired page is write to above-mentioned memory database and networkIn the CDN server of operator.The above-mentioned page is write to above-mentioned CDN server, it is rightThe page cache time in above-mentioned write-in CDN server is configured, response that can be to the pageHeader is unified to be set, when above-mentioned CDN server preserves page cache according to response headerBetween.
With continued reference to Fig. 3, Fig. 3 is the pseudo- static treatment method of the page according to the present embodimentOne schematic diagram of application scenarios.User sends a current events first in Fig. 3 application scenariosThe browse request of class webpage, user clicks " today's tops " in the web page browsing interface of terminalAsked as page browsing, it is defeated as indicated by the hand in Fig. 3-A, or in address input boxEnter the network address of " today's tops " page, as shown in 301 in Fig. 3-A;Afterwards, management serviceDevice searches the page specified by network address in the CDN server of the Virtual network operator where user;Because " today's tops " is the page paid close attention to by numerous users, in the Virtual network operator where userCDN server in be cached with the above-mentioned page, by the above-mentioned page return terminal, such as Fig. 3-BIt is shown.
The method that above-described embodiment of the application is provided can be in CDN server, internal storage dataThe page specified by network address is obtained in storehouse and database server, it is to avoid each page of userFace browse request all needs dynamic to render, and reduces the load of server.
With further reference to Fig. 4, it illustrates another of the pseudo- static treatment method of page implementationThe flow 400 of example.The flow 400 of the pseudo- static treatment method of the page, comprises the following steps:
Step 401, the page browsing request that user is sent by terminal is received.
In the present embodiment, the electronic equipment (example of the pseudo- static treatment method operation of the page thereonManagement server as shown in Figure 1) wired connection mode or radio connection can be passed throughWeb page browsing, the terminal inquired about are carried out using it receive the accessing page request of user from user,Wherein, above-mentioned accessing page request includes the address that user expects the Webpage of access, i.e.,Network address.
Step 402, the Virtual network operator belonging to terminal is determined.
In the present embodiment, above-mentioned electronic equipment can be from the information of the terminal device of user reallyMake the Virtual network operator belonging to subscriber terminal equipment.Here, the information of terminal device can beThe IP information of terminal device.Virtual network operator is the fortune that can provide 2G and above network serviceProfit-oriented business entity, wherein, network service can be mobile network service and/or broadband network services.
Step 403, judge that network address whether is cached with the CDN server of Virtual network operator to be referred toThe fixed page.
In the present embodiment, above-mentioned electronic equipment can first where user Virtual network operatorThe page specified by the network address for the transmission that above-mentioned user is searched in CDN server whether there is.Such asFruit is cached with the page that above-mentioned network address is specified in the CDN server of above-mentioned Virtual network operator, directlyThe user that the caching page is returned to terminal device is met, the page browsing request of user terminates.
Step 404, search whether there is the above-mentioned page in memory database, if it does,The above-mentioned page is then returned into terminal, and the page is write to the CDN server of Virtual network operatorIn caching.
In the present embodiment, the judged result based on step 403, if network fortune where userThe page specified by above-mentioned network address is not deposited, it is necessary to judge in internal memory number in the CDN server for seeking businessAccording to the page that whether there is in storehouse specified by above-mentioned network address, if, in above-mentioned memory databaseThere is the page specified by network address, the page is returned into user.Here, memory database canTo be to provide the database directly operated in internal memory, for example, redis databases.
Step 405, inquiry whether there is the above-mentioned page in database server, and respondThere is the above-mentioned page in database server and the page is then returned into terminal.
In the present embodiment, the result based on step 404, if be not present in memory databaseThe above-mentioned page, above-mentioned electronic equipment can be inquired about in specified database whether there is above-mentioned pageFace.Here, database server can be for the static page of storage, XML (Extensi-NemauLananage, extensible markup language) data or binary stream data etc., tool can also be storedThere are the data of storage model.Wherein, database server can be mongoDB, here,MongoDB is write by C Plus Plus, it is intended to provide expansible high-performance data for web applicationsThe database stored based on distributed document of storage solution.In above-mentioned database serverWhether the regional search of the middle caching static page is cached with the page specified by above-mentioned network address, ifThe region of the caching static page is cached with the above-mentioned page in above-mentioned database server, then shouldThe page returns to above-mentioned terminal.
Step 406, the page is rendered, the page after rendering returns to terminal.
In the present embodiment, if in above-mentioned database server the caching static page regionIn the absence of the above-mentioned page, above-mentioned electronic equipment is by above-mentioned network address in above-mentioned database serverObtain the page specified by network address.Here, above-mentioned electronic equipment is redirected to above-mentioned network address,The object data of the page specified by above-mentioned network address is got, by above-mentioned object data and existingVelocity templates are rendered to the page specified by above-mentioned network address, wherein, Velocity is oneThe individual template engine (template engine) based on java, it is allowed to which any user is only simpleQuoted using template instruction (template language) by the object of java code definitions;WillThe page after rendering is respectively written into the caching of the CDN server of Virtual network operator and neutralized in above-mentionedIn deposit data storehouse, meanwhile, the page after rendering returns to the terminal.Wherein, after renderingThe page write-in Virtual network operator CDN server after above-mentioned CDN server can also be setCache-time work as information, and in record monitoring information.
In some optional implementations of the present embodiment, if in above-mentioned database serverThe above-mentioned page is not present in the region of the middle caching static page, and above-mentioned electronic equipment can also be in dataSearch whether the page specified by above-mentioned network address does persistence in the server of storehouse.If above-mentioned network addressThe specified page has completed persistence, and the page is written in above-mentioned database server and delayedIn the region and memory database of depositing static page;The above-mentioned page is returned into terminal, and above-mentionedThe above-mentioned persistence page is write in the caching of the CDN server of Virtual network operator, is set simultaneouslyThe cache-time of CDN server, and record monitoring information.Above-mentioned persistence refers to protect dataIt is stored in Session sessions, then according to the configuration file of template and database server interactive access,Wherein, Session is that above-mentioned data are kept on Web server for being set at any time from anyThe standby upper page conducts interviews.Above-mentioned electronic equipment can be interacted directly with Session, be reduced straightDatabase server process is asked in receiving, reduces the load of database server.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the page in the present embodimentThe flow 400 of the pseudo- static treatment method in face is highlighted to when in above-mentioned CDN server and internal memoryWhen the page specified by above-mentioned network address is not present in database, page object number is obtained by above-mentioned network addressRendered according to the page.Thus the mode that the scheme of the present embodiment description can more be enriched is realThe page browsing request of existing user.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, the application is providedOne embodiment of the pseudo- static treatment device of page a kind of, the device embodiment and Fig. 2 institutesThe embodiment of the method shown is corresponding, and the device specifically can apply in various electronic equipments.
As shown in figure 5, the pseudo- static treatment device 500 of the page described in the present embodiment includes:
Receiving unit 501, terminal attaching determining unit 502, judging unit 503 and processing unit504.Wherein, receiving unit 501 is configured to receive the page browsing that user is sent by terminalRequest, wherein, above-mentioned page browsing request includes network address;Terminal attaching determining unit 502 is matched somebody with somebodyPut for determining the Virtual network operator belonging to above-mentioned terminal;Judging unit 503 is configured to judgeThe page that above-mentioned network address is specified whether is cached with the CDN server of above-mentioned Virtual network operator;Processing unit 504 is configured to judge in above-mentioned network operation in response to above-mentioned judging unit 503The page that above-mentioned network address is specified is cached with the CDN server of business, directly the above-mentioned page is returned toTo above-mentioned terminal;Judge the CDN in above-mentioned Virtual network operator in response to above-mentioned judging unit 503The page that above-mentioned network address is specified is not cached with server, is looked into default memory databaseLook for the presence or absence of the above-mentioned page;If it is present the above-mentioned page is returned into above-mentioned terminal, andIn the caching for the CDN server that the above-mentioned page is write to above-mentioned Virtual network operator;If do not deposited, then inquiry whether there is the above-mentioned page in above-mentioned database server, and in response to upperState in database server and there is the above-mentioned page then by the above-mentioned terminal of above-mentioned page return, or ringThe above-mentioned page should be not present in above-mentioned database server the page is then obtained according to above-mentioned network address,And the acquired page is returned into above-mentioned terminal.
In the present embodiment, the receiving unit 501 of the pseudo- static treatment device 500 of the page can be withCarry out the end of web page browsing using it from user by wired connection mode or radio connectionEnd receives page browsing request, wherein, above-mentioned Page web page browse request includes user's expectationThe address of the page browsed, i.e. network address.
In the present embodiment, the network address obtained based on receiving unit 501, above-mentioned terminal attaching is trueOrder member 502 can determine the network operation belonging to user's used terminal by end messageBusiness.
In the present embodiment, judging unit 503 can where user Virtual network operator CDNThe page specified by the network address for the transmission that above-mentioned user is searched in server whether there is.IfThe page that above-mentioned network address is specified is cached with above-mentioned Virtual network operator CDN server, directly will be slowThe user that the page returns to terminal device is deposited, the page browsing request of user terminates.
In the present embodiment, whether above-mentioned processing unit 504 can be deposited in internal storage data library lookupObtained in the above-mentioned page or by above-mentioned network address in above-mentioned database server specified by network addressThe page, above-mentioned terminal is returned by the page got.
In some optional implementations of the present embodiment, processing unit 504 is further configuredFor:The above-mentioned page is not present in response to database server then to be obtained according to above-mentioned network addressThe page, and the acquired page is returned into terminal, afterwards, the acquired page is write supremeIn the CDN server for stating memory database and Virtual network operator.
In some optional implementations of the present embodiment, above-mentioned processing unit 504 includes wash with watercoloursModule is contaminated, the rendering module is configured to:The data of the page are obtained according to above-mentioned network address;RootThe page is rendered according to the data of the page;The page after rendering is respectively written into Virtual network operatorCDN server caching neutralize database server in;The page after rendering is returned eventuallyEnd.
In some optional implementations of the present embodiment, above-mentioned processing unit is further configuredFor:When the above-mentioned page is not present in above-mentioned memory database, in database serverInquire about whether the page does persistence;If the above-mentioned page does persistence, the page is writeIn the caching of the CDN server of the Virtual network operator;In the CDN service of Virtual network operatorThe cache-time of the page is set in device;The above-mentioned page is returned into terminal.
In some optional implementations of the present embodiment, above-mentioned memory database is by servicingDevice cluster provides what is supported, and wherein server cluster includes the multiple web for handling same taskApplication server.
In some optional implementations of the present embodiment, processing unit includes searching modul,Wherein, searching modul is configured to following steps and presence is searched whether in memory databaseThe above-mentioned page:Web applications clothes in memory database are set by default Reverse ProxyBusiness device weight carries out reverse proxy to realize that the load of web application servers is equal in memory databaseWeighing apparatus;Obtain the load of each web server in memory database;According to each in memory databaseUser Page browse request is transferred in memory database single by individual web server load and weightPlatform web application servers;Search whether there is above-mentioned network address in above-mentioned web application serversThe specified page.
The page browsing that the pseudo- static treatment device of the page in the present embodiment sends user is askedRespectively from the CDN server of the Virtual network operator belonging to user terminal, memory database or dataPage cache is searched in the server of storehouse, it is to avoid each page browsing request is rendered with regard to dynamic, is reducedThe load of database server.
Below with reference to Fig. 6, it illustrates suitable for for realizing the terminal device of the embodiment of the present applicationOr the structural representation of the computer system 600 of server.
As shown in fig. 6, computer system 600 includes CPU (CPU) 601, itsCan according to the program being stored in read-only storage (ROM) 602 or from storage part 608The program that is loaded into random access storage device (RAM) 603 and perform various appropriate actionsAnd processing.In RAM 603, the system that is also stored with 600 operates required various program sumsAccording to.CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/ output (I/O) interface 605 is also connected to bus 604.
I/O interfaces 605 are connected to lower component:Importation 606 including keyboard, mouse etc.;Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.Output par, c 607;Storage part 608 including hard disk etc.;And including such as LAN card,The communications portion 609 of the NIC of modem etc..Communications portion 609 is via such asThe network of internet performs communication process.Driver 610 is also according to needing to be connected to I/O interfaces605.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc.,Be arranged on as needed on driver 610, in order to the computer program that reads from it according toNeed to be mounted into storage part 608.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart can be withIt is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journeySequence product, it includes being tangibly embodied in the computer program on machine readable media, the meterCalculation machine program bag, which contains, is used for the program code of the method shown in execution flow chart.Implement suchIn example, the computer program can be downloaded and installed by communications portion 609 from network,And/or be mounted from detachable media 611.In the computer program by CPU(CPU) during 601 execution, the above-mentioned functions limited in the present processes are performed.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application,Architectural framework in the cards, function and the operation of method and computer program product.This pointOn, each square frame in flow chart or block diagram can represent a module, program segment or codeA part, the part of the module, program segment or code is used for comprising one or moreThe executable instruction of logic function as defined in realizing.It should also be noted that being used as replacement at someIn realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hairIt is raw.For example, two square frames succeedingly represented can essentially be performed substantially in parallel, theySometimes it can also perform in the opposite order, this is depending on involved function.It is also noted thatIt is, each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chartCombination, can be realized with the special hardware based system of defined function or operation is performed,Or can be realized with the combination of specialized hardware and computer instruction.
Being described in unit involved in the embodiment of the present application can be real by way of softwareIt is existing, it can also be realized by way of hardware.Described unit can also be arranged on processingIn device, for example, can be described as:A kind of processor includes receiving unit, terminal attaching and determinedUnit, judging unit and processing unit.Wherein, the title of these units is under certain conditions simultaneouslyThe restriction in itself to the unit is not constituted, for example, receiving unit is also described as " receivingThe unit of the page browsing request of user ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media,The nonvolatile computer storage media can be described in above-described embodiment included in deviceNonvolatile computer storage media;Can also be individualism, without non-in supplying terminalVolatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one orThe multiple programs of person, when one or more of programs are performed by an equipment so that describedEquipment:Receive the page browsing request that user is sent by terminal, the page browsing request bagInclude network address;Determine the Virtual network operator belonging to the terminal;Judge in the Virtual network operatorWhether the page that the network address specify is cached with content delivery network service device;If so, thenThe page is directly returned into the terminal;If it is not, in default memory databaseIn search whether there is the page;If it is present the page is returned into the terminal,And write the page in the caching of content delivery network service device of the Virtual network operator;If it does not exist, then inquiry whether there is the page in specified database server, andAnd the page is then returned into the end in response to there is the page in the database serverEnd, or in response to the page is not present in the database server then according to the network addressThe page is obtained, and the acquired page is returned into the terminal.
Above description is only the preferred embodiment of the application and saying to institute's application technology principleIt is bright.It will be appreciated by those skilled in the art that invention scope involved in the application, is not limitedIn the technical scheme of the particular combination of above-mentioned technical characteristic, do not departed from while should cover yetIn the case of the inventive concept, it is combined by above-mentioned technical characteristic or its equivalent featureFormed by other technical schemes.Such as features described above and (but not limited to) disclosed hereinTechnical characteristic with similar functions carries out technical scheme formed by replacement mutually.

Claims (12)

Judge the content delivery network service in the Virtual network operator in response to the judging unitThe page that the network address is specified is not cached with device, being searched in default memory database isIt is no to there is the page;If it is present the page returned into the terminal, and by instituteIn the caching for stating the content delivery network service device that the page writes the Virtual network operator;If noIn the presence of, then inquired about in the database server and whether there is the page, and in response toThere is the page in the database server and the page is then returned into the terminal, orPage is then obtained according to the network address in response to the page is not present in the database serverFace, and the acquired page is returned into the terminal.
CN201610262573.0A2016-04-252016-04-25The pseudo- static treatment method and apparatus of the pagePendingCN107305576A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610262573.0ACN107305576A (en)2016-04-252016-04-25The pseudo- static treatment method and apparatus of the page

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610262573.0ACN107305576A (en)2016-04-252016-04-25The pseudo- static treatment method and apparatus of the page

Publications (1)

Publication NumberPublication Date
CN107305576Atrue CN107305576A (en)2017-10-31

Family

ID=60150931

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610262573.0APendingCN107305576A (en)2016-04-252016-04-25The pseudo- static treatment method and apparatus of the page

Country Status (1)

CountryLink
CN (1)CN107305576A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107786668A (en)*2017-11-092018-03-09成都知道创宇信息技术有限公司A kind of weight caching web site method based on CDN
CN108780458A (en)*2017-12-082018-11-09深圳市大疆创新科技有限公司A kind of page cache processing method, device and server
CN109815432A (en)*2018-12-262019-05-28北京博鳌纵横网络科技有限公司 A method of site-wide staticization and a method of page staticization
CN110555064A (en)*2018-03-272019-12-10中国人民财产保险股份有限公司data service system and method for insurance business
CN111654741A (en)*2019-03-042020-09-11青岛海尔多媒体有限公司 Video data acquisition method and device, computer equipment, storage medium
CN111680239A (en)*2020-04-142020-09-18车智互联(北京)科技有限公司Page display method
CN111767494A (en)*2019-04-012020-10-13广州精选速购网络科技有限公司 A method, system, electronic device and medium for linked display of product detail pages
CN113691590A (en)*2021-07-282021-11-23上海浦东发展银行股份有限公司Static resource acquisition method, system, device, computer equipment and storage medium
CN114417283A (en)*2022-01-212022-04-29芜湖雄狮汽车科技有限公司Authority matching method and device for Internet of vehicles users, client and storage medium
CN115623078A (en)*2022-10-242023-01-17康键信息技术(深圳)有限公司 Access page display method, device, electronic device and medium
CN115665249A (en)*2022-10-172023-01-31上海浦东发展银行股份有限公司Static resource request response method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102930034A (en)*2012-11-092013-02-13北京奇虎科技有限公司Page loading system and page loading method
CN103428243A (en)*2012-05-212013-12-04阿里巴巴集团控股有限公司Implementation method, device and system for static storage of dynamic webpage
CN103747072A (en)*2013-12-302014-04-23乐视网信息技术(北京)股份有限公司Data reading and writing method and application server
CN104753966A (en)*2013-12-252015-07-01明博教育科技有限公司Resource file inquiry method and system based on server and client caches
CN104965717A (en)*2014-06-052015-10-07腾讯科技(深圳)有限公司Method and apparatus for loading page

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103428243A (en)*2012-05-212013-12-04阿里巴巴集团控股有限公司Implementation method, device and system for static storage of dynamic webpage
CN102930034A (en)*2012-11-092013-02-13北京奇虎科技有限公司Page loading system and page loading method
CN104753966A (en)*2013-12-252015-07-01明博教育科技有限公司Resource file inquiry method and system based on server and client caches
CN103747072A (en)*2013-12-302014-04-23乐视网信息技术(北京)股份有限公司Data reading and writing method and application server
CN104965717A (en)*2014-06-052015-10-07腾讯科技(深圳)有限公司Method and apparatus for loading page

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107786668A (en)*2017-11-092018-03-09成都知道创宇信息技术有限公司A kind of weight caching web site method based on CDN
CN108780458A (en)*2017-12-082018-11-09深圳市大疆创新科技有限公司A kind of page cache processing method, device and server
CN110555064A (en)*2018-03-272019-12-10中国人民财产保险股份有限公司data service system and method for insurance business
CN109815432A (en)*2018-12-262019-05-28北京博鳌纵横网络科技有限公司 A method of site-wide staticization and a method of page staticization
CN111654741A (en)*2019-03-042020-09-11青岛海尔多媒体有限公司 Video data acquisition method and device, computer equipment, storage medium
CN111767494A (en)*2019-04-012020-10-13广州精选速购网络科技有限公司 A method, system, electronic device and medium for linked display of product detail pages
CN111680239A (en)*2020-04-142020-09-18车智互联(北京)科技有限公司Page display method
CN111680239B (en)*2020-04-142024-05-31车智互联(北京)科技有限公司Page display method
CN113691590A (en)*2021-07-282021-11-23上海浦东发展银行股份有限公司Static resource acquisition method, system, device, computer equipment and storage medium
CN113691590B (en)*2021-07-282024-06-11上海浦东发展银行股份有限公司Static resource acquisition method, system, device, computer equipment and storage medium
CN114417283A (en)*2022-01-212022-04-29芜湖雄狮汽车科技有限公司Authority matching method and device for Internet of vehicles users, client and storage medium
CN115665249A (en)*2022-10-172023-01-31上海浦东发展银行股份有限公司Static resource request response method and device, computer equipment and storage medium
CN115623078A (en)*2022-10-242023-01-17康键信息技术(深圳)有限公司 Access page display method, device, electronic device and medium

Similar Documents

PublicationPublication DateTitle
CN107305576A (en)The pseudo- static treatment method and apparatus of the page
US11531715B2 (en)Systems and methods for single page application server-side renderer
US7062756B2 (en)Dynamic object usage pattern learning and efficient caching
US11194882B1 (en)Behavior based optimization for content presentation
US10003666B2 (en)Key resource prefetching using front-end optimization (FEO) configuration
US8688534B2 (en)System and method for gathering ecommerce data
US10339546B2 (en)Method and system that identify market segments and that facilitate targeted information distribution
US11916729B2 (en)Automated configuration of a content delivery network
US20180367625A1 (en)Method and System for Tracking Web Link Usage
CN104052809B (en)A kind of flow-dividing control method and apparatus of website test
CN106897336A (en)Web page files sending method, webpage rendering intent and device, webpage rendering system
CN104426985B (en)Show the method, apparatus and system of webpage
CN107315646B (en)Method and device for controlling data flow between page components
CN103440276A (en)Method and device for improving webpage display speed
US11063853B2 (en)Method and device to transfer to a virtual browser session based on responsiveness
CN110083616A (en)Page data processing method, device, equipment and computer readable storage medium
CN107329963A (en)Accelerate the method and apparatus of web page access
US20180324064A1 (en)Unobtrusive methods and systems for collecting information transmitted over a network
CN107807937A (en)A kind of website SEO processing methods, apparatus and system
Pande et al.Enhanced web application and browsing performance through service-worker infusion framework
US20220294866A1 (en)Split testing with custom cache keys for content delivery networks
CN107679897A (en)A kind of security risk control method and device
WO2017124692A1 (en)Method and apparatus for searching for conversion relationship between form pages and target pages
CN108932640A (en)Method and apparatus for handling order
CN103716319B (en)A kind of apparatus and method of web access optimization

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20171031


[8]ページ先頭

©2009-2025 Movatter.jp