Code request method and device based on distributed cloud network, medium and equipment

By setting up management servers on edge nodes, code can be sent directly or through the management servers to the edge servers, solving the problems of long code deployment time and network issues that lead to unsuccessful deployments in traditional technologies, and achieving fast and reliable code deployment and retrieval.

CN116708582BActive Publication Date: 2026-03-31GUIZHOU BAISHANCLOUD TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-25
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In traditional technologies, deploying code to edge servers in a distributed cloud network requires centralized management through a control center server, resulting in long deployment times, cumbersome steps, and network issues that can lead to deployment failures.

Method used

A management server is set up at each edge node. The target code uploaded by the developer is sent directly to the edge server through the distributed cloud network, or the target code is queried and distributed through the management server. The edge server receives user requests and executes the code.

Benefits of technology

This reduces code deployment time from minutes to milliseconds, improves the speed of code deployment and query requests, avoids broadcast storms, reduces developer workload, and increases the success rate of code deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708582B_ABST
    Figure CN116708582B_ABST
Patent Text Reader

Abstract

The application relates to a code request method and device based on a distributed cloud network, a medium and equipment, and is applied to a management server of an edge node. The management server of the edge node is used for managing an edge server of the edge node. The method comprises the following steps: obtaining target code uploaded by a developer; directly sending the target code to the edge server in the edge node; or receiving a request of the edge server in the edge node for obtaining the target code, and sending the target code to the edge server in the edge node. After the developer uploads the target code to the distributed cloud network, the target code does not need to be distributed to all edge servers, and the edge server can receive a request of a client, and the edge server obtains the target code from the management server of the edge node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of distributed cloud network technology, and in particular to a code request method, apparatus, medium and device based on a distributed cloud network. Background Technology

[0002] In traditional technology, developers need to upload code to a control center server, which then deploys the code to edge servers. The client's code request to an edge server can only be executed after the code has been distributed to all edge servers. Therefore, when a client needs to send a code execution request to an edge server, the long deployment time at the control center forces developers to wait and confirm whether the target code has been deployed to all edge servers. The entire deployment process, from the control center server to the edge servers, is time-consuming and cumbersome. Furthermore, network problems between the control center server and some edge servers can cause code deployment to fail. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this application provides a code request method, apparatus, system, medium and device based on a distributed cloud network.

[0004] According to a first aspect of this application, a code request method based on a distributed cloud network is provided, applied to a management server of an edge node, wherein the management server of the edge node is used to manage the edge servers of the edge node, and the code request method based on the distributed cloud network includes:

[0005] Obtain the target code uploaded by the developer;

[0006] The target code is sent directly to the edge server in this edge node; or, a request is received from the edge server in this edge node to obtain the target code, and the target code is sent to the edge server in this edge node. The target code is used to represent the computational logic for providing the user request, so that the edge server executes the target code after receiving the corresponding user request and responds with the execution result to the user.

[0007] In some embodiments of this application, based on the foregoing scheme, obtaining the target code uploaded by the developer includes:

[0008] The edge node is the one closest to the developer network or the one with the fastest connection to the developer. The edge node is connected to the developer and receives the target code uploaded by the developer; or...

[0009] The edge node sequentially queries the node information indicated by the local routing table, obtains the information of the node where the target code is located, and obtains the target code based on the node information.

[0010] In some embodiments of this application, based on the foregoing scheme, the local routing table includes node information of at least one neighboring node.

[0011] In some embodiments of this application, based on the foregoing scheme, the step of sequentially querying the node information indicated by the local routing table and obtaining the node information of the node where the target code is located includes:

[0012] When the target code does not exist locally on the management server of the edge node, a query is made to the at least one neighboring node to obtain the node information of the at least one neighboring node and update the local routing table;

[0013] The system queries each node indicated by the updated local routing table in turn until it obtains the node information of the node where the target code is located.

[0014] In some embodiments of this application, based on the foregoing scheme, the code request method based on a distributed cloud network further includes:

[0015] Receive query requests for target code from management servers in other edge nodes, and respond with the target code to the management servers in the other edge nodes.

[0016] In some embodiments of this application, based on the foregoing solution, obtaining the target code uploaded by the developer includes: obtaining the target code uploaded by the developer through a configuration interface, wherein the configuration interface includes a configuration interface, and the configuration interface is used to obtain the code information uploaded by the developer.

[0017] According to another aspect of this application, a code request method based on a distributed cloud network is provided, applied to an edge server at an edge node, comprising:

[0018] Obtain the target code from the management server of this edge node;

[0019] Receive user requests to execute target code;

[0020] Execute the target code and return the execution result to the user;

[0021] The management server is used to manage the edge servers of this edge node.

[0022] In some embodiments of this application, based on the foregoing scheme, obtaining the target code from the management server in this edge node includes:

[0023] Receive the target code directly issued by the management server of this edge node; or,

[0024] Upon receiving a user's execution request for the target code, if the target code is not present on the edge server, the edge node requests the target code from its management server.

[0025] According to another aspect of this application, a code request device based on a distributed cloud network is provided, applied to a management server of an edge node, wherein the management server of the edge node is used to manage the edge servers of the edge node, and the code request device based on the distributed cloud network includes:

[0026] The first acquisition module is used to acquire the target code uploaded by the developer;

[0027] The distribution module is used to directly send the target code to the edge server in this edge node; or, receive a request from the edge server in this edge node to obtain the target code, and send the target code to the edge server in this edge node; the target code is used to represent the computational logic of providing the user request, so that the edge server executes the target code after receiving the corresponding user request, and responds to the user with the execution result.

[0028] In some embodiments of this application, based on the foregoing scheme, the code request device based on a distributed cloud network further includes:

[0029] The routing management module is used to receive query requests for target code from management servers in other edge nodes and respond with the target code to the management servers in the other edge nodes.

[0030] According to another aspect of this application, a code request apparatus based on a distributed cloud network is provided, applied to an edge server at an edge node, comprising:

[0031] The second acquisition module is used to obtain the target code from the management server in this edge node;

[0032] The request receiving module is used to receive user requests to execute target code;

[0033] The execution module is used to execute the target code and return the execution result to the user.

[0034] The management server is used to manage the edge servers of this edge node.

[0035] According to another aspect of this application, a computer-readable storage medium is provided that stores a computer program thereon, which, when executed, implements the steps of a code request method based on a distributed cloud network.

[0036] According to another aspect of this application, a computer device is provided, including a processor, a memory, and a computer program stored in the memory, characterized in that the processor executes the computer program to implement the steps of a code request method based on a distributed cloud network.

[0037] This application provides a code request method based on a distributed cloud network. A management server is set up in each edge node to manage the edge servers within that node. Edge servers request target code from the management server in their local node, and the management server sends the target code to the edge servers. Using this distributed cloud network-based code request method, developers can upload target code to the management server of any edge node in the distributed cloud network without waiting for the target code to be distributed to all edge servers in the distributed cloud network system. Clients can then request to execute the target code from any edge server in any edge node. Even if the edge server of the requested edge node does not contain the target code, the edge server can request it from the management server in that node. After obtaining the target code, the management server provides it to the edge server, reducing the deployment time from minutes or seconds to milliseconds. Even if the local edge management server does not contain the target code, queries can be performed sequentially from adjacent edge nodes, thus quickly locating the edge node to which the target code belongs, improving the speed of target code deployment and query requests, and avoiding broadcast storms.

[0038] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0039] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0040] Figure 1 This is a schematic diagram of a distributed cloud network system according to an exemplary embodiment.

[0041] Figure 2 This is a flowchart illustrating a code request method based on a distributed cloud network according to an exemplary embodiment.

[0042] Figure 3 This is a flowchart illustrating a code request method based on a distributed cloud network according to an exemplary embodiment.

[0043] Figure 4This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment.

[0044] Figure 5 This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment.

[0045] Figure 6 This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment.

[0046] Figure 7 This is a block diagram illustrating a code request computer device based on a distributed cloud network according to an exemplary embodiment. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be arbitrarily combined with each other.

[0048] In traditional distributed cloud network technology, developers need to upload code to a control center server, which then deploys the code to edge servers. Client requests to edge servers can only be executed after the code has been distributed to all edge servers. Because the deployment process from the control center is lengthy, developers need to wait and confirm whether the target code has been deployed to all edge servers. The entire deployment process, from the control center server to the edge servers, is time-consuming and cumbersome. Furthermore, network problems between the control center server and some edge servers can cause deployment failures.

[0049] It should be noted that the distributed cloud network can be an edge cloud network. This edge cloud network can be built on edge infrastructure based on the core of cloud computing technology and the capabilities of edge computing, forming a comprehensive elastic cloud platform with capabilities in computing, networking, storage, security, and applications at the edge location. This edge cloud network can include multiple edge nodes, and therefore the method provided in this application embodiment can be applied to edge nodes, where the edge nodes perform corresponding processing, thereby providing services to users at the network edge closer to the terminal.

[0050] To address the problems existing in traditional technologies, this application provides a distributed cloud network system. Figure 1This is a schematic diagram of a distributed cloud network system illustrated according to an exemplary embodiment. (Reference) Figure 1 The distributed cloud network system comprises multiple edge nodes, each edge node including a management server and at least one edge server. Unlike traditional centralized distributed cloud networks, the distributed cloud network system provided in this application does not have a control center server. Instead, each edge node has a management server to manage at least one edge server within that node. The management server can be a dedicated server with management functions, managing other edge servers but not providing edge services; or it can be a selected edge server from multiple edge servers within the edge node, possessing both management functions and the ability to provide edge services. For example, multiple edge nodes can form a distributed cloud network. The distributed cloud network is a distributed bootstrapping network, meaning that when each node joins the network, another node acts as its bootstrapping node, adding the bootstrapping node's information to its local routing table. Thus, any node can use its local routing table to query, starting with the bootstrapping node, to obtain information about nodes adjacent to the bootstrapping node, and subsequently, to query information about all nodes in the entire network.

[0051] For example, if edge node B wants to join the distributed bootstrapping network, edge node A acts as its bootstrapping node. Edge node B will place edge node A's node information in its local routing table. Similarly, each edge node's local routing table will store information about its neighboring edge nodes.

[0052] The management server queries the management servers in the adjacent edge nodes to see if the target code exists. If it exists, the management server in the adjacent edge node that stores the target code retrieves the target code from the management server in the other edge node and distributes it to the edge server in this edge node.

[0053] The edge server is used to request target code from and receive target code distributed by the management server of its local edge node. It also receives user requests matching the target code, invokes and executes the target code to process the user request, and sends the processing result back to the user. When the edge server does not have the target code matching the user request, it requests the target code from the management server of the edge node, which then obtains the target code from other nodes in the distributed cloud network. Therefore, developers can upload the target code to any server in the distributed cloud network system nearby. Without waiting for the target code to be distributed to all edge servers in the distributed cloud network, the client can request execution of the target code from any edge server.

[0054] Based on the aforementioned distributed cloud network system, this application provides a method for requesting code based on a distributed cloud network. Figure 2 This is a flowchart illustrating a code request method based on a distributed cloud network according to an exemplary embodiment. (See reference) Figure 2 The code request method based on the distributed cloud network is applied to the management server of the edge node. The management server of the edge node is used to manage the edge server of the edge node. The code request method based on the distributed cloud network includes at least steps S21 to S22, which are described in detail below.

[0055] In step S21, the target code uploaded by the developer is obtained.

[0056] The distributed cloud network system provided in this application no longer requires a central server. Developers can connect to any edge node and upload their target code to the management server of that edge node.

[0057] In addition to receiving code uploaded by developers, the management server in the edge node can also query the edge node where the target code is located through the distributed bootstrapping network and obtain the target code from the edge node where the target code is located.

[0058] For example, a developer connects to the nearest edge node A and uploads the target code to the management server in edge node A. The management server in edge node A then obtains the target code from the developer. When edge node B needs to obtain the target code, because edge node B has joined the distributed bootstrapping network, edge node A acts as its bootstrapping node. Edge node B needs to query through the distributed bootstrapping network and obtain the target code from edge node A.

[0059] In step S22, the target code is sent directly to the edge server in this edge node; or, a request is received from the edge server in this edge node to obtain the target code, and the target code is sent to the edge server in this edge node. The target code is used to represent the computational logic that provides the user request, so that the edge server executes the target code after receiving the corresponding user request and responds to the user with the execution result.

[0060] For any edge node, the management server within that edge node can receive target code uploaded by developers and can also retrieve target code from management servers in other edge nodes. After retrieving the target code, the management server can store it, either in a code repository such as a Key-value repository or on storage media such as disk; this application does not impose any restrictions. Upon receiving a request from an edge server within its own node to retrieve target code, the management server can directly send the target code to the edge server within that edge node.

[0061] In addition, multiple edge nodes are located in different regions. Users send URL requests to the distributed cloud network. The requested URL is resolved through domain name resolution to determine the nearest edge node. Users then request the execution of target code from the edge server in the nearest edge node.

[0062] After receiving a user's request to execute target code, if the edge server has not yet obtained the target code, it can send a request to the management server in this node to obtain the target code.

[0063] The target code represents the computational logic that provides the user's request. For example, it could be video transcoding logic, providing a video transcoding service; or it could be data computation logic, providing video computation logic. For instance, a user requests a video transcoding service from an edge server, corresponding to the target code for video transcoding logic. After receiving the user's request, the edge server executes the target code, transcodes the video, and returns the transcoded video as the result to the user.

[0064] In one embodiment, the current edge node is the edge node connected to the developer. After the management server in the current edge node receives the code uploaded by the developer, the edge server in the current edge node, upon receiving the user request, sends a request to the management server to retrieve the target code.

[0065] In one embodiment, the developer uploads the target code to the nearest edge node A. The client requests the execution of the target code from the edge server in edge node B. Since the code is not present in the edge server in edge node B, the edge server requests the target code from the management server in edge node B. Upon receiving the request for the target code from the edge server, the management server in edge node B retrieves the target code from the management server in edge node A.

[0066] As described in the above embodiments, after receiving a user's request for target code, the edge server in the edge node requests the target code from the management server. The management server in the edge node can obtain the code uploaded by the developer before or after the user requests the target code. This allows developers to upload the target code to any server in the distributed cloud network nearby, without needing to worry about whether the target code is deployed to all edge nodes. After receiving a user's request for target code, the edge server only needs to request the target code from the management server of its local node, ensuring that the edge server ultimately obtains the target code regardless of whether the management server in its local node stores the target code.

[0067] In one exemplary embodiment, obtaining the target code uploaded by the developer includes:

[0068] Edge nodes are those closest to the developer's network or those with the fastest connection to the developer. These edge nodes connect to the developer and receive the target code uploaded by the developer; or...

[0069] The edge node sequentially queries the information of each node indicated by the local routing table, obtains the information of the node where the target code is located, and obtains the target code based on the routing information.

[0070] The management server retrieves the target code uploaded by the developer. This can be achieved either by the developer establishing a connection with the current management server and uploading the target code to the management server in the current edge node, or by management servers in other edge nodes sequentially querying each node indicated in their local routing tables to obtain the routing information of the node where the target code is located, and then retrieving the target code from the management server of that node based on the obtained routing information. Therefore, when an edge server in any edge node receives a user's request to execute the target code, it doesn't need to know which edge node the developer uploaded the target code to, nor does it need to know whether the target code has already been deployed on its own edge node. The edge server only needs to request the target code from the management server in its own node. Even if the management server does not have the target code, it can quickly determine the information of the node where the target code is located by querying the routing table and quickly retrieve the target code. For developers, they only need to upload the target code to the nearest edge node, without needing to deploy the target code to all edge servers, reducing the developer's workload and increasing the success rate of code deployment.

[0071] In one exemplary embodiment, the local routing table includes node information of at least one neighboring node. In a distributed cloud network, each node needs a bootstrapping node to join the network. For example, if edge node B wants to join the distributed bootstrapping network, edge node A acts as its bootstrapping node. Edge node B will place the node information of edge node A in its own (i.e., edge node B's) local routing table. Similarly, each edge node's local routing table stores information of at least one neighboring edge node to prevent edge nodes from becoming isolated. Upon receiving a query request from another edge node, if the corresponding target code is not found locally, the edge node returns its own node information, including information from its local routing table, to other edge nodes. For example, after receiving a request to execute target code, the edge server in edge node B requests the target code from the management server in its node. The management server, based on the information indicated by its local routing table, first queries the management server in edge node A. This allows it to further obtain the node information of edge node A. Using the node information of edge node A, it can obtain information about edge node A's neighboring nodes and then query those neighboring nodes. Ultimately, it can be determined which edge node's management server stores the target code.

[0072] In one exemplary embodiment, sequentially querying the node information indicated by the local routing table and obtaining the node information of the node where the target code is located includes:

[0073] When the target code does not exist locally on the management server of the edge node, it queries at least one neighboring node to obtain the node information of at least one neighboring node and updates the local routing table.

[0074] The system queries each node indicated by the updated local routing table in turn until it obtains the node information of the node where the target code is located.

[0075] Because the local routing table of an edge node contains routing information for at least one neighboring node, when the target code is not found locally on the management server of the edge node, it can query at least one neighboring node to obtain its routing information and update its local routing table. For example, if the management server in edge node B does not contain the target code, it can query the management server in edge node A, as indicated in its local routing table, to obtain the node information of edge node A. Assuming that the node information of edge node A includes information for edge nodes C and D, the management server of edge node B uses the node information of A to update its local routing table. The updated local routing table will then contain information for edge nodes A, C, and D. The management service of edge node A can then query edge nodes C and D again until it obtains the node information of the node containing the target code.

[0076] Once the node information of the target code is determined, a request can be made to that node to retrieve the target code. This ensures that the management server of any edge node can quickly obtain the target code by querying its local routing table and sequentially searching for the nodes indicated in the updated local routing table. Furthermore, the management server of each edge node queries sequentially from its nearest neighboring edge node, quickly obtaining routing information to the node containing the target code. This allows the edge server to quickly retrieve the target code, respond to client execution requests, and improve service quality.

[0077] In one exemplary embodiment, the code request method based on a distributed cloud network further includes:

[0078] It receives query requests for target code from management servers in other edge nodes and responds with target code to management servers in other edge nodes.

[0079] The management server can obtain target code from developers connected to its own edge node, as well as from other edge nodes. When it receives a query request for target code from the management server of another edge node, if the management server has the target code, it responds with the target code to the management servers of the other edge nodes. If the target code is not present locally on the management server, it responds with its node information to the management servers of the other edge nodes. The management servers of the other edge nodes can then update their local routing tables based on the node information in the response, thereby obtaining node information for more nodes and continuing to query for the target code from these nodes. This allows for rapid location of the edge node to which the target code belongs, improving the speed of target code querying and avoiding broadcast storms.

[0080] In one exemplary embodiment, obtaining the target code uploaded by the developer includes: obtaining the target code uploaded by the developer through a configuration interface, which includes a configuration interface used to obtain the code information uploaded by the developer. To facilitate code uploads by developers, the distributed cloud network provides a configuration interface. Developers can copy and paste edited code into the configuration interface, or enter code into the configuration interface. After confirming the code is correct, they can upload the code to the nearest edge node by clicking the "Deploy Code" upload button. Developers only need to log in to the configuration interface provided by the distributed cloud network, enter the code, and click upload; they do not need to worry about which edge node the code is uploaded to. Of course, developers can also choose which edge node to upload the code to. In one implementation, the distributed cloud network determines the nearest edge node, which improves the code upload speed. After the code is uploaded to the edge node, the edge node can display a message indicating successful code upload through the configuration interface, allowing developers to quickly publish information related to the successfully uploaded code and for users to request execution from the edge node.

[0081] Figure 3 This is a flowchart illustrating a code request method based on a distributed cloud network according to an exemplary embodiment. (See reference) Figure 3 The code request method based on the distributed cloud network is applied to the edge server of the edge node and includes at least steps S31 to S33, which are described in detail below.

[0082] Step S31: Obtain the target code from the management server in this edge node.

[0083] Step S32: Receive the user's execution request for the target code.

[0084] Step S33: Execute the target code and return the execution result response to the user; wherein, the management server is used to manage the edge servers of this edge node;

[0085] The client resolves its requested URL to the nearest edge node via DNS resolution. The client then connects to the edge server within that edge node and initiates a request to execute the target code. Upon receiving the client's request, the edge server, if it does not have the target code cached locally, requests the target code from the management server of its local edge node.

[0086] A management server is set up in the edge node to manage the edge servers in this node. When an edge server needs to obtain the target code, the edge server requests the target code from the management server of this node. Edge servers in the same edge node only request the target code from the management server of this node, and the management server obtains it uniformly. This eliminates the need for edge servers to obtain the target code repeatedly, saves network resources, and ensures the consistency of the target code.

[0087] The edge server receives user requests to execute target code. If the target code is cached locally, the edge server can invoke the target code to respond to the client. For example, if the user requests a calculation result, the edge server invokes the cached code, executes the target code, performs the calculation based on the user's request, and then responds to the user with the calculation result.

[0088] If the edge server does not cache the target code locally, when the edge server receives a client's request for the target code, the edge server can request the target code from the management server in this node.

[0089] Therefore, there is no logical order between steps S31 and S32.

[0090] In one exemplary embodiment, obtaining the target code from the management server in this edge node includes:

[0091] Receive the target code directly issued by the management server of this edge node; or,

[0092] Upon receiving a user's execution request for the target code, if the target code is not present on the edge server, the edge node requests the target code from its management server.

[0093] Before receiving a user's request to execute the target code, the edge server can first receive the target code issued by the management server. When a user requests to execute the target code, the edge server can respond quickly, improving response speed.

[0094] Alternatively, upon receiving a user's execution request for target code, if the edge server does not possess the target code matching the user's request, it can query the management server to check if the target code exists. If it does, it receives the target code returned by the management server of this edge node. The edge server queries its own management server, retrieves the target code, and responds to the user. This process saves cache space while ensuring service availability.

[0095] Figure 4 This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment. (Reference) Figure 4 The code request device based on a distributed cloud network includes: a first acquisition module 401 and a distribution module 402.

[0096] The first acquisition module 401 is configured to acquire code uploaded by the developer.

[0097] The distribution module 402 is configured to send the target code directly to the edge server in this edge node; or, receive a request from the edge server in this edge node to obtain the target code and send the target code to the edge server in this edge node; the target code is used to represent the computational logic that provides the user request, so that the edge server executes the target code after receiving the corresponding user request and responds with the execution result to the user.

[0098] The first acquisition module 401 is also configured to connect with the developer and receive the target code uploaded by the developer; or, sequentially query the information of each node indicated by the local routing table and obtain the routing information of the node where the target code is located, and obtain the target code according to the routing information.

[0099] Figure 5 This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment. (Reference) Figure 5 The code request device based on the distributed cloud network also includes a routing management module 501, which is configured to receive query requests for target code from management servers in other edge nodes and respond with target code to management servers in other edge nodes.

[0100] Figure 6 This is a block diagram illustrating a code request apparatus based on a distributed cloud network according to an exemplary embodiment. (Reference) Figure 6 The code request device based on the distributed cloud network is applied to the edge server of the edge node and includes: a second acquisition module 601, a request receiving module 602, and an execution module 603.

[0101] The second acquisition module 601 is configured to acquire target code from the management server in this edge node.

[0102] The request receiving module 602 is configured to receive user requests to execute target code.

[0103] The execution module 603 is configured to execute the target code and return the execution result response to the user; wherein, the management server is used to manage the edge server of this edge node.

[0104] Figure 7 This is a block diagram illustrating a code-requesting computer device 700 based on a distributed cloud network according to an exemplary embodiment. For example, the computer device 700 may be provided as a server. See also... Figure 7 The computer device 700 includes a processor 701, the number of which can be set to one or more as needed. The computer device 700 also includes a memory 702 for storing instructions executable by the processor 701, such as application programs. The number of memories can be set to one or more as needed. The stored application programs can be one or more. The processor 701 is configured to execute instructions to perform the request-response method described above in the distributed cloud network.

[0105] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. Computer storage media include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data), including but not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and can include any information delivery medium.

[0106] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (devices), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0107] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes

[0108] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0109] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the article or device that includes said element.

[0110] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0111] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations fall within the scope of the claims of this application and their equivalents, the intent of this application also includes these modifications and variations.

Claims

1. A code request method based on a distributed cloud network, characterized by, The application discloses a management server applied to an edge node in a distributed cloud network, and relates to the technical field of cloud computing. The target code uploaded by the developer is acquired. The target code is directly sent to the edge server in the edge node; the target code is used for representing the operation logic of providing the user request, so that the edge server executes the target code after receiving the corresponding user request and responds the execution result to the user. The target code uploaded by the developer is acquired. When the edge node is the edge node connected with the developer, the management server receives the target code uploaded by the developer. When the edge node is not the edge node connected with the developer, the management server sequentially queries the node information of each node indicated by the local routing table after receiving the request of the edge server in the edge node for acquiring the target code, acquires the node information of the node where the target code is located, and acquires the target code according to the node information.

2. The distributed cloud network-based code request method of claim 1, wherein, The local routing table comprises the node information of at least one adjacent node.

3. The distributed cloud network-based code request method of claim 2, wherein, The target code uploaded by the developer is acquired. When the edge node is the edge node connected with the developer, the management server receives the target code uploaded by the developer. When the edge node is not the edge node connected with the developer, the management server sequentially queries the node information of each node indicated by the local routing table after receiving the request of the edge server in the edge node for acquiring the target code, acquires the node information of the node where the target code is located, and acquires the target code according to the node information.

4. The distributed cloud network-based code request method of claim 1, wherein, The method further comprises: Receiving the query request of the management server in the other edge node for the target code, and responding the target code to the management server in the other edge node.

5. The distributed cloud network-based code request method of claim 1, wherein, The target code uploaded by the developer is acquired through a configuration interface, and the configuration interface comprises a configuration interface used for acquiring the code information uploaded by the developer. 6.A code request device based on a distributed cloud network, characterized by, The application discloses a management server applied to an edge node in a distributed cloud network, and relates to the technical field of cloud computing. The target code uploaded by the developer is acquired. The target code is directly sent to the edge server in the edge node; the target code is used for representing the operation logic of providing the user request, so that the edge server executes the target code after receiving the corresponding user request and responds the execution result to the user. The target code uploaded by the developer is acquired by: when the edge node is the edge node connected with the developer, the management server receives the target code uploaded by the developer; when the edge node is not the edge node connected with the developer, the management server, after receiving a request of an edge server in the edge node for acquiring the target code, sequentially queries information of each node indicated by a local routing table, acquires node information of a node where the target code is located, and acquires the target code according to the node information.

7. The distributed cloud network based code request apparatus of claim 6, wherein, Further comprising: A routing management module, configured to receive a query request of a management server in another edge node for a target code, and respond to the target code to the management server in the other edge node.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed to implement the steps of the method in any one of claims 1-5.

9. A computer device comprising a processor, a memory and a computer program stored on the memory, characterized in that, The processor executes the computer program to implement the steps of the method in any one of claims 1-5.

Citation Information

Patent Citations

  • User generated content uploading method and system based on cloud edge cooperation

    CN111935246A

  • Request processing method and system and edge node

    CN113127414A

  • Method and system for distributing application for edge computing devices

    US20210409478A1