CN109032797A - For providing the method and apparatus of web page access - Google Patents
For providing the method and apparatus of web page access Download PDFInfo
- Publication number
- CN109032797A CN109032797A CN201810793108.9A CN201810793108A CN109032797A CN 109032797 A CN109032797 A CN 109032797A CN 201810793108 A CN201810793108 A CN 201810793108A CN 109032797 A CN109032797 A CN 109032797A
- Authority
- CN
- China
- Prior art keywords
- web page
- dynamic
- static content
- data
- data interface
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/505—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application provides a kind of for providing the method and apparatus of web page access, dynamic web page in server end comprising dynamic data can be split as static content and dynamic data interface, the webpage comprising static content is further deployed to CDN neutralization dynamic data interface is deployed on the server different from static content, webpage comprising static content is set again, the more new data that dynamic data interface provides is obtained by asynchronous system, and access request of the client to dynamic web page is redirected to network address corresponding to the static content in the dynamic web page included, so that client accesses to the network address, to realize the separated deployment of static content and dynamic data in webpage, the speed bottle-neck of webpage load is separated from load process, so as to support a large amount of concurrent web-page requests simultaneously, it improves The speed of client terminal web page load, reduces the time of client waiting, improves user experience.
Description
Technical field
This application involves network access fields more particularly to a kind of for providing the method and apparatus of web page access.
Background technique
In Internet technology, internet site by webpage to client provide access service, an amount of access very
Greatly, in the very high website of client concurrent request, the web-page requests of client how are timely responded to, improve the access body of user
It tests, is that emphasis considers the problems of in web technology architecture design.Currently, the web access requests for solving high concurrent have following two
Kind scheme: scheme one passes through the web page access that server cluster realizes high concurrent;Scheme two, by by webpage entirety static
Realize the quick response of webpage.
In scheme one, server end includes load-balancing device and Duo Tai provides the server of web page access, and load is equal
Received client request is assigned to different background servers by weighing apparatus equipment, and background server receives the web page access of distribution
Request, according to request from database real-time retrieval related data, then the page data of generation is shown back to client
Show.In this scheme, since all requests are all to handle in real time, the response time is long, to the pressure of background server, database
Power is larger, has very high requirement to server performance, database processing energy.
In scheme two, the webpage being provided with all is carried out static processing by server end, by the webpage after static
It is synchronized to CDN node, client accesses the webpage in CDN node to obtain faster response speed.In this scheme, due to using
Be static page, therefore it is smaller to the pressure of server, database, page loading velocity quickly, better user experience, still
As long as a place, which will be modified, in webpage to re-start static to entire webpage, if the data variation in webpage
Relatively frequently, then it needs constantly to carry out webpage static processing, also consumes very much the resource of server.
By the content analysis to internet web page it is found that current internet server provide webpage in most contents
Data are fixed and invariable, and only small part content-data can be changed once in a while or frequently be changed, such as in e-commerce website
In item detail page, as the data such as commodity classification, descriptive labelling be it is constant, as commodity price, commodity price may be
Change in regular hour, using the above scheme in any one scheme can all have corresponding web page access bottleneck, to drag
The speed that slow webpage is loaded in client.
Apply for content
The purpose of the application be to provide it is a kind of for providing the method and apparatus of web page access, to solve existing skill
Performance bottleneck problem existing for web page access in art.
To achieve the above object, some embodiments of the present application provide a kind of for providing the method for web page access,
In, this method comprises:
Receive the dynamic web page access request from client, wherein the dynamic web page includes static content and dynamic
Data-interface;
According to the dynamic web page access request, the corresponding network address of static content that dynamic web page includes is obtained;
The dynamic web page access request is redirected to the corresponding network address of static content, so that client passes through institute
State network address access static content, wherein the static content accesses dynamic data interface and returns according to dynamic data interface
The data returned are updated related data.
Further, according to the dynamic web page access request, the corresponding net of static content that dynamic web page includes is obtained
Network address, comprising:
According to the network address of dynamic web page in dynamic web page access request, obtain in the static state that the dynamic web page includes
Hold corresponding network address.
Further, the static content is deployed in CDN.
Further, the dynamic data interface and the static content are disposed on a different server.
Further, the data type for the data that the dynamic data interface returns includes: JSON formatted data, character string
Or JS variable.
Further, the static content accesses dynamic data interface, comprising:
The static content accesses to dynamic data interface by asynchronous system.
Further, the static content is updated related data according to the data that dynamic data interface returns, packet
It includes:
The asynchronous data for obtaining dynamic data interface and returning of the static content, and according to the data of return to static content
In corresponding back end be updated.
Further, the dynamic data interface is deployed on multiple servers, and the multiple servers include a master
Server and Duo Tai are synchronous by master-slave synchronisation mode progress data with primary server from server from server.
Some embodiments of the present application additionally provide a kind of for providing the equipment of web page access, which includes for depositing
Store up the memory of computer program instructions and the processor for executing program instructions, wherein when the computer program instructions quilt
When the processor executes, executes the equipment and be previously used for providing the method for web page access.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger
It enables, the computer-readable instruction can be executed by processor to realize and be previously used for providing the method for web page access.
Compared with prior art, scheme provided by the present application can will include the dynamic web page of dynamic data in server end
It is split as static content and dynamic data interface, the webpage comprising static content is further deployed to CDN and is neutralized dynamic number
It is deployed to according to interface on the server different from static content, then the webpage comprising static content is set and is obtained by asynchronous system
The more new data that dynamic data interface provides, and access request of the client to dynamic web page is redirected in the dynamic web page
Network address corresponding to the static content for including, so that client accesses to the network address, to realize webpage
The separated deployment of middle static content and dynamic data separates the speed bottle-neck of webpage load from load process, thus
A large amount of concurrent web-page requests can be supported simultaneously, improve the speed of client terminal web page load, reduce client waiting
Time improves user experience.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is provided by the embodiments of the present application a kind of for providing the flow chart of the method for web page access.
Specific embodiment
The application is described in further detail with reference to the accompanying drawing.
In a typical configuration of this application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flashRAM).Memory is showing for computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or
Any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, computer
Readable medium does not include non-temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
Some embodiments of the present application provide it is a kind of for providing the method for web page access, as shown in Figure 1, this method have
Body includes the following steps:
Step S101 receives the dynamic web page access request from client, wherein the dynamic web page includes in static state
Hold and dynamic data interface;
Step S102 obtains the corresponding net of static content that dynamic web page includes according to the dynamic web page access request
Network address;
The dynamic web page access request is redirected to the corresponding network address of static content, so that objective by step S103
Family end accesses static content by the network address, wherein the static content accesses dynamic data interface and according to dynamic
The data that data-interface returns are updated related data.
The program is especially suitable for realizing the scene of the web page access of high concurrent, and dynamic can will be included in server end
The dynamic web page of data is split as static content and dynamic data interface, is further deployed to the webpage comprising static content
CDN (Content Delivery Network, i.e. content distributing network) neutralize by dynamic data interface be deployed to in static state
Hold on different servers, then the webpage comprising static content is set, the offer of dynamic data interface is obtained more by asynchronous system
New data, and according to client to the access request of dynamic web page, by net corresponding to the static content for including in dynamic web page
Network address returns to client to access.
Here, the client access request of high concurrent has a great impact for the technical framework design of internet site,
There are a great differences with low concurrent web technology framework for the web technology framework of high concurrent, if only simply will be low concurrent
It is that can not achieve to support the access of high concurrent website that the Technical Architecture of website, which is done extending transversely, is visited the client of high concurrent
The processing for asking request is qualitative change technical problem caused by solving quantitative change, in the treatment process of low concurrent client access request
Be not too big problem some technical step be likely to high concurrent access request processing in become very big technical bottleneck,
So as to cause the reduction for the treatment of effeciency.This scheme especially big and concurrent extra high dynamic website just for page views,
The dynamic website that access request is able to satisfy if 2-3 platform web page server does not just have due to the complexity of program deployment system
Necessity disposes this scheme.
High concurrent refers to that internet site will handle access request largely from client within the unit time, here
High concurrent be a relatively large quantity, different internet sites has different standards to this, such as some websites are recognized
It is high concurrent request for 10000 client requests per second, another website then thinks that 100000 clients per second are asked
It asks and is only high concurrent request, therefore the standard of high concurrent request can be determined according to the professional ability of website and technical capability, no
With standard have what is common is that needing that the performance bottleneck in process flow is analysed in depth and optimized.
In step s101, dynamic web page access request of the received server-side from client.Here, client is first
The access request of some dynamic web page is sent to server end, includes the network address of the dynamic web page, the visit in access request
Ask that request reaches the corresponding server of network address by the forwarding of multiple routers on internet later.Here, dynamic web page
Network address can be the network address comprising server domain name, be also possible to the network address comprising IP address, if it is
Network address comprising server domain name also needs to carry out domain name mapping to the network address first, obtains the corresponding IP of domain name
It is sent behind address.
Here, dynamic web page refer to include can dynamic change or update data webpage, i.e., in the webpage at least
One item data be it is alterable or renewable, other data then may be static data, i.e., the data that substantially will not change,
Most of static data is usually contained in dynamic web page, is only provided comprising a small number of dynamic datas, such as some in information class website
News webpage thumbs up the data such as number, amount of access, hobby, these data can be accessed according to real-time user and are updated.
In some embodiments of the present application, dynamic web page is split as two parts in advance by server end: static content and
Dynamic data interface.It include static data, i.e., the data that substantially will not change in static content.Dynamic data interface includes dynamic
State data, it is possible to the data that can change or update.Dynamic web page is split here, manual type can be used, exploit person
Member is determined static data and dynamic data therein, will be moved further according to corresponding business demand by the analysis to dynamic web page
State webpage is split.After fractionation, server end can connect according to the static content and dynamic data that dynamic web page is split
Mouthful establish mutual mapping relations, can be found according to mapping relations in subsequent treatment process corresponding dynamic page or
Result after fractionation.
Here, the static content comprising static data can be encapsulated as the form of static Web page, which has corresponding
Network address, client can access to the static Web page by the network address.In addition, dynamic data interface can also encapsulate
Into some dynamic web page, dynamic data accessing service is provided out by the corresponding network address of dynamic web page.
For example, the network address of some dynamic web page is http://d.kingnet.com/test/demo.php, at this
In the page, only two fields of price and title have certain variation (such as electric business commodity per several weeks, lower price can be adjusted,
But the data such as descriptive labelling, item property will not change as the time changes), therefore the dynamic web page can be split into two
A page, one is the static page comprising static data, and the network address of the static page may be, for example, http: //
D.kingnet.com/test/demo.html, one is dynamic data interface page, the network of the dynamic data interface page
Address may be, for example, http://finance.d.kingnet.com/test/api.php? id=4.
Here, the content code of static page demo.html may be, for example:
The code of dynamic data interface page api.php may be, for example:
Var title=" Adidas (Adidas) clover wrist-watch fashion sports children student men and women's neutrality table quartz
Adhesive tape waterproof comfortably limit the quantity red and black ADH2965 " by big dial plate;
Var price=" 799.00 ";
In some embodiments of the present application, the static content obtained after splitting to dynamic page is deployed in CDN,
Preferably, the static page for encapsulating the static content can be deployed in CDN.By the way that static content is deployed in CDN, visitor
Family end can need real-time query due to not including in static content by obtaining the static content apart from nearest CDN server
Dynamic data, CDN server can directly by the static content return to client so that client loads the static content
Speed is quicker.
In some embodiments of the present application, dynamic data interface is to separate deployment with static content, that is, is deployed in different
On server.Since embodiments herein is directed to the web page access scene of high concurrent, by that will include static data
Static content and dynamic data are deployed separately, and needle the different data of process performance can be separately managed and carried out
Property is optimized, so as to overcome respective performance bottleneck, avoids the difficulty mixed in together caused in optimization.
In step s 102, the dynamic web page access request that server is submitted according to client, obtaining dynamic web page includes
The corresponding network address of static content.Here, dynamic web page is split as static content and dynamic data interface by server end
Be for client it is transparent, client require no knowledge about the dynamic web page fractionation concrete outcome, according further to the Dynamic Networks
The access information of page accesses to the dynamic web page, is obtained by server realization to the corresponding static content of the dynamic web page
It takes.Preferably, server can be according to the network address of dynamic web page in dynamic web page access request, and obtaining the dynamic web page includes
The corresponding network address of static content.How webpage is accessed since network address specifies, the access request from client
In generally comprise the network address of dynamic web page, therefore establish the network address of dynamic web page and the network of corresponding static content
Mapping relations between address simply, can be obtained quickly and easily in the dynamic web page according to dynamic web page access request
The network address of static content.
In step s 103, server by the dynamic web page access request with being redirected to the corresponding network of static content
Location, so that client accesses static content by the network address.Here, visit of the server according to client to dynamic web page
Ask the network address of the static content of the request dynamic web page, then using the network address as the new target of access request
The access request is resend to new destination address by address, to realize the redirection of access request.
In some embodiments of the present application, it also added other than static data in comprising dynamic web page in static content
Some additional codes, these codes are for accessing the dynamic data interface splitted out from the dynamic web page and according to dynamic
The data that data-interface returns are updated related data.Here, ground, static content can be by asynchronous system to dynamic data
Interface accesses.Since static content and dynamic data interface are disposed on a different server respectively, number between the two
It is carried out according to exchange by network, and network is an insecure transmission environment, it may occur that various unpredictable failures,
If data communication between the two uses the method for synchronization, it is likely that because random network failure leads to the synchronous resistance of either side
Plug, leads to the sharply decline of communication performance, client is difficult to normally show static content, to cause poor user experience.
Asynchronous system is used, even if client can also obtain static content and show, the number for only needing to update there are network failure
According to there may be inaccuracy, this inaccuracy is acceptable for a user.
Preferably, Ajax technology can be used and carry out asynchronous call dynamic data interface, still with above-mentioned dynamic web page http: //
For d.kingnet.com/test/demo.php, which is split as two webpages, the static state comprising static content
The network address of webpage is http://d.kingnet.com/test/ajax.html, and the network address of dynamic data interface is
Http:// d.kingnet.com/test/ajax.php, static Web page load dynamic data interface by Ajax asynchronous system
Data refill in corresponding back end, issue Ajax request in webpage first, then set Ajax call back function, this time
Letter of transfer number is used to do data render.The code of static Web page may be, for example, as follows:
It may be, for example, in above-mentioned static page by the dynamic data that Ajax asynchronous system obtains:
{"title":"\u963f\u8fea\u8fbe\u65af(Adidas)\u4e09\u53f6\u8349\u624b\
u8868\u65f6\u5c1a\u8fd0\u52a8\u513f\u7ae5\u5b66\u751f\u7537\u5973\u4e2d\
u6027\u8868\u77f3\u82f1\u80f6\u5e26\u9632\u6c34\u8212\u9002\u5927\u8868\
u76d8\u9650\u91cf\u7ea2\u9ed1ADH2965","price":"799.00"}
Here, parameter incoming when access dynamic data interface can be the identification parameter of unique identification dynamic data, example
Such as the ID of commodity, the ID etc. of information article, access the code of dynamic data interface for example/ajax.php? id=4, the code
It is meant that the dynamic data for being 4 by id in ajax.php webpage returns.
Preferably, static content obtains the data that dynamic data interface returns by asynchronous system, and according to the number of return
It is updated according to back end corresponding in static content.Here, the data that dynamic data interface returns can be a plurality of number
According to a plurality of data received are updated corresponding back end according to Data Identification by the page comprising static content, make
Original data are replaced with the new data received, and the updated webpage of data is rendered and shown again.For example, right
The code that corresponding back end is updated in static content can are as follows:
Var title=json [" title "];// to have arranged field title be exactly title
Var price=json [" price "];// to have arranged field price be exactly price
Document.getElementById (" title ") .innerHTML=title;// title of acquisition is filled
It is gone in node
Document.getElementById (" price ") .innerHTML=price;// price of acquisition is filled
It is gone in node
In some embodiments of the present application, dynamic data interface return data data type may include it is a variety of, such as
JSON (JavaScript Object Notation, JS object tag, be a kind of data interchange format of lightweight) format number
According to, character string or JS variable etc., it is only necessary to which the Javascript script in dynamic data interface and static content appoints readjustment
Mode.Preferably, JSON format can be used and return to dynamic data, JSON format is simple, is easily handled and transmits convenience,
It is a kind of preferable data transmission format in data transmission.
Different according to the data type of return, corresponding call-back manner will also do corresponding adjustment.For example, the data returned
Type is JSON, and corresponding callback code can be with are as follows:
The data type of return is string format, and corresponding callback code can be with are as follows:
In some embodiments of the present application, the combination of Nginx server, lua language and redis memory database can be used
To realize the support to high concurrent website.Nginx is Web server/Reverse Proxy and the electronics postal of a lightweight
Part (IMAP/POP3) proxy server, and issued under a BSD-like agreement.Its main feature is that it is few to occupy memory, concurrent energy
Power is strong, and in fact the concurrent capability of Nginx shows preferably really in the web page server of same type.Lua is one small and exquisite
Scripting language, purpose of design are in order to be embedded in application program, to provide flexible extension and customization function for application program
Energy.Lua is write by standard C, can almost be compiled, be run in all operating systems and platform.Lua is not provided with
Powerful library, this is determined by its positioning, so Lua is not suitable as the language of exploitation stand-alone utility.Lua has one
JIT project that is a while carrying out, provides the Just-In-Time function on particular platform.Redis is the use ANSIC an of open source
Language writes, support network, it is memory-based also can persistence log type, Key-Value database, and provide multilingual
API.
Since Lua is an Embedded language, it is well suited for being embedded into Nginx, adds this memory type data of Redis
If library caches, this combination of concurrency ratio Nginx+Php+Mysql doubles above.
It is convenient to operate Redis using Lua language, for example, calling the code of Redis can by Lua interface
It is as follows:
In some embodiments of the present application, since it is desired that Lua is supported, so it is integrated to first have to installation Lua, openresty
Nginx+Lua, therefore Openresty installation kit can be first downloaded, and install and configure.Again in Nginx configuration, increase
Lua configuration and corresponding scripts.For example, the configuration of Nginx can are as follows:
In another example the configuration of Lua can are as follows:
In some embodiments of the present application, dynamic data interface can be deployed on multiple servers, multiple servers can
It is same by master-slave synchronisation mode progress data with primary server from server comprising a primary server and Duo Tai from server
Step.Here, multiple servers can be used while providing dynamic data interface clothes to improve the response speed of dynamic data interface
Business will forward the access request of dynamic data interface in the load-balancing device that dynamic data interface can be used in server front end
To different backstage dynamic data interface servers, to provide faster response speed and higher dynamic data interface is concurrent
Ability.In addition, the dynamic data that dynamic data interface uses is stored in the database of server, can be mentioned by a primary server
For the write-in and reading service of data, more can be used for providing the reading service of data from server, to guarantee number in database
According to consistency, master-slave synchronisation mode can be used by the database in phase on primary server to from the database on server
In.The high availability energy of whole system on the one hand can be promoted using master-slave synchronisation mode, still further aspect can promote the visit of user
Ask speed.
Here, dynamic data interface can also the deployment of across computer room multiple spot, so that the height for promoting dynamic data accessing service can
With property and capability of fast response.Once can be regenerated by interface newly in addition, the data in dynamic data interface have change
Dynamic data, therefore have good real-time property.
Some embodiments of the present application additionally provide a kind of for providing the equipment of web page access, which includes for depositing
Store up the memory of computer program instructions and the processor for executing program instructions, wherein when the computer program instructions quilt
When the processor executes, executes the equipment and be previously used for providing the method for web page access.
Some embodiments of the present application additionally provide a kind of computer-readable medium, are stored thereon with computer-readable finger
It enables, the computer-readable instruction can be executed by processor to realize and be previously used for providing the method for web page access.
In conclusion the dynamic web page in server end comprising dynamic data can be split as by scheme provided by the present application
Webpage comprising static content is further deployed to CDN and neutralized dynamic data interface by static content and dynamic data interface
It is deployed on the server different from static content, then the webpage comprising static content is set, dynamic number is obtained by asynchronous system
According to the more new data that interface provides, and access request of the client to dynamic web page is redirected in the dynamic web page and includes
Network address corresponding to static content, so that client accesses to the network address, to realize static in webpage
The separated deployment of content and dynamic data separates the speed bottle-neck of webpage load, from load process so as to same
When support a large amount of concurrent web-page requests, improve the speed of client terminal web page load, reduce the time of client waiting, mention
High user experience.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, the software program of the application can be executed to implement the above steps or functions by processor.Similarly, the application
Software program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory,
Magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, example
Such as, as the circuit cooperated with processor thereby executing each step or function.
In addition, a part of the application can be applied to computer program product, such as computer program instructions, when its quilt
When computer executes, by the operation of the computer, it can call or provide according to the present processes and/or technical solution.
And the program instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including an equipment according to one embodiment of the application, which includes using
Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to
When enabling by processor execution, method and/or skill of the equipment operation based on aforementioned multiple embodiments according to the application are triggered
Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned exemplary embodiment, Er Qie
In the case where without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and scope of the present application is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the application.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple
Unit or device can also be implemented through software or hardware by a unit or device.
Claims (10)
1. a kind of for providing the method for web page access, wherein this method comprises:
Receive the dynamic web page access request from client, wherein the dynamic web page includes static content and dynamic data
Interface;
According to the dynamic web page access request, the corresponding network address of static content that dynamic web page includes is obtained;
The dynamic web page access request is redirected to the corresponding network address of static content, so that client passes through the net
Network address accesses static content, wherein the static content accesses dynamic data interface and according to the return of dynamic data interface
Data are updated related data.
2. according to the method described in claim 1, wherein, according to the dynamic web page access request, obtaining dynamic web page includes
The corresponding network address of static content, comprising:
According to the network address of dynamic web page in dynamic web page access request, the static content pair that the dynamic web page includes is obtained
The network address answered.
3. according to the method described in claim 1, wherein, the static content is deployed in CDN.
4. according to the method described in claim 1, wherein, the dynamic data interface is deployed in different from the static content
On server.
5. according to the method described in claim 1, wherein, the data type for the data that the dynamic data interface returns includes:
JSON formatted data, character string or JS variable.
6. according to the method described in claim 1, wherein, the static content accesses dynamic data interface, comprising:
The static content accesses to dynamic data interface by asynchronous system.
7. according to the method described in claim 6, wherein, the data that the static content is returned according to dynamic data interface are to phase
Data are closed to be updated, comprising:
The asynchronous data for obtaining dynamic data interface and returning of the static content, and according to the data of return to phase in static content
The back end answered is updated.
8. according to the method described in claim 1, wherein, the dynamic data interface is deployed on multiple servers, described more
Platform server includes a primary server and Duo Tai from server, is carried out from server with primary server by master-slave synchronisation mode
Data are synchronous.
9. a kind of for providing the equipment of web page access, which includes the memory and use for storing computer program instructions
In the processor executed program instructions, wherein when the computer program instructions are executed by the processor, make the equipment right of execution
Benefit require any one of 1 to 8 described in method.
10. a kind of computer-readable medium, is stored thereon with computer-readable instruction, the computer-readable instruction can be processed
Device is executed to realize such as method described in any item of the claim 1 to 8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810793108.9A CN109032797A (en) | 2018-07-18 | 2018-07-18 | For providing the method and apparatus of web page access |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810793108.9A CN109032797A (en) | 2018-07-18 | 2018-07-18 | For providing the method and apparatus of web page access |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN109032797A true CN109032797A (en) | 2018-12-18 |
Family
ID=64643489
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810793108.9A Pending CN109032797A (en) | 2018-07-18 | 2018-07-18 | For providing the method and apparatus of web page access |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109032797A (en) |
Cited By (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110598149A (en) * | 2019-08-15 | 2019-12-20 | 平安普惠企业管理有限公司 | Webpage access method, device and storage medium |
| CN110737856A (en) * | 2019-09-10 | 2020-01-31 | 苏宁云计算有限公司 | page acquisition method, device and system |
| CN110990736A (en) * | 2019-12-05 | 2020-04-10 | 秒针信息技术有限公司 | Page loading method and device, terminal equipment and storage medium |
| CN111143725A (en) * | 2019-11-15 | 2020-05-12 | 北京字节跳动网络技术有限公司 | Page generating method, device and electronic device |
| CN111522849A (en) * | 2020-04-22 | 2020-08-11 | 深圳市春蚕智能信息技术有限公司 | Database dynamic access method, server and storage medium |
| CN111522619A (en) * | 2020-05-03 | 2020-08-11 | 宋彦震 | Method for automatically reducing refresh frequency of extended screen based on software type and mouse pointer position |
| CN111741257A (en) * | 2020-05-21 | 2020-10-02 | 深圳市商汤科技有限公司 | Data processing method and device, electronic device and storage medium |
| CN111767494A (en) * | 2019-04-01 | 2020-10-13 | 广州精选速购网络科技有限公司 | A method, system, electronic device and medium for linked display of product detail pages |
| CN112261090A (en) * | 2020-09-28 | 2021-01-22 | 成都长虹网络科技有限责任公司 | Web data processing method and device, computer equipment and readable storage medium |
| CN112612991A (en) * | 2020-12-30 | 2021-04-06 | 微医云(杭州)控股有限公司 | Page display method and device, electronic equipment and storage medium |
| CN112765503A (en) * | 2021-01-18 | 2021-05-07 | 中国工商银行股份有限公司 | Static processing method and device for page loading data |
| CN113704654A (en) * | 2021-07-30 | 2021-11-26 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
| CN113836468A (en) * | 2021-09-27 | 2021-12-24 | 山东亿云信息技术有限公司 | Method and system for improving price index website access throughput by utilizing nginx and redis |
| CN114662029A (en) * | 2022-03-15 | 2022-06-24 | 北京百度网讯科技有限公司 | Method, apparatus, electronic device and storage medium for curing web page content |
| CN115146053A (en) * | 2021-03-29 | 2022-10-04 | 武汉斗鱼鱼乐网络科技有限公司 | An information display method and related equipment |
| CN115567328A (en) * | 2022-12-06 | 2023-01-03 | 杭州菲助科技有限公司 | Secure encrypted transmission method, device and application of video resource address |
| CN115941801A (en) * | 2022-10-31 | 2023-04-07 | 深圳市共进电子股份有限公司 | Method, equipment and storage medium for client to access multi-system server |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6374359B1 (en) * | 1998-11-19 | 2002-04-16 | International Business Machines Corporation | Dynamic use and validation of HTTP cookies for authentication |
| US20060080664A1 (en) * | 1998-01-16 | 2006-04-13 | Aspect Communications Corporation | Methods and apparatus for enabling dynamic resource collaboration |
| CN1964269A (en) * | 2006-11-21 | 2007-05-16 | 成都金山数字娱乐科技有限公司 | A method to intensify communication among Internet site visitors |
| CN101789012A (en) * | 2010-02-03 | 2010-07-28 | 南京联创科技集团股份有限公司 | J2EE (Java 2 Platform Enterprise Edition) based solution for staticizing WEB dynamic page |
| CN102662993A (en) * | 2012-03-14 | 2012-09-12 | 北京神州数码思特奇信息技术股份有限公司 | A method for providing page data |
| CN102801685A (en) * | 2011-05-23 | 2012-11-28 | 中兴通讯股份有限公司 | Web authentication method and system |
| CN104391868A (en) * | 2014-10-28 | 2015-03-04 | 用友优普信息技术有限公司 | Staticizing device and method for dynamic page |
| CN107181779A (en) * | 2016-03-10 | 2017-09-19 | 阿里巴巴集团控股有限公司 | Processing method, the device and system of access request |
-
2018
- 2018-07-18 CN CN201810793108.9A patent/CN109032797A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060080664A1 (en) * | 1998-01-16 | 2006-04-13 | Aspect Communications Corporation | Methods and apparatus for enabling dynamic resource collaboration |
| US6374359B1 (en) * | 1998-11-19 | 2002-04-16 | International Business Machines Corporation | Dynamic use and validation of HTTP cookies for authentication |
| CN1964269A (en) * | 2006-11-21 | 2007-05-16 | 成都金山数字娱乐科技有限公司 | A method to intensify communication among Internet site visitors |
| CN101789012A (en) * | 2010-02-03 | 2010-07-28 | 南京联创科技集团股份有限公司 | J2EE (Java 2 Platform Enterprise Edition) based solution for staticizing WEB dynamic page |
| CN102801685A (en) * | 2011-05-23 | 2012-11-28 | 中兴通讯股份有限公司 | Web authentication method and system |
| CN102662993A (en) * | 2012-03-14 | 2012-09-12 | 北京神州数码思特奇信息技术股份有限公司 | A method for providing page data |
| CN104391868A (en) * | 2014-10-28 | 2015-03-04 | 用友优普信息技术有限公司 | Staticizing device and method for dynamic page |
| CN107181779A (en) * | 2016-03-10 | 2017-09-19 | 阿里巴巴集团控股有限公司 | Processing method, the device and system of access request |
Cited By (23)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111767494A (en) * | 2019-04-01 | 2020-10-13 | 广州精选速购网络科技有限公司 | A method, system, electronic device and medium for linked display of product detail pages |
| CN110598149A (en) * | 2019-08-15 | 2019-12-20 | 平安普惠企业管理有限公司 | Webpage access method, device and storage medium |
| CN110737856A (en) * | 2019-09-10 | 2020-01-31 | 苏宁云计算有限公司 | page acquisition method, device and system |
| WO2021047239A1 (en) * | 2019-09-10 | 2021-03-18 | 苏宁云计算有限公司 | Page acquisition method, device and system |
| CN111143725A (en) * | 2019-11-15 | 2020-05-12 | 北京字节跳动网络技术有限公司 | Page generating method, device and electronic device |
| CN110990736A (en) * | 2019-12-05 | 2020-04-10 | 秒针信息技术有限公司 | Page loading method and device, terminal equipment and storage medium |
| CN111522849A (en) * | 2020-04-22 | 2020-08-11 | 深圳市春蚕智能信息技术有限公司 | Database dynamic access method, server and storage medium |
| CN111522619A (en) * | 2020-05-03 | 2020-08-11 | 宋彦震 | Method for automatically reducing refresh frequency of extended screen based on software type and mouse pointer position |
| CN111522619B (en) * | 2020-05-03 | 2023-11-10 | 渴创技术(深圳)有限公司 | Method for automatically reducing refresh frequency of extended screen based on software type and mouse pointer position |
| CN111741257A (en) * | 2020-05-21 | 2020-10-02 | 深圳市商汤科技有限公司 | Data processing method and device, electronic device and storage medium |
| CN112261090B (en) * | 2020-09-28 | 2022-06-17 | 成都长虹网络科技有限责任公司 | Web data processing method and device, computer equipment and readable storage medium |
| CN112261090A (en) * | 2020-09-28 | 2021-01-22 | 成都长虹网络科技有限责任公司 | Web data processing method and device, computer equipment and readable storage medium |
| CN112612991A (en) * | 2020-12-30 | 2021-04-06 | 微医云(杭州)控股有限公司 | Page display method and device, electronic equipment and storage medium |
| CN112765503A (en) * | 2021-01-18 | 2021-05-07 | 中国工商银行股份有限公司 | Static processing method and device for page loading data |
| CN115146053A (en) * | 2021-03-29 | 2022-10-04 | 武汉斗鱼鱼乐网络科技有限公司 | An information display method and related equipment |
| CN115146053B (en) * | 2021-03-29 | 2024-11-22 | 武汉斗鱼鱼乐网络科技有限公司 | Information display method and related equipment |
| CN113704654A (en) * | 2021-07-30 | 2021-11-26 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
| CN113836468A (en) * | 2021-09-27 | 2021-12-24 | 山东亿云信息技术有限公司 | Method and system for improving price index website access throughput by utilizing nginx and redis |
| CN113836468B (en) * | 2021-09-27 | 2024-05-07 | 山东亿云信息技术有限公司 | Method and system for improving price index website access throughput by using nginx and redis |
| CN114662029A (en) * | 2022-03-15 | 2022-06-24 | 北京百度网讯科技有限公司 | Method, apparatus, electronic device and storage medium for curing web page content |
| CN115941801A (en) * | 2022-10-31 | 2023-04-07 | 深圳市共进电子股份有限公司 | Method, equipment and storage medium for client to access multi-system server |
| CN115567328A (en) * | 2022-12-06 | 2023-01-03 | 杭州菲助科技有限公司 | Secure encrypted transmission method, device and application of video resource address |
| CN115567328B (en) * | 2022-12-06 | 2023-03-14 | 杭州菲助科技有限公司 | Secure encryption transmission method, device and application of video resource address |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109032797A (en) | For providing the method and apparatus of web page access | |
| US9646254B2 (en) | Predicting next web pages | |
| EP3172680B1 (en) | Fast rendering of websites containing dynamic content and stale content | |
| US9264335B2 (en) | Adaptive packaging of network resources | |
| US8849802B2 (en) | Historical browsing session management | |
| US20170272499A1 (en) | Method and device for loading webpage | |
| US9117002B1 (en) | Remote browsing session management | |
| AU2016202333B2 (en) | Historical browsing session management | |
| CN110990736A (en) | Page loading method and device, terminal equipment and storage medium | |
| US10521485B1 (en) | Measuring page value | |
| CN107465722B (en) | Web access realization method and device | |
| CN109388766A (en) | The method and apparatus of page load | |
| US9088461B2 (en) | Common web accessible data store for client side page processing | |
| CN104424199A (en) | Search method and device | |
| US6944827B2 (en) | System and method of data transmission for computer networks utilizing HTTP | |
| CN103116645B (en) | The method and device of browsing page by mobile equipment | |
| US10057320B2 (en) | Offline browsing session management | |
| KR20140101370A (en) | Autonomous network streaming | |
| CN110830374A (en) | Method and device for gray level release based on SDK | |
| CN116776030A (en) | Gray release method, device, computer equipment and storage medium | |
| CN114125067A (en) | Grayscale publishing method, front-end server and configuration server with front-end and back-end separation | |
| JP5937207B2 (en) | Remote browsing session management | |
| US10165036B1 (en) | Network resource remote process execution | |
| Huang et al. | Achieving fast page load for websites across multiple domains | |
| CN107426271A (en) | Data processing method and system in server |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |