CN111107118B - Picture access acceleration method, device, equipment, system and storage medium - Google Patents

Picture access acceleration method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN111107118B
CN111107118B CN201811260625.6A CN201811260625A CN111107118B CN 111107118 B CN111107118 B CN 111107118B CN 201811260625 A CN201811260625 A CN 201811260625A CN 111107118 B CN111107118 B CN 111107118B
Authority
CN
China
Prior art keywords
picture
accessed
cloud
node
cdn
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.)
Active
Application number
CN201811260625.6A
Other languages
Chinese (zh)
Other versions
CN111107118A (en
Inventor
武林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201811260625.6A priority Critical patent/CN111107118B/en
Publication of CN111107118A publication Critical patent/CN111107118A/en
Application granted granted Critical
Publication of CN111107118B publication Critical patent/CN111107118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a picture access acceleration method, a picture access acceleration device, picture access acceleration equipment, a picture access acceleration system and a storage medium, wherein the method can be applied to Content Delivery Network (CDN) nodes and comprises the following steps: receiving a picture access request sent by a first user side, wherein the picture access request comprises picture information of a picture to be accessed; detecting whether a CDN cache of the user comprises a picture to be accessed or not through picture information; if the CDN cache does not comprise the picture to be accessed, sending a picture access request to a cloud picture service node so that the cloud picture service node processes the picture access request, returning the picture to be accessed corresponding to the picture access request to the CDN node, and receiving the picture to be accessed returned by the cloud picture service node; and returning the picture to be accessed returned by the cloud picture service node to the first user terminal. By the picture access acceleration method, the picture access acceleration device, the picture access acceleration equipment, the picture access acceleration system and the picture access acceleration storage medium, the access pressure of a source server can be relieved.

Description

Picture access acceleration method, device, equipment, system and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, a system, and a storage medium for accelerating picture access.
Background
To increase the speed of accessing web pages by users, speeding up the process of accessing pictures is an important aspect thereof. In a Content Delivery Network (CDN), node servers are placed at various locations of the Network, so that a user's request can be redirected to a node closest to the user in real time according to Network traffic, connection of each CDN node, a load condition, a distance to the user, response time, and other comprehensive information. The method aims to enable the user to obtain the required content nearby, solve the problem of congestion of the Internet network and improve the response speed of the user in accessing the website. Therefore, the acceleration of the picture access can be realized by combining the CDN, for example, the picture to be accessed is stored in each CDN node in advance, and the picture to be accessed is accessed through the CDN node.
However, in an actual application process, since the CDN node does not update a part of the pictures in time, it may be that the part of the pictures cannot be obtained by accessing the CDN node. To avoid this problem, a source returning method is provided in the related art, that is, when an access CDN node cannot acquire a picture to be accessed, an origin server of a user side that stores all pictures is accessed to acquire the picture to be accessed.
However, in the above-described related art, there may be a case where a plurality of access requests are simultaneously transmitted to the origin server, which may cause an excessive access pressure on the origin server.
Disclosure of Invention
The embodiment of the invention aims to provide a picture access acceleration method, a picture access acceleration device, picture access acceleration equipment, a picture access acceleration system and a picture access acceleration storage medium, so that the access pressure of a source server is relieved. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for accelerating picture access, which is applied to a CDN node, and includes:
receiving a picture access request sent by a first user side, wherein the picture access request comprises picture information of a picture to be accessed;
detecting whether the CDN cache of the user comprises the picture to be accessed or not through the picture information;
if the CDN cache does not comprise the picture to be accessed, sending the picture access request to a cloud picture service node, so that the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node;
receiving the picture to be accessed returned by the cloud picture service node;
and returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
Optionally, after detecting whether the to-be-accessed picture is included in the CDN cache of the self through the picture information, the method further includes:
if the CDN cache comprises the picture to be accessed, the picture to be accessed is obtained from the CDN cache, and the picture to be accessed is returned to the first user end.
Optionally, the first user side includes a browser or a client side;
the receiving of the picture access request sent by the first user end includes:
and receiving the picture access request sent to the CDN node by a first user through the browser or the client.
In a second aspect, an embodiment of the present invention provides a method for accelerating picture access, which is applied to a cloud picture service node, and includes:
receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
and processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node.
Optionally, the processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node includes:
detecting whether the cloud picture service cache of the cloud picture service node comprises the picture to be accessed or not according to the picture information;
if the cloud picture service cache comprises the picture to be accessed, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node;
and if the cloud picture service cache does not comprise the picture to be accessed, accessing a cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, acquiring the picture to be accessed from the cloud storage platform and returning the picture to be accessed to the CDN node.
Optionally, the method further includes:
when the picture to be accessed is not stored in the cloud storage platform, the picture to be accessed is obtained from a third-party service node, and the picture to be accessed is returned to the CDN node.
Optionally, when the to-be-accessed picture is not stored on the cloud storage platform, after the to-be-accessed picture is acquired from a third-party service node, the method further includes:
and storing the picture to be accessed to the cloud storage platform.
Optionally, the method further includes:
receiving picture address information sent by a second user end;
obtaining a picture to be stored from a picture address corresponding to the picture address information;
and storing the picture to be stored to a cloud storage platform.
Optionally, after receiving the picture address information sent by the second user end, the method further includes:
determining picture acceleration address information corresponding to picture address information, wherein the picture acceleration address information comprises the CDN node address;
and returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address.
In a third aspect, an embodiment of the present invention provides a picture access acceleration device, which is applied to a CDN node, and includes:
the first receiving module is used for receiving a picture access request sent by a first user terminal, wherein the picture access request comprises picture information of a picture to be accessed;
the detection module is used for detecting whether the CDN cache of the detection module comprises the picture to be accessed or not through the picture information;
a sending module, configured to send the picture access request to a cloud picture service node if the CDN cache does not include the picture to be accessed, so that the cloud picture service node processes the picture access request, and returns the picture to be accessed corresponding to the picture access request to the CDN node;
the second receiving module is used for receiving the picture to be accessed returned by the cloud picture service node;
and the first returning module is used for returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
Optionally, the apparatus further comprises:
and the second returning module is used for obtaining the picture to be accessed from the CDN cache if the CDN cache comprises the picture to be accessed, and returning the picture to be accessed to the first user end.
Optionally, the first client includes a browser or a client;
the first receiving module is specifically configured to receive the picture access request sent by the first user to the CDN node through the browser or the client.
In a fourth aspect, an embodiment of the present invention provides an image access acceleration apparatus, which is applied to a cloud image service node, and includes:
the first receiving module is used for receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
and the processing module is used for processing the picture access request based on the picture information of the picture to be accessed and returning the picture to be accessed corresponding to the picture access request to the CDN node.
Optionally, the processing module includes:
the detection submodule is used for detecting whether the cloud picture service cache of the cloud picture service node comprises the picture to be accessed or not according to the picture information;
the return sub-module is used for acquiring the picture to be accessed from the cloud picture service cache if the picture to be accessed is included in the cloud picture service cache and returning the picture to be accessed to the CDN node;
the return sub-module is further configured to access a cloud storage platform if the to-be-accessed picture is not included in the cloud picture service cache, and when the to-be-accessed picture is stored on the cloud storage platform, obtain the to-be-accessed picture from the cloud storage platform, and return the to-be-accessed picture to the CDN node.
Optionally, the apparatus further comprises:
the first obtaining module is used for obtaining the picture to be accessed from a third-party service node when the picture to be accessed is not stored on the cloud storage platform;
the return submodule is further configured to return the picture to be accessed to the CDN node.
Optionally, the apparatus further comprises: and the first storage module is used for storing the picture to be accessed to the cloud storage platform.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving the picture address information sent by the second user terminal;
the second acquisition module is used for acquiring the picture to be stored from the picture address corresponding to the picture address information;
and the second storage module is used for storing the picture to be stored to a cloud storage platform.
Optionally, the apparatus further comprises:
a determining module, configured to determine picture acceleration address information corresponding to picture address information, where the picture acceleration address information includes the CDN node address;
and the return module is used for returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address.
In a fifth aspect, an embodiment of the present invention provides a picture access acceleration system, including: the system comprises a content delivery network CDN node, a cloud picture service node and a cloud storage platform;
the cloud storage platform is used for carrying out cloud storage on the pictures;
the CDN node is used for receiving a picture access request sent by a first user end, wherein the picture access request comprises picture information of a picture to be accessed, detecting whether a CDN cache of the CDN node comprises the picture to be accessed or not through the picture information, if the CDN cache does not comprise the picture to be accessed, sending the picture access request to the cloud picture service node, and receiving the picture to be accessed returned by the cloud picture service node; returning the picture to be accessed returned by the cloud picture service node to the first user terminal;
the cloud picture service node is configured to receive the picture access request sent by the CDN node, detect whether the picture to be accessed is included in a cloud picture service cache of the cloud picture service node itself according to the picture information, acquire the picture to be accessed from the cloud picture service cache if the picture to be accessed is included in the cloud picture service cache, and return the picture to be accessed to the CDN node, access a cloud storage platform if the picture to be accessed is not included in the cloud picture service cache, and when the picture to be accessed is stored in the cloud storage platform, acquire the picture to be accessed from the cloud storage platform, and return the picture to be accessed to the CDN node.
In a sixth aspect, an embodiment of the present invention provides a CDN node, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface are configured, and the memory completes mutual communication through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of the first aspect when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present invention provides a cloud image service node, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the method steps of the second aspect when executing the program stored in the memory.
In an eighth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps in the first aspect.
In a ninth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of the second aspect.
In a tenth aspect, embodiments of the present invention also provide a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method steps described in the first aspect.
In an eleventh aspect, embodiments of the present invention also provide a computer program product including instructions, which when executed on a computer, cause the computer to perform the method steps of the second aspect.
According to the picture access acceleration method, the device, the equipment, the system and the storage medium provided by the embodiment of the invention, the CDN node receives a picture access request, wherein the picture access request comprises picture information of a picture to be accessed; through the picture information, the user can select the picture, detecting whether a CDN cache of the CDN cache comprises a picture to be accessed or not; and if the CDN cache does not comprise the picture to be accessed, sending a picture access request to the cloud picture service node so that the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request. In this way, the access pressure of the origin server can be relieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for accelerating picture access according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for accelerating picture access according to an embodiment of the present invention;
fig. 3 (a) is another flowchart of a picture access acceleration method according to an embodiment of the present invention;
fig. 3 (b) is another flowchart of a picture access acceleration method according to an embodiment of the present invention;
fig. 4 is another flowchart of a method for accelerating picture access according to an embodiment of the present invention;
FIG. 5 is a flow chart of an embodiment provided by the present invention;
fig. 6 is a schematic structural diagram of a picture access accelerating device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a picture access accelerating device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a picture access accelerating device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an image access accelerating device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a picture access accelerating device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a CDN node according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a cloud image service node according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a picture access acceleration system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
An embodiment of the present invention provides a method for accelerating picture access, as shown in fig. 1, which is applied to a CDN node, and includes:
s101, receiving a picture access request sent by a first user terminal.
The picture access request comprises picture information of a picture to be accessed.
The first user side may comprise a terminal used by the first user accessing the picture. The first client may comprise a browser or a client.
Specifically, receiving a picture access request sent by a first user end may include:
and receiving a picture access request sent to the CDN node by a first user through a browser or a client.
The CDN nodes may be physical nodes or virtual nodes, and may include nodes in which a cloud picture service program is installed, for example, servers.
The picture information may include a picture request address and the like. Specifically, the user may access a web page through a browser or a client, where the web page includes the picture to be accessed, and the web page address may be considered as a picture request address of the picture to be accessed.
For example, a user inputs a domain name of a website to be accessed in a browser of the user, the browser analyzes the domain name to obtain an Internet Protocol Address (IP Address) corresponding to the domain name, and sends a picture access request including the IP Address to the CDN node. The specific CDN node in the content delivery network formed by the multiple CND nodes to which the picture access request is sent may be determined according to a specific policy, and may be understood as a CDN back-to-source policy. For example, the CDN node closest to the IP address in physical distance is determined as the finally determined CDN node, that is, the picture access request including the IP address is sent to the finally determined CDN node. Wherein, the CDN back-to-source strategy can be provided by the provider
S102, detecting whether the CDN cache of the CDN comprises the picture to be accessed or not through the picture information.
The CDN node may obtain a plurality of pictures in advance, and store the plurality of pictures in a CDN cache of the CDN node. Specifically, the plurality of pictures may be stored according to a correspondence relationship between picture information corresponding to each picture and each picture.
Therefore, after receiving the picture access request, the CDN node may parse the picture access request to obtain the picture information of the request to be accessed. And detecting whether the CDN cache comprises the picture to be accessed or not according to the picture information included in the picture access request.
If the CDN cache does not include the picture to be accessed, step S103 may be executed. If the CDN cache includes the picture to be accessed, the picture to be accessed may be obtained from the CDN cache, and the picture to be accessed is returned to the first user.
It is to be simply understood that, if the CDN cache is not hit, step S103 may be executed; if the picture to be accessed is hit in the CDN cache, the picture to be accessed can be obtained from the CDN cache, and the picture to be accessed is returned to the first user end. For example, the picture to be accessed is returned to the browser or client used by the first user, and so on.
S103, sending the picture access request to the cloud picture service node, so that the cloud picture service node processes the picture access request, and returning a picture to be accessed corresponding to the picture access request to the CDN node.
The cloud picture service node is responsible for capturing pictures and storing the pictures into the cloud picture service cache and the cloud storage platform. The cloud storage platform may be understood to include a cloud storage space, which may be managed by a cloud storage server.
Cloud storage refers to a system that integrates a large number of storage devices of different types in a network through application software to cooperatively work through functions such as cluster application, network technology or distributed file systems, and provides data storage and service access functions to the outside.
Specifically, the process of capturing the picture by the cloud picture service node and storing the picture in the cloud storage platform will be described in detail in the following embodiments, which are not described herein again. Therefore, when the CDN node does not include the picture to be accessed, the picture to be accessed can be obtained from a cloud picture service cache of the cloud picture service node or a cloud storage platform according to different conditions, and the picture to be accessed is returned to the first user terminal.
Specifically, the process of processing the picture access request and returning the picture to be accessed corresponding to the picture access request by the cloud picture service node according to different situations will be described in detail in the following embodiments, which are not repeated herein.
And S104, receiving the picture to be accessed returned by the cloud picture service node.
And S105, returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
The first user terminal receives the picture to be accessed, and can load picture resources to realize the access to the picture.
In the embodiment of the invention, the picture to be accessed is not included in the CDN cache, the picture access request is sent to the cloud picture service node, so that the cloud picture service node processes the picture access request, the picture to be accessed corresponding to the picture access request is returned to the CDN node, and the CDN node returns the picture to be accessed to the user side when receiving the picture to be accessed returned by the cloud picture service node. In this way, when the picture to be accessed is not included in the CDN cache, the cloud picture service node is accessed, so that access pressure on the origin server can be alleviated.
An embodiment of the present invention provides a method for accelerating picture access, which is applied to a cloud picture service node as shown in fig. 2, and includes:
s201, receiving a picture access request sent by a CDN node.
The picture access request comprises picture information of a picture to be accessed.
The cloud picture service node receives a picture access request sent by the CDN node.
Specifically, the picture access request may include a request sent by the first user terminal to the CDN node. The first user terminal may include a browser or a client used by the first user, and the like.
Specifically, the first user may access the CDN node through a browser or a client, and when detecting that the CDN cache of the CDN node does not include a picture to be accessed, the CDN node may send a picture access request to the cloud picture service node.
S202, based on the picture information of the picture to be accessed, the picture access request is processed, and the picture to be accessed corresponding to the picture access request is returned to the CDN node.
Therefore, after receiving the picture access request, the cloud picture service node can analyze the picture access request to obtain the picture information of the request to be accessed.
And processing the picture access request according to the picture information included in the picture access request. Specifically, whether to continue accessing the cloud storage platform or not can be judged according to whether the cloud picture service cache of the cloud picture service node per se comprises different pictures to be accessed or not; and determining whether to continue to access the third-party service node according to the difference that whether the cloud storage platform comprises the picture to be accessed. Therefore, according to different conditions, different strategies are determined to acquire the picture to be accessed.
The third-party service node comprises an original position of the picture to be accessed, namely a real address corresponding to the picture to be accessed.
In the embodiment of the invention, the first user terminal receives the picture to be accessed, can load the picture resource and accesses the picture to be accessed.
In the embodiment of the invention, after receiving the picture access request sent by the CDN node, the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node. In this way, access pressure to the origin server can be avoided. And the cloud picture service node can automatically process the picture access request and return the picture to be accessed when receiving the picture access request, and a user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, so that the technical threshold of using picture acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
In an optional embodiment of the present invention, the picture access request may include picture information of a picture to be accessed.
Step S202: processing the picture access request, and returning a picture to be accessed corresponding to the picture access request, as shown in fig. 3 (a), the processing may include:
s2021, detecting whether the cloud picture service cache of the cloud picture service node itself includes a picture to be accessed according to the picture information.
Specifically, the cloud picture service node acquires a plurality of pictures in advance, and stores the plurality of pictures in a cloud picture service cache of the cloud picture service node. Specifically, the plurality of pictures may be stored in correspondence between picture information corresponding to each picture and each picture.
In this way, the cloud picture service node may detect whether the to-be-accessed picture is included in the cloud picture service cache according to the picture information included in the picture access request.
If so, that is, if the cloud picture service cache includes the picture to be accessed, step S2022 may be performed; if not, that is, if the cloud picture service cache does not include the picture to be accessed, step S2023 may be executed.
And S2022, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node.
Specifically, the picture to be accessed may be returned to the first user terminal through the CDN node. For example, the cloud picture service node obtains the picture to be accessed from the cloud picture service cache, and sends the picture to be accessed to the CDN node, and the CDN node receives the picture to be accessed sent by the cloud picture service node, and forwards the picture to be accessed to a first user terminal, such as a browser or a client used by a user.
S2023, accessing the cloud storage platform.
And if the cloud picture service cache does not contain the picture to be accessed, accessing the cloud storage platform.
Specifically, accessing cloud storage may include: and judging whether the picture to be accessed is stored in the cloud storage platform, if so, namely, if the picture to be accessed is stored in the cloud storage platform, executing the step S2024.
And S2024, obtaining the picture to be accessed from the cloud storage platform, and returning the picture to be accessed to the CDN node.
Namely, when the picture to be accessed is stored on the cloud storage platform, the picture to be accessed is obtained from the cloud storage platform, and the picture to be accessed is returned to the CDN node.
Specifically, the picture to be accessed may be returned to the first user terminal through the CDN node. For example, the cloud picture service node acquires the picture to be accessed from the cloud storage platform, and sends the picture to be accessed to the CDN node, and the CDN node receives the picture to be accessed sent by the cloud picture service node and forwards the picture to be accessed to a first user terminal, such as a browser or a client used by a user.
In an alternative embodiment of the present invention, as shown in fig. 3 (b), if the picture to be accessed is not stored in the cloud storage, step S2025 may be executed.
And S2025, obtaining the picture to be accessed from the third-party service node, and returning the picture to be accessed to the CDN node.
And when the picture to be accessed is not stored on the cloud storage platform, obtaining the picture to be accessed from the third-party service node, and returning the picture to be accessed.
The third-party service node comprises an original position of the picture to be accessed, namely a real address corresponding to the picture to be accessed.
That is, when the picture to be accessed is not included in the CDN node, the cloud picture service cache of the cloud picture service node, or the cloud storage platform, the picture to be accessed is obtained from the original location where the picture to be accessed is stored, and the picture to be accessed is returned.
Because the third-party service node includes the original position of the picture to be accessed, that is, when the picture to be accessed is not included in the CDN node, the cloud picture service cache of the cloud picture service node, or the cloud storage platform, the third-party service node is accessed, which can ensure that the picture to be accessed can be acquired, that is, the reliability of access is ensured.
Specifically, the to-be-accessed picture is returned, and the to-be-accessed picture can be returned to the first user terminal through the CDN node. If the cloud picture service node interacts with a third-party service node, the picture to be accessed is obtained from the third-party service node, the picture to be accessed is sent to the CDN node, the CDN node receives the picture to be accessed sent by the cloud picture service node, and the picture to be accessed is forwarded to a first user terminal, such as a browser or a client used by a user.
In the embodiment of the invention, the first user terminal, such as a browser or a client and the like, receives the picture to be accessed, can load the picture resource and access the picture to be accessed.
On the basis of the foregoing embodiment, in an optional embodiment, when the to-be-accessed picture is not stored on the cloud storage platform, after the to-be-accessed picture is acquired from the third-party service node, the method may further include:
and storing the picture to be accessed to the cloud storage platform.
In an implementation manner, as shown in fig. 4, after the step S2025 obtains the picture to be accessed from the third-party service node, and returns the picture to be accessed to the CDN node, the method may further include the step S2026: and storing the picture to be accessed to the cloud storage platform.
In another implementation manner, after the picture to be accessed is obtained from the third-party service node, the processes of returning the picture to be accessed and storing the picture to be accessed to the cloud storage platform are performed at the same time.
Therefore, the cloud picture service nodes are added, and the cloud picture service nodes can automatically capture the pictures to be accessed. And when a next request is made to access the picture to be accessed, the picture to be accessed can be directly obtained from the cloud storage, and a third-party service node does not need to be accessed to obtain the picture to be accessed, so that the access speed can be increased. And the picture is not required to be uploaded manually by the user, so that the operation process of the user is simplified.
On the basis of the above embodiment, the embodiment of the present invention may further include a process in which the cloud picture service node stores the picture in the cloud storage platform in advance. And the process of pre-storing the pictures by the cloud picture service node can be carried out in real time and can be carried out simultaneously with the process of accessing the pictures by the user.
Specifically, the embodiment of the present invention may further include the following steps:
and A1, receiving picture address information sent by a second user terminal.
The second user terminal may be a terminal used by the second user. The second user may include a service provider providing a cloud picture service, and may also be understood as a customer requesting a cloud storage space.
The picture address information is simply understood as information indicating a picture address, wherein the picture address may include an address where a picture to be stored is stored.
And A2, obtaining the picture to be stored from the picture address corresponding to the picture address information.
In one implementation, the picture address may be located at a third party service node that stores the picture.
The cloud picture service node can interact with a third-party service node, and a picture to be stored is obtained from a picture address corresponding to the picture address information in the third-party service node.
And A3, storing the picture to be stored to a cloud storage platform.
Specifically, the picture address and the picture to be stored corresponding to the picture address may be correspondingly stored. Or a plurality of pictures to be stored can be stored according to other picture information of the pictures to be stored. Such as the address of the website to access the picture to be stored, which may also be referred to as a picture access address, and so on.
The cloud picture service node stores a plurality of pictures in the cloud storage platform in advance, so that when the pictures to be accessed by the users accessing the pictures are not included in the CDN node cache and the cloud picture service cache, the cloud picture service node can acquire the pictures to be accessed from the cloud storage platform and return the pictures to be accessed to the CDN node, so that the CDN node receives the pictures to be accessed and returns the pictures to be accessed to the user terminal used by the users accessing the pictures, and the users can access the pictures.
In order to speed up the process of accessing the picture by combining the CDN node, a CDN back-to-source policy needs to be configured, that is, when the user accesses the picture, to which CDN node the picture access request is sent. In an alternative embodiment, the automatic configuration may be performed by the cloud picture service node.
Specifically, after receiving the picture address information sent by the second user, the embodiment of the present invention may further include:
and B1, determining picture acceleration address information corresponding to the picture address information.
The picture acceleration address information includes a CDN node address.
And B2, returning the picture acceleration address information to the second user side so that the second user configures the access address of the picture to be stored as a CDN node address.
Therefore, a source returning strategy of the CDN and a CDN acceleration domain name do not need to be configured by a user, and the technical threshold of using pictures for acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
An embodiment of the present invention further provides a specific embodiment, as shown in fig. 5, including:
s501, the browser accesses the CDN node.
The first user accesses the CDN node through a browser.
In another optional implementation manner, the first user may also access the CDN node through a client.
Specifically, a picture access request may be sent to the CDN node. The picture access request comprises picture information of a picture to be accessed.
Therefore, the CDN node receives the picture access request, analyzes the access request and obtains the picture information. And detecting whether the CDN cache of the user comprises the picture to be accessed or not through the picture information.
If the CDN cache includes a picture to be accessed, then step S502 is executed; if the CDN cache does not include the picture to be accessed, step S503 is executed.
And S502, returning the picture to be accessed.
And the CDN node acquires the picture to be accessed from the CDN cache and returns the picture to be accessed to the first user terminal.
And S503, accessing the cloud picture service node.
It can be simply understood that, when the CND cache is missed, the CND cache is sourced back to the cloud picture service node. Specifically, the CDN node may forward the picture access request to the cloud picture service node.
And the cloud picture service node receives the picture access request, analyzes the access request and obtains the picture information. And detecting whether the cloud picture service cache of the cloud picture service cache comprises the picture to be accessed or not through the picture information. If the cloud picture service cache comprises the picture to be accessed, executing step S504; if the cloud picture service cache does not include the picture to be accessed, step S505 is executed.
And S504, returning the picture to be accessed.
The cloud picture service node acquires the picture to be accessed from the cloud picture service cache, returns the picture to be accessed to the CDN node, and the CDN node receives the access picture and forwards the picture to be accessed to the first user terminal, such as a browser used by a user.
And S505, accessing the cloud storage platform.
It can be simply understood that, when the cloud picture service cache is missed, the cloud picture service node accesses the cloud storage platform. The cloud picture service node judges whether the picture to be accessed is stored on the cloud storage platform or not, and if the picture to be accessed is stored on the cloud storage platform, the step S506 is executed; if the pictures to be accessed are not stored on the cloud storage platform, step S507 is executed.
And S506, returning the picture to be accessed.
The cloud picture service node acquires the picture to be accessed from the cloud storage platform and returns the picture to be accessed to the CDN node, and the CDN node receives the picture to be accessed and forwards the picture to be accessed to a first user terminal, such as a browser used by a user.
And S507, accessing a third-party service node.
And S508, obtaining the picture to be accessed from the third-party service node, and returning the picture to be accessed.
The third-party service node comprises an original position of the picture to be accessed, namely a real address corresponding to the picture to be accessed.
Namely, when the picture to be accessed is not stored in the CDN node, the cloud picture service cache of the cloud picture service node, or the cloud storage platform, the picture to be accessed is obtained from the original location where the picture to be accessed is stored, and the picture to be accessed is returned.
Since the third-party service node includes the original position of the picture to be accessed, that is, when the picture to be accessed is not included in the CDN node, the cloud picture service cache of the cloud picture service node, or the cloud storage platform, the third-party service node is accessed, which can ensure that the picture to be accessed can be obtained, that is, reliability of access is ensured.
Specifically, the to-be-accessed picture is returned, and the to-be-accessed picture can be returned to the first user terminal through the CDN node. If the cloud picture service node interacts with the third-party service node, the picture to be accessed is obtained from the third-party service node and is sent to the CDN node, and the CDN node receives the picture to be accessed sent by the cloud picture service node and forwards the picture to be accessed to the first user terminal, such as a browser used by a user.
And S509, saving to a cloud storage platform.
And storing the picture to be accessed to the cloud storage platform. And storing the picture to a cloud storage platform, wherein the picture is successfully stored. When a request is made to access the picture to be accessed next time, the picture to be accessed can be directly obtained from the cloud storage platform, a third-party service node does not need to be accessed to obtain the picture to be accessed, and the access speed can be improved.
In the embodiment of the invention, the first user terminal receives the picture to be accessed, can load the picture resource and accesses the picture to be accessed.
In the embodiment of the invention, the picture source returning flow cannot fall on the source server of the user side, so that the bandwidth consumption of the user and the access pressure of the service are reduced. And the user submits the picture address, the cloud picture service node generates a picture acceleration address, and the picture acceleration address is returned to the user; and the user page loads corresponding picture resources by using the picture acceleration address to realize the access to the picture. The user can acquire the accelerated picture acceleration address only by providing the picture address. And full-automatic picture acceleration is realized. In addition, in the embodiment of the invention, the cloud picture service node automatically stores the picture in the cloud storage platform, so that the trouble that a user needs to upload the picture to the cloud storage manually or by a custom program is solved. Meanwhile, the user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, and the technical threshold of using pictures for acceleration by the user is greatly reduced.
An embodiment of the present invention provides a picture access acceleration device, as shown in fig. 6, which is applied to a CDN node, and includes:
a first receiving module 601, configured to receive a picture access request sent by a first user, where the picture access request includes picture information of a picture to be accessed;
the detection module 602 is configured to detect whether a CDN cache of the detection module itself includes a picture to be accessed according to picture information;
the sending module 603 is configured to send a picture access request to the cloud picture service node if the CDN cache does not include a picture to be accessed, so that the cloud picture service node processes the picture access request, and returns the picture to be accessed corresponding to the picture access request to the CDN node;
a second receiving module 604, configured to receive a to-be-accessed picture returned by the cloud picture service node;
the first returning module 605 is configured to return the to-be-accessed picture returned by the cloud picture service node to the first user side.
In the embodiment of the invention, the picture to be accessed is not included in the CDN cache, the picture access request is sent to the cloud picture service node, so that the cloud picture service node processes the picture access request, the picture to be accessed corresponding to the picture access request is returned to the CDN node, and the CDN node returns the picture to be accessed to the user side when receiving the picture to be accessed returned by the cloud picture service node. In this way, when the CDN cache does not include a picture to be accessed, the cloud picture service node is accessed, so that the access pressure on the origin server can be reduced.
Optionally, as shown in fig. 7, the apparatus further includes:
the second returning module 606 is configured to, if the CDN cache includes the picture to be accessed, obtain the picture to be accessed from the CDN cache, and return the picture to be accessed to the first user.
Optionally, the first user side includes a browser or a client side;
the first receiving module 601 is specifically configured to receive a picture access request sent by a first user to a CDN node through a browser or a client.
It should be noted that the image access acceleration device provided in the embodiment of the present invention is a device to which the image access acceleration method applied to the CDN node is applied, and all embodiments of the image access acceleration method applied to the CDN node are applicable to the device and can achieve the same or similar beneficial effects.
An embodiment of the present invention provides an image access acceleration apparatus, as shown in fig. 8, which is applied to a cloud image service node, and includes:
the first receiving module 801 is configured to receive a picture access request sent by a CDN node, where the picture access request includes picture information of a picture to be accessed;
the processing module 802 is configured to process the picture access request based on the picture information of the picture to be accessed, and return the picture to be accessed corresponding to the picture access request to the CDN node.
In the embodiment of the invention, after receiving the picture access request sent by the CDN node, the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node. In this way, access pressure to the origin server can be avoided. And the cloud picture service node can automatically process the picture access request and return the picture to be accessed when receiving the picture access request, and a user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, so that the technical threshold of using picture acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
Optionally, as shown in fig. 9, the processing module 802 includes:
the detection submodule 8021 is configured to detect, according to the picture information, whether a cloud picture service cache of the cloud picture service node itself includes a picture to be accessed;
a returning sub-module 8022, configured to, if the cloud picture service cache includes the picture to be accessed, obtain the picture to be accessed from the cloud picture service cache, and return the picture to be accessed to the CDN node;
the returning sub-module 8022 is further configured to, if the cloud picture service cache does not include the picture to be accessed, access the cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, obtain the picture to be accessed from the cloud storage platform, and return the picture to be accessed to the CDN node.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring the picture to be accessed from the third-party service node when the picture to be accessed is not stored on the cloud storage platform;
the returning sub-module 8022 is further configured to return the picture to be accessed to the CDN node.
Optionally, as shown in fig. 10, the apparatus further includes: the first saving module 803 is configured to save the picture to be accessed to the cloud storage platform.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving the picture address information sent by the second user terminal;
the second acquisition module is used for acquiring the picture to be stored from the picture address corresponding to the picture address information;
and the second storage module is used for storing the picture to be stored to the cloud storage platform.
Optionally, the apparatus further comprises:
the determining module is used for determining picture acceleration address information corresponding to the picture address information, and the picture acceleration address information comprises a CDN node address;
and the return module is used for returning the image acceleration address information to the second user terminal so that the second user configures the access address of the image to be stored as the CDN node address.
It should be noted that, the image access acceleration device provided in the embodiment of the present invention is a device to which the image access acceleration method applied to the cloud image service node is applied, and all embodiments of the image access acceleration method applied to the cloud image service node are applicable to the device and can achieve the same or similar beneficial effects.
An embodiment of the present invention further provides a CDN node, as shown in fig. 11, including a processor 1101, a communication interface 1102, a memory 1103, and a communication bus 1104, where the processor 1101, the communication interface 1102, and the memory 1103 complete communication with each other through the communication bus 1104.
A memory 1103 for storing a computer program;
the processor 1101 is configured to execute the above-described image access acceleration method applied to the CDN node when executing the program stored in the memory 1103, and implement the following steps:
receiving a picture access request sent by a first user side, wherein the picture access request comprises picture information of a picture to be accessed;
detecting whether a CDN cache of the user comprises a picture to be accessed or not through picture information;
if the CDN cache does not comprise the picture to be accessed, sending a picture access request to the cloud picture service node so that the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node;
receiving a picture to be accessed returned by the cloud picture service node;
and returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
Optionally, after detecting whether the CDN cache of the CDN itself includes the picture to be accessed through the picture information, the method may further include:
and if the CDN cache comprises the picture to be accessed, obtaining the picture to be accessed from the CDN cache, and returning the picture to be accessed to the first user terminal.
Optionally, the first user side includes a browser or a client side;
receiving a picture access request sent by a first user side, wherein the picture access request comprises:
and receiving a picture access request sent to the CDN node by a first user through a browser or a client.
In the embodiment of the invention, the picture to be accessed is not included in the CDN cache, the picture access request is sent to the cloud picture service node, so that the cloud picture service node processes the picture access request, the picture to be accessed corresponding to the picture access request is returned to the CDN node, and the CDN node returns the picture to be accessed to the user side when receiving the picture to be accessed returned by the cloud picture service node. In this way, when the picture to be accessed is not included in the CDN cache, the cloud picture service node is accessed, so that access pressure on the origin server can be alleviated.
The communication bus mentioned in the CDN node may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the CDN node and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The embodiment of the present invention further provides a cloud image service node, as shown in fig. 12, including a processor 1201, a communication interface 1202, a memory 1203, and a communication bus 1204, where the processor 1201, the communication interface 1202, and the memory 1203 complete communication with each other through the communication bus 1204.
A memory 1203 for storing a computer program;
the processor 1201 is configured to, when executing the program stored in the memory 1203, execute the above-mentioned picture access acceleration method applied to the cloud picture service node, and implement the following steps:
receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
and processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node.
Optionally, the processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node, includes:
detecting whether a cloud picture service cache of a cloud picture service node comprises a picture to be accessed or not according to the picture information;
if the cloud picture service cache comprises the picture to be accessed, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node;
and if the cloud picture service cache does not comprise the picture to be accessed, accessing the cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, acquiring the picture to be accessed from the cloud storage platform and returning the picture to be accessed to the CDN node.
Optionally, the method may further include:
when the picture to be accessed is not stored on the cloud storage platform, the picture to be accessed is obtained from the third-party service node, and the picture to be accessed is returned to the CDN node.
Optionally, when the picture to be accessed is not stored on the cloud storage platform, after the picture to be accessed is obtained from the third-party service node, the method may further include:
and storing the picture to be accessed to the cloud storage platform.
Optionally, the method may further include:
receiving picture address information sent by a second user end;
acquiring a picture to be stored from a picture address corresponding to the picture address information;
and storing the picture to be stored to the cloud storage platform.
Optionally, after receiving the picture address information sent by the second user end, the method may further include:
determining picture acceleration address information corresponding to the picture address information, wherein the picture acceleration address information comprises a CDN node address;
and returning the picture acceleration address information to the second user side so that the second user configures the access address of the picture to be stored as the CDN node address.
In the embodiment of the invention, after receiving the picture access request sent by the CDN node, the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node. In this way, access pressure to the origin server can be avoided. And the cloud picture service node can automatically process the picture access request and return the picture to be accessed when receiving the picture access request, and a user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, so that the technical threshold of using picture acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
The communication bus mentioned in the cloud picture service node may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the cloud picture service node and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
An embodiment of the present invention further provides a system for accelerating picture access, as shown in fig. 13, including: CDN node 1301, cloud picture service node 1302, and cloud storage platform 1303.
And the cloud storage platform 1303 is used for performing cloud storage on the pictures.
The CDN node 1301 is configured to receive a picture access request sent by a first user, where the picture access request includes picture information of a picture to be accessed, detect whether a self CDN cache includes the picture to be accessed through the picture information, send the picture access request to the cloud picture service node 1302 if the CDN cache does not include the picture to be accessed, and receive the picture to be accessed returned by the cloud picture service node 1302; and returning the picture to be accessed returned by the cloud picture service node 1302 to the first user side.
The cloud picture service node 1302 is configured to receive a picture access request sent by the CDN node 1301, detect whether a picture to be accessed is included in a cloud picture service cache of the cloud picture service node 1302 according to picture information, acquire the picture to be accessed from the cloud picture service cache if the cloud picture service cache includes the picture to be accessed, and return the picture to be accessed to the CDN node 1301, access the cloud storage platform 1303 if the cloud picture service cache does not include the picture to be accessed, and when the picture to be accessed is stored on the cloud storage platform 1303, acquire the picture to be accessed from the cloud storage platform 1303 and return the picture to be accessed to the CDN node 1301.
In the embodiment of the present invention, CDN node 1301 receives a picture access request, where the picture access request includes picture information of a picture to be accessed; detecting whether a CDN cache of the user comprises a picture to be accessed or not through picture information; if the CDN cache does not include the picture to be accessed, the picture access request is sent to the cloud picture service node 1302, so that the cloud picture service node 1302 processes the picture access request and returns the picture to be accessed corresponding to the picture access request. In this way, the access pressure of the origin server can be relieved.
It should be noted that the image access acceleration system provided in the embodiment of the present invention is a system applying the image access acceleration method, and all embodiments of the image access acceleration method are applicable to the apparatus and can achieve the same or similar beneficial effects.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program realizes the image access acceleration method applied to the CDN node, and specifically realizes the following steps:
receiving a picture access request sent by a first user side, wherein the picture access request comprises picture information of a picture to be accessed;
detecting whether a CDN cache of the user comprises a picture to be accessed or not through picture information;
if the CDN cache does not comprise the picture to be accessed, sending a picture access request to the cloud picture service node so that the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node;
receiving a picture to be accessed returned by the cloud picture service node;
and returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
Optionally, after detecting whether the CDN cache of the CDN itself includes the picture to be accessed through the picture information, the method may further include:
and if the CDN cache comprises the picture to be accessed, obtaining the picture to be accessed from the CDN cache, and returning the picture to be accessed to the first user terminal.
Optionally, the first user side includes a browser or a client side;
receiving a picture access request sent by a first user side, wherein the picture access request comprises:
and receiving a picture access request sent to the CDN node by a first user through a browser or a client.
In the embodiment of the invention, the picture to be accessed is not included in the CDN cache, the picture access request is sent to the cloud picture service node, so that the cloud picture service node processes the picture access request, the picture to be accessed corresponding to the picture access request is returned to the CDN node, and the CDN node returns the picture to be accessed to the user side when receiving the picture to be accessed returned by the cloud picture service node. In this way, when the CDN cache does not include a picture to be accessed, the cloud picture service node is accessed, so that the access pressure on the origin server can be reduced.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the image access acceleration method applied to a cloud image service node is realized, and the following steps are realized:
receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
and processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node.
Optionally, the processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node, includes:
detecting whether a cloud picture service cache of a cloud picture service node comprises a picture to be accessed or not according to the picture information;
if the cloud picture service cache comprises the picture to be accessed, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node;
and if the cloud picture service cache does not comprise the picture to be accessed, accessing the cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, acquiring the picture to be accessed from the cloud storage platform and returning the picture to be accessed to the CDN node.
Optionally, the method may further include:
and when the picture to be accessed is not stored on the cloud storage platform, the picture to be accessed is obtained from the third-party service node, and the picture to be accessed is returned to the CDN node.
Optionally, when the picture to be accessed is not stored on the cloud storage platform, after the picture to be accessed is obtained from the third-party service node, the method may further include:
and storing the picture to be accessed to the cloud storage platform.
Optionally, the method may further include:
receiving picture address information sent by a second user end;
acquiring a picture to be stored from a picture address corresponding to the picture address information;
and storing the picture to be stored to the cloud storage platform.
Optionally, after receiving the picture address information sent by the second user end, the method may further include:
determining picture acceleration address information corresponding to the picture address information, wherein the picture acceleration address information comprises a CDN node address;
and returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address.
In the embodiment of the invention, after receiving the picture access request sent by the CDN node, the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node. In this way, access pressure to the origin server can be avoided. And the cloud picture service node can automatically process the picture access request and return the picture to be accessed when receiving the picture access request, and a user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, so that the technical threshold of using picture acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
In another embodiment of the present invention, a computer program product including instructions is further provided, which when running on a computer, causes the computer to execute the above image access acceleration method applied to the CDN node, and specifically implements the following steps:
receiving a picture access request sent by a first user side, wherein the picture access request comprises picture information of a picture to be accessed;
through the picture information, the user can select the picture, detecting whether a CDN cache of the CDN comprises a picture to be accessed or not;
if the CDN cache does not comprise the picture to be accessed, sending a picture access request to the cloud picture service node so that the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node;
receiving a picture to be accessed returned by the cloud picture service node;
and returning the picture to be accessed returned by the cloud picture service node to the first user terminal.
Optionally, after detecting whether the CDN cache of the CDN itself includes the picture to be accessed through the picture information, the method may further include:
and if the CDN cache comprises the picture to be accessed, obtaining the picture to be accessed from the CDN cache, and returning the picture to be accessed to the first user terminal.
Optionally, the first user side includes a browser or a client;
receiving a picture access request sent by a first user terminal, wherein the picture access request comprises the following steps:
and receiving a picture access request sent to the CDN node by a first user through a browser or a client.
In the embodiment of the invention, the picture to be accessed is not included in the CDN cache, the picture access request is sent to the cloud picture service node, so that the cloud picture service node processes the picture access request, the picture to be accessed corresponding to the picture access request is returned to the CDN node, and the CDN node returns the picture to be accessed to the user side when receiving the picture to be accessed returned by the cloud picture service node. In this way, when the picture to be accessed is not included in the CDN cache, the cloud picture service node is accessed, so that access pressure on the origin server can be alleviated.
In another embodiment provided by the present invention, a computer program product containing instructions is further provided, which when run on a computer, causes the computer to execute the above-mentioned picture access acceleration method applied to a cloud picture service node, and implement the following steps:
receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
and processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node.
Optionally, the processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node, includes:
detecting whether a cloud picture service cache of a cloud picture service node comprises a picture to be accessed or not according to the picture information;
if the cloud picture service cache comprises the picture to be accessed, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node;
and if the cloud picture service cache does not comprise the picture to be accessed, accessing the cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, acquiring the picture to be accessed from the cloud storage platform and returning the picture to be accessed to the CDN node.
Optionally, the method may further include:
when the picture to be accessed is not stored on the cloud storage platform, the picture to be accessed is obtained from the third-party service node, and the picture to be accessed is returned to the CDN node.
Optionally, when the picture to be accessed is not stored on the cloud storage platform, after the picture to be accessed is obtained from the third-party service node, the method may further include:
and storing the picture to be accessed to the cloud storage platform.
Optionally, the method may further include:
receiving picture address information sent by a second user end;
acquiring a picture to be stored from a picture address corresponding to the picture address information;
and storing the picture to be stored to the cloud storage platform.
Optionally, after receiving the picture address information sent by the second user end, the method may further include:
determining picture acceleration address information corresponding to the picture address information, wherein the picture acceleration address information comprises a CDN node address;
and returning the picture acceleration address information to the second user side so that the second user configures the access address of the picture to be stored as the CDN node address.
In the embodiment of the invention, after receiving the picture access request sent by the CDN node, the cloud picture service node processes the picture access request and returns the picture to be accessed corresponding to the picture access request to the CDN node. In this way, access pressure to the origin server can be avoided. And the cloud picture service node can automatically process the picture access request and return the picture to be accessed when receiving the picture access request, and a user does not need to configure a back-source strategy of the CDN and a CDN acceleration domain name, so that the technical threshold of using picture acceleration by the user is greatly reduced. Meanwhile, the calculation complexity of the user side is reduced.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the CDN node, the cloud picture service node, the system and the storage medium, since they are substantially similar to the embodiments of the method, the description is relatively simple, and for relevant points, reference may be made to the partial description of the embodiments of the method.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (9)

1. A picture access acceleration method is applied to a cloud picture service node and comprises the following steps:
receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node;
receiving picture address information sent by a second user end;
acquiring a picture to be stored from a picture address corresponding to the picture address information;
storing the picture to be stored to a cloud storage platform;
after receiving the picture address information sent by the second user end, the method further includes:
determining picture acceleration address information corresponding to picture address information, wherein the picture acceleration address information comprises the CDN node address;
returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address;
the processing the picture access request based on the picture information of the picture to be accessed, and returning the picture to be accessed corresponding to the picture access request to the CDN node, includes:
detecting whether the cloud picture service cache of the cloud picture service node comprises the picture to be accessed or not according to the picture information, wherein the picture information comprises a picture request address;
if the cloud picture service cache comprises the picture to be accessed, obtaining the picture to be accessed from the cloud picture service cache, and returning the picture to be accessed to the CDN node;
and if the cloud picture service cache does not comprise the picture to be accessed, accessing a cloud storage platform, and when the picture to be accessed is stored on the cloud storage platform, acquiring the picture to be accessed from the cloud storage platform and returning the picture to be accessed to the CDN node.
2. The method of claim 1, further comprising:
when the picture to be accessed is not stored in the cloud storage platform, the picture to be accessed is obtained from a third-party service node, and the picture to be accessed is returned to the CDN node.
3. The method according to claim 2, wherein when the picture to be accessed is not stored on the cloud storage platform, after the picture to be accessed is obtained from a third-party service node, the method further comprises:
and storing the picture to be accessed to the cloud storage platform.
4. The picture access accelerating device is applied to a cloud picture service node and comprises the following components:
the first receiving module is used for receiving a picture access request sent by a CDN node, wherein the picture access request comprises picture information of a picture to be accessed;
the processing module is used for processing the picture access request based on the picture information of the picture to be accessed and returning the picture to be accessed corresponding to the picture access request to the CDN node;
the second receiving module is used for receiving the picture address information sent by the second user terminal;
the second acquisition module is used for acquiring the picture to be stored from the picture address corresponding to the picture address information;
the second storage module is used for storing the picture to be stored to a cloud storage platform;
the device further comprises:
a determining module, configured to determine picture acceleration address information corresponding to picture address information, where the picture acceleration address information includes the CDN node address;
the return module is used for returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address;
the processing module comprises:
the detection submodule is used for detecting whether the cloud picture service cache of the cloud picture service node comprises the picture to be accessed or not according to the picture information, and the picture information comprises a picture request address;
the return submodule is used for acquiring the picture to be accessed from the cloud picture service cache and returning the picture to be accessed to the CDN node if the picture to be accessed is included in the cloud picture service cache;
the return sub-module is further configured to access a cloud storage platform if the to-be-accessed picture is not included in the cloud picture service cache, and when the to-be-accessed picture is stored on the cloud storage platform, obtain the to-be-accessed picture from the cloud storage platform, and return the to-be-accessed picture to the CDN node.
5. The apparatus of claim 4, further comprising:
the first obtaining module is used for obtaining the picture to be accessed from a third-party service node when the picture to be accessed is not stored on the cloud storage platform;
the return submodule is further configured to return the picture to be accessed to the CDN node.
6. The apparatus of claim 5, further comprising: and the first storage module is used for storing the picture to be accessed to the cloud storage platform.
7. A picture access acceleration system, comprising: the system comprises a content delivery network CDN node, a cloud picture service node and a cloud storage platform;
the cloud storage platform is used for carrying out cloud storage on the pictures;
the CDN node is used for receiving a picture access request sent by a first user end, wherein the picture access request comprises picture information of a picture to be accessed, detecting whether a CDN cache of the CDN node comprises the picture to be accessed or not through the picture information, if the CDN cache does not comprise the picture to be accessed, sending the picture access request to the cloud picture service node, and receiving the picture to be accessed returned by the cloud picture service node; returning the picture to be accessed returned by the cloud picture service node to the first user terminal;
the cloud picture service node is configured to receive the picture access request sent by a CDN node, detect whether a cloud picture service cache of the cloud picture service node itself includes the picture to be accessed according to the picture information, acquire the picture to be accessed from the cloud picture service cache if the cloud picture service cache includes the picture to be accessed, and return the picture to be accessed to the CDN node, access a cloud storage platform if the cloud picture service cache does not include the picture to be accessed, and when the picture to be accessed is stored on the cloud storage platform, acquire the picture to be accessed from the cloud storage platform and return the picture to be accessed to the CDN node, where the picture information includes a picture request address;
the cloud picture service node is also used for receiving picture address information sent by a second user end; obtaining a picture to be stored from a picture address corresponding to the picture address information; storing the picture to be stored to a cloud storage platform;
the cloud picture service node is further configured to determine picture acceleration address information corresponding to picture address information, where the picture acceleration address information includes the CDN node address; and returning the image acceleration address information to the second user side so that the second user configures the access address of the image to be stored as the CDN node address.
8. The cloud picture service node is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are used for completing communication with each other through the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-3.
9. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN201811260625.6A 2018-10-26 2018-10-26 Picture access acceleration method, device, equipment, system and storage medium Active CN111107118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811260625.6A CN111107118B (en) 2018-10-26 2018-10-26 Picture access acceleration method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260625.6A CN111107118B (en) 2018-10-26 2018-10-26 Picture access acceleration method, device, equipment, system and storage medium

Publications (2)

Publication Number Publication Date
CN111107118A CN111107118A (en) 2020-05-05
CN111107118B true CN111107118B (en) 2023-04-18

Family

ID=70418561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260625.6A Active CN111107118B (en) 2018-10-26 2018-10-26 Picture access acceleration method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN111107118B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112040260A (en) * 2020-08-28 2020-12-04 咪咕视讯科技有限公司 Screenshot method, screenshot device, screenshot equipment and computer-readable storage medium
CN114760356A (en) * 2020-12-29 2022-07-15 北京金山云网络技术有限公司 Data reading request processing method and device and data reading request processing system
CN113472888B (en) * 2021-07-07 2024-01-05 挂号网(杭州)科技有限公司 Webpage access method and device, server equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN104506647A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Data storage system as well as data storage method and data access method
CN104601534A (en) * 2014-04-28 2015-05-06 贵州格安科技有限公司 Method and system for processing CDN system images
CN105530297A (en) * 2015-12-11 2016-04-27 北京奇虎科技有限公司 Webpage resource bundle uploading method and device
CN108600281A (en) * 2017-03-16 2018-09-28 杭州海康威视数字技术股份有限公司 A kind of cloud storage system, media data storage method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104980416A (en) * 2014-07-31 2015-10-14 腾讯科技(深圳)有限公司 Data access method, device and system in content distribution network
CN104754042A (en) * 2015-03-13 2015-07-01 网宿科技股份有限公司 Picture releasing and uploading acceleration method and system using CDN (content distribution network)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581245A (en) * 2012-07-30 2014-02-12 腾讯科技(深圳)有限公司 Content delivery method and system of content delivery network
CN104601534A (en) * 2014-04-28 2015-05-06 贵州格安科技有限公司 Method and system for processing CDN system images
CN104506647A (en) * 2014-12-31 2015-04-08 北京奇艺世纪科技有限公司 Data storage system as well as data storage method and data access method
CN105530297A (en) * 2015-12-11 2016-04-27 北京奇虎科技有限公司 Webpage resource bundle uploading method and device
CN108600281A (en) * 2017-03-16 2018-09-28 杭州海康威视数字技术股份有限公司 A kind of cloud storage system, media data storage method and system

Also Published As

Publication number Publication date
CN111107118A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107360010B (en) Website gray level publishing method and device
CN111107118B (en) Picture access acceleration method, device, equipment, system and storage medium
WO2016192488A1 (en) Rolling release assessment method, device, and system
US8301748B2 (en) Managing CDN registration by a storage provider
CN111092877B (en) Data processing method and device, electronic equipment and storage medium
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
US9588854B2 (en) Systems and methods for a secondary website with mirrored content for automatic failover
CN107395783B (en) IP address processing method, system, device and electronic equipment
US11089128B2 (en) Content node selection using network performance profiles
CN104219230B (en) Identify method and the device of malicious websites
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN108200132B (en) Resource acquisition method, device, equipment and computer readable storage medium
CN110677684B (en) Video processing method, video access method, distributed storage method and distributed video access system
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
CN109086158B (en) Abnormal cause analysis method and device and server
CN111385316A (en) Resource refreshing method, access method and device
CN102938716A (en) Content distribution network acceleration test method and device
CN111090449A (en) API service access method and device and electronic equipment
CN103401861A (en) Method and device of identifying proxy Internet
CN103716319A (en) Device and method for Web access optimization
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN107634854B (en) Service data processing method and device
CN112866062A (en) Distributed pressure test system, method, device, equipment and storage medium
CN112468585A (en) Data transmission method and device, electronic equipment and storage medium
CN112149017A (en) Webpage access method, device and system, electronic equipment and storage medium

Legal Events

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