Webpage request processing method and electronic equipment

By deploying edge programs on the content distribution network, the problem of unstable web page request responses when the front-end server is abnormal is solved, ensuring the normal display of web pages under abnormal circumstances and improving response stability.

CN118612043APending Publication Date: 2024-09-06UC MOBILE CHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410543529.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing technology is difficult to ensure a stable response to web page requests when an abnormality occurs in the front-end server, resulting in the web page not being displayed normally.

Method used

By deploying an edge program on the content distribution network, if an exception occurs on the front-end server, the edge program obtains web page data from its cache and sends it to the client to ensure a response to the web page request.

Benefits of technology

It achieves normal response to web page requests when the front-end server is abnormal, improves the stability of web page requests, and ensures that web pages can be displayed normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612043A
    Figure CN118612043A
Patent Text Reader

Abstract

The embodiment of the invention provides a webpage request processing method and electronic equipment. The webpage request processing method comprises the following steps: receiving a webpage access request which is sent by a client and aims at a front-end server; if an edge program deployed on a content distribution network determines that the front-end server is abnormal based on the webpage access request, obtaining first webpage data responding to the webpage access request from an edge program cache corresponding to the edge program through the edge program; and sending the first webpage data to the client, so that the client generates a webpage access result based on the first webpage data. According to the technical scheme, the stability of webpage request response can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a web page request processing method and an electronic device. Background Art

[0002] When a user accesses a web page through a browser on a client, a web page access request needs to be sent to the server, and the server will send the corresponding web page data to the browser for display. Since there are many uncertain factors in the server, in some cases, anomalies such as downtime may occur, resulting in the failure to respond to the web page access request normally and the web page cannot be displayed normally. Therefore, how to improve the stability of the response to the web page access request has become a technical problem that needs to be solved. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a web page request processing solution to at least partially solve the above-mentioned problem.

[0004] According to a first aspect of an embodiment of the present application, a method for processing a web page request is provided, comprising: receiving a web page access request for a front-end server issued by a client; if an edge program deployed on a content distribution network determines that an abnormality has occurred in the front-end server based on the web page access request, obtaining, through the edge program, first web page data in response to the web page access request from an edge program cache corresponding to the edge program; and sending the first web page data to the client, so that the client generates a web page access result based on the first web page data.

[0005] According to a second aspect of an embodiment of the present application, a method for processing a web page request is provided, comprising: sending a web page access request to a front-end server; receiving first web page data returned by a content distribution network in response to the web page access request, wherein the first web page data is obtained from an edge program cache corresponding to the edge program by the content distribution network through an edge program deployed thereon when an exception occurs on the front-end server; generating a web page access result based on the first web page data, and displaying the web page access result.

[0006] According to a third aspect of an embodiment of the present application, a method for processing a web page request is provided, comprising: receiving an operation of a user on a web page control, generating a web page access request based on the operation, and sending the web page access request to a front-end server; receiving first web page data returned by a content distribution network instead of the front-end server in response to the web page access request, wherein the first web page data is obtained by the content distribution network from an edge program cache corresponding to the edge program through an edge program deployed thereon; generating a target web page based on the first web page data, and displaying the target web page.

[0007] According to a fourth aspect of an embodiment of the present application, there is provided an electronic device, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to execute the method described in the first, second or third aspect above by running the computer program stored in the memory.

[0008] According to a fifth aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect, the second aspect or the third aspect is implemented.

[0009] According to a sixth aspect of an embodiment of the present application, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the method described in the first aspect, the second aspect or the third aspect.

[0010] According to the web page request processing scheme provided by the embodiment of the present application, a web page access request for a front-end server issued by a client can be received, and when an edge program deployed on a content distribution network determines that an exception occurs in the front-end server based on the web page access request, the edge program obtains the first web page data in response to the web page access request from the edge program cache corresponding to the edge program through the edge program, and sends the first web page data to the client, so that the client generates a web page access result based on the first web page data. Therefore, after an exception occurs in the front-end server, the scheme can obtain the first web page data from the edge program cache corresponding to the edge program through the edge program deployed on the content distribution network to respond to the web page access request, thereby achieving a bottom line for the front-end server that is unable to respond to the web page request due to an exception, so that after an exception occurs in the front-end server, the web page request can still be responded to normally and the web page can still be displayed normally, thereby effectively improving the stability of the web page request response. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0012] Figure 1 Schematic diagram of a web page request processing system according to an embodiment of the present application.

[0013] Figure 2The present invention is a flowchart of a method for processing a web page request according to the first aspect of an embodiment of the present application.

[0014] Figure 3 A flowchart of the steps for reselecting an edge program for responding to a web page access request in an embodiment of the present application.

[0015] Figure 4 A schematic diagram of a scenario of the overall implementation process of a web page request processing solution according to an embodiment of the present application.

[0016] Figure 5 The present invention is a flowchart of a method for processing a web page request according to the second aspect of an embodiment of the present application.

[0017] Figure 6 A schematic diagram of a scenario of the overall implementation process of another web page request processing solution according to an embodiment of the present application.

[0018] Figure 7 This is a step flow chart of a method for processing a web page request according to the third aspect of an embodiment of the present application.

[0019] Figure 8 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0021] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.

[0022] Figure 1 An exemplary system applicable to the embodiment of the present application is shown. Figure 1 As shown, the system 100 may include a cloud service end 102, a communication network 104 and / or one or more user devices 106. Figure 1 The example in the figure shows multiple user devices 106 , where the user devices 106 may be clients and a browser is provided on the user devices 106 .

[0023] The cloud service end 102 may be any suitable device for storing information, data, programs and / or any other suitable type of content, including but not limited to distributed storage system devices, server clusters, computing cloud service end clusters, etc. In some embodiments, the cloud service end 102 may perform any suitable function. For example, when the cloud service end 102 implements the solution of the embodiment of the present application, in some embodiments, the cloud service end 102 may be used to execute a web page request processing method. As an optional example, in some embodiments, the cloud service end 102 may first receive a web page access request for a front-end server issued by a client; further, if the edge program deployed on the content distribution network determines that an abnormality has occurred in the front-end server based on the web page access request, the edge program is used to obtain the first web page data in response to the web page access request from the edge program cache corresponding to the edge program; and then the first web page data is sent to the client, so that the client generates a web page access result based on the first web page data. In some embodiments, after generating the web page access result, the user device 106 (client) may display the web page access result.

[0024] In some embodiments, the communication network 104 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 104 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN) and / or any other suitable communication network. The user device 106 can be connected to the communication network 104 via one or more communication links (e.g., communication link 112), and the communication network 104 can be linked to the cloud service end 102 via one or more communication links (e.g., communication link 114). The communication link can be any communication link suitable for transmitting data between the user device 106 and the cloud service end 102, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0025] Optionally, the user device 106 may be provided with an application having an album function, and the user device 106 may include any one or more user devices suitable for displaying images, interacting with users, etc. In some embodiments, the user device 106 may include any suitable type of device. For example, in some embodiments, the user device 106 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of user device.

[0026] For example, when the solution of the embodiment of the present application is implemented by the user device 106, in some embodiments, the user device 106 can be used to execute the web page request processing method. As an optional example, in some embodiments, the user device 106 can first send a web page access request to the front-end server; then, the first web page data returned by the content distribution network in response to the web page access request can be received, wherein the first web page data is obtained from the edge program cache corresponding to the edge program by the content distribution network through the edge program deployed thereon when an exception occurs in the front-end server; then a web page access result is generated based on the first web page data, and the web page access result is displayed.

[0027] Based on the above system, the embodiments of the present application provide some web page request processing solutions, which are described below through multiple embodiments.

[0028] Figure 2 The following is a flowchart of a method for processing web page requests according to the first aspect of the embodiment of the present application. According to the first aspect of the embodiment of the present application, a method for processing web page requests is provided, which can be used on a CDN device. Figure 2 As shown, the method includes steps S102, S104 and S106, specifically:

[0029] S102: Receive a webpage access request sent by a client to a front-end server.

[0030] In the embodiment of the present application, the client may be any user device, and a browser may be set on the client. When the user uses the browser to access a web page, the user may send a web page access request to the front-end server through the client.

[0031] Under normal circumstances, the client's web page access request will be sent to the front-end server, which stores the web page data. When the front-end server is working normally, the front-end server can respond to the web page access request after receiving it and send the web page data to the client. The client can obtain the web page access result based on the web page data and display the web page access result, that is, display a web page.

[0032] Web page data may include web page frame data and web page content data. Optionally, the web page data stored in the front-end server may be web page frame data. For example, web page content data includes but is not limited to the content of dynamically changeable web page elements such as videos, pictures, and text, while web page frame data includes static data of at least one of the types of web page elements, the positions of web page elements in the web page, and the layout. The web page access result (i.e., a web page to be displayed) can be synthesized by web page frame data and web page content data. Under normal circumstances (no exception occurs in the front-end server), after the front-end server sends the web page frame data to the client in response to the web page access request, the client can obtain the web page content data from another server storing the web page content data to generate the web page access result through the web page frame data and the web page content data. If an exception occurs in the front-end server, it cannot respond to the web page access request, and the client cannot display the web page normally. In order to avoid the client being unable to display the web page normally when the front-end server is abnormal, a web page request processing scheme of an embodiment of the present application is proposed.

[0033] S104: If the edge program deployed on the content distribution network determines that an exception occurs in the front-end server based on the web page access request, the edge program obtains first web page data in response to the web page access request from an edge program cache corresponding to the edge program through the edge program.

[0034] Optionally, the front-end server has an abnormality, for example, it may include at least one of the following two: the first is that the front-end server actually fails (for example, the front-end server is damaged); the other is that the front-end server does not actually fail, but the access link from the client to the front-end server fails (for example, the access link is disconnected, the network has an error, etc.). Or it may be another abnormal situation. All of the above abnormalities may cause the web page access request to fail to get a normal response from the front-end server.

[0035] In order to deal with the situation that the front-end server has an abnormality, in the embodiment of the present application, the edge program (Edge Routine, referred to as ER) can be deployed using the content delivery network (Content Delivery Network, referred to as CDN), and the first web page data in response to the web page access request is obtained from the edge program cache corresponding to the edge program through the edge program deployed on the content delivery network, and the front-end server with the abnormality is covered by the edge program so that the web page access request can be responded to. It should be understood that the cover mentioned here also means that after the front-end server has an abnormality, the web page access request can be responded to normally in other ways.

[0036] Content delivery network (CDN) is a distributed network consisting of edge node server clusters distributed in different regions, which is built and covered on the bearer network. Content delivery network can avoid bottlenecks and links on the Internet that may affect the speed and stability of data transmission as much as possible, making content transmission faster and more stable. Content delivery network can redirect user requests to the service node closest to the user in real time based on comprehensive information such as network traffic and the connection and load status of each node, as well as the distance to the user and response time.

[0037] Optionally, the edge program (ER) in the embodiment of the present application can be a JavaScript code runtime environment deployed on the edge node of the content distribution network, which can support ES6 syntax and standard Web Service Worker API. The developed JavaScript code can be published to the edge program to run, and the client's request can be processed locally on the global edge node. In the embodiment of the present application, based on this feature of ER, web page data is provided to the client by accessing its corresponding cache, so that it can serve as a backup of the front-end server.

[0038] Therefore, in the embodiment of the present application, the edge program ER is deployed in the content distribution network CDN, so that the response to the web page request can be quickly realized after the exception occurs in the front-end server. For example, the web page request response can be realized in milliseconds, so that the front-end server that fails to respond to the web page request due to the exception can be quickly covered, thereby better improving the stability of the web page request response.

[0039] In the embodiment of the present application, the edge program cache is cache data of the edge program, and the first web page data can be cached in the edge program cache to provide a backup for the front-end server where an exception occurs.

[0040] Optionally, in an embodiment of the present application, a content distribution network can be used to deploy multiple edge programs, and at least one of the multiple edge programs deployed on the content distribution network can obtain first web page data in response to a web page access request from an edge program cache corresponding to the edge program.

[0041] Optionally, multiple edge programs in the embodiment of the present application do not affect each other. That is, after some edge programs hang up, other edge programs will not be affected. This helps to improve the success rate of backing up the front-end server and increase the probability of responding to web page access requests.

[0042] In some optional embodiments, the web page request processing method in the embodiments of the present application also includes: dynamically generating multiple edge programs on the content distribution network based on the number of access requests received; "If the edge program deployed on the content distribution network determines that an abnormality has occurred in the front-end server based on the web page access request" in step S104 includes: using an edge program selected from multiple edge programs to determine that an abnormality has occurred in the front-end server based on the web page access request.

[0043] The number of access requests may refer to the number of web page access requests for the front-end server. Multiple edge programs may be dynamically generated on the content distribution network according to the number of access requests. When generating multiple edge programs, multiple edge programs may be generated on the basis of multiple existing edge programs, or multiple edge programs may be generated on the basis of no edge programs. And for the web page access request received in step S102, an edge program may be arbitrarily selected from the multiple edge programs on the content distribution network to determine that an abnormality has occurred in the front-end server based on the web page access request, so as to provide a backup for the front-end server that has an abnormality.

[0044] Based on the above optional embodiments, the embodiments of the present application can effectively obtain multiple edge programs to select edge programs to effectively determine that an abnormality has occurred in the front-end server, thereby facilitating the use of edge programs to provide a backup for the front-end server that has an abnormality.

[0045] In some optional embodiments, referring to Figure 3 The webpage request processing method in the embodiment of the present application further includes: steps S1041 and S1042, specifically:

[0046] S1041: If an exception occurs in the selected edge program, determine an edge program that is currently available from other edge programs among the plurality of edge programs.

[0047] In the embodiment of the present application, the edge program abnormality may refer to a state where the edge program fails and cannot run normally. Therefore, the first web page data cannot be obtained. In order to avoid not being able to obtain the first web page data, it is necessary to first determine whether the edge program is abnormal.

[0048] After determining that the selected edge program has an exception, the edge program with the exception can be excluded, and edge programs in an available state can be determined from other edge programs that have not had an exception. In the embodiment of the present application, whether an edge program is in an available state can be determined based on whether there is first web page data in its corresponding edge program cache. At this time, the edge program can run normally. If there is no first web page data in the edge program cache corresponding to the edge program, the edge program is in an unavailable state. If there is first web page data in the edge program cache corresponding to the edge program, the edge program is in an available state.

[0049] It should be understood that although the first web page data can be cached in advance for each edge program in the embodiment of the present application, there may still be a situation where the first web page data is not present in the edge program cache. One reason for this situation is that the cache capacity of the edge program is limited, and the mechanism of the edge program is that when the cache reaches a certain limit, the inactive cache will be cleared. At this time, the first web page data in the cache may be cleared, resulting in the inability to obtain the first web page data.

[0050] Therefore, in order to avoid failing to obtain the first webpage data from the edge program cache, it is still necessary to determine the edge program that is currently in an available state from the edge programs where no exception occurs, so as to facilitate further processing.

[0051] S1042: Reselect an edge program for responding to the web page access request from the edge programs in the available state.

[0052] An edge program can be randomly selected from the edge programs in the available state as the edge program for responding to the web page access request, and then the first web page data can be obtained from the corresponding edge program cache to respond to the web page access request. In this way, it is ensured that when the cache of some edge programs cannot obtain the first web page data, the first web page data can be obtained through the cache of other edge programs.

[0053] Based on this, through the optional implementation methods of the above steps S1041 to S1042, in the embodiment of the present application, by determining the edge program in an available state and reselecting the edge program for responding to the web page access request, it is possible to obtain the response to the first web page data from its corresponding edge program cache, thereby effectively responding to the web page access request. This helps to use other edge programs to provide a backup for the front-end server where the exception occurs when some of the edge programs fail, so that the web page access request can be responded to, and further, it is convenient for the web page request to still respond normally and the web page to still be displayed normally after the front-end server has an exception, thereby effectively improving the stability of the web page request response.

[0054] Optionally, "obtaining first web page data in response to the web page access request from the edge program cache corresponding to the edge program" in any optional embodiment of step S104 of the embodiments of the present application may include: obtaining first web page frame data in response to the web page access request from the edge program cache corresponding to the edge program.

[0055] That is, the first web page data is web page frame data. The first web page frame data can be understood according to the description of the web page frame data in the previous text, and will not be repeated here. The first web page frame data can be pre-stored in the edge program cache.

[0056] Based on this, in the embodiment of the present application, by obtaining the first web page frame data in response to the web page access request from the edge program cache corresponding to the edge program, it is beneficial for the subsequent client to generate a web page access result based on the first web page frame data, thereby realizing the use of the edge program to provide a backup for the front-end server where an exception occurs, so that after an exception occurs in the front-end server, the web page request can still respond normally and the web page can still be displayed normally, thereby effectively improving the stability of the response to the web page request.

[0057] S106: Sending the first webpage data to the client, so that the client generates a webpage access result based on the first webpage data.

[0058] After obtaining the first web page data from the edge program cache, the first web page data is sent to the client. The client can generate a web page access result based on the first web page data and display the web page access result. The displayed web page access result can be a web page to be displayed, so as to realize the process from responding to the web page access request to completing the display of the web page.

[0059] Based on this, in the embodiment of the present application, through the optional implementation of the above steps S102 to S106, after an exception occurs in the front-end server, the first web page data can be obtained from the edge program cache corresponding to the edge program through the edge program deployed on the content distribution network to respond to the web page access request, thereby achieving a backup for the front-end server that cannot respond to the web page request due to an exception. In this way, after an exception occurs in the front-end server, the web page request can still be responded to normally and the web page can still be displayed normally, thereby effectively improving the stability of the web page request response.

[0060] Regarding the optional implementation method of "obtaining first web page frame data in response to a web page access request from an edge program cache corresponding to the edge program" in step S104 above, optionally, step S106 of the embodiment of the present application includes: sending the first web page frame data to the client, so that the client obtains the first web page content data from the content server based on the first web page frame data, and generates a target web page to be displayed based on the first web page frame data and the first web page content data.

[0061] The first web page content data can be understood according to the description of the web page content data in the previous text, and will not be repeated here. The first web page content data can be pre-stored in the storage medium of the content server. The content server in the embodiment of the present application can be a server different from the front-end server.

[0062] Based on this, in the embodiment of the present application, by sending the first web page frame data to the client, and then the client obtains the corresponding first web page content data from the content server based on the first web page frame data, the client can generate a target web page to be displayed using the first web page frame data and the first web page content data, that is, the web page access result, thereby facilitating the display of the web page access result to meet the user's demand for web page usage. In this way, the first web page data obtained in the edge program cache can be effectively used to provide a backup for the front-end server that has an exception and cannot respond to the web page request, so that after the front-end server has an exception, the web page request can still be responded to normally and the web page can still be displayed normally, thereby effectively improving the stability of the web page request response.

[0063] In some optional embodiments, the webpage request processing method in the embodiment of the present application further includes the following steps S1071 and S1072, specifically:

[0064] S1071: If the acquisition of the first web page data from the edge program cache fails, the second web page data in response to the web page access request is acquired through the object storage service corresponding to the content distribution network.

[0065] In the embodiment of the present application, the edge program in steps S102 to S108 described above provides a backup for the front-end server that has an exception. After verification and statistics, the response success rate of the web page request is above 98%. In the case where the first web page data cannot be obtained in the edge program cache corresponding to the edge program, that is, when the edge program is abnormal or unavailable, in order to avoid the web page access request not being responded to, the object storage service (Object Storage Service, referred to as OSS) corresponding to the content distribution network is further used to perform the second layer of backup, so as to further improve the response success rate of the web page request and improve the stability of the web page request response.

[0066] Object storage service OSS is a massive object-based storage service that can provide massive, secure, highly reliable, and low-cost data storage capabilities. Unlike the edge program cache corresponding to the edge program, the edge program ER can be cleared when the cache reaches a certain limit, while the cache of the object storage service OSS can be permanent and will not be cleared, and can always exist. In this way, by storing the second web page data in the cache of the object storage service OSS, when the first web page data fails to be obtained from the edge program cache, the second web page data can be obtained from the cache of the object storage service OSS to provide a second layer of backup.

[0067] In some optional embodiments, "obtaining second web page data in response to the web page access request through the object storage service corresponding to the content distribution network" in step S1071 includes: obtaining static data for client rendering in response to the web page access request from the cache corresponding to the object storage service through the object storage service corresponding to the content distribution network as the second web page data.

[0068] Based on this, the embodiment of the present application can effectively obtain the required second web page data through the object storage service, so that the subsequent client can generate a web page access result based on the second web page data, and implement a second-layer backup for the front-end server where an exception occurs through the object storage service, thereby ensuring that when the first web page data cannot be obtained from the edge program cache, the web page request can still respond normally and the web page can still be displayed normally, thereby more effectively improving the stability of the web page request response.

[0069] Optionally, the second web page data (static data for client rendering) in the embodiment of the present application may be web page frame data, for example, may be second web page frame data. That is, in the embodiment of the present application, the second web page frame data may be stored in the cache of the object storage service (OSS), and the second web page frame data may be used as the second web page data. The second web page frame data may be understood based on the description of the web page frame data in the foregoing text, and will not be described in detail here. The second web page frame data may be the same as or different from the first web page frame data, and may be set as needed.

[0070] S1072: Send the second web page data to the client, so that the client generates a web page access result based on the second web page data.

[0071] After obtaining the second web page data through the object storage service OSS, the second web page data is sent to the client. The client can generate a web page access result based on the second web page data and display the web page access result. The displayed web page access result can be a web page to be displayed, so as to realize the process from responding to the web page access request to completing the display of the web page.

[0072] Based on this, in the embodiment of the present application, through the optional implementation of the above steps S1071 to S1072, the object storage service can effectively implement the second-layer backup for the front-end server where the exception occurs, thereby ensuring that when the first web page data cannot be obtained from the edge program cache, the web page request can still be responded to normally and the web page can still be displayed normally, thereby more effectively improving the stability of the web page request response.

[0073] In some optional embodiments, the second web page data is web page frame data; step S1072 includes: sending the second web page frame data to the client, so that the client obtains the second web page content data from the object storage service based on the second web page frame data, and generates a target web page to be displayed based on the second web frame page data and the second web page content data.

[0074] The second webpage content data can be understood based on the description of the webpage content data in the foregoing text, and will not be described in detail here. The second webpage content data can be pre-stored in the object storage service.

[0075] Based on this, in the embodiment of the present application, by sending the second web page frame data to the client, and then the client obtains the corresponding second web page content data from the object storage service based on the second web page frame data, the client can generate a target web page to be displayed using the second web page frame data and the second web page content data, that is, the web page access result, thereby facilitating the display of the web page access result to meet the user's demand for web page usage. In this way, the object storage service can effectively implement the second-layer backup for the front-end server where an abnormality occurs, thereby ensuring that when the first web page data cannot be obtained from the edge program cache, the web page request can still respond normally and the web page can still be displayed normally, thereby more effectively improving the stability of the web page request response.

[0076] In some optional embodiments, the web page request processing method in the embodiments of the present application also includes: if the acquisition of the second web page data through the object storage service fails, then back-to-source processing is performed through the content distribution network to obtain the third web page data in response to the web page access request from the content server corresponding to the content distribution network, and the third web page data is sent to the client, so that the client generates a web page access result based on the third web page data; wherein the third web page data includes web page frame data and web page content data.

[0077] In some cases, the above-mentioned object storage service OSS may not be able to obtain the second web page data. In order to deal with such a situation, in the embodiment of the present application, the content distribution network is used to perform source return processing, and the third web page data in response to the web page access request is obtained from the content server corresponding to the content distribution network, so that the client can use the third web page data to generate a web page access result and display the web page access result. The displayed web page access result can be a web page to be displayed, so as to realize the process from responding to the web page access request to completing the display of the web page. This optional method can be used when the object storage service OSS cannot obtain the second web page data, and the content distribution network CDN can bypass multiple edge programs ER and directly return to the source to realize the web page request response. In addition, this can also realize that the content distribution network CDN can provide a backup for the edge program ER and the object storage service OSS that failed to provide a backup, so as to achieve a complementary effect.

[0078] Based on this, the object storage service OSS that cannot obtain the second web page data can be backed up again, which is further beneficial for the web page request to still respond normally and the web page to still be displayed normally after an exception occurs in the front-end server, thereby effectively improving the stability of the web page request response.

[0079] Optionally, when the object storage service OSS is unable to obtain the second web page data, the object storage service OSS may send a 502 status code to the content distribution network. When the content distribution network detects the 502 status code, it bypasses multiple edge programs ER from the content distribution network and directly returns to the source to obtain the third web page data in response to the web page access request from the content server to implement a web page request response.

[0080] Optionally, the web page frame data included in the third web page data in the embodiment of the present application may be the third web page frame data, and the web page content data included in the third web page data may be the third web page content data. The client may generate and display the target web page to be displayed, i.e., the web page access result, based on the third web page frame data and the third web page content data. Regarding the third web page frame data, it can be understood according to the description of the web page frame data in the foregoing text, and will not be repeated here. The third web page frame data may be the same web page frame data as the first web page frame data and / or the second web page frame data, or it may be web page frame data different from the two. Regarding the third web page content data, it can be understood according to the description of the web page content data in the foregoing text, and will not be repeated here. The third web page content data may be the same web page content data as the first web page content data and / or the second web page content data, or it may be web page content data different from the two. This is not specifically limited in the embodiment of the present application.

[0081] Below, refer to Figure 4 The figure shows an exemplary description of the overall implementation process of the web page request processing solution of the first aspect of the embodiment of the present application.

[0082] like Figure 4 It can be seen that when a user uses a browser application on a client to access a web page (such as the target web page mentioned below), a web page access request is sent to the front-end server through the client. When no abnormality occurs on the front-end server, the web page access request can be transmitted to the front-end server. The front-end server can directly respond to the web page access request. The front-end server returns web page data to the client. The client can generate and display web page access results based on the web page data, thereby displaying a target web page to be displayed (for example, the front-end server returns web page frame data to the client, the client obtains web page content data from the content server based on the web page frame data, and generates and displays web page access results based on the web page frame data and the web page content data).

[0083] If an exception occurs on the front-end server, the edge program deployed by the content delivery network CDN can be used to determine the exception. The content delivery network CDN can deploy multiple edge programs, namely Figure 4 When edge programs 1 to N respond to the web page access request, it can be determined whether multiple edge programs 1 to N can obtain the first web page data. For example, it can be determined whether an edge program selected from multiple edge programs 1 to N has an exception (the determination method can be understood by referring to the previous text and will not be described in detail here), and then the edge program that is currently in an available state is determined from the edge programs other than the edge program where the exception occurs (the determination method can be understood by referring to the previous text and will not be described in detail here). If an edge program in an available state can be found, it means that the first web page data can be obtained from the edge program cache. If an edge program in an available state is not found, it means that the first web page data cannot be obtained from the edge program cache.

[0084] Among them, if the first web page data can be obtained in the edge program cache, then one of the edge programs in the available state is selected again, and the first web page data is obtained from its corresponding edge program cache. The first web page data can be the first web page frame data. In response to the web page access request, the first web page frame data is returned to the client. The client can obtain the first web page content data from the content server based on the first web page frame data, and then generate and display the target web page (i.e., generate and display the web page access result) based on the first web page frame data and the first web page content data, so that the edge program can cover the front-end server where an exception occurs.

[0085] Among them, if the first web page data cannot be obtained in the edge program cache, the object storage service OSS is used to perform a second-layer backup to determine whether the second web page data can be obtained in the cache corresponding to the object storage service OSS (for example, the second web page data can be static data for client rendering in response to a web page access request, for example, the second web page data can be second web page frame data).

[0086] If the second web page data (for example, the second web page frame data) can be obtained in the cache corresponding to the object storage service OSS, the second web page frame data is obtained from the cache corresponding to the object storage service OSS to respond to the web page access request and return the second web page frame data to the client. The client can obtain the second web page content data from the object storage service based on the second web page frame data, and generate and display the target web page based on the second web page frame data and the second web page content data (i.e., generate and display the web page access result), thereby realizing the second-layer backup of the object storage service OSS for the front-end server where an exception occurs.

[0087] If the second web page data cannot be obtained in the cache corresponding to the object storage service OSS, the content distribution network CDN is used for back-to-source processing to respond to the web page request. For example, the third web page data can be obtained from its corresponding content server through the content distribution network, and the third web page data (including third web page frame data and third web page content data) can be returned to the client. The client can generate and display the target web page based on the third web page data (including third web page frame data and third web page content data).

[0088] It should be understood that the above Figure 4 Related terms can also be understood by referring to the above embodiments. Figure 4 The schematic diagrams and their corresponding explanations are only used to facilitate understanding and are not intended to limit the embodiments of the present application.

[0089] To summarize, the solution provided in the embodiments of the present application can, after an exception occurs in the front-end server, obtain the first web page data from the edge program cache corresponding to the edge program through the edge program deployed on the content distribution network to respond to the web page access request, thereby being able to provide a backup for the front-end server that fails to respond to the web page request due to an exception. This makes it easy for the web page request to still respond normally and the web page to still be displayed normally after an exception occurs in the front-end server, thereby effectively improving the stability of the web page request response.

[0090] It can be understood that the above description of the web page request processing method is only an exemplary description of the embodiments of the present application, and does not constitute any limitation to the embodiments of the present application.

[0091] Figure 5This is a flow chart of the steps of a web page request processing method according to the second aspect of the embodiment of the present application. According to the second aspect of the embodiment of the present application, a web page request processing method is provided, which can be used for a client (i.e., a user device). It should be noted that the part of the web page request processing method provided in the second aspect of the embodiment of the present application related to the web page request processing method of the first aspect can be understood by referring to the content of the embodiment of the web page request processing method of the first aspect above. Figure 5 As shown, the webpage request processing method includes steps S502, S504 and S506, specifically:

[0092] S502: Sending a web page access request to the front-end server;

[0093] S504: Receive first web page data returned by the content distribution network in response to the web page access request, wherein the first web page data is obtained from an edge program cache corresponding to the edge program by the content distribution network through an edge program deployed thereon when an exception occurs on the front-end server;

[0094] S506: Generate a web page access result based on the first web page data, and display the web page access result.

[0095] Based on the web page request processing scheme of the above steps S502 to S506, after an exception occurs in the front-end server, the first web page data is obtained from the edge program cache corresponding to the edge program through the edge program deployed on the content distribution network to respond to the web page access request, thereby being able to provide a backup for the front-end server that cannot respond to web page requests due to an exception. In this way, after an exception occurs in the front-end server, the web page request can still be responded to normally and the web page can still be displayed normally, thereby effectively improving the stability of the web page request response.

[0096] In some optional embodiments, the web page request processing method also includes: receiving second web page data returned by an object storage service corresponding to a content distribution network in response to a web page access request, wherein the second web page data is obtained through the object storage service when the first web page data fails to be obtained from an edge program cache; generating a web page access result based on the second web page data, and displaying the web page access result.

[0097] In some optional embodiments, the second web page data is static data for client rendering that is obtained from the cache of the object storage service through the object storage service in response to a web page access request when obtaining the first web page data from the edge program cache fails.

[0098] In some optional embodiments, the second web page data is web page frame data; generating a web page access result based on the second web page data and displaying the web page access result includes: obtaining second web page content data from an object storage service based on the second web page frame data, generating a target web page to be displayed based on the second web page frame data and the second web page content data, and displaying the target web page.

[0099] In some optional embodiments, the web page request processing method also includes: receiving third web page data returned by the content distribution network in response to the web page access request, wherein the third web page data is returned to the source through the content distribution network when the acquisition of the second web page data through the object storage service fails, so as to be acquired from the content server corresponding to the content distribution network; generating a web page access result based on the third web page data, and displaying the web page access result; wherein the third web page data includes web page frame data and web page content data.

[0100] In some optional embodiments, a plurality of edge programs are deployed on the content distribution network, wherein the plurality of edge programs are dynamically generated on the content distribution network based on the number of access requests received by the content distribution network; when an exception occurs on the front-end server, an edge program selected from the plurality of edge programs is used to determine based on the web page access request.

[0101] In some optional embodiments, if an exception occurs in the selected edge program, the front-end server is abnormal and an edge program that is currently available and reselected from other edge programs among the multiple edge programs to respond to the web page access request is determined.

[0102] In some optional embodiments, receiving first web page data returned by the content distribution network in response to the web page access request includes: receiving first web page frame data returned by the content distribution network in response to the web page access request.

[0103] In some optional embodiments, generating a web page access result based on the first web page data and displaying the web page access result includes: obtaining first web page content data from a content server based on the first web page frame data, and generating a target web page to be displayed based on the first web page frame data and the first web page content data, and displaying the target web page.

[0104] It should be understood that the various optional implementation modes of the web page request processing method of the second aspect above correspond to the various optional implementation modes of the web page request processing method of the first aspect, and also have similar beneficial effects. The relevant contents have been explained in the previous embodiments and can be understood by referring to the previous embodiments, and will not be repeated here.

[0105] Below, refer to Figure 6The figure shows an exemplary description of the overall implementation process of the web page request processing solution of the first aspect of the embodiment of the present application.

[0106] Reference Figure 6 In subgraph (a) in the figure, when no abnormality occurs in the front-end server, the client can send a web page access request to the front-end server, and the front-end server can directly respond to the web page access request and return the web page data to the client. The client can display the web page access result based on the web page data, that is, display a target web page to be displayed (for example, the front-end server returns the web page frame data to the client, and the client obtains the web page content data from the content server based on the web page frame data, and generates and displays the web page access result based on the web page frame data and the web page content data).

[0107] Reference Figure 6 In sub-graph (b), when an exception occurs in the front-end server, the client can send a web page access request to the front-end server through the content distribution network CDN. Multiple edge programs 1 to N are deployed on the content distribution network CDN. An edge program that has not experienced an exception and is currently available can be selected from the multiple edge programs 1 to N to respond to the web page access request through the edge program, and return the first web page data (which can be the first web page frame data) in the corresponding edge program cache to the client. The client can obtain the first web page content data from the content server based on the first web page frame data, and then generate and display the target web page (i.e., generate and display the web page access result) based on the first web page frame data and the first web page content data, so that the edge program can provide a backup for the front-end server that has an exception. It should be understood that in sub-graph (b), the front-end server that has an exception is omitted for ease of illustration.

[0108] Reference Figure 6 In sub-graph (c), when an exception occurs in the front-end server, the client can send a web page access request to the front-end server through the content distribution network CDN. When the first web page data cannot be obtained in the edge program caches corresponding to multiple edge programs 1 to N, the object storage service OSS responds to the web page access request. The object storage service OSS can return the second web page data (static data for client rendering, such as the second web page frame data) in its corresponding cache to the client. The client can obtain the second web page content data from the object storage service based on the second web page frame data, and generate and display the target web page based on the second web page frame data and the second web page content data (i.e., generate and display the web page access result), thereby realizing the second-layer backup of the object storage service OSS for the front-end server that has an exception. It should be understood that, for the sake of convenience in illustration, the front-end server that has an exception is omitted in sub-graph (c).

[0109] Reference Figure 6In subgraph (d), when an exception occurs in the front-end server, the client can send a web page access request to the front-end server through the content distribution network CDN. If the first web page data cannot be obtained in the edge program cache corresponding to multiple edge programs 1 to N, and the second web page data cannot be obtained in the cache corresponding to the object storage service OSS, the content distribution network CDN can be used for back-to-source processing. The content distribution network CDN obtains the third web page data (including the third web page frame data and the third web page content data) from the content server and returns the third web page data to the client. The client can generate and display the target web page based on the third web page data (including the third web page frame data and the third web page content data). It should be understood that in subgraph (d), for the sake of convenience, the front-end server and object storage service OSS where the exception occurs are omitted.

[0110] It should be understood that the above Figure 6 Related terms can also be understood by referring to the above embodiments. Figure 6 The schematic diagrams and their corresponding explanations are only used to facilitate understanding and are not intended to limit the embodiments of the present application.

[0111] Figure 7 This is a flowchart of the steps of a web page request processing method according to the third aspect of the embodiment of the present application. According to the third aspect of the embodiment of the present application, a web page request processing method is provided, which can be used for a client (i.e., a user device). It should be noted that the part of the web page request processing method provided in the third aspect of the embodiment of the present application related to the web page request processing method of the first and second aspects can be understood by referring to the contents of the web page request processing method embodiments of the first and second aspects above. Figure 7 As shown, the webpage request processing method includes steps S702, S704 and S706, specifically:

[0112] S702: Receive a user's operation on a web page control, generate a web page access request based on the operation, and send the web page access request to a front-end server.

[0113] Optionally, the web page control may be any web page element that can be triggered to access a web page, including but not limited to text, pictures, videos, buttons, web page links, and the like.

[0114] Optionally, when the user wants to access the target web page, he can trigger the web page control on the client (i.e., the user device) through any triggering method, such as click triggering, voice triggering, gesture triggering, remote control triggering, etc., to generate a web page access request based on the operation and send the web page access request to the front-end server.

[0115] S704: Receive first web page data returned by the content distribution network instead of the front-end server in response to the web page access request, wherein the first web page data is obtained by the content distribution network from an edge program cache corresponding to the edge program through an edge program deployed thereon.

[0116] After sending a web page access request to the front-end server, when an exception occurs in the front-end server, the web page access request can be responded to through the edge program deployed on the content distribution network, and the first web page data can be obtained from the edge program cache corresponding to the edge program. It should be understood that step S704 can be understood by referring to the relevant content of the previous embodiment, and will not be repeated here.

[0117] S706: Generate a target webpage based on the first webpage data, and display the target webpage.

[0118] Based on the web page request processing scheme of the above steps S702 to S506, the first web page data is obtained from the edge program cache corresponding to the edge program through the edge program deployed on the content distribution network to respond to the web page access request, thereby being able to provide a backup for the front-end server that cannot respond to the web page request due to an exception. In this way, after an exception occurs in the front-end server, the web page request can still be responded to normally and the web page can still be displayed normally, thereby effectively improving the stability of the web page request response.

[0119] In some optional embodiments, the web page request processing method also includes: receiving second web page data returned by the object storage service corresponding to the content distribution network instead of the front-end server in response to the web page access request; generating a target web page based on the second web page data, and displaying the target web page.

[0120] In some optional embodiments, the second web page data is static data obtained from a cache of an object storage service through an object storage service in response to a web page access request and used for client rendering.

[0121] In some optional embodiments, the second web page data is web page frame data; generating a target web page based on the second web page data and displaying the target web page includes: obtaining second web page content data from an object storage service based on the second web page frame data, generating a target web page based on the second web page frame data and the second web page content data, and displaying the target web page.

[0122] In some optional embodiments, the web page request processing method also includes: receiving third web page data returned by the content distribution network instead of the front-end server in response to the web page access request, wherein the third web page data is processed back to the source by the content distribution network to be obtained from the content server corresponding to the content distribution network; generating a target web page based on the third web page data, and displaying the target web page.

[0123] In some optional embodiments, receiving first web page data returned by the content distribution network instead of the front-end server in response to the web page access request includes: receiving first web page frame data returned by the content distribution network instead of the front-end server in response to the web page access request.

[0124] In some optional embodiments, generating a target web page based on the first web page data and displaying the target web page includes: obtaining first web page content data from a content server based on the first web page frame data, generating a target web page based on the first web page frame data and the first web page content data, and displaying the target web page.

[0125] It should be understood that the various optional implementation modes of the web page request processing method of the third aspect above correspond to the various optional implementation modes of the web page request processing method of the first aspect, and also have similar beneficial effects. The relevant contents have been explained in the previous embodiments and can be understood by referring to the previous embodiments, and will not be repeated here.

[0126] According to a fourth aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; the memory is used to store a computer program; and the processor is used to execute the web page request processing method described in the first aspect above by running the computer program stored in the memory.

[0127] Figure 8 800 is a block diagram of an optional electronic device in an embodiment of the present application. The present application embodiment does not limit the specific implementation of the electronic device 800. Figure 8 The electronic device 800 provided in the embodiment of the present application includes: a processor 802, a communication interface 804, a memory 806, and a communication bus 808. Among them:

[0128] The processor 802 , the communication interface 804 , and the memory 806 communicate with each other via a communication bus 808 .

[0129] The communication interface 804 is used to communicate with other electronic devices or servers.

[0130] The processor 802 is used to execute the computer program 810, and specifically can execute the relevant steps in any of the aforementioned web page request processing method embodiments.

[0131] Specifically, the computer program 810 may include program codes, which include computer operation instructions.

[0132] The processor 802 may be a CPU, or a GPU (Graphic Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0133] The memory 806 is used to store the computer program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0134] The computer program 810 may be specifically configured to enable the processor 802 to execute the web page request processing method in any of the aforementioned embodiments.

[0135] The specific implementation of each step in the computer program 810 can refer to the corresponding description of the corresponding steps and units in any of the aforementioned web page request processing method embodiments, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiments, which will not be repeated here.

[0136] The electronic device 800 in the embodiment of the present application has been described in detail in the aforementioned web page request processing method embodiment, so its related content and beneficial effects can be understood with reference to the aforementioned method embodiment, and will not be repeated here.

[0137] According to a fifth aspect of the embodiments of the present application, the embodiments of the present application further provide a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, the web page request processing method described in any of the aforementioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk, or a magneto-optical disk, etc.

[0138] According to a sixth aspect of an embodiment of the present application, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements a web page request processing method as described in any one of the above-mentioned multiple method embodiments.

[0139] The electronic device 800 / computer storage medium / computer program product embodiment in the embodiment of the present application has been described in detail in the aforementioned web page request processing method embodiment, so its related content and beneficial effects can be understood with reference to the above-mentioned method embodiment and will not be repeated here.

[0140] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0141] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0142] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.

[0143] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for specific applications, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.

[0144] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.

Claims

1. A web page request processing method, comprising: Receive a web page access request from a client to a front-end server; If the edge program deployed on the content distribution network determines that an abnormality occurs in the front-end server based on the web page access request, obtaining, through the edge program, first web page data in response to the web page access request from an edge program cache corresponding to the edge program; The first webpage data is sent to the client, so that the client generates a webpage access result based on the first webpage data.

2. The method according to claim 1, wherein: The method further comprises: If the acquisition of the first webpage data from the edge program cache fails, acquiring the second webpage data in response to the webpage access request through the object storage service corresponding to the content distribution network; The second webpage data is sent to the client, so that the client generates a webpage access result based on the second webpage data.

3. The method according to claim 2, wherein: The acquiring, through the object storage service corresponding to the content distribution network, the second webpage data in response to the webpage access request, comprises: The static data for client rendering in response to the web page access request is obtained from the cache corresponding to the object storage service through the object storage service corresponding to the content distribution network as the second web page data.

4. The method according to claim 3, wherein: The second web page data is web page frame data; The sending the second webpage data to the client so that the client generates a webpage access result based on the second webpage data includes: Sending the second web page frame data to the client, so that the client obtains the second web page content data from the object storage service based on the second web page frame data, and generates a target web page to be displayed based on the second web page frame data and the second web page content data.

5. The method according to any one of claims 2 to 4, wherein: The method further comprises: If the acquisition of the second web page data through the object storage service fails, back-to-source processing is performed through the content distribution network to obtain third web page data in response to the web page access request from a content server corresponding to the content distribution network, and the third web page data is sent to the client, so that the client generates a web page access result based on the third web page data; wherein the third web page data includes web page frame data and web page content data.

6. The method according to any one of claims 1 to 5, wherein: The method further includes: dynamically generating a plurality of edge programs on the content distribution network according to the number of access requests received; If the edge program deployed on the content distribution network determines that an abnormality occurs in the front-end server based on the web page access request, it includes: using an edge program selected from the multiple edge programs to determine that an abnormality occurs in the front-end server based on the web page access request.

7. The method according to claim 6, wherein: The method further comprises: If an exception occurs in the selected edge program, determining an edge program that is currently in an available state from other edge programs in the plurality of edge programs; An edge program for responding to the web page access request is reselected from the edge programs in an available state.

8. The method according to claim 6, wherein: The step of acquiring first web page data in response to the web page access request from an edge program cache corresponding to the edge program includes: The first web page frame data in response to the web page access request is obtained from the edge program cache corresponding to the edge program.

9. The method according to claim 7, wherein: The sending the first webpage data to the client so that the client generates a webpage access result based on the first webpage data includes: The first web page frame data is sent to the client, so that the client obtains the first web page content data from the content server based on the first web page frame data, and generates a target web page to be displayed based on the first web page frame data and the first web page content data.

10. A web page request processing method, comprising: Send a web page access request to the front-end server; Receiving first web page data returned by the content distribution network in response to the web page access request, wherein the first web page data is obtained from an edge program cache corresponding to the edge program by the content distribution network through an edge program deployed thereon when an exception occurs to the front-end server; Generate a web page access result based on the first web page data, and display the web page access result.

11. A web page request processing method, comprising: Receive a user's operation on a web page control, generate a web page access request based on the operation, and send the web page access request to a front-end server; Receiving first web page data returned by a content distribution network instead of the front-end server in response to the web page access request, wherein the first web page data is obtained by the content distribution network from an edge program cache corresponding to the edge program through an edge program deployed thereon; A target webpage is generated based on the first webpage data, and the target webpage is displayed.

12. An electronic device comprising: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 11 by running the computer program stored in the memory.