CN115080063A - Service processing method based on edge calculation, edge device and readable storage medium - Google Patents

Service processing method based on edge calculation, edge device and readable storage medium Download PDF

Info

Publication number
CN115080063A
CN115080063A CN202210693371.7A CN202210693371A CN115080063A CN 115080063 A CN115080063 A CN 115080063A CN 202210693371 A CN202210693371 A CN 202210693371A CN 115080063 A CN115080063 A CN 115080063A
Authority
CN
China
Prior art keywords
service
content
target service
faas
cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210693371.7A
Other languages
Chinese (zh)
Inventor
邹亚
侯鹏
孙景欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210693371.7A priority Critical patent/CN115080063A/en
Publication of CN115080063A publication Critical patent/CN115080063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a service processing method based on edge computing, an edge device and a readable storage medium, the method is implemented by an edge device deployed on a node of a content distribution network, the method includes: receiving a service request for a target service sent by a user terminal; acquiring the service content of the target service from the cache of the content distribution network node according to the service request; the service content is obtained by the edge equipment requesting a FaaS source station and stored in the cache; and returning the service content to the user terminal for response.

Description

Service processing method based on edge calculation, edge device and readable storage medium
Technical Field
The disclosed embodiments relate to the field of computer technologies, and in particular, to a service processing method based on edge computing, an edge device, and a computer-readable storage medium.
Background
A Function as a Service (FaaS), also called as a Function as a Service, is a Function package including code fragments and configuration on which the code fragments depend, and belongs to a solution without a server by adopting a cloud deployment manner in which codes are organized with the Function (Function) as a center. Because the FaaS can be reduced to zero when there is no event, the cost can be reduced, and research and development personnel only need to pay attention to the service code logic and do not need to pay attention to the infrastructure such as server resources when developing the service, more and more services are realized based on the FaaS. Although FaaS has many advantages, there is an instability factor, however, instability means that a service may be in an unavailable state, and affects user usage, and therefore, it is necessary to provide a technical solution capable of improving stability of FaaS service (FaaS service, that is, service operated based on FaaS).
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a technical solution capable of improving the stability of FaaS services.
According to a first aspect of the present disclosure, there is provided an edge computing-based traffic processing method, implemented by an edge device deployed on a content distribution network node, the method including:
receiving a service request for a target service sent by a user terminal;
acquiring the service content of the target service from the cache of the content distribution network node according to the service request; the service content is obtained by the edge equipment requesting a FaaS source station and stored in the cache;
and returning the service content to the user terminal for response.
Optionally, before the obtaining the service content of the target service from the cache of the content distribution network node according to the service request, the method further includes:
acquiring the service content of the target service from the FaaS source station according to any one of the set events;
and updating the cache according to the acquired service content of the target service.
Optionally, the setting an event includes receiving a simulation request of a service platform for the target service, and the acquiring the service content of the target service from the Faas source station according to any one of the setting events includes:
under the condition that the simulation request is received, determining whether the service content of the target service exists in the cache or not;
and under the condition that the service content of the target service does not exist in the cache, acquiring the service content of the target service from the FaaS source station.
Optionally, the setting event includes that the current time reaches a set update time, and the obtaining the service content of the target service from the Faas source station according to any one of the setting events includes:
acquiring an update period of the target service;
detecting whether the current time reaches the updating time or not according to the updating period;
and under the condition that the current time reaches the updating time, acquiring the service content of the target service from the Faas source station.
Optionally, before the obtaining of the update period corresponding to the target service, the method includes:
pulling the configuration data of the target service from a service platform; wherein the configuration data comprises an update period of the target service;
and storing the configuration data locally.
Optionally, after receiving the service request sent by the user terminal, the method further includes:
acquiring the working state of the edge equipment;
when the working state is a normal state, executing the step of acquiring the service content of the target service from the cache of the edge device according to the target service request;
and configuring the Faas source station to respond to the service request under the condition that the working state is an abnormal state.
Optionally, after receiving a service request sent by a user terminal, the method further includes:
updating the state data of the target service according to the service request;
and sending the state data to a service platform for state monitoring of the target service.
Optionally, the edge device is a device based on a JavaScript code execution environment or a WebAssembly code execution environment.
According to a second aspect of the present disclosure, there is also provided an edge device comprising a memory for storing a computer program and a processor for executing the traffic processing method according to the first aspect of the present disclosure under the control of the computer program.
According to a third aspect of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the business processing method according to the first aspect of the present disclosure.
In the service processing method provided by the embodiment of the present disclosure, before the FaaS function service, service processing performed by edge devices deployed on a Content Delivery Network (CDN) node is added, and the edge devices can cache service Content of the FaaS function service and respond to a service request sent by a user based on the cached service Content, so that even when the FaaS function service is abnormal or an FaaS environment is abnormal, the service request of the user can be responded, and service stability is improved.
Features of embodiments of the present specification and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the specification and together with the description, serve to explain the principles of the embodiments of the specification.
Fig. 1 is a schematic diagram illustrating a structure of a business system to which a business processing method according to an embodiment of the present disclosure may be applied;
FIG. 2 illustrates a hardware architecture diagram of an edge device according to some embodiments;
FIG. 3 illustrates a flow diagram of a business process method according to some embodiments;
FIG. 4 illustrates a business process interaction flow diagram in accordance with some embodiments;
FIG. 5 illustrates a flow diagram for cache update according to some embodiments.
Detailed Description
Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments, their application, or uses.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
It should be noted that all actions of acquiring signals, information or data in the present disclosure are performed under the premise of complying with the corresponding data protection regulation policy of the country of the location and obtaining the authorization given by the owner of the corresponding equipment.
The service running based on FaaS may be any service that provides a service for a user through a user terminal and interacts with the user, for example, the service may be a service for travel application, or a service for mall application, and is not limited herein.
Although the FaaS architecture has many advantages including low development cost and low operation cost, there are unstable factors, which may cause the FaaS service to be unstable, and further cause the FaaS service to be in an unavailable state, which affects user experience.
In order to solve the problem of unstable FaaS service, a set of front-end service can be separately deployed and maintained before the FaaS service, so as to carry out bottom-of-pocket service for improving stability. Because the scheme needs to deploy the server alone to implement the pre-service, an unexpected instability factor still exists, and the scheme also has the problems of high operation and maintenance cost, resource waste and the like, which cannot be reflected from the perspective of the whole business system, but the FaaS architecture is advantageous.
In order to effectively improve the stability of the FaaS service and enable the advantages of the FaaS architecture to be embodied in the whole service system, the inventor proposes a technical scheme for performing service processing based on edge calculation to improve the stability of the FaaS service in the disclosure.
Fig. 1 is a schematic diagram of a composition structure of a service system to which a service processing method according to an embodiment of the present disclosure can be applied.
As shown in fig. 1, a service system 100 according to the embodiment of the present disclosure includes a user terminal 110, a Content Delivery Network (CDN) node 120, a FaaS source station 130, and a service platform 140, where an edge device 121 for implementing a service processing method according to the embodiment of the present disclosure is deployed on the CDN node 120, and since the CDN node 120 has a feature of global deployment, once a program for implementing the service processing method is uploaded to the edge device 121 of the CDN node 120, the global deployment can be completed, and the global deployment is performed globally.
In the service system 100, a client of a target application is installed and operated on the user terminal 110, and the service platform 140 presents various services of the target application to a user through the client of the target application to provide services for the user. For the client of the target application, each client page can be regarded as one service, different client pages correspond to different services, taking the target application as the travel application as an example, a car renting page is a service for renting cars, and a settlement page is another settlement service. The user terminal 100 may send a service request through a control provided by a client page according to a need, which may also be referred to as a page request.
The FaaS source station 130 is configured to call and execute a FaaS function that implements a service function, so as to respond to a service request sent by a user and return corresponding service content.
The CDN node 120 may also be understood as an edge server, and has a feature of being deployed globally, so that the service processing method of the embodiment is implemented by the edge device 121 deployed on the CDN node 120, which can provide a service based on a user location in the near vicinity and improve service performance.
The edge device 121 is a device for running an edge program implementing the service processing method according to the embodiment of the present disclosure, and may be considered as a gateway device.
The service platform 140 is a platform for performing system maintenance by a service person, and may include a terminal device of the service person and a server for performing service management, such as a database server.
Both the user terminal 110 and the service platform 140 may be in communication connection with the CDN node 120 and the FaaS source station 130, and the CDN node 120 may also be in communication connection with the FaaS source station 130. The user terminal 110 may issue a service request to the edge device 121 of the CDN node 120, and the edge device 121 responds based on the service content cached at the CDN node 120. The CDN node 120 may access the FaaS source station to obtain the service content, so as to perform caching and cache updating of the service content. The service personnel can run and configure through the service platform 140 for the edge device 121 to pull.
The user terminal 110 is, for example, a mobile phone, a computer, a wearable device, and the like, and is not limited herein.
As shown in fig. 1, user terminal 110 may include a processor 1101, a memory 1102, an interface device 1103, a communication device 1104, an output device 1105, an input device 1106, and so forth.
The processor 1101 is used to execute a computer program, which may be written in an instruction set of architectures such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1102 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1103 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1104 can perform wired or wireless communication, for example, the communication device 1105 can include at least one short-range communication module, such as any module for performing short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc., and the communication device 1104 can also include a long-range communication module, such as any module for performing WLAN, GPRS, 2G/3G/4G/5G long-range communication. The output device 1105 may include, for example, a liquid crystal display, a touch screen display, a speaker, etc. The input device 1106 may include, for example, a touch screen, a keyboard, a microphone, and the like.
In this embodiment, the memory 1102 of the user terminal 110 is used for storing a computer program for controlling the processor 1101 to operate so as to control the user terminal 110 to run the client of the above target application.
The FaaS source station 130 runs on a cloud server when triggered by an event.
As shown in fig. 2, the edge device 121 includes a processor 1211 and a memory 1212, and the processor 1101 is configured to execute a computer program that can be written in an instruction set of the architecture such as JavaScript, WebAssembly, or the like. The memory 1102 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like.
In this embodiment, the memory 1212 of the edge device 121 is used to store a computer program for controlling the processor 1211 to operate so as to execute the service processing method according to the embodiment of the present disclosure.
It should be understood that although fig. 1 shows only one user terminal 110 and one CDN node 120, the respective numbers are not meant to be limiting, and the business system may include multiple user terminals 110 and multiple CDN nodes 120.
Next, taking the business system shown in fig. 1 as an example, a business processing method based on edge computing implemented by the edge device 121 is described, fig. 3 shows a flow diagram of the business processing method based on edge computing according to the embodiment of the present disclosure, and fig. 4 shows a business processing interaction flow diagram according to the embodiment of the present disclosure. As shown in fig. 3, the service processing method of this embodiment may include the following steps S310 to S330:
step S310, receiving a service request for the target service sent by the user terminal.
A user may trigger a service request for a target service on a client page of a target application through an input device of the user terminal 110, where the client page corresponds to the target service, the client page may be any page of the client, and correspondingly, the target service may be any service of the target application, and therefore, the service request may also be referred to as a page request.
A service request sent by the user terminal 110 may first reach a Domain Name Server (DNS), where the DNS performs Domain Name resolution on the service request, and resolves to a CDN node 120 closest to the position of the user terminal 110 based on a principle of a nearby service, and then sends the service request to the CDN node 120 closest to the position, so that an edge device 121 deployed on the CDN node 120 processes the service request, and the step of sending the service request to the edge node 121 by the user terminal 110 is completed as shown in fig. 4, which can reduce transmission loss and improve service performance.
Step S320, according to the received service request, obtain the service content of the target service from the cache of the CDN node where the edge device 121 is located.
In this embodiment, as shown in fig. 1, after receiving a service request from a user terminal 110, an edge device 121 obtains service content of a target service corresponding to the service request from a cache of a CDN node 120 according to the service request. The edge device 121 may access the cache of the CDN node 120 through the CDN gateway of the CDN node 120, and obtain the service content corresponding to the target service from the cache; the cache of the CDN node 120 may also be directly accessed to obtain the required service content, which is not limited herein.
In this embodiment, as shown in fig. 4, the service content of the target service corresponding to the service request in the cache is requested by the edge device 121 to be obtained by the FaaS source station 130 and stored in the cache. The edge device 121 may refer to the service request sent by the service platform 140 as a simulation request, that is, a service request sent by a simulation user, based on the service request sent by the service platform 140, and access the FaaS source station 130 to obtain the service content and store the service content in the cache of the CDN node 120, or periodically access the FaaS source station 130 to obtain the latest service content based on a set update period, so as to update the corresponding content in the cache, thereby updating the cache. When the edge device 121 accesses the FaaS source station 130, the FaaS source station 130 is triggered to pull a function from a container to generate and execute a function instance, so as to obtain corresponding service content and return the service content to the edge device 121.
Step S330, returning the service content to the user terminal for response.
As shown in fig. 1 and fig. 4, after the edge device 121 acquires the service content of the target service from the cache of the CDN node where the edge device 121 is located, the acquired service content is returned to the user terminal 110 for responding.
After receiving the service content, the user terminal 110 displays the service content in response to a service request of the user.
As shown in the foregoing steps S310 to S330, according to an aspect of the present embodiment, the service processing method of the present embodiment is implemented by the edge device 121 deployed on the CDN node 120, and belongs to an edge computing, and the edge device 121 may directly respond to a service request sent by the user terminal 110 based on a cache service, so that the service system 100 may use the cache service based on the CDN node 120 as a service pocket under the condition that the FaaS function is abnormal or the FaaS environment is abnormal, thereby avoiding an unavailable state of a service, and further improving stability of the FaaS service.
According to another aspect of this embodiment, the edge device 121 and the FaaS source station service in the service system 100 belong to different systems, and the two services belong to different operators, so that the edge device 121 and the FaaS source station 130 basically do not have the situation of abnormal simultaneous breakdown, and can be used as a supplement for the FaaS source station 130, thereby improving the stability of the service system 100, that is, improving the stability of the FaaS service.
According to another aspect of the present embodiment, the edge device 121 is deployed on the CDN node 120 to improve the stability of the FaaS service, and allow a service person to write codes using a common and familiar language, for example, the edge device 121 may be a device based on a JavaScript code operating environment or a WebAssembly code operating environment, which does not require additional hardware cost, is very friendly to the service person due to development, joint debugging, deployment, and maintenance, and has low development and maintenance costs, so that the entire service system 100 has not only high stability but also low development, operation, and maintenance costs, and the advantages of the FaaS architecture can be embodied on the entire service system 100.
In order to further improve the stability of the FaaS service, in some embodiments, after receiving the service request for the target service sent by the user terminal in step S310, the service processing method may further include the following steps: acquiring the working state of the edge device 121; under the condition that the working state is a normal state, executing the step S320 of obtaining the service content of the target service from the cache of the CND node according to the target service request; and in case the working state is an abnormal state, the Faas source station 130 may be configured to respond to the service request. At this time, the FaaS source station 130 may directly process the service request sent by the user terminal 110 according to the configuration of the edge node 121, and return corresponding service content to the user terminal 110.
In these embodiments, also because the edge device 121 and the FaaS source station service in the service system 100 belong to different systems, the edge device 121 and the FaaS source station 130 are basically not in a situation of abnormal crash at the same time, not only can the edge device 121 be used as a supplement for the FaaS source station 130, but also when the edge device 121 is abnormal, the FaaS source station 130 can be supplemented by automatically returning to the FaaS source station 130 for service processing, so that the FaaS source station 130 can also be a supplement for the edge device 121, and the FaaS source station are mutually supplementary, which can further improve the stability of the FaaS service.
As described above, the edge device 121 is a cache service based on the CDN node 120, and responds to a service request from a user, thereby implementing a service floor. In order to enable the service content corresponding to the service request to exist in the cache for the edge node 121 to provide the cache service, the edge device 121 may be configured to access the FaaS source station based on the set event to obtain the service content and perform caching. Therefore, in some embodiments, before the edge device 121 in step S320 obtains the service content of the target service from the cache of the CDN node 120 according to the service request, the service processing method may further include the following steps: the edge device 121 acquires the service content of the target service from the FaaS source station 130 according to any one of the set events; and updating the cache of the CDN node according to the obtained service content of the target service. The setting event may be set as needed, and may include one event, or may include a plurality of events, and the setting event may include at least one of receiving a simulation request for the target service from the service platform, when the current time reaches the set update time, receiving an update notification sent by the FaaS source station 130, and the like.
In these embodiments, updating the cache according to the obtained service content of the target service may be: and under the condition that the service content of the target service does not exist in the cache, directly storing the acquired service content in the cache, and under the condition that the service content of the target service exists in the cache, replacing the original service content in the cache with the acquired service content to realize the updating of the cache.
The target service in these embodiments may be any service of the target application, and for different services of the target application, the edge device 121 may store corresponding service content in the cache of the CDN node 120 according to the above steps, where the different services may have the same update period or different update periods, which is not limited herein.
In these embodiments, the update of the service content in the cache is performed according to the set event, which can ensure the reliable implementation of the cache service, and provide support and guarantee for improving the stability of the service system 100.
In addition, in these embodiments, the edge device 121 may directly respond to the service request sent by the user based on the service content cached, without accessing the FaaS source station when the service request is received. Moreover, the setting can correspond to the service request sent by the user through the nearby edge device 121, so that the transmission loss can be reduced, the response speed can be increased, and the service performance can be improved.
In some embodiments, the setting event includes that the current time reaches the set update time, and thus, the obtaining the service content of the target service from the Faas source station 130 according to any one of the setting events may include: acquiring an update period of a target service; detecting whether the current time reaches the set updating time or not according to the acquired updating period; and under the condition that the current time reaches the updating time, acquiring the service content of the target service from the Faas source station.
Here, by setting an update cycle of the target service, cache update may be performed periodically, so that the service content in the cache is the latest service content, and validity of the cache service is ensured. For the same target application, different services may have different update periods, and the update periods may be configured according to the update frequency of the service, so that the cache update and the service update of the FaaS source station are consistent.
To improve flexibility of service configuration, configuration data of the target service, including update time, may be set not only when the edge device 121 is deployed, but also may be set to allow service personnel to change the configuration data during the operation of the edge device 121 as needed, that is, the edge device 121 may be set to allow the service platform 140 to configure the target service. In these embodiments, before the update period of obtaining the target service, the method may further include the following steps: the edge device 121 pulls configuration data of the target service from the service platform 140, where the configuration data may include an update period of the target service; and, saving the configuration data locally for retrieval.
In addition to the update time of the target service, the configuration data pulled by the edge device 121 from the service platform may further include configuration data of at least one configuration item, which includes, for example: the method comprises the following steps of flow monitoring configuration items, exception handling configuration items, page rendering configuration items, page skeleton screen configuration items, page gray level configuration items, page display configuration items with abnormal services and the like. The pull time nodes of the edge device 121 for the configuration data of different configuration items may be the same or different, and are not limited herein. The edge device 121 may pull the configuration data from the service platform 140 periodically, or may pull the configuration data from the service platform 140 according to a notification from the service platform 140, which is not limited herein. In other embodiments, setting the event may include receiving a simulation request for the target service from the service platform, so that, as shown in fig. 5, the above-mentioned obtaining the service content of the target service from the Faas source station 130 according to any event of the setting event may include the following steps S510 to S520:
step S510, in case of receiving the simulation request, determining whether the service content of the target service exists in the cache.
Step S520, in the case that the cache does not have the service content, the service content of the target service is acquired from the FaaS source station 130.
In these embodiments, in order to ensure that the cache of the CDN node 120 has the service content of the target service, the service personnel may issue a service request for the target service through the service platform 140, where the service request issued by the service personnel is referred to as an analog request for the target service, so as to be distinguished from the service request issued by the user through the user terminal 110. After receiving the simulation request, the edge device 121 also obtains the service content of the target service from the cache of the CDN node 120, where when obtaining the required service content from the cache, the edge device 121 first detects whether the service content exists in the cache, and if the service content does not exist in the cache, performs a source return process to obtain the service content from the FaaS source station 130, on one hand, stores the service content obtained by the source return in the cache of the CDN node, and on the other hand, can return the service content obtained by the source return to the service platform 140; if the service content exists in the cache, as in step S530 in fig. 5, the service content in the cache may be returned to the service platform 140 without performing the back-to-source process. Through the simulation request, the cache of the CDN node can have corresponding service content for response when the user sends a service request, which can perform first-time cache of the service content and cache processing of temporary update of the service content, thereby effectively improving the stability of the service system 100.
In some embodiments, the edge device 121 may be further configured to monitor the running state of the target service, and feed back the monitoring result to the service platform 140, so that a service worker can grasp the running condition of the target service, and further make necessary adjustment for a possible abnormal condition in time. In these embodiments, after receiving the service request for the target service sent by the user terminal in step S310, the service processing method may further include the following steps: updating the running state data of the target service according to the service request; and sending the running state data to the service platform to monitor the running state of the target service. The operation state data may include flow data of the target service, and the like, and the edge device 121 may count access flow of the target service according to the received service request, further generate and update flow data of the target service, and periodically feed back the flow data to the service platform 140.
In addition, the embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements a service processing method according to any embodiment of the present disclosure. This computer program is also an edge program running in the edge device 121.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the device and apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Embodiments of the present description may be devices, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement aspects of embodiments of the specification.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations for embodiments of the present description may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), can execute computer-readable program instructions to implement various aspects of embodiments of the present specification by utilizing state information of the computer-readable program instructions to personalize the electronic circuit.
Aspects of embodiments of the present specification are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the specification. 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-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present description. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
The foregoing description of the embodiments of the present specification has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A method for edge computing-based traffic handling implemented by an edge device deployed on a content distribution network node, the method comprising:
receiving a service request for a target service sent by a user terminal;
acquiring the service content of the target service from the cache of the content distribution network node according to the service request; the service content is obtained by the edge equipment requesting a FaaS source station and stored in the cache;
and returning the service content to the user terminal for response.
2. The method according to claim 1, wherein before said obtaining the service content of the target service from the cache of the content distribution network node according to the service request, the method further comprises:
acquiring the service content of the target service from the FaaS source station according to any one of the set events;
and updating the cache according to the acquired service content of the target service.
3. The method of claim 2, wherein the setting up the event comprises receiving a simulation request for the target service from a service platform, and wherein the obtaining the service content of the target service from the Faas source station according to any one of the setting up the event comprises:
under the condition that the simulation request is received, determining whether the service content of the target service exists in the cache or not;
and under the condition that the service content of the target service does not exist in the cache, acquiring the service content of the target service from the FaaS source station.
4. The method according to claim 2, wherein the set event comprises that the current time reaches a set update time, and the obtaining the service content of the target service from the Faas source station according to any one of the set events comprises:
acquiring an update cycle of the target service;
detecting whether the current time reaches the updating time or not according to the updating period;
and under the condition that the current time reaches the updating time, acquiring the service content of the target service from the Faas source station.
5. The method of claim 4, wherein before the obtaining the update period corresponding to the target service, the method comprises:
pulling the configuration data of the target service from a service platform; wherein the configuration data comprises an update period of the target service;
and storing the configuration data locally.
6. The method of claim 1, wherein after receiving the service request sent by the user terminal, the method further comprises:
acquiring the working state of the edge equipment;
when the working state is a normal state, executing the step of acquiring the service content of the target service from the cache of the edge device according to the target service request;
and configuring the Faas source station to respond to the service request under the condition that the working state is an abnormal state.
7. The method of claim 1, wherein after receiving the service request sent by the user terminal, the method further comprises:
updating the state data of the target service according to the service request;
and sending the state data to a service platform for state monitoring of the target service.
8. The method of any of claims 1-7, wherein the edge device is a JavaScript code-based execution environment or a WebAssembly code-based execution environment.
9. An edge device, characterized in that it comprises a memory for storing a computer program and a processor for executing the traffic processing method according to any of claims 1 to 8 under the control of said computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a traffic processing method according to any one of claims 1 to 8.
CN202210693371.7A 2022-06-17 2022-06-17 Service processing method based on edge calculation, edge device and readable storage medium Pending CN115080063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210693371.7A CN115080063A (en) 2022-06-17 2022-06-17 Service processing method based on edge calculation, edge device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210693371.7A CN115080063A (en) 2022-06-17 2022-06-17 Service processing method based on edge calculation, edge device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115080063A true CN115080063A (en) 2022-09-20

Family

ID=83254081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210693371.7A Pending CN115080063A (en) 2022-06-17 2022-06-17 Service processing method based on edge calculation, edge device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115080063A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324396A (en) * 2018-03-30 2019-10-11 英特尔公司 Techniques for accelerating edge device workloads
CN112260863A (en) * 2020-10-15 2021-01-22 腾讯科技(深圳)有限公司 Organization-level network equipment connection management method and device and computer equipment
CN113645062A (en) * 2021-07-13 2021-11-12 阿里巴巴新加坡控股有限公司 Page data processing method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324396A (en) * 2018-03-30 2019-10-11 英特尔公司 Techniques for accelerating edge device workloads
CN112260863A (en) * 2020-10-15 2021-01-22 腾讯科技(深圳)有限公司 Organization-level network equipment connection management method and device and computer equipment
CN113645062A (en) * 2021-07-13 2021-11-12 阿里巴巴新加坡控股有限公司 Page data processing method and device and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
刘畅;毋涛;徐雷;: "基于无服务器架构的边缘AI计算平台", 信息通信技术, no. 05, 15 October 2018 (2018-10-15) *
呼吸: "边缘计算遇上Faas —— 统一渲染服务", pages 1 - 11, Retrieved from the Internet <URL:《https://zhuanlan.zhihu.com/p/157346068》> *
腾讯云SERVERLESS团队: "CDN 联合云函数 SCF,轻松实现定时刷新、预热任务", pages 1 - 4, Retrieved from the Internet <URL:《https://cloud.tencent.com/developer/article/1859165》> *
郭世满: "宽带接入技术及应用", 31 March 2006, 北京邮电大学出版社, pages: 312 - 316 *

Similar Documents

Publication Publication Date Title
CN107710157B (en) Multi-tenant computing system and computer implementation method thereof
CN109582310B (en) Data processing method and device, electronic equipment and computer readable storage medium
WO2014107693A1 (en) Method and system for providing cloud-based common distribution applications
US20110238498A1 (en) Service stage for subscription management
CN110378743B (en) Application invitation method, terminal device, server and medium
CN109905431B (en) Message processing method and system, storage medium and electronic equipment
US9986417B2 (en) Global mobility infrastructure for user devices
CN112771928B (en) Method and device for determining satellite return information
CN106658568B (en) Method and equipment for providing available wireless access point information
EP3916596A1 (en) Enterprise embedded subscriber identification module solutions
CN102289449A (en) Location-based service and electronic map display methods and devices
CN113961311A (en) Service data processing method, device, electronic equipment and medium
CN114365107A (en) Network-based media processing (NBMP) workflow management controlled by 5G real-time uplink streaming framework (plus)
CN113645062A (en) Page data processing method and device and electronic equipment
CN110489158B (en) Method, device, medium and electronic equipment for optimizing code hosting platform
Kemp et al. Energy efficient information monitoring applications on smartphones through communication offloading
CN107463395B (en) Component calling method and device
CN115080063A (en) Service processing method based on edge calculation, edge device and readable storage medium
CN110161870B (en) Internet of things equipment control method and system
CN109905435A (en) Resource subscription method and system, storage medium, electronic equipment
CN107135255A (en) The method and apparatus of PUSH message
CN111866071A (en) Data uploading method and device of business application, electronic equipment and storage medium
CN110024445B (en) Mobile device roaming method and apparatus based on network profile of user
CN111182062B (en) Service multi-activity calling method, system and electronic equipment
CN110086880B (en) Method and apparatus for creating instances of network requests

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination