CN111046310A - Page processing method, device, server and computer readable storage medium - Google Patents

Page processing method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN111046310A
CN111046310A CN201911278067.0A CN201911278067A CN111046310A CN 111046310 A CN111046310 A CN 111046310A CN 201911278067 A CN201911278067 A CN 201911278067A CN 111046310 A CN111046310 A CN 111046310A
Authority
CN
China
Prior art keywords
page
target page
service
abnormal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911278067.0A
Other languages
Chinese (zh)
Other versions
CN111046310B (en
Inventor
刘锦何
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201911278067.0A priority Critical patent/CN111046310B/en
Publication of CN111046310A publication Critical patent/CN111046310A/en
Application granted granted Critical
Publication of CN111046310B publication Critical patent/CN111046310B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the invention provides a page processing method, a page processing device, a server and a computer readable storage medium. The page processing method comprises the following steps: if an access request for a target page sent by a terminal is received, detecting whether the service of the target page is abnormal; if the service of the target page is abnormal, acquiring a page snapshot of the target page; and sending the page snapshot of the target page to the terminal. The embodiment of the invention can improve the reliability of page use.

Description

Page processing method, device, server and computer readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a page processing method, an apparatus, a server, and a computer-readable storage medium.
Background
With the development of the internet, various types of websites are increasing. When the website runs, the situation that the page cannot be loaded normally may occur. For the above situation, the current processing method is as follows: automatically jumping to 404 and other related pages, or outputting prompt information such as 'loading failure of the page' and the like, and the user still cannot acquire page content. As can be seen, the reliability of the existing page usage is low.
Disclosure of Invention
The embodiment of the invention aims to provide a page processing method, a page processing device, a server and a computer readable storage medium, so as to solve the problem that the existing page is low in use reliability. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a page processing method, where the method includes:
if an access request for a target page sent by a terminal is received, detecting whether the service of the target page is abnormal;
if the service of the target page is abnormal, acquiring a page snapshot of the target page;
and sending the page snapshot of the target page to the terminal.
In a second aspect of the present invention, there is also provided a page processing apparatus, including:
the detection module is used for detecting whether the service of the target page is abnormal or not if receiving an access request to the target page sent by a terminal;
the acquisition module is used for acquiring a page snapshot of the target page if the service of the target page is abnormal;
and the sending module is used for sending the page snapshot of the target page to the terminal.
In a third aspect of the present invention, there is also provided a server, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps in the page processing method of the embodiment of the invention when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-described page processing methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described page processing methods.
According to the page processing method, the page processing device, the server and the computer readable storage medium provided by the embodiment of the invention, under the condition that the service of the target page requested to be accessed is abnormal, the server can obtain the page snapshot of the target page and send the page snapshot of the target page to the terminal, so that the terminal can obtain the page content of the target page by receiving the page snapshot of the target page, and the reliability of page use can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flowchart illustrating a page processing method according to an embodiment of the present invention;
FIG. 2 is a diagram of a page processing system architecture in an embodiment of the present invention;
FIG. 3 is a second flowchart illustrating a page processing method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a page processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The page processing method of the embodiment of the invention can be applied to a server. In practical applications, the server may communicate with a terminal (i.e., a user equipment). Specifically, the server may receive an access request for a target page sent by the terminal. Further, the server may send the page content of the target page to the terminal in response to the access request.
The following describes a page processing method according to an embodiment of the present invention.
As shown in fig. 1, the page processing method may include the steps of:
step 101, if an access request for a target page sent by a terminal is received, detecting whether the service of the target page is abnormal.
And 102, if the service of the target page is abnormal, acquiring a page snapshot of the target page.
And 103, sending the page snapshot of the target page to the terminal.
In a specific implementation, the target page may be a text page, a video page, and the like, and further, the video page may be a live page, but is not limited thereto. It should be understood that the embodiment of the present invention does not limit the specific representation form of the target page.
The page snapshot of the target page may be understood as a backup of the target page, including the page content of the target page.
The access request is used for requesting to access the target page. And if the service of the target page is normal, the server can directly send the latest page content of the target page to the terminal for the user to watch. If the service of the target page is abnormal, the server can obtain the page snapshot of the target page and send the page snapshot of the target page to the terminal for the user to watch. Therefore, in the embodiment of the invention, even if the service of the target page is abnormal, the terminal can obtain the page content of the target page through the page snapshot of the target page, so that the reliability of the page use can be improved.
For convenience of understanding, the page processing method according to the embodiment of the present invention is described with a live page.
Under the condition that the service of the live broadcast page is abnormal, the terminal can acquire a page snapshot of the live broadcast page, and the page snapshot of the live broadcast page comprises a live broadcast stream address, so that the terminal can acquire the live broadcast stream again through the live broadcast stream address in the page snapshot. Therefore, compared with the prior art that the terminal cannot acquire the live broadcast stream before the service of the live broadcast page is not recovered to be normal, the page processing method provided by the embodiment of the invention can improve the reliability of the use of the live broadcast page.
In the embodiment of the present invention, the page snapshot may be stored in a cache of the Server, or may be stored in a Remote Dictionary service (Rdis) storage system.
In a scenario where the page snapshot is stored in the cache of the server, the obtaining of the page snapshot of the target page may specifically be represented as: and acquiring the page snapshot of the target page from the cache.
In a scenario where the page snapshot is stored in the Rdis storage system in a local storage manner, the obtaining of the page snapshot of the target page may specifically include: sending request information to an Rdis storage system, wherein the request information is used for requesting a page snapshot of the target page; and receiving the page snapshot of the target page sent by the Rdis storage system.
For the scenario in which the page snapshot is stored in the cache of the server, optionally, before receiving an access request to the target page sent by the terminal, the method further includes:
determining whether the routing rule of the target page is matched with a preset routing rule or not under the condition that the target page is successfully rendered;
and if the routing rule of the target page is matched with the preset routing rule, storing the page snapshot of the target page into a cache.
In this alternative embodiment, the routing rule may be understood as: an encapsulation rule for encapsulating P Uniform Resource Locators (URLs), where P is a positive integer. The URL represents an internet address of a specific network resource, such as an internet address of a page. Illustratively, the routing rules for live theaters may be embodied as: com, which covers the URLs of all the theater room pages, such as https:// live.com/w/76337; https:// live. com/w/76340; https:// live. com/w/37542, and the like.
Based on the above, it is understood that the routing rule has a corresponding relationship with the page, and the routing rule can be used to identify P pages. Further, the expression form of the corresponding relationship is related to the attribute of the routing rule, and the specific description is as follows:
in a scenario where the routing rule is a routing rule of a page, the routing rule and the page are in a one-to-one correspondence relationship, that is, one routing rule is used to identify one page.
In a scenario where the routing rule is a routing rule of a website, the website is formed by collecting web pages, so that, when the website only includes one page, the routing rule and the page are in a one-to-one correspondence relationship, and one routing rule is used for identifying one page; in the case where the web site includes a plurality of pages, the routing rule is in one-to-many correspondence with the pages, and one routing rule is used to identify the plurality of pages.
In practical application, the routing address of the page or website that needs to ensure stable operation may be set as a preset routing rule in advance, and therefore, optionally, the preset routing rule may include at least one of the following: routing rules of the page; routing rules for the web site. Accordingly, whether the routing rule of the target page matches with the preset routing rule may include at least one of:
judging whether the preset routing rule comprises the routing rule of the target page or not;
and judging whether the preset routing rules comprise target routing rules or not, wherein the websites corresponding to the target routing rules comprise the routing rules.
In practice, the following may be included.
In case one, the preset routing rule only includes a routing rule of a page.
For the first case, whether the routing rule of the target page matches the preset routing rule may include:
and judging whether the preset routing rule comprises the routing rule of the target page or not.
Specifically, if the preset routing rule includes the routing rule of the target page, it may be determined that the routing rule of the target page matches the preset routing rule; otherwise, judging that the routing rule of the target page is not matched with the preset routing rule.
And in the second case, the preset routing rule only comprises the routing rule of the website.
For the case two, whether the routing rule of the target page matches the preset routing rule may include:
and judging whether the preset routing rule comprises a target routing rule or not.
Specifically, if the preset routing rule includes a target routing rule, it may be determined that the routing rule of the target page matches the preset routing rule; otherwise, judging that the routing rule of the target page is not matched with the preset routing rule.
And in the third case, the preset routing rule comprises a routing rule of the page and a routing rule of the website.
For the case three, whether the routing rule of the target page matches the preset routing rule may include:
judging whether the preset routing rule comprises the routing rule of the target page or not;
and judging whether the preset routing rule comprises a target routing rule or not.
It should be noted that, in this case, the embodiment of the present invention does not limit the order of execution of the two determinations. In a first implementation, the first determination may be performed first, followed by the second determination; in a second implementation, the second determination may be performed first, and then the first determination may be performed, as described in detail below.
For the first implementation manner, if the preset routing rule includes the routing rule of the target page, it may be determined that the routing rule of the target page matches the preset routing rule; if the preset routing rule comprises the target routing rule, the routing rule of the target page can be judged to be matched with the preset routing rule; otherwise, judging that the routing rule of the target page is not matched with the preset routing rule.
For the second implementation manner, if the preset routing rule includes a target routing rule, it may be determined that the routing rule of the target page matches the preset routing rule; if the preset routing rule comprises the routing rule of the target page, the routing rule of the target page can be judged to be matched with the preset routing rule; otherwise, judging that the routing rule of the target page is not matched with the preset routing rule.
As can be seen, in this optional embodiment, the server may pre-store the page snapshot of the target page in the cache when the target page is successfully rendered and the routing rule of the target page matches the preset routing rule. Therefore, when the server receives an access request for a target page and the service of the target service is abnormal, the server can send the page snapshot of the target page to the terminal, so that the terminal can obtain the page content of the target page by receiving the page snapshot of the target page, and the reliability of page use can be improved.
In addition, in this optional implementation manner, in a case that the routing rule of the target page does not match the preset routing rule, the server may not store the page snapshot of the target page. In this way, the server can only cache the page with the routing rule matched with the preset routing rule, so that the caching burden of the server can be reduced.
Further, after the server stores the N page snapshots in the cache, the method may further include:
and updating N page snapshots stored in the cache according to the least recently used LRU algorithm, wherein N is a positive integer.
In particular implementations, page snapshots are periodically written to a cache using a Least Recently Used (LRU) algorithm. The LRU algorithm is a commonly used page replacement algorithm, and selects the least recently used page to be eliminated. The algorithm can endow each page with an access field for recording the time t elapsed since the page was accessed last time, when a page snapshot needs to be eliminated, a target page snapshot in the existing page snapshots is selected for elimination, the t value of the page corresponding to the target page snapshot is maximum, namely the snapshot of the page which is least used recently is eliminated. For ease of understanding, examples are illustrated below:
suppose N is 3, and the cache of the server has cached the page snapshot of the page 1, the page snapshot of the page 2, and the page snapshot of the page 3, and the sequence of the terminal accessing the above 3 pages is: page 2, page 1, and page 3. On this basis, if the terminal accesses the page 4, the page 4 is rendered successfully, and the routing rule of the page 4 is matched with the preset routing rule, the server may delete the page snapshot of the page 2 from the cache, and store the page snapshot of the page 4 in the cache.
Therefore, the most active N pages of the page snapshots can be stored in the cache all the time, and the using fluency of the user pages is improved.
It should be noted that, for a scenario in which the page snapshot is stored in the Redis storage system, a manner of storing the page snapshot may be the same as a manner of caching the page snapshot by the server, and in order to avoid repetition, details are not described here again.
In the embodiment of the present invention, optionally, the detecting whether the service of the target page is abnormal includes at least one of the following:
detecting whether the service of a service layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the service layer is abnormal;
and detecting whether the service of an interface layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the interface layer is abnormal.
In the embodiment of the present invention, the service layer corresponding to the target page may be understood as: a service layer for processing the target service. The interface layer corresponding to the target page can be understood as: an interface layer for processing the target traffic.
In a specific implementation, if the processing of the target page is only related to the service layer, such as a static page, the server may only detect whether the service of the service layer is normal. In this case, if the service of the service layer is normal, it may be determined that the service of the target page is normal; otherwise, judging that the service of the target service is abnormal. In this case, after receiving an access request for a target page sent by a terminal, a server may transmit the response request to a page layer corresponding to the target page, and if a service layer corresponding to the target page cannot provide a complete target page, it may consider that a service of the service layer corresponding to the target page is abnormal.
If the processing of the target page is only related to the interface layer, for example, the page only includes the access interface, the server may only detect whether the service of the interface layer is normal. In this case, if the service of the interface layer is normal, it may be determined that the service of the target page is normal; otherwise, judging that the service of the target service is abnormal. In this case, after receiving an access request for a target page sent by a terminal, a server may transmit the access request to an interface layer of the target page, and if the interface layer of the target page returns a response message indicating that the target page request fails, the server may consider that the service of the interface layer corresponding to the target page is abnormal.
If the processing of the target page is related to the service layer and the interface layer, such as a live broadcast page, the server may detect whether the services of the service layer and the interface layer are normal. In this case, if the services of the service layer and the interface layer are normal, it may be determined that the service of the target page is normal; otherwise, judging that the service of the target service is abnormal. In this case, assuming that a first content of a target service is related to a service layer of the target service, and a second content of the target service is related to an interface layer of the target service, after receiving an access request for a target page sent by a terminal, a server may transmit the access request to the interface layer of the target page of the service layer of the target page, and if the service layer of the target service cannot provide the first content of the target service, a service of the service layer corresponding to the target page may be abnormal; if the interface layer of the target service returns a response message indicating that the second content request requesting the target page fails, the service exception of the interface layer corresponding to the target page may be considered.
In this embodiment of the present invention, after detecting whether the service of the target page is abnormal, the method further includes:
if the service of the target page is abnormal, generating an abnormal log according to the abnormality;
and outputting the abnormal log.
After generating the abnormal log, the server may send the abnormal log to a preset mailbox or a preset number, but is not limited thereto. Therefore, developers can read the abnormal log, know the service abnormality of the target page and then repair the abnormality, and therefore the reliability of page use is improved.
In specific implementation, the exception log may include a routing rule of the target page, and further may include an exception reason of the target page, for example, whether a service layer corresponding to the target page is abnormal or an interface layer corresponding to the target page is abnormal, so that a developer may know the exception reason quickly, and the page repair efficiency is improved.
It should be noted that, various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or separately without conflict between the implementations, and the embodiments of the present invention are not limited in this respect.
For ease of understanding, the following is illustrated in connection with fig. 2 and 3:
as shown in fig. 2, the server 21 may include a service interface layer 211, a core interface layer 212, and a cache area 213. Further, the service middle layer 211 may include a service processing module 2111 and a judgment module 2112.
As shown in fig. 3, for the page processing system architecture shown in fig. 2, the page processing method may include the following steps:
step 301, the terminal sends an access request to the target page to the service processing module.
Step 302, the service processing module sends a first response message to the determining module.
Specifically, the first response message may be used to indicate whether an exception occurs in the traffic processing.
Step 303, the service processing module sends a call request to the core interface layer.
Specifically, the call request may be used to request to call an Application Programming Interface (API).
And step 304, the core interface layer sends a second response message to the judgment module.
In particular, the second response message may be used to indicate whether the API was successfully called.
It should be noted that, in some embodiments, the service processing method may not include step 302; in some embodiments, the traffic handling method may not include steps 303 and 304.
Step 305, the determining module determines whether the service of the target page is normal according to at least one of the first response message and the second response message.
Specifically, when the first response message indicates that the service processing is abnormal or the second response message indicates that the calling of the API is failed, it is determined that the service of the target page is abnormal.
Step 306, the judging module sends the judgment result to the cache region.
And the cache region executes the operation corresponding to the judgment result according to the judgment result.
If the determination result is that the service of the target page is abnormal, step 307 is executed.
If the determination result is that the service of the target page is normal, the executing the operation corresponding to the determination result may specifically be: and storing the page snapshot of the target page.
And 307, sending the stored page snapshot of the target page to the terminal by the cache region.
In practical application, the method can further comprise the following steps:
setting a routing rule of a page needing to be guaranteed;
initializing the configuration of a storage system according to a specific service scene, wherein the configuration can be a local memory or unified management by Redis;
when the page rendering is successful, the same page snapshot needs to be written into the stored interval time;
setting the cache expiration time of the page snapshot content in the storage system, and deleting a certain page snapshot from the storage system after the storage time of the page snapshot reaches the cache expiration time;
the page snapshot is periodically written into the storage system by using an LRU algorithm; therefore, the number of pages needing to be cached, namely the length of the cache queue, needs to be set at the same time;
a relatively sound log system is needed in the code layer, so that when a server (namely a server) is abnormal, an abnormal alarm can be triggered to enable developers to timely handle online abnormality while returning to provide undifferentiated user experience for user page snapshots.
The embodiment of the invention provides a cache fault-tolerant strategy of page snapshots, and a cache fault-tolerant strategy script stores snapshots of pages which accord with a set routing rule and are rendered successfully into a cache queue at regular intervals. Therefore, under the condition that the service of the target page is abnormal, the server can send the page snapshot of the target page to the terminal, so that the terminal can obtain the page content of the target page through the page snapshot, and the reliability of page use can be improved. Further, due to the performance of the cache space, an appropriate cache queue length can be set according to specific situations, and only the snapshot of the most active page is cached according to the LRU algorithm. In addition, when the service of the page is abnormal, the page snapshot is taken from the cache queue and returned to the client (namely the terminal) while the error warning is triggered, so that the abnormality occurring at the service end (namely the server) is not aware of the user, and meanwhile, the time for repairing the abnormality is strived for the developer.
Taking live broadcast service as an example, due to the particularity of live broadcast; the stable operation of the website is guaranteed, and the user can keep good live broadcast watching experience, which is always a direction needing deep thought and attention. Therefore, the embodiment of the invention periodically stores the most active page snapshots of a plurality of live rooms by utilizing an LRU algorithm; therefore, the stability of live broadcasting is guaranteed, and even if the back-end interface service is abnormal, a user can still obtain a snapshot in a live broadcasting room and obtain undifferentiated user experience.
The embodiment of the invention can have the following beneficial effects:
the page storage snapshot is provided to replace a 404 page returned when the traditional back-end service is abnormal, so that the running stability of the page is improved, the use reliability of the page can be improved, and better user experience is provided. In addition, the most active page content can be guaranteed through the LRU replacement algorithm; by combining a sound log system, indiscriminate page content can be provided when the backend service is abnormal, and meanwhile precious time is won for developers to repair the online abnormality.
The following describes a page processing apparatus according to an embodiment of the present invention.
As shown in fig. 4, the page processing apparatus 400 may include:
a detection module 401, configured to detect whether a service of a target page is abnormal if an access request for the target page sent by a terminal is received;
an obtaining module 402, configured to obtain a page snapshot of the target page if the service of the target page is abnormal;
a sending module 403, configured to send a page snapshot of the target page to the terminal.
Optionally, the page processing apparatus 400 further includes:
the determining module is used for determining whether the routing rule of the target page is matched with a preset routing rule or not under the condition that the rendering of the target page is successful before the access request of the target page sent by the terminal is received;
and the storage module is used for storing the page snapshot of the target page into a cache if the routing rule of the target page is matched with the preset routing rule.
Optionally, the page processing apparatus 400 further includes:
and the updating module is used for updating the N page snapshots stored in the cache according to the least recently used LRU algorithm, wherein N is a positive integer.
Optionally, the detection module 401 is specifically configured to at least one of:
detecting whether the service of a service layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the service layer is abnormal;
and detecting whether the service of an interface layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the interface layer is abnormal.
According to the page processing device provided by the embodiment of the invention, under the condition that the service of the target page requested to be accessed is abnormal, the server can obtain the page snapshot of the target page and send the page snapshot of the target page to the terminal, so that the terminal can obtain the page content of the target page by receiving the page snapshot of the target page, and the reliability of page use can be improved.
The embodiment of the present invention further provides a server, as shown in fig. 5, including a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504.
A memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
if an access request for a target page sent by a terminal is received through a communication interface 502, detecting whether the service of the target page is abnormal;
if the service of the target page is abnormal, acquiring a page snapshot of the target page;
and sending the page snapshot of the target page to the terminal through a communication interface 502.
Optionally, when the processor 501 is configured to execute the program stored in the memory 503, the following steps may be further implemented:
determining whether the routing rule of the target page is matched with a preset routing rule or not under the condition that the target page is successfully rendered;
and if the routing rule of the target page is matched with the preset routing rule, storing the page snapshot of the target page into a cache.
Optionally, when the processor 501 is configured to execute the program stored in the memory 503, the following steps may be further implemented:
and updating N page snapshots stored in the cache according to the least recently used LRU algorithm, wherein N is a positive integer.
Optionally, when the processor 501 is configured to execute the program stored in the memory 503, at least one of the following steps may be further implemented:
detecting whether the service of a service layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the service layer is abnormal;
and detecting whether the service of an interface layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the interface layer is abnormal.
The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is enabled to execute the page processing method in any one of the above embodiments.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the page processing method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A page processing method, characterized in that the method comprises:
if an access request for a target page sent by a terminal is received, detecting whether the service of the target page is abnormal;
if the service of the target page is abnormal, acquiring a page snapshot of the target page;
and sending the page snapshot of the target page to the terminal.
2. The method according to claim 1, wherein before receiving the access request for the target page sent by the terminal, the method further comprises:
determining whether the routing rule of the target page is matched with a preset routing rule or not under the condition that the target page is successfully rendered;
and if the routing rule of the target page is matched with the preset routing rule, storing the page snapshot of the target page into a cache.
3. The method of claim 2, further comprising:
and updating N page snapshots stored in the cache according to the least recently used LRU algorithm, wherein N is a positive integer.
4. The method of claim 1, wherein the detecting whether the service of the target page is abnormal comprises at least one of:
detecting whether the service of a service layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the service layer is abnormal;
and detecting whether the service of an interface layer corresponding to the target page is abnormal or not, wherein the service of the target page is determined to be abnormal under the condition that the service of the interface layer is abnormal.
5. A page processing apparatus, characterized in that the page processing apparatus comprises:
the detection module is used for detecting whether the service of the target page is abnormal or not if receiving an access request to the target page sent by a terminal;
the acquisition module is used for acquiring a page snapshot of the target page if the service of the target page is abnormal;
and the sending module is used for sending the page snapshot of the target page to the terminal.
6. The page processing apparatus according to claim 5, characterized in that said page processing apparatus further comprises:
the determining module is used for determining whether the routing rule of the target page is matched with a preset routing rule or not under the condition that the rendering of the target page is successful before the access request of the target page sent by the terminal is received;
and the storage module is used for storing the page snapshot of the target page into a cache if the routing rule of the target page is matched with the preset routing rule.
7. The page processing apparatus according to claim 6, characterized in that said page processing apparatus further comprises:
and the updating module is used for updating the N page snapshots stored in the cache according to the least recently used LRU algorithm, wherein N is a positive integer.
8. The page processing apparatus according to claim 5, wherein the detection module is specifically configured to at least one of:
detecting whether the service of a service layer corresponding to the target page is abnormal or not;
detecting whether the service of an interface layer corresponding to the target page is abnormal or not;
and determining that the service of the target page is abnormal under the condition that the service of the business layer or the interface layer is abnormal.
9. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201911278067.0A 2019-12-12 2019-12-12 Page processing method, device, server and computer readable storage medium Active CN111046310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911278067.0A CN111046310B (en) 2019-12-12 2019-12-12 Page processing method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911278067.0A CN111046310B (en) 2019-12-12 2019-12-12 Page processing method, device, server and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111046310A true CN111046310A (en) 2020-04-21
CN111046310B CN111046310B (en) 2024-03-19

Family

ID=70235927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911278067.0A Active CN111046310B (en) 2019-12-12 2019-12-12 Page processing method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111046310B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666516A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Page loading method and device, electronic equipment and storage medium
CN112437148A (en) * 2020-11-20 2021-03-02 北京奇艺世纪科技有限公司 Service request processing method and device, service server and system
CN112732757A (en) * 2020-12-30 2021-04-30 北京奇艺世纪科技有限公司 Degraded data processing method, system, device, equipment and storage medium
CN112910973A (en) * 2021-01-21 2021-06-04 云账户技术(天津)有限公司 Application page selection method and device
CN113613063A (en) * 2021-07-16 2021-11-05 深圳市明源云科技有限公司 Application exception recovery method, device, computer program product and storage medium
CN113965385A (en) * 2021-10-25 2022-01-21 恒安嘉新(北京)科技股份公司 Monitoring processing method, device, equipment and medium for abnormal website
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
CN106649389A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Page pushing method and apparatus, and network system
CN106919600A (en) * 2015-12-25 2017-07-04 青岛海信移动通信技术股份有限公司 One kind failure network address access method and terminal
CN107784011A (en) * 2016-08-30 2018-03-09 广州市动景计算机科技有限公司 Web access method, client, web page server and programmable device
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN108075922A (en) * 2016-11-14 2018-05-25 普天信息技术有限公司 A kind of telecommunication network management system
CN108400884A (en) * 2018-01-10 2018-08-14 链家网(北京)科技有限公司 A kind of method, system and device improving website service stability
US20180307563A1 (en) * 2017-04-24 2018-10-25 International Business Machines Corporation Snapshot backup with unified restore information
CN109766354A (en) * 2018-12-04 2019-05-17 北京辰森世纪科技股份有限公司 Optimization method, device and the equipment of business datum inquiry
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110162720A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 Webpage loading method, device, computer equipment and storage medium
CN112905175A (en) * 2021-02-08 2021-06-04 中国工商银行股份有限公司 Page generation method, device and equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
CN106649389A (en) * 2015-11-03 2017-05-10 阿里巴巴集团控股有限公司 Page pushing method and apparatus, and network system
CN106919600A (en) * 2015-12-25 2017-07-04 青岛海信移动通信技术股份有限公司 One kind failure network address access method and terminal
CN107784011A (en) * 2016-08-30 2018-03-09 广州市动景计算机科技有限公司 Web access method, client, web page server and programmable device
CN108075922A (en) * 2016-11-14 2018-05-25 普天信息技术有限公司 A kind of telecommunication network management system
US20180307563A1 (en) * 2017-04-24 2018-10-25 International Business Machines Corporation Snapshot backup with unified restore information
CN107864173A (en) * 2017-06-26 2018-03-30 平安普惠企业管理有限公司 Terminal page caching method, system and readable storage medium storing program for executing
CN108400884A (en) * 2018-01-10 2018-08-14 链家网(北京)科技有限公司 A kind of method, system and device improving website service stability
CN109766354A (en) * 2018-12-04 2019-05-17 北京辰森世纪科技股份有限公司 Optimization method, device and the equipment of business datum inquiry
CN110096659A (en) * 2019-03-27 2019-08-06 北京三快在线科技有限公司 A kind of page display method, device, equipment and readable storage medium storing program for executing
CN110162720A (en) * 2019-04-16 2019-08-23 平安科技(深圳)有限公司 Webpage loading method, device, computer equipment and storage medium
CN112905175A (en) * 2021-02-08 2021-06-04 中国工商银行股份有限公司 Page generation method, device and equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666516A (en) * 2020-04-24 2020-09-15 北京奇艺世纪科技有限公司 Page loading method and device, electronic equipment and storage medium
CN112437148A (en) * 2020-11-20 2021-03-02 北京奇艺世纪科技有限公司 Service request processing method and device, service server and system
CN112732757A (en) * 2020-12-30 2021-04-30 北京奇艺世纪科技有限公司 Degraded data processing method, system, device, equipment and storage medium
CN112732757B (en) * 2020-12-30 2023-07-25 北京奇艺世纪科技有限公司 Method, system, device, equipment and storage medium for processing degraded data
CN112910973A (en) * 2021-01-21 2021-06-04 云账户技术(天津)有限公司 Application page selection method and device
CN112910973B (en) * 2021-01-21 2022-11-25 云账户技术(天津)有限公司 Application page selection method and device
CN113613063A (en) * 2021-07-16 2021-11-05 深圳市明源云科技有限公司 Application exception recovery method, device, computer program product and storage medium
CN113965385A (en) * 2021-10-25 2022-01-21 恒安嘉新(北京)科技股份公司 Monitoring processing method, device, equipment and medium for abnormal website
CN117130692A (en) * 2023-10-23 2023-11-28 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium
CN117130692B (en) * 2023-10-23 2024-01-23 成都赛力斯科技有限公司 Application management method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111046310B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
CN111046310B (en) Page processing method, device, server and computer readable storage medium
CN111585867B (en) Message processing method and device, electronic equipment and readable storage medium
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
CN108897628B (en) Method and device for realizing distributed lock and electronic equipment
US11012339B2 (en) Web site reachability management for content browsing
CN109542361B (en) Distributed storage system file reading method, system and related device
CN106533944B (en) Distributed API gateway, management method and management system
CN107315825B (en) Index updating system, method and device
CN108737132B (en) Alarm information processing method and device
CN107135249B (en) Data downloading method and device
CN110347955B (en) Resource detection method and device
CN112866062B (en) Distributed pressure test system, method, device, equipment and storage medium
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN113014640B (en) Request processing method, request processing device, electronic equipment and storage medium
CN108108126B (en) Data processing method, device and equipment
CN112685211A (en) Error information display method and device, electronic equipment and medium
CN112115521B (en) Data access method and device
CN110300140B (en) Method for updating content in cloud distribution network, refreshing client and network node
CN107066373B (en) Control processing method and device
CN112910936B (en) Data processing method, device and system, electronic equipment and readable storage medium
CN110083509B (en) Method and device for arranging log data
US20150379548A1 (en) Method and System for Data Processing
CN112202760A (en) Webpage access method, device, terminal and medium
CN112579858A (en) Data crawling method and device
CN110784479B (en) Data verification method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant