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.
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.