Data preheating method, device and electronic device for CDN network

By automatically triggering the preheating process using the first preheating component and message queue in the CDN network, the impact of data preheating on network stability is solved, and the preheating efficiency and network stability are improved.

CN115550446BActive Publication Date: 2025-07-11BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110737113.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-30
Publication Date
2025-07-11
Estimated Expiration
2041-06-30

AI Technical Summary

Technical Problem

Existing CDN networks are prone to affect network stability during data preheating, resulting in unstable service, low preheating efficiency, and may lead to the collapse of the source station.

Method used

The first preheating component obtains the initial message from the message queue, generates a preheating message, and sends it to the second preheating component, instructing the designated CDN network node to obtain the preheating data from the source station, and uses the message queue and preheating component to perform current limiting processing, and automatically triggers the preheating process.

Benefits of technology

It improves the preheating efficiency, ensures the stability of the CDN network, avoids the impact of the preheating process on the normal operation of the network, and achieves smooth preheating of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550446B_ABST
    Figure CN115550446B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and electronic device for data preheating in a CDN network. An initial message is obtained from a first message queue by a first preheating component; the message is pre-pushed to the first message queue by a CDN network origin server; a preheating message is generated based on the initial message; and the preheating message is sent to a second preheating component so that the second preheating component notifies a specified CDN network node to obtain data to be preheated from the origin server. This method can quickly sense data changes in the origin server through the first message queue and automatically trigger the preheating process; the first preheating component processes the initial message with stable performance, improving the preheating efficiency, and the message queue and the preheating component have a flow-limiting effect on the preheating message, so that the preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of CDN networks, and in particular to a method, device, and electronic device for preheating data in a CDN network. Background Art

[0002] In a CDN (Content Delivery Network) network, the resource data accessed by the CDN network can be preheated first. Specifically, the resource data of the user is pushed from the source station of the CDN network to the edge nodes. When the resource data is accessed, the resource data can be directly provided from the edge nodes without going back to the source station to obtain it, which can improve the response speed of resource access.

[0003] In related technologies, preheating is usually triggered actively by users. After a user initiates a preheating request, the preheating request is cached in a preheating queue, and then the preheating request is queued and responded to according to a certain rule to perform related preheating operations. The preheating process usually requires occupying the network bandwidth resources of the CDN network and the request processing resources of the source station. When users actively trigger preheating, in most cases, the amount of resource data to be preheated is large. At this time, it is easy to affect the normal operation of the CDN network and cause the service of the CDN network to be unstable. In addition, during the preheating process, affected by factors such as CDN network fluctuations, limited processing capabilities of the source station, and restrictions on preheated data volume and preheating bandwidth by CDN network service providers, it is easy for resource data not to be quickly preheated to the edge nodes, resulting in low preheating efficiency. Furthermore, a large number of back-to-source requests are caused. If the number of back-to-source requests exceeds the processing capacity of the source station, the source station may crash, further leading to the instability of the CDN network service. Summary of the Invention

[0004] In view of this, an object of the present invention is to provide a method, device, and electronic device for preheating data in a CDN network to improve the preheating efficiency and thereby improve the service stability of the CDN network.

[0005] An embodiment of the present invention provides a method for preheating data in a CDN network. The method is applied to a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; the method includes: obtaining an initial message from a first message queue through the first preheating component; wherein, the initial message is previously pushed to the first message queue by a CDN network source station; generating a preheating message based on the initial message; sending the preheating message to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the source station.

[0006] Further, the steps of generating a warm-up message based on the initial message include: screening out a legal initial warm-up message from the initial message; wherein, the legal initial warm-up message is used to indicate that there is warm-up data to be preheated in the source station, and the warm-up data is pre-set with a warm-up function; generating a final warm-up message based on the legal initial warm-up message; sending the final warm-up message to the second warm-up component; the final warm-up message is used to indicate that the second warm-up component notifies a specified CDN network node to obtain the warm-up data to be preheated from the source station.

[0007] Further, the steps of generating a final warm-up message based on the legal initial warm-up message include: obtaining a warm-up node corresponding to the warm-up data to be preheated that is pre-configured; generating a final warm-up message based on the node identifier of the warm-up node and the legal initial warm-up message; wherein, the node identifier of the warm-up node is used to indicate that the second warm-up component notifies the warm-up node to obtain the warm-up data to be preheated from the source station.

[0008] Further, the corresponding relationship between the storage container and the warm-up node is pre-configured in the first warm-up component; the steps of obtaining a warm-up node corresponding to the warm-up data to be preheated that is pre-configured include: obtaining the target storage container where the warm-up data is located in the source station from the legal initial warm-up message; determining the target warm-up node corresponding to the target storage container from the corresponding relationship between the storage container and the warm-up node, and determining the target warm-up node as the warm-up node corresponding to the warm-up data to be preheated.

[0009] Further, the steps of generating a final warm-up message based on the node identifier of the warm-up node and the legal initial warm-up message include: extracting specified information from the legal initial warm-up message; wherein, the specified information includes the resource location identifier and domain name information of the warm-up data to be preheated; processing the specified information and the node identifier of the warm-up node in a format corresponding to the second warm-up component to obtain the final warm-up message.

[0010] Further, the initial message includes: the storage container where the relevant data of the initial message is located in the source station, and the message attribute of the initial message; the steps of screening out a legal initial warm-up message from the initial message include: determining whether the storage container included in the initial message is a pre-specified legal container, if it is a pre-specified legal container, determining the initial message as a legal initial message; wherein, the data in the specified legal container is pre-set with a warm-up function; determining whether the message attribute of the legal initial message is a specified attribute, if so, determining the legal initial message as a legal initial warm-up message; wherein, the specified attribute is used to indicate that there is warm-up data to be preheated in the source station.

[0011] An embodiment of the present invention provides a method for preheating data in a CDN network. The method is applied to a device running a second preheating component; the second preheating component is communicatively connected to a first preheating component; the method includes: receiving a preheating message through the second preheating component; pushing the preheating message into a second message queue corresponding to a specified CDN network node; the preheating message is used to: notify the specified CDN network node to obtain data to be preheated from the CDN network source station; wherein, the preheating message is generated by the first preheating component in the following manner: obtaining an initial message from a first message queue; wherein, the initial message is pre-pushed by the CDN network source station into the first message queue; generating a preheating message based on the initial message.

[0012] Further, the step of pushing the preheating message into a second message queue corresponding to a specified CDN network node includes: if the preheating message includes a node identifier of a preheating node, determining the node corresponding to the node identifier as the specified CDN network node; pushing the preheating message into the second message queue corresponding to the specified CDN network node.

[0013] Further, the step of pushing the preheating message into a second message queue corresponding to a specified CDN network node includes: if the preheating message does not include a node identifier of a preheating node, extracting domain name information of the data to be preheated from the preheating message; obtaining a regional scope involved in the domain name information, determining the nodes within the regional scope as the specified CDN network nodes; pushing the preheating message into the second message queue corresponding to the specified CDN network node.

[0014] An embodiment of the present invention provides a device for preheating data in a CDN network. The device is arranged in a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; the device includes: an obtaining module, configured to obtain an initial message from a first message queue through the first preheating component; wherein, the initial message is pre-pushed by the CDN network source station into the first message queue; a sending module, configured to generate a preheating message based on the initial message; sending the preheating message to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the source station.

[0015] An embodiment of the present invention provides a data preheating device for a CDN network. The device is arranged on a device running a second preheating component; the second preheating component is communicatively connected to a first preheating component; the device includes: a receiving module, configured to receive a preheating message through the second preheating component; a pushing module, configured to push the preheating message into a second message queue corresponding to a specified CDN network node; the preheating message is used to: notify the specified CDN network node to obtain data to be preheated from a CDN network source station; wherein, the preheating message is generated by the first preheating component in the following manner: obtain an initial message from a first message queue; wherein, the initial message is pre-pushed to the first message queue by the CDN network source station; and generate a preheating message based on the initial message.

[0016] An embodiment of the present invention provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the data preheating method for a CDN network according to any one of the first aspect or the second aspect.

[0017] An embodiment of the present invention provides a machine-readable storage medium storing machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the data preheating method for a CDN network according to any one of the first aspect or the second aspect.

[0018] The embodiments of the present invention bring the following beneficial effects:

[0019] The present invention provides a data preheating method, device and electronic device for a CDN network. The first preheating component obtains an initial message from a first message queue; the message is pre-pushed to the first message queue by the CDN network source station; a preheating message is generated based on the initial message; the preheating message is sent to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the source station. This method can quickly sense data changes in the source station through the first message queue and automatically trigger the preheating process; by processing the initial message through the first preheating component, the performance is stable, the preheating efficiency is improved, and the message queue and the preheating component have a current limiting effect on the preheating message. The preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0020] Other features and advantages of the present invention will be described in the following specification, and, in part, will be obvious from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the specification, claims and drawings.

[0021] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following provides preferred embodiments in conjunction with the accompanying drawings and describes them in detail as follows. Description of the Drawings

[0022] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0023] Figure 1 Schematic diagram of the resource acquisition process of a CDN network provided by an embodiment of the present invention;

[0024] Figure 2 Flowchart of a data preheating method for a CDN network provided by an embodiment of the present invention;

[0025] Figure 3 Flowchart of another data preheating method for a CDN network provided by an embodiment of the present invention;

[0026] Figure 4 Flowchart of another data preheating method for a CDN network provided by an embodiment of the present invention;

[0027] Figure 5 Schematic diagram of the process of a data preheating method for a CDN network provided by an embodiment of the present invention;

[0028] Figure 6 Schematic diagram of the structure of a data preheating device for a CDN network provided by an embodiment of the present invention;

[0029] Figure 7 Schematic diagram of the structure of another data preheating device for a CDN network provided by an embodiment of the present invention;

[0030] Figure 8 Schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Detailed Embodiments

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of protection of the present invention.

[0032] The CDN network is an intelligent virtual network built on top of the existing network. Relying on edge servers deployed in various locations, through functional modules such as load balancing, content distribution, and scheduling of the central platform, users can obtain the required content nearby, which can reduce network congestion and improve the user access response speed and hit rate. In the CDN network, the resource data accessed to the CDN network can be preheated first. Specifically, the resource data of the user is pushed from the source station of the CDN network to the edge nodes. When the resource data is accessed, the resource data can be directly provided from the edge nodes without having to return to the source station to obtain it, which can improve the response speed of resource access; at the same time, it can also relieve the pressure on the source station caused by the sudden increase in the return source traffic.

[0033] See Figure 1 In the schematic diagram of the resource acquisition process of the CDN network shown, the resource request sent by the client is scheduled to the CDN node device through the scheduling module. According to the order of the node devices, relevant resources are obtained from each node device in turn. If the relevant resources are stored in the node device, the relevant resources are directly returned to the client. If the relevant resources are not stored in the node device, the node device needs to obtain them from the source station.

[0034] In the related art, the preheating is usually triggered actively by the user. After the user initiates a preheating request, the preheating request is cached in the preheating queue, and then queued and responded to the preheating request according to certain rules to perform relevant preheating operations. The preheating process usually requires occupying the network bandwidth resources of the CDN network and the request processing resources of the source station. When the user actively triggers the preheating, in most cases, the amount of resource data to be preheated is large. At this time, it is easy to affect the normal operation of the CDN network and cause the service of the CDN network to be unstable. In addition, during the preheating process, affected by factors such as CDN network fluctuations, limited processing capacity of the source station, and restrictions on the preheating data volume and preheating bandwidth by the CDN network service provider, it is easy for the resource data not to be quickly preheated to the edge nodes, and the preheating efficiency is low, which further causes a large number of return source requests. If the number of return source requests exceeds the processing capacity of the source station, the source station may crash, further leading to the instability of the CDN network service.

[0035] Based on the above, a data preheating method, device, and electronic device for a CDN network provided by an embodiment of the present invention can be applied to the data preheating scenario in the CDN network or other scenarios that require data preheating.

[0036] To facilitate the understanding of this embodiment, first, a data preheating method for a CDN network disclosed in an embodiment of the present invention is introduced in detail. This method is applied to a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; the device running the first preheating component can be a node device in a container cluster or a device such as a computer.

[0037] As Figure 2 shown, the method includes the following steps:

[0038] Step S202, obtaining an initial message from a first message queue through a first preheating component; wherein, the initial message is pre-pushed to the first message queue by a CDN network origin server;

[0039] In the above-mentioned first preheating component, a consuming program can actively obtain the initial message from the first message queue; the above-mentioned initial message is used to indicate that the data (also called resources) existing in the origin server has changed, such as resource addition or resource update, etc.; the above-mentioned initial message may also include the storage container where the changed data is located. If the changed data needs to be preheated, the initial message may also contain a preheating flag indicating whether the changed data needs to be preheated. The above-mentioned first message queue can store the initial messages in the order of receipt until they are obtained by the consuming program in the first preheating component. The first message queue can be Kafka (a high-throughput distributed publish-subscribe message system that can process all action flow data of consumers in a website); it can also be ActiveMQ (Active Message Queue, an open-source message middleware), RabbitMQ (Rabbit Message Queue, an open-source message queue service software), RocketMQ (Rocket Message Queue, an open-source distributed message system), etc.

[0040] The above-mentioned CDN network is an intelligent virtual network built on the existing network. Relying on edge servers deployed everywhere, through functional modules such as load balancing, content distribution, and scheduling of the central platform, users can obtain the required content nearby, reducing network congestion and improving user access response speed and hit rate. The above-mentioned CDN network origin server has functions such as high availability, PB (PetaByte, a higher-level storage unit)-level storage, infinite scalability, and multi-region services, and can continuously and stably provide services externally. At the same time, when the data in the origin server changes, it will automatically push the initial message of the change to the first message queue, and the first preheating component will automatically subscribe to the topic in the first message queue. The above-mentioned CDN network origin server can include multiple distributed origin servers. In actual implementation, after the data in the CDN network origin server changes, it will automatically push the initial message of the data change to the first message queue. At this time, the consuming program of the first preheating component can actively obtain the initial message in the first message queue.

[0041] Step S204: Generate a warm-up message based on the initial message and send the warm-up message to the second warm-up component. The warm-up message is used to instruct the second warm-up component to notify a specified CDN network node to obtain the data to be preheated from the source station.

[0042] Generally, a CDN network includes multiple network nodes. Different network nodes need to obtain different data to be preheated, and the storage containers where different data to be preheated are located are different. The above initial message can be used to indicate that there is data to be preheated in the source station. Therefore, after obtaining the initial message, a warm-up message can be generated according to the storage container where the changed data included in the initial message is located. Additionally, if the initial message also includes a warm-up flag indicating whether the changed data needs to be preheated, a warm-up message can be jointly generated according to the storage container where the changed data included in the initial message is located and the warm-up flag, so that the warm-up message includes: a specified CDN network node and the storage container where the data to be preheated that the specified CDN network node needs to obtain is located.

[0043] The above data to be preheated usually includes the changed data in the source station, or may only include the data that only needs to be preheated among the changed data in the source station.

[0044] In the above first warm-up component, the correspondence between the CDN network node and the storage container is usually preset in advance, that is, the CDN network node that needs to perform data caching and the storage container where the changed data that the CDN network node needs to obtain is located. In actual implementation, the storage container where the data to be preheated is located in the source station can be obtained from the initial message, and the specified CDN network node can be determined according to the storage container. When the second warm-up component receives the warm-up message, it can send the warm-up message to the message queue in the specified CDN network node according to the specified CDN network node indicated by the warm-up message, so that the specified CDN network node can obtain the data to be preheated from the storage container according to the storage container where the changed data that the specified CDN network node needs to obtain is located as indicated by the warm-up message, and then cache the changed data into the specified CDN network node.

[0045] The present invention provides a method for preheating data in a CDN network. An initial message is obtained from a first message queue by a first preheating component; this message is pre-pushed to the first message queue by the CDN network source station; based on the initial message, a preheating message is generated; the preheating message is sent to a second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the source station. This method can quickly sense data changes in the source station through the first message queue and automatically trigger the preheating process; the initial preheating message is processed by the first preheating component, with stable performance and improved preheating efficiency. Moreover, the message queue and the preheating component have a flow-limiting effect on the preheating message, and the preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0046] An embodiment of the present invention also provides another method for preheating data in a CDN network. This embodiment is implemented on the basis of the above embodiment. This embodiment focuses on describing the implementation process of the steps of generating a preheating message based on the initial message and sending the preheating message to the second preheating component (implemented through steps S304 - S306), as Figure 3 shown, and specifically includes the following steps:

[0047] Step S302, obtain an initial message from a first message queue by a first preheating component; wherein, the initial message is pre-pushed to the first message queue by the CDN network source station;

[0048] Step S304, screen out a legal initial preheating message from the initial message; wherein, the legal initial preheating message is used to: indicate that there is data to be preheated in the source station, and the data to be preheated is pre-set with a preheating function;

[0049] The above preheating function can be pre-set for the CDN network source station. The data that needs to be preheated is set with the preheating function, so that when the data in the source station changes, the initial message pushed by the CDN network source station to the first message queue includes a preheating identifier for preheating the changed data, that is, there is data to be preheated in the source station. For example, the first data and the third data in the source station need to be preheated. At this time, the first data and the third data can be pre-set with the preheating function. When the first data, the second data, and the third data all change, the first message queue will receive three initial messages. The first initial message includes a preheating identifier for the changed first data to be preheated; since the second data does not need to be preheated, the second initial message does not include a preheating identifier for the second data to be preheated; the third initial message includes a preheating identifier for the changed third data to be preheated. The preheating identifier may also include the storage container where the data to be preheated is located in the source station; or the storage container where the data to be preheated is located in the source station is directly included in the initial message.

[0050] In actual implementation, when the first preheating component obtains the initial message, it can screen and obtain a legal initial preheating message from the initial message according to the preheating identifier included in the initial message. Specifically, if the initial message includes the preheating identifier, the initial message can be determined as the initial preheating message. It can also screen and obtain a legal initial preheating message from the initial message according to the storage container where the data to be preheated in the source station is located and the preheating identifier included in the initial message. Specifically, if the storage container included in the initial message is the container that needs to be preheated and includes the preheating identifier, the initial message is determined as the initial preheating message.

[0051] Step S306: Generate a final preheating message based on the legal initial preheating message; send the final preheating message to the second preheating component; the final preheating message is used to: instruct the second preheating component to notify the specified CDN network node to obtain the data to be preheated from the source station.

[0052] Since the above legal initial preheating message indicates the data with the preheating function set among the data changed in the source station, the finally generated final preheating message is used to instruct the second preheating component to notify the specified CDN network node to obtain the data to be preheated from the source station, including only the data with the preheating function set in advance, and can preheat the data in the source station according to actual needs.

[0053] The present invention provides a data preheating method for a CDN network. The first preheating component obtains an initial message from the first message queue; the message is pre-pushed to the first message queue by the CDN network source station; a legal initial preheating message is screened from the initial message; a final preheating message is generated based on the legal initial preheating message; the final preheating message is sent to the second preheating component; the final preheating message is used to: instruct the second preheating component to notify the specified CDN network node to obtain the data to be preheated from the source station. This method can quickly sense the data changes in the source station through the first message queue and automatically trigger the preheating process; by screening and processing the initial preheating message through the first preheating component, the performance is stable, the preheating efficiency is improved, and the message queue and the preheating component have a flow-limiting effect on the preheating message. The preheating process does not affect the normal operation of the CDN network, realizing the smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0054] The embodiment of the present invention also provides another data preheating method for a CDN network. This embodiment is implemented on the basis of the above embodiment. This embodiment focuses on describing the specific implementation manner of the step of screening and obtaining a legal initial preheating message from the initial message (implemented through steps 021-022), and the specific implementation manner of the step of generating a final preheating message based on the legal initial preheating message (implemented through steps 03-04), and specifically includes the following steps:

[0055] Step 01, obtain the initial message from the first message queue through the first preheating component; wherein, the initial message is pre-pushed to the first message queue by the CDN network origin station;

[0056] Step 02, screen and obtain the legal initial preheating message from the initial message; wherein, the legal initial preheating message is used to: indicate that there is data to be preheated in the origin station, and the data to be preheated is pre-set with a preheating function;

[0057] The above initial message includes: the storage container where the relevant data of the initial message is located in the origin station, and the message attribute of the initial message; the relevant data therein can be the changed data, and the message attribute of the initial message is used to indicate that there is data to be preheated in the origin station. Specifically, the message attribute of the initial message can be determined by the identifier recorded on the message operation flag bit. If there is data to be preheated in the origin station, the identifier "update" is recorded on the message operation flag bit, indicating that there is data to be preheated in the origin station. If there is no identifier "update" recorded on the message operation flag bit of the initial message, it indicates that there is no data to be preheated in the origin station, that is, the changed data does not need to be preheated and cached.

[0058] A possible implementation:

[0059] Step 021, determine whether the storage container included in the initial message is a pre-specified legal container. If it is a pre-specified legal container, determine the initial message as a legal initial message; wherein, the data in the specified legal container is pre-set with a preheating function;

[0060] According to the actual needs of the user, it can be determined whether the containers under the user account need to be set with a preheating function. If the user sets a preheating function, all containers under the user account have the preheating function, and the containers under the user account can be understood as the above-specified legal containers. If the preheating function is a paid function, if the user has paid for the preheating function, that is, the containers under the user account can be understood as the above-specified legal containers.

[0061] The origin station first obtains whether the containers under a certain user account are set with a preheating function, and then notifies the first preheating component to modify the configuration in the first preheating component, so as to record in the first preheating component which containers are the specified legal containers.

[0062] In actual implementation, the first preheating component can obtain the storage container from the initial message. If the storage container is a pre-specified legal container, the initial message is determined as a legal initial message. If the storage container is not a pre-specified legal container, the initial message is directly discarded.

[0063] Step 022: Determine whether the message attribute of the legal initial message is the specified attribute. If so, determine the legal initial message as the legal initial preheating message. Herein, the specified attribute is used to indicate that there is data to be preheated in the source station.

[0064] Specifically, the first preheating component can obtain the identifier recorded on the message operation identification bit from the legal initial message. If the identifier is update, it indicates that there is data to be preheated in the source station, and the legal initial message can be determined as the legal initial preheating message. If the identifier is not update, the above initial message is other message and is not used to indicate whether there is data to be preheated in the source station, that is, the changed data does not need to be preheated and cached, and the legal initial message can be directly discarded.

[0065] Step 03: Obtain the preheating node corresponding to the data to be preheated that is preconfigured.

[0066] The above preheating node is the aforementioned CDN network node. Usually, each data to be preheated will have a corresponding cached CDN network node, that is, the above preheating node. Moreover, the corresponding relationship between the storage container and the preheating node is preconfigured in the first preheating component. When the first preheating component determines the legal preheating message, it can determine the corresponding preheating node according to the storage container where the data to be preheated is located included in the legal preheating message. In this way, the preheating node corresponding to the data to be preheated can be preconfigured. This flexible method of specifying the CDN network node for preheating speeds up the resource cache hit.

[0067] A possible implementation manner:

[0068] Step 031: Obtain the target storage container where the data to be preheated is located in the source station from the legal initial preheating message.

[0069] Usually, the initial message will include the storage container where the changed or updated data is located in the source station; similarly, the above legal initial preheating message will include the target storage container where the data to be preheated is located in the source station.

[0070] Step 032: Determine the target preheating node corresponding to the target storage container from the corresponding relationship between the storage container and the preheating node, and determine the target preheating node as the preheating node corresponding to the data to be preheated.

[0071] According to the corresponding relationship between the storage container and the preheating node provided by the program in the first preheating component, and according to the obtained target storage container, determine the target preheating node corresponding to the target storage container from the corresponding relationship between the storage container and the preheating node, that is, configure the corresponding preheating node for the target storage container in the legal initial preheating message, and then obtain the preheating node corresponding to the data to be preheated that is preconfigured.

[0072] Step 04: Generate a final preheating message based on the node identifier of the preheating node and a legal initial preheating message. The node identifier of the preheating node is used to instruct the second preheating component to notify the preheating node to obtain the data to be preheated from the source station.

[0073] The above node identifier can be the node information of the preheating node. For example, it can be the unique ID (Identity Document) of the preheating node, which is used to indicate the target CDN network node. In actual implementation, the node identifier of the preheating node can be added to the legal initial preheating message, and then the legal initial preheating message with the added node identifier is formatted so that the second preheating component can parse the node identifier therein, and then use the second preheating component to notify the preheating node to obtain the data to be preheated from the source station.

[0074] A possible implementation:

[0075] Step 041: Extract specified information from the legal initial preheating message. The specified information includes the resource location identifier and domain name information of the data to be preheated.

[0076] The above specified message is used to instruct the second preheating component to be able to obtain the data to be preheated in the target storage container according to the resource location identifier and domain name information. The resource location identifier therein can be a URL (Uniform Resource Locator), which is used to specify the location of the data to be preheated in the CDN network source station. The domain name information therein is also used to specify the location of the data to be preheated in the CDN network source station. In actual implementation, after the first preheating component obtains the preheating node corresponding to the preconfigured data to be preheated, in order to enable the preheating node to obtain the data to be preheated in the target storage container, the resource location identifier and domain name information of the data to be preheated can be extracted from the legal initial preheating message, so that the preheating node can obtain the data to be preheated from the source station through the resource location identifier and domain name information.

[0077] Step 042: Process the specified information and the node identifier of the preheating node according to the format corresponding to the second preheating component to obtain the final preheating message.

[0078] In order to enable the second preheating component to recognize the received final preheating message, the specified information and the node identifier of the preheating node can be formatted and processed in advance according to the format corresponding to the second preheating component to obtain the final preheating message. The final preheating message includes the specified information and the node identifier of the preheating node.

[0079] Step 05: Send the final preheating message to the second preheating component. The final preheating message is used to instruct the second preheating component to notify the specified CDN network node to obtain the data to be preheated from the source station.

[0080] It should be noted that the data to be preheated indicated by a legal initial preheating message may also include data to be preheated for which no corresponding preheating node is configured. Or, it can be understood that the target storage container included in the legal initial preheating message does not have a corresponding preheating node preconfigured. In this case, the node identifier of the preheating node will not be included in the final preheating message generated based on the node identifier of the preheating node and the legal initial preheating message.

[0081] In the above method, the CDN network origin can be set in multiple nodes and multiple operators, which is easy to expand, and has functions such as high availability, PB-level storage capacity, infinite expansion, and multi-region services. It can continuously and stably provide services externally, solve problems such as network fluctuations between CDN network nodes and the origin, and improve the success rate of data preheating. Secondly, the first preheating component can quickly detect data changes in the origin and automatically trigger resource preheating without manual operation; in this method, the preheating message is processed through the message queue and the preheating component, with stable performance and high preheating efficiency; at the same time, the message queue and the preheating component can limit the flow of the preheating message, and the preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0082] An embodiment of the present invention provides another method for preheating data in a CDN network. This method is applied to a device running a second preheating component; the second preheating component is communicatively connected to the first preheating component; as Figure 4 shown, the method includes the following steps:

[0083] Step S402, receiving a preheating message through the second preheating component;

[0084] Step S404, pushing the preheating message into the second message queue corresponding to the specified CDN network node; the preheating message is used to: notify the specified CDN network node to obtain the data to be preheated from the CDN network origin.

[0085] If the above preheating message includes the node identifier of the preheating node, the preheating message can be pushed into the second message queue corresponding to the specified CDN network node according to the node identifier; if the above preheating message does not include the node identifier of the preheating node, the specified CDN network node can be determined according to the domain name information of the data to be preheated in the preheating node, where the specified CDN network node can be one or more; the function of the above second message queue is the same as that of the first message queue, and it can be RabbitMQ, or it can also be ActiveMQ, ZeroMQ, Kafka, RocketMQ, etc. Different CDN network nodes correspond to different second message queues.

[0086] The above preheating message is generated by the first preheating component in the following manner: obtaining an initial message from the first message queue; wherein, the initial message is pre-pushed to the first message queue by the CDN network origin server; generating a preheating message based on the initial message.

[0087] The present invention provides a method for preheating data in a CDN network. The second preheating component receives the preheating message; pushes the preheating message to the second message queue corresponding to the specified CDN network node; the preheating message is used to: notify the specified CDN network node to obtain the data to be preheated from the CDN network origin server; wherein, the preheating message is generated by the first preheating component in the following manner: obtaining an initial message from the first message queue; wherein, the initial message is pre-pushed to the first message queue by the CDN network origin server; generating a preheating message based on the initial message. This method can quickly sense data changes in the origin server through the first message queue and automatically trigger the preheating process; process the initial message through the first preheating component, and push the preheating message to the second message queue of the specified CDN network node through the second preheating component. Through the preheating component and the message queue, the performance of the preheating process is stable, the preheating efficiency is improved, and the preheating message has a current limiting effect. The preheating process does not affect the normal operation of the CDN network, realizes the smooth preheating of resources, and ensures the stability of the CDN network during the preheating process.

[0088] An embodiment of the present invention provides another method for preheating data in a CDN network. This embodiment is implemented on the basis of the above embodiment. This embodiment focuses on describing the specific implementation manner of the step of pushing the preheating message to the second message queue corresponding to the specified CDN network node, which specifically includes the following steps:

[0089] Step 401, receiving the preheating message through the second preheating component;

[0090] Step 402, pushing the preheating message to the second message queue corresponding to the specified CDN network node; the preheating message is used to: notify the specified CDN network node to obtain the data to be preheated from the CDN network origin server;

[0091] A possible implementation manner:

[0092] (1) If the node identifier of the preheating node is included in the preheating message, determine the node corresponding to the node identifier as the specified CDN network node;

[0093] (2) Push the preheating message to the second message queue corresponding to the specified CDN network node.

[0094] After receiving the preheating message, the second preheating component first caches it in the preheating queue and waits to be sent to the designated CDN network node. Usually, it first determines whether the preheating message includes the node identifier of the preheating node. If the preheating message includes the node identifier of the preheating node, the node corresponding to the node identifier is first determined as the designated CDN network node. Then the preheating message is pushed to the second message queue corresponding to the designated CDN network node. Finally, the preheating program in the designated CDN network node first pulls the preheating message in the order of the second message queue, and initiates a back-to-source request to the CDN network source station according to the resource location identifier of the data to be preheated in the preheating message. After receiving the back-to-source request, the CDN network source station caches the data to be preheated to the designated CDN network node.

[0095] Another possible implementation:

[0096] (1) If the preheating message does not include the node identifier of the preheating node, extract the domain name information of the data to be preheated from the preheating message;

[0097] (2) Obtain the regional scope involved in the domain name information, and determine the nodes within the regional scope as the designated CDN network nodes;

[0098] (3) Push the preheating message to the second message queue corresponding to the specified CDN network node.

[0099] After receiving the preheating message, the second preheating component first caches it in the preheating queue and waits to be sent to the designated CDN network node; usually, it first determines whether the preheating message includes the node identifier of the preheating node. Since some data to be preheated do not have a preconfigured corresponding preheating node, the preheating message may not include the node identifier of the preheating node. If the preheating message does not include the node identifier of the preheating node, the domain name information of the data to be preheated can be extracted from the preheating message. The domain name information can be a domain name topology, indicating the regional scope of the data to be preheated, and the nodes distributed within the regional scope are determined as designated CDN network nodes. For example, the regional scope involved in the acquired domain name information is Beijing and Tianjin, and the nodes distributed in Beijing and Tianjin can be determined as designated CDN network nodes. The designated CDN network node determined in this way is closest to the data to be preheated, which avoids network fluctuations caused by long-distance data caching, improves preheating stability, and ensures the success rate of preheating.

[0100] In the above method, the CDN network origin can be set up with multiple nodes and multiple operators, which is easy to expand and has functions such as high availability, PB-level storage capacity, unlimited expansion, and multi-region services. It can continuously and stably provide external services, solve problems such as network fluctuations between CDN network nodes and the origin, and improve the success rate of data preheating. In this method, the preheating messages are processed through a message queue and a preheating component, with stable performance and high preheating efficiency. At the same time, the message queue and the preheating component can limit the flow of preheating messages, and the preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0101] See Figure 5 Referring to the specific process schematic diagram shown, this embodiment provides a specific method for preheating data in a CDN network. Multiple distributed KS3s (KS3 is a product that provides object storage services) in the figure correspond to the aforementioned CDN network origin, and can provide developers with an unlimited, multi-backup, distributed, and low-cost storage space solution; Kafka corresponds to the aforementioned first message queue; the automatic preheating client corresponds to the device running the first preheating component; the preheating client corresponds to the device running the second preheating component; RabbitMQ corresponds to the aforementioned second message queue; CDN corresponds to the aforementioned CDN network node. Using KS3 as the origin, the automatic preheating function of the origin is enabled. After the resources change, the changed messages (corresponding to the aforementioned initial messages) are pushed into the message queue Kafka. The content of the initial message includes the storage container bucket in the origin where the changed data is located, and the message operation identification bit in the initial message records update (corresponding to the aforementioned message attribute), indicating that there is data to be preheated in the origin.

[0102] Then, the automatic preheating client starts the consumption program. According to the storage container bucket included in the initial message, the expected initial messages (corresponding to the aforementioned legal initial preheating messages) are screened out. First, the pre-specified storage containers are screened out, and the unexpected initial messages are filtered. Then, the initial messages marked as update in the legal initial messages are determined as the expected initial messages, that is, the legal initial preheating messages. After obtaining the legal initial preheating messages, the legal initial preheating messages are reassembled and processed in the automatic preheating client to obtain the final preheating message. The process of reassembling and processing the legal initial preheating messages to obtain the final preheating message is the aforementioned process of generating the final preheating message based on the legal initial preheating messages. Finally, the final preheating message is sent to the preheating client (corresponding to the device running the second preheating component).

[0103] After receiving the final preheating message, the preheating client caches it into the preheating queue and waits to be sent down to CDNNodes (corresponding to the aforementioned specified CDN network nodes), where if the node identifier of the preheating node is included in the final preheating message, the final preheating message needs to be sent to the RabbitMQ message queue (corresponding to the aforementioned second message queue) of the specified node. Otherwise, it will be sent to the queue on the relevant nodes according to the domain name information of the data to be preheated. That is, the process of pushing the final preheating message to the second message queue corresponding to the specified CDN network node as described above. Finally, the preheating program in the specified CDN network node first pulls the final preheating message from the RabbitMQ message queue in sequence, and initiates a back-source request to the CDN network origin based on the resource location identifier of the data to be preheated in the final preheating message. After receiving the back-source request, the CDN network origin caches the data to be preheated to the specified CDN network node through the back-source response.

[0104] The steps in the above embodiments have the same technical features as the CDN network data preheating method provided in the above embodiments, so they can also solve the same technical problems and achieve the same technical effects.

[0105] Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a CDN network data preheating device, which is disposed on a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; as Figure 6 shown, the device includes:

[0106] An obtaining module 61, configured to obtain an initial message from a first message queue through the first preheating component; wherein, the initial message is pre-pushed to the first message queue by the CDN network origin;

[0107] A sending module 62, configured to generate a preheating message based on the initial message; send the preheating message to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the origin.

[0108] The present invention provides a CDN network data preheating device, which obtains an initial message from a first message queue through a first preheating component; the message is pre-pushed to the first message queue by the CDN network origin; generates a preheating message based on the initial message; sends the preheating message to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the origin. This method can quickly sense the data changes in the origin through the first message queue and automatically trigger the preheating process; the initial preheating message is processed by the first preheating component, with stable performance and improved preheating efficiency, and the message queue and the preheating component have a current limiting effect on the preheating message, and the preheating process does not affect the normal operation of the CDN network, realizing smooth preheating of resources and ensuring the stability of the CDN network during the preheating process.

[0109] Further, the above-mentioned sending module is further configured to: screen a legal initial preheating message from the initial message; wherein, the legal initial preheating message is used to indicate that there is preheating data in the source station, and the preheating data is pre-set with a preheating function; generate a final preheating message based on the legal initial preheating message; send the final preheating message to the second preheating component; the final preheating message is used to indicate that the second preheating component notifies a specified CDN network node to obtain the preheating data from the source station.

[0110] Further, the above-mentioned sending module is further configured to: obtain the preheating node corresponding to the preheating data pre-configured; generate a final preheating message based on the node identifier of the preheating node and the legal initial preheating message; wherein, the node identifier of the preheating node is used to indicate that the second preheating component notifies the preheating node to obtain the preheating data from the source station.

[0111] Further, the corresponding relationship between the storage container and the preheating node is pre-configured in the above-mentioned first preheating component; the above-mentioned sending module is further configured to: obtain the target storage container where the preheating data is located in the source station from the legal initial preheating message; determine the target preheating node corresponding to the target storage container from the corresponding relationship between the storage container and the preheating node, and determine the target preheating node as the preheating node corresponding to the preheating data.

[0112] Further, the above-mentioned sending module is further configured to: extract specified information from the legal initial preheating message; wherein, the specified information includes the resource location identifier and domain name information of the preheating data; process the specified information and the node identifier of the preheating node according to the format corresponding to the second preheating component to obtain the final preheating message.

[0113] Further, the above-mentioned initial message includes: the storage container where the relevant data of the initial message is located in the source station, and the message attribute of the initial message; the above-mentioned screening module is further configured to: determine whether the storage container included in the initial message is a pre-specified legal container, if it is a pre-specified legal container, determine the initial message as a legal initial message; wherein, the data in the specified legal container is pre-set with a preheating function; determine whether the message attribute of the legal initial message is a specified attribute, if so, determine the legal initial message as a legal initial preheating message; wherein, the specified attribute is used to indicate that there is preheating data in the source station.

[0114] Corresponding to the foregoing method embodiments, the embodiments of the present invention provide another data preheating device for a CDN network. The device is disposed on a device running a second preheating component; the second preheating component is communicatively connected to the first preheating component; as Figure 7 shown, the device includes:

[0115] A receiving module 71, configured to receive a preheating message through the second preheating component;

[0116] A pushing module 72, configured to push a warm-up message into a second message queue corresponding to a specified CDN network node; the warm-up message is used to: notify the specified CDN network node to obtain data to be warmed up from a CDN network source station.

[0117] Wherein, the warm-up message is generated by a first warm-up component in the following manner: obtaining an initial message from a first message queue; wherein, the initial message is pre-pushed into the first message queue by the CDN network source station; generating a warm-up message based on the initial message.

[0118] The present invention provides a data warm-up device for a CDN network, which receives a warm-up message through a second warm-up component; pushes the warm-up message into a second message queue corresponding to a specified CDN network node; the warm-up message is used to: notify the specified CDN network node to obtain data to be warmed up from a CDN network source station; wherein, the warm-up message is generated by a first warm-up component in the following manner: obtaining an initial message from a first message queue; wherein, the initial message is pre-pushed into the first message queue by the CDN network source station; generating a warm-up message based on the initial message. By means of the first message queue, this method can quickly sense data changes in the source station and automatically trigger the warm-up process; through the first warm-up component to process the initial warm-up message, and through the second warm-up component to push the warm-up message into the second message queue of the specified CDN network node, through the warm-up component and the message queue, the performance of the warm-up process is stable, the warm-up efficiency is improved, and the warm-up message has a current limiting effect, and the warm-up process does not affect the normal operation of the CDN network, realizing smooth warm-up of resources and ensuring the stability of the CDN network during the warm-up process.

[0119] Further, the above-mentioned pushing module is further configured to: if the warm-up message includes the node identifier of the warm-up node, determine the node corresponding to the node identifier as the specified CDN network node; push the warm-up message into the second message queue corresponding to the specified CDN network node.

[0120] Further, the above-mentioned pushing module is further configured to: if the warm-up message does not include the node identifier of the warm-up node, extract the domain name information of the data to be warmed up from the warm-up message; obtain the regional scope involved in the domain name information, determine the nodes within the regional scope as the specified CDN network nodes; push the warm-up message into the second message queue corresponding to the specified CDN network node.

[0121] The data warm-up device for a CDN network provided by an embodiment of the present invention has the same technical features as the data warm-up method for a CDN network provided by the above-mentioned embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0122] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the data preheating method for the above CDN network.

[0123] See Figure 8 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100, and the processor 100 executes the machine-executable instructions to implement the data preheating method for the above CDN network.

[0124] Furthermore, Figure 8 The electronic device shown further includes a bus 102 and a communication interface 103. The processor 100, the communication interface 103, and the memory 101 are connected through the bus 102.

[0125] Among them, the memory 101 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between this system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 8 only a bidirectional arrow is used in [description] to represent it, but it does not mean that there is only one bus or one type of bus.

[0126] The processor 100 may be an integrated circuit chip with the ability to process signals. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 100 or the instructions in the form of software. The above-mentioned processor 100 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or can be executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines its hardware to complete the steps of the method in the foregoing embodiments.

[0127] This embodiment also provides a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by the processor, the machine-executable instructions cause the processor to implement the above-mentioned data preheating method for the CDN network.

[0128] The computer program product of the data preheating method, device, and electronic device for the CDN network provided by the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments, and details are not described herein again.

[0129] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the foregoing method embodiments, and details are not described herein again.

[0130] In addition, in the description of the embodiments of the present invention, unless otherwise clearly defined and limited, the terms "installation", "connection", and "coupling" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

[0131] If the above functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0132] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0133] Finally, it should be noted that the above embodiments are only specific implementation manners of the present invention to illustrate the technical solutions of the present invention, rather than limitations thereto. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or make equivalent replacements for some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims

1. A method for preheating data in a CDN network, characterized in that The method is applied to a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; the method includes: Obtaining an initial message from a first message queue through the first preheating component; wherein, the initial message is pre-pushed to the first message queue by a CDN network source station; the initial message is used to indicate that data in the source station has changed, and the initial message includes the storage container where the changed data is located, or further includes a preheating identifier indicating whether the changed data needs to be preheated; Generating a preheating message based on the initial message; sending the preheating message to the second preheating component; the preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain data to be preheated from the source station.

2. The method according to claim 1, wherein The step of generating a preheating message based on the initial message includes: Filtering a legal initial preheating message from the initial message; wherein, the legal initial preheating message is used to: indicate that there is data to be preheated in the source station, and the data to be preheated is pre-set with a preheating function; Generating a final preheating message based on the legal initial preheating message; sending the final preheating message to the second preheating component; the final preheating message is used to: instruct the second preheating component to notify a specified CDN network node to obtain the data to be preheated from the source station.

3. The method according to claim 2, wherein The step of generating a final preheating message based on the legal initial preheating message includes: Obtaining a preheating node corresponding to the data to be preheated that is pre-configured; Generating the final preheating message based on the node identifier of the preheating node and the legal initial preheating message; wherein, the node identifier of the preheating node is used to: instruct the second preheating component to notify the preheating node to obtain the data to be preheated from the source station.

4. The method according to claim 3, wherein A corresponding relationship between a storage container and a preheating node is pre-configured in the first preheating component; The step of obtaining a preheating node corresponding to the data to be preheated that is pre-configured includes: Obtaining, from the legal initial preheating message, the target storage container where the data to be preheated is located in the source station; Determining, from the corresponding relationship between the storage container and the preheating node, the target preheating node corresponding to the target storage container, and determining the target preheating node as the preheating node corresponding to the data to be preheated.

5. The method according to claim 3, wherein The step of generating the final preheating message based on the node identifier of the preheating node and the legal initial preheating message includes: Extracting specified information from the legal initial preheating message; wherein, the specified information includes a resource location identifier and domain name information of the data to be preheated; Processing the specified information and the node identifier of the preheating node in a format corresponding to the second preheating component to obtain the final preheating message.

6. The method according to claim 2, wherein The initial message includes: the storage container where the relevant data of the initial message is located in the source station, and the message attribute of the initial message; The step of filtering a legal initial preheating message from the initial message includes: Determine whether the storage container included in the initial message is a pre-specified legal container. If it is a pre-specified legal container, determine the initial message as a legal initial message; wherein, the data in the specified legal container is pre-set with a preheating function. Determine whether the message attribute of the legal initial message is a specified attribute. If so, determine the legal initial message as the legal initial preheating message; wherein, the specified attribute is used to indicate that there is data to be preheated in the source station.

7. A method for preheating data in a CDN network, characterized in that, The method is applied to a device running a second preheating component; the second preheating component is communicatively connected to a first preheating component; the method includes: Receive a preheating message through the second preheating component. Push the preheating message into a second message queue corresponding to a specified CDN network node; the preheating message is used to notify the specified CDN network node to obtain data to be preheated from the CDN network source station. Wherein, the preheating message is generated by the first preheating component in the following manner: obtain an initial message from a first message queue; wherein, the initial message is pre-pushed by the CDN network source station to the first message queue; the initial message is used to indicate that the data in the source station has changed, the initial message includes the storage container where the changed data is located, or further includes a preheating flag indicating whether the changed data needs to be preheated; based on the initial message, generate a preheating message.

8. The method according to claim 7, wherein The step of pushing the preheating message into a second message queue corresponding to a specified CDN network node includes: If the preheating message includes the node identifier of a preheating node, determine the node corresponding to the node identifier as the specified CDN network node. Push the preheating message into the second message queue corresponding to the specified CDN network node.

9. The method according to claim 7, wherein The step of pushing the preheating message into a second message queue corresponding to a specified CDN network node includes: If the preheating message does not include the node identifier of a preheating node, extract the domain name information of the data to be preheated from the preheating message. Obtain the regional scope involved in the domain name information, and determine the nodes within the regional scope as the specified CDN network nodes. Push the preheating message into the second message queue corresponding to the specified CDN network node.

10. A data preheating device for a CDN network, characterized in that, The device is disposed in a device running a first preheating component; the first preheating component is communicatively connected to a second preheating component; the device includes: An obtaining module, configured to obtain an initial message from a first message queue through the first preheating component; wherein, the initial message is pre-pushed by the CDN network source station to the first message queue; the initial message is used to indicate that the data in the source station has changed, the initial message includes the storage container where the changed data is located, or further includes a preheating flag indicating whether the changed data needs to be preheated. A sending module, configured to generate a warm-up message based on the initial message; and send the warm-up message to the second warm-up component; the warm-up message is used to: instruct the second warm-up component to notify a specified CDN network node to obtain data to be warmed up from the source station.

11. A data preheating device for a CDN network, characterized in that, The device is disposed in a device running a second warm-up component; the second warm-up component is communicatively connected to a first warm-up component; the device includes: A receiving module, configured to receive a warm-up message through the second warm-up component; A pushing module, configured to push the warm-up message into a second message queue corresponding to a specified CDN network node; the warm-up message is used to: notify the specified CDN network node to obtain data to be warmed up from a CDN network source station; Wherein, the warm-up message is generated by the first warm-up component in the following manner: obtaining an initial message from a first message queue; wherein, the initial message is pre-pushed to the first message queue by a CDN network source station; the initial message is used to indicate that data in the source station has changed, the initial message includes a storage container where the changed data is located, or further includes a warm-up flag indicating whether the changed data needs to be warmed up; generating a warm-up message based on the initial message.

12. An electronic device, characterized in that, It includes a processor and a memory, the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the data warm-up method of the CDN network according to any one of claims 1 to 6 or claims 7 to 9.

13. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the data warm-up method of the CDN network according to any one of claims 1 to 6 or claims 7 to 9.