Data loading method and device, electronic equipment and storage medium
By obtaining candidate client sets or idle nodes on the application client, giving priority to data transmission between clients, and using idle nodes with idle bandwidth, the problem of high loading cost and insufficient stability of the CDN network is solved, and data loading is realized. Improved stability and efficiency.
Patent Information
- Application Number
- CN202310331182.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, relying on the CDN network to load data to be promoted results in high loading costs and insufficient stability. Over-reliance on the CDN network will affect data loading efficiency.
By obtaining candidate client sets or idle nodes on the application client, data transmission between clients is prioritized, and when client transmission is not possible, idle nodes with idle bandwidth are used for data transmission, reducing dependence on the CDN network.
It effectively reduces the cost of data loading, improves the stability and efficiency of data loading, and reduces the decrease in loading efficiency caused by the instability of the CDN network.
Smart Images

Figure CN118694665A
Abstract
Description
Background Art
[0002] In related technologies, when a related object browses to a display location of data to be promoted on a target application, the related data to be promoted needs to be loaded and presented on the target application.
[0003] At present, in order to reduce the loading delay of the data to be promoted on the target application, the data to be promoted is usually pre-stored on the CDN node with the help of the content delivery network (CDN) maintained by the operator, so that the data to be promoted can be loaded from the CDN node according to the content distribution mechanism.
[0004] However, since loading the data to be promoted from the CDN node requires occupying the export bandwidth of the CDN node, and each time the export bandwidth of the CDN node is used, a corresponding occupation cost is required, as the demand for loading and presenting the data to be promoted increases, a huge loading cost is required; moreover, in the current solution that relies on the CDN network to complete data loading, there will be an excessive reliance on the CDN network maintained by the operator. Once the service is unstable, it will greatly affect the loading efficiency of the data to be promoted, reduce the presentation effect of the data to be promoted, and it is difficult to ensure the stable loading of the data to be promoted. Summary of the invention
[0005] The embodiments of the present application provide a data loading method, device, electronic device and storage medium for ensuring the stability of data loading and reducing the cost of data loading.
[0006] In the first aspect, a data loading method is proposed, comprising:
[0007] In response to a data loading instruction triggered by a target object in an operation interface for a target area, obtaining identification information of the data to be promoted, and sending a data loading request to the application management end based on the identification information, wherein the data to be promoted is configured to be displayed in the target area;
[0008] If it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services externally;
[0009] If it is determined that the candidate client set fed back by the application management end has not been received, then when it is determined that there is at least one idle node matching the identification information, the at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
[0010] In a second aspect, a data loading device is provided, comprising:
[0011] a sending unit, configured to obtain identification information of the data to be promoted in response to a data loading instruction triggered by a target object in an operation interface for a target area, and send a data loading request to the application management end based on the identification information, wherein the data to be promoted is configured to be displayed in the target area;
[0012] The determination unit is used to perform the following operations:
[0013] If it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services externally;
[0014] If it is determined that the candidate client set fed back by the application management end has not been received, then when it is determined that there is at least one idle node matching the identification information, the at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
[0015] Optionally, after determining that no candidate client set fed back by the application management terminal is received, in the case where it is determined that there is an idle node matching the identification information, before reusing the idle node to load the data to be promoted corresponding to the identification information, the determining unit is further configured to:
[0016] When it is determined that the data to be promoted corresponding to the identification information is of a general type, the request delay duration is randomly determined; the data to be promoted of the general type is indiscriminately loaded on clients exceeding a set number;
[0017] When it is determined that the timing duration reaches the request delay duration, a data loading request is resent to the application management end based on the identification information.
[0018] Optionally, when it is determined that there is at least one idle node matching the identification information, when the at least one idle node is reused to load the data to be promoted corresponding to the identification information, the determining unit is configured to:
[0019] Based on the identification information, sending a data loading request to a preset node management terminal;
[0020] If at least one idle node address sent by the node management terminal is received, determining that there is an idle node matching the identification information;
[0021] The data to be promoted corresponding to the identification information is loaded from at least one idle node corresponding to the at least one idle node address.
[0022] Optionally, if it is determined that there is no at least one idle node matching the identification information, the determination unit performs the following operations:
[0023] Based on the identification information, a data loading request is sent to the CDN network management terminal;
[0024] The CDN node address fed back by the CDN network management terminal is received, and the data to be promoted corresponding to the identification information is loaded from the CDN node corresponding to the CDN node address, wherein various types of data to be promoted are pre-stored on the CDN node.
[0025] Optionally, after loading the data to be promoted corresponding to the identification information, the determination unit is further configured to:
[0026] Based on the identification information and local address information of the data to be promoted, sending a candidate client registration request to the application management end;
[0027] After the application management end registers the application client as a candidate client, a heartbeat connection with the application management end is established in response to a heartbeat connection request sent by the application management end.
[0028] Optionally, when the data to be promoted corresponding to the identification information is loaded from the at least one target client, the determination unit is configured to perform the following operations:
[0029] If the number of the target client is one, determining the address information corresponding to the target client, establishing point-to-point communication with the corresponding target client according to the address information, and then loading the data to be promoted corresponding to the identification information from the target client;
[0030] If there are multiple target clients, the address information corresponding to each target client is determined, and the part of the data to be promoted obtained from each target client is determined respectively, and after establishing point-to-point communication with each corresponding target client based on each address information, the part of the data to be promoted corresponding to the identification information is loaded from each target client.
[0031] Optionally, when selecting at least one target client from the candidate client set, the determination unit is configured to:
[0032] The address information of each candidate client in the candidate client set is determined, and based on the relative position between the local address and the address information of each candidate client, at least one target client meeting a preset condition is screened out from the candidate clients.
[0033] Optionally, when authorizing the provision of data loading services to external parties, the device further includes an authorization unit, and the authorization unit is used to:
[0034] Displaying authorization prompt information to the target object on the application operation page, wherein the authorization prompt information is used to prompt authorization to provide data loading services externally;
[0035] Obtain a service authorization indication triggered by the target object.
[0036] In a third aspect, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the program.
[0037] In a fourth aspect, a computer-readable storage medium is proposed, on which a computer program is stored, and the computer program implements the above method when executed by a processor.
[0038] In a fifth aspect, a computer program product is proposed, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0039] The beneficial effects of this application are as follows:
[0040] In the embodiment of the present application, after determining the data to be promoted that needs to be loaded, the application client obtains a candidate client set from the application management end, and selects a target client that acts as a provider of the data to be promoted from the candidate clients authorized to provide data loading services, and, if the candidate client set is not obtained, at least one idle node that matches the identification information of the data to be promoted is determined as the provider of the data to be promoted, and then the corresponding data to be promoted is loaded from the target client; this is equivalent to providing a loading method with different priorities for the data loading process, giving priority to data transmission between clients, and then, when it is determined that data transmission between clients cannot be performed, data transmission between clients and idle nodes with idle bandwidth is performed;
[0041] Moreover, in the process of loading the data to be promoted from the target client, combined with the current operator's billing method for data transmission between clients, the data loading cost can be greatly reduced while the operation is compliant; and in the process of loading the data to be promoted from the idle nodes with idle bandwidth, data loading can be realized by reusing the idle nodes with idle bandwidth, which can improve the utilization rate of the idle node bandwidth resources and reduce the data loading cost;
[0042] In addition, by introducing a method of loading data to be promoted between clients, and loading data to be promoted between clients and idle nodes with idle bandwidth, it is possible to largely break away from the dependence on CDN network loading, and reduce the probability of reduced loading efficiency due to unstable CDN network services, so that data loading costs can be reduced while ensuring the stability of data loading and improving loading efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic diagram of possible application scenarios in the embodiments of the present application;
[0044] Figure 2A A schematic diagram of the data loading process in an embodiment of the present application;
[0045] Figure 2B A schematic diagram of a process for determining a target client in an embodiment of the present application;
[0046] Figure 2C This is a schematic diagram of the process when the application management end pushes the data to be promoted in the embodiment of the present application;
[0047] Figure 2D This is a schematic diagram of the process of loading data with the help of idle nodes in an embodiment of the present application;
[0048] Figure 2E Schematic diagram of three loading methods involved in data loading in the embodiment of the present application;
[0049] Figure 2F A partial schematic diagram of a P2P loading architecture established in an embodiment of the present application;
[0050] Figure 3 This is a schematic diagram of the process of loading advertising materials in an embodiment of the present application;
[0051] Figure 4 This is a schematic diagram of the logical structure of the data loading device in the embodiment of the present application;
[0052] Figure 5 A schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application;
[0053] Figure 6Schematic diagram of the structure of a computing device in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
[0055] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.
[0056] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0057] Point to Point (P2P) network: also known as a peer-to-peer network. In the embodiment of the present application, it refers to a decentralized Internet system that relies on user groups to exchange information. Each user terminal in the P2P network can be regarded as both a terminal node and a server that can provide services to the outside world.
[0058] Content Delivery Network (CDN): It is a network built on and covered by the bearer network for content acceleration in various scenarios. It can distribute data content from the central server to the edge server close to the user, thereby achieving distributed access to data content nearby. CDN technology effectively improves the service quality of data content access and supports large-scale concurrent access capabilities. Currently, CDN networks are usually provided with service support by operators.
[0059] Software Development Kit (SDK): Generally, it is a collection of development tools used to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc. In layman's terms, it refers to a toolkit provided by a service provider to implement a certain function of a software product. Usually, SDK may refer to a collection of professional services provided by a professional service provider, or it may be an SDK for a certain software function, such as push technology, image recognition technology, mobile payment technology, etc.; in addition, it may also refer to an SDK that can achieve resource sharing, such as some advertising SDKs that provide profit channels, and distribution SDKs that provide product download channels. When developing application functions, relevant developers can integrate a certain function into the product by selecting a suitable and stable SDK service. In the embodiment of the present application, SDK refers to a function library integrated by the client specifically for loading data to be promoted, which includes the step-by-step processing logic during the data loading process.
[0060] Cost per Download (CPD): refers to a method of charging on a daily basis. In the embodiment of the present application, when the data to be promoted is advertising data, CPD can be used as a method of earning revenue from the data to be promoted. Specifically, after the advertiser selects the target object group for advertising, the advertisement is delivered to the target object group indiscriminately according to the needs of the advertiser, that is, when the target object group visits the application, the relevant advertisements are exposed and presented indiscriminately.
[0061] Idle node: refers to a node device with idle bandwidth. In the embodiments of the present application, the node device may specifically be various types of terminal devices or servers. In a possible implementation, each idle node may refer to each edge node with idle bandwidth in a mobile network, so that content distribution can be achieved based on each edge node with idle bandwidth. For edge nodes, since the present application reuses the idle bandwidth of edge nodes, whether an edge node can be used as an idle node changes dynamically, which is equivalent to using the idle bandwidth of edge nodes to achieve data loading when edge nodes that undertake other tasks are idle. At this time, the selected edge nodes cannot continuously provide stable service, so the occupancy cost of using this edge node is very low; in other possible implementations, the node management end that maintains each node device may be an application management end. In this case, the idle node may be a node device that is configured and maintained by the application management end to implement other business functions. Therefore, each node device with idle bandwidth may be used as an idle node; or, the node management end may be a third-party management end. In this case, the idle node may be a node device that is configured and maintained by a third party to implement other business functions. Therefore, a trusted third-party management end may be requested to use each node device with idle bandwidth maintained by the third-party management end as an idle node.
[0062] The following is a brief introduction to the design concept of the embodiment of the present application:
[0063] Under the relevant technology, in order to ensure that the relevant data to be promoted can be quickly loaded and presented on the target application when the relevant objects browse to the display location of the data to be promoted on the target application, the data to be promoted is usually pre-stored on the CDN node with the help of the CDN network maintained by the operator, so that the data to be promoted can be loaded from the CDN node according to the content distribution mechanism.
[0064] For example, assuming that the data to be promoted is an advertisement, and the display location is a preset ad slot, after the advertisement to be placed is determined in advance, the advertising material is distributed to CDN nodes in various locations for storage; when the user terminal browses to the corresponding ad slot, the advertising material needs to be loaded. At this time, after finding the corresponding CDN node, the advertising material is quickly loaded from the corresponding CDN node, and the corresponding advertisement is presented on the corresponding ad slot.
[0065] However, when using the CDN network to load the data to be promoted, there are the following problems:
[0066] 1) High loading cost.
[0067] Since loading the data to be promoted from the CDN node requires occupying the export bandwidth of the computer room where the CDN node is located, a corresponding occupation cost must be paid each time the data to be promoted is loaded from the CDN node. With the increase in the amount of data to be promoted and the substantial increase in the exposure of the data to be promoted, the occupation cost required to use the CDN network has accounted for one-fifth of the total cost of loading the data to be promoted; it can be seen that data loading based on the CDN network requires a huge loading cost.
[0068] 2) A single loading method lacks stability.
[0069] If data loading is completed solely by relying on the CDN network, there will be an over-reliance on the CDN network maintained by the operator. Once service instability occurs, it will greatly affect the loading efficiency of the data to be promoted, reduce the presentation effect of the data to be promoted, and make it difficult to ensure the stable loading of the data to be promoted.
[0070] In view of this, in an embodiment of the present application, a data loading method, device, electronic device and storage medium are proposed. From the perspective of the application client, in response to the data loading indication triggered by the target object in the operation interface for the target area, the identification information of the data to be promoted is obtained from the associated application management end, and based on the identification information, a data loading request is sent to the application management end; the data to be promoted is configured to be displayed in the target area; if it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services to the outside; and, if it is determined that the candidate client set fed back by the application management end is not received, then when it is determined that there is at least one idle node matching the identification information, at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
[0071] In this way, after determining the data to be promoted that needs to be loaded, the application client obtains the candidate client set from the application management end, and selects the target client that serves as the provider of the data to be promoted from the candidate clients authorized to provide data loading services, and, if the candidate client set is not obtained, at least one idle node that matches the identification information of the data to be promoted is determined as the provider of the data to be promoted, and then the corresponding data to be promoted is loaded from the target client; this is equivalent to providing a loading method with different priorities for the data loading process, giving priority to data transmission between clients, and then, when it is determined that data transmission between clients cannot be performed, data transmission between clients and idle nodes with idle bandwidth is performed;
[0072] Moreover, in the process of loading the data to be promoted from the target client, combined with the current operator's billing method for data transmission between clients, the data loading cost can be greatly reduced while the operation is compliant; and in the process of loading the data to be promoted from the idle nodes with idle bandwidth, data loading can be realized by reusing the idle nodes with idle bandwidth, which can improve the utilization rate of the idle node bandwidth resources and reduce the data loading cost;
[0073] In addition, by introducing a method of loading the data to be promoted between clients, and loading the data to be promoted between clients and idle nodes with idle bandwidth, it is possible to greatly break away from the dependence on CDN network loading, and reduce the probability of reduced loading efficiency due to unstable CDN network services, so that the data loading cost can be reduced while ensuring the stability of data loading and improving loading efficiency.
[0074] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.
[0075] See also Figure 1 , which is a schematic diagram of a possible application scenario in an embodiment of the present application, includes an application client 110 , at least one target client 120 , at least one idle node 130 , and an application management terminal 140 .
[0076] In the embodiment of the present application, the application client 110 refers to a client device for a target object to access an application. When the target object is operating and browsing on an operation page of the application, a data loading request is triggered to the application management end 140 based on the identification information of the data to be promoted. In a possible application scenario, after the target object browses to a target area where the data to be promoted is presented, a loading instruction for the data to be promoted in the target area is triggered, and then the identification information of the data to be promoted is obtained from the application management end 140, and a data loading request is triggered based on the obtained identification information;
[0077] Afterwards, in some possible implementations, if the application client 110 obtains the candidate client set sent by the application management end 140, the application client selects at least one target client 120 from the candidate client set, and loads the data to be promoted corresponding to the identification information from at least one target client 120 that has been pre-loaded with the data to be promoted and is authorized to provide data loading services to the outside.
[0078] Furthermore, if the application client 110 does not obtain the candidate client set from the application management end, the application client 110 implements data loading with the help of at least one matching idle node 130; or, if the application client 110 determines that it cannot provide services with the help of the idle node 130, it requests the CDN node in the CDN network to implement data loading.
[0079] The specific devices corresponding to the application client 110 include but are not limited to desktop computers, mobile phones, mobile computers, tablet computers, notebooks, e-book readers, smart home devices, and car terminals and other computer devices with certain processing capabilities. This application does not make specific restrictions on this.
[0080] The target client 120 and the application client 110 may be devices of the same type or devices of different types. In some implementation scenarios, the application client 110 may serve as a target client for other clients.
[0081] The idle node 130 can be various types of terminals or server devices, such as desktop computers, mobile phones, mobile computers, tablet computers, notebooks, e-book readers, smart home devices, and vehicle-mounted terminals, etc.; or, it can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0082] The application management end 140 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms. This application does not impose any specific restrictions on this.
[0083] In the embodiment of the present application, a wired connection or a wireless connection can be used between the application client 110 and the target client 120 to establish a communication connection through a communication network; a wireless connection is usually used between the application client 110 and the application management terminal 140, the application client 110 and the idle node 130, and the target client 120 and the application management terminal 140 to establish a communication connection through a communication network.
[0084] It should be noted that in the embodiment of the present application, during the process of implementing data loading, considering that the application management end 140 is usually far away from the application client 110 (for example, it may be across provinces or cities), in order to ensure the data loading speed, the application management end 140 cannot directly transmit the data to be promoted to the application client 110; under normal circumstances, the application management end 140 maintains the data to be promoted and its corresponding identification information, the display location information of the data to be promoted, and the target group information corresponding to the data to be promoted.
[0085] For the idle node 130, the idle node 130 may be maintained and determined by the application management end 140; or, the idle node 130 may be maintained and determined by the third-party management end. In this case, the application management end 140 determines whether there is an idle node from the third-party management end.
[0086] The technical solution proposed in this application can realize the loading of promotion data in various application scenarios. The following is an explanation of possible application scenarios:
[0087] Scenario 1: The data to be promoted is advertising material.
[0088] In the corresponding implementation process of scenario one, when the application client determines that the target object browses to the ad slot where the advertisement is presented, it requests the application management end to load the corresponding advertising material based on the identification information of the advertising material that needs to be presented in the ad slot, wherein the advertising material can be any content or combination such as pictures, videos, audios, etc., and this application does not impose any specific restrictions on this.
[0089] Afterwards, when the application client receives the candidate client set fed back by the application management end, the application client selects at least one target client from the candidate client set, loads the corresponding advertising material from the at least one target client, and presents the advertisement corresponding to the loaded advertising material on the corresponding advertising position, wherein each candidate client is pre-loaded with the corresponding advertising material and is authorized to provide external advertising material loading services.
[0090] If the application client determines that it has not received the candidate client set fed back by the application management end, the application client determines that there is at least one idle node matching the identification information, reuses at least one idle node to load advertising materials, and presents the advertisement corresponding to the loaded advertising materials on the corresponding advertising position, wherein each idle node pre-stores the corresponding data to be promoted and the current bandwidth is idle.
[0091] Scenario 2: The data to be promoted is update data used to update the application.
[0092] In the implementation process corresponding to scenario 2, when the application client determines that the target object browses to the target area and the business content presented in the target area needs to be updated, it requests the corresponding application management end to load the corresponding update data; further, if the application client determines that it has received a set of candidate clients fed back by the application management end, the application client selects a target client from the candidate client set, loads the corresponding update data from the target client, and implements the update of the application according to the loaded update data, wherein each candidate client is pre-loaded with the corresponding update data and is authorized to provide data loading services externally;
[0093] If the application client determines that it has not received the candidate client set fed back by the application management end, the application client determines that there is at least one idle node matching the identification information, reuses at least one idle node to load update data, and updates the application based on the loaded update data, wherein each idle node pre-stores corresponding data to be promoted and the current bandwidth is idle.
[0094] The following describes the operations performed during the data loading process from the perspective of the application client 110 in conjunction with the accompanying drawings:
[0095] See also Figure 2AAs shown, it is a schematic diagram of the data loading process in the embodiment of the present application. Figure 2A , the process of implementing data loading on the application client is described:
[0096] Step 201: the application client obtains identification information of the data to be promoted in response to the data loading instruction triggered by the target object in the operation interface for the target area, and sends a data loading request to the application management end based on the identification information.
[0097] Before loading data, the application client needs to determine the data to be loaded for promotion, so it needs to obtain identification information indicating the data to be promoted; then, based on the identification information corresponding to the data to be promoted, a data loading request can be sent to the associated application management terminal.
[0098] In some possible embodiments, the application client may obtain identification information of the data to be promoted from the associated application management end in response to a data loading indication triggered by the target object in the operation interface for the target area, wherein the data to be promoted is configured to be displayed in the target area.
[0099] For example, when there are many preset ad slots on an application, the application client can determine that the target object has browsed to an ad slot based on the target object's operation on the operation page, and then determine that the target object has triggered a data loading indication; then, a query request can be sent to the associated application management end based on this ad slot to obtain the identification information of the corresponding advertising material, wherein the advertisement corresponding to this advertising data is determined by the application management end to be presented on the corresponding ad slot for the target object.
[0100] In this way, the corresponding identification information can be effectively obtained for the target area where data content needs to be displayed, so that the data corresponding to the identification information can be accurately requested and obtained later.
[0101] In other possible embodiments, the identification information based on which the application client requests data loading can be pre-stored locally, so that during subsequent operation, in response to the data loading indication triggered by the target object in the operation interface for the target area, after determining that there is a need to load the relevant data, the identification information of the locally stored data to be promoted can be directly obtained; and then data loading can be requested based on the obtained identification information.
[0102] Afterwards, in an embodiment of the present application, after the application client obtains the identification information corresponding to the data to be promoted, it sends a data loading request to the associated application management end based on the identification information corresponding to the data to be promoted, wherein the association relationship between the application client and the application management end is established by the application, and the application client is installed with an application that can be browsed by the target object, and the associated application management end refers to the server that provides services for the browsed application.
[0103] It should be noted that, in the embodiment of the present application, the content corresponding to the data to be promoted may be any form of data or combination such as text, picture, video, etc., or may be 3D model data.
[0104] Step 202: The application client determines whether it has received the candidate client set fed back by the application management end. If so, execute step 203; otherwise, execute step 204.
[0105] Step 203: the application client selects at least one target client from the candidate client set, and loads the to-be-promoted data corresponding to the identification information from the at least one target client.
[0106] If the application client determines that it has received a set of candidate clients fed back by the application management end, it selects at least one target client from the candidate client set, wherein each candidate client is pre-loaded with the corresponding data to be promoted and is currently authorized to provide data loading services to the outside; the current authorization to provide data loading services to the outside means that the candidate client is pre-authorized to provide data loading services, and at the same time, the current candidate client is online (or maintains a heartbeat connection with the application management end) and can provide data loading services to the outside.
[0107] It should be noted that, optionally, in order to enable the application client to provide data loading services to the outside world while enjoying the loading services provided by other clients, it can inquire about the authorization instructions of the target object.
[0108] Specifically, the application client can display authorization prompt information to the target object on the application operation page, wherein the authorization prompt information is used to prompt authorization to provide external data loading services; thereby obtaining a service authorization indication triggered by the target object.
[0109] It should be noted that, according to actual processing needs, when it is determined that the corresponding application client is not authorized, the timing for displaying the authorization prompt information can be: each time the application is re-entered, or after the target object completes the login on the application, etc.
[0110] In a possible implementation, considering that some data needs to be loaded when entering the application, it can be assumed that the application client can load using P2P loading, and then ask whether to authorize the external loading service after entering the application client.
[0111] In this way, by asking the target object whether it agrees to provide loading services to the outside when enjoying loading services provided by other clients, the target object's right to know can be guaranteed and the target object's usage experience can be improved.
[0112] In an embodiment of the present application, after the application client obtains the candidate client set fed back by the application management end, it can determine, based on the candidate client set, each candidate client that can be used as a source for loading data to be promoted, and can determine the address information corresponding to each candidate client, wherein the address information includes at least an Internet Protocol (IP) address, and in a possible implementation method may also include a positioning address.
[0113] Furthermore, the address information of each candidate client in the candidate client set may be determined, and based on the relative position between the local address and the address information of each candidate client, at least one target client meeting a preset condition may be screened out from each candidate client.
[0114] It should be noted that, in an embodiment of the present application, the address information of each determined candidate client may be included in the candidate client set, or may be obtained from an additional query on the application management side, and the present application does not impose any specific restrictions on this; when the acquired address information includes a positioning address, at least one candidate client that is closest to the local location address and the positioning address of each candidate client may be screened out based on the relative position between the local location address and the positioning address of each candidate client, as at least one target client that meets the preset conditions; when the acquired address information does not include a positioning address, candidate clients belonging to the same area as the local machine may be screened out based on the local IP address and the IP address of each candidate client, and at least one candidate client may be randomly selected from the candidate clients in the same area as the at least one target client that meets the preset conditions.
[0115] For example, see Figure 2B As shown, it is a schematic diagram of the process of determining the target client in the embodiment of the present application, combined with Figure 2B It can be seen from the illustrated content that after the application client sends a data loading request to the application management end based on the identification information 1, the application management end obtains a set of candidate clients corresponding to the identification information 1, wherein each candidate client includes candidate clients 1-n; further, assuming that the address information of the candidate client determined by the query is an IP address, the relative position of the IP address of each candidate client and the local IP address can be determined, and a candidate client - candidate client 3 is randomly selected from the candidate clients belonging to the same area as the target client.
[0116] In this way, the target client as the provider of the data to be promoted can be effectively selected from the obtained candidate clients with the help of the address information.
[0117] Furthermore, when the application client loads the corresponding data to be promoted from at least one target client, the application client may obtain the entire content of the data to be promoted from a single target client according to actual processing needs, or, in the case of multiple target clients, obtain part of the data to be promoted from a single target client, and then obtain the entire content of the data to be promoted based on the data obtained from multiple target clients; based on this, when the application client loads the data to be promoted, there are the following two loading methods:
[0118] Loading method 1: Obtain all the content of the data to be promoted from a single target client.
[0119] If the number of target clients is one, the application client determines the address information corresponding to the target client, establishes point-to-point communication with the corresponding target client based on the address information, and then loads the to-be-promoted data corresponding to the identification information from the target client.
[0120] Specifically, after the application client queries the IP address of the target client, it will establish a Transmission Control Protocol (TCP) connection with the corresponding target client and load the data to be promoted in a P2P manner.
[0121] Loading method 2: Obtain part of the data to be promoted from a single target client.
[0122] If there are multiple target clients, the application client determines the address information corresponding to each target client, and determines the part of the data to be promoted obtained from each target client, and after establishing point-to-point communication with each corresponding target client based on each address information, loads the part of the data to be promoted corresponding to the identification information from each target client.
[0123] Specifically, according to actual processing needs, in the case where the data to be promoted is divided into different parts in advance, the application client can determine the part of the data to be promoted obtained from each target client according to the number of target clients; then, after the application client queries the IP address of each target client, it establishes a TCP link with each corresponding target client, and loads the corresponding part of the data to be promoted in a P2P manner.
[0124] For example, assuming that the data to be promoted is divided into 6 parts in advance, and 6 sub-data to be promoted are obtained, each sub-data to be promoted has a corresponding label, and the number of preset target clients is 3, then when 3 target clients are finally screened and determined, 2 sub-data to be promoted need to be obtained from each target client; and when it is determined that only 2 target clients can be screened out, 3 sub-data to be promoted need to be obtained from each target client; then, based on the identification information of the data to be promoted and the label of the sub-data to be promoted, the corresponding part of the data content can be loaded from the target client.
[0125] In particular, in a possible implementation, when there are multiple target clients, in order to ensure the integrity of the data, the application client can be configured to repeatedly obtain the data to be promoted from the multiple target clients, thereby being able to combine and obtain multiple complete data to be promoted from the multiple target clients, so that the integrity of the data can be determined subsequently by comparing the data content.
[0126] It should be noted that, in the embodiment of the present application, in order to ensure the security of data transmission, the application client can send encryption key information to the target client, so that when the data to be promoted is loaded from the target client, what is transmitted is the encrypted part of the data to be promoted.
[0127] In this way, by establishing a TCP connection with the target client and loading the data to be promoted in a P2P manner, data transmission can be established between clients, so that the application client can load the data to be promoted from other clients; in addition, combined with the current mobile network, the uplink network transmission between terminals is not charged, which can greatly reduce the loading cost of the data to be promoted.
[0128] Step 204: when the application client determines that there is at least one idle node matching the identification information, the application client reuses the at least one idle node to load the to-be-promoted data corresponding to the identification information.
[0129] In an embodiment of the present application, after the application client determines that it has not received the candidate client set fed back by the application management end, and before determining whether there is at least one idle node whose identification information matches, the application client can determine whether to re-request to obtain the candidate client set based on the differences in the data to be promoted on different clients.
[0130] Specifically, when it is determined that the data to be promoted corresponding to the identification information is of a general type, the request delay duration is randomly determined, wherein the general type of data to be promoted is indiscriminately loaded on clients exceeding a set number; thereafter, when it is determined that the timing duration reaches the request delay duration, a data loading request is re-sent to the application management end based on the identification information of the data to be promoted.
[0131] It should be noted that, for data to be promoted whose total number of audience terminals exceeds the set number, it can be identified as a general type of data to be promoted. Furthermore, when it is determined that the data to be promoted requested to be loaded is of a general type, it can be determined that there is a high probability that many clients will request to load the data to be promoted at the same time; based on this, after the application client waits for a period of time, when it initiates a data loading request again, the success rate of obtaining the corresponding candidate client set is very high.
[0132] For example, in the case where the data to be promoted is advertising material, and when the advertisement corresponding to the advertising material is an advertisement that needs to be presented indiscriminately on the vast majority of clients, after randomly waiting for a period of time, a request is made to re-load the corresponding advertising material using the P2P loading method, that is, to request the application management end to provide a set of candidate clients corresponding to the identification information, wherein the advertisement presented on the vast majority of clients may be an advertisement when the application is started, or a CPD advertisement.
[0133] In this way, when the data to be promoted is of a general type, by randomly delaying a period of time and then re-initiating the data loading request, the utilization rate of the P2P loading method can be improved during the peak period of initiating data loading requests; moreover, when multiple clients simultaneously request to load the data to be promoted, by randomly delaying a period of time and then re-initiating the data loading request, even if no client has loaded the corresponding data to be promoted and provided data loading services when the data loading request is first initiated, by delaying a period of time and then re-requesting, it is highly likely that a set of candidate clients that have loaded the corresponding data to be promoted and are authorized to provide data loading services can be obtained, so that the client can realize data loading with the help of P2P loading, thereby reducing the bandwidth cost of data loading and greatly reducing the dependence on the CDN network for loading.
[0134] On the contrary, when it is determined that the data to be promoted corresponding to the identification information is not of a general type, it can be determined that the number of clients that simultaneously request to load the data to be promoted may not be large; based on this, when a data loading request is first sent based on the identification information of the data to be promoted, and it is determined that the corresponding candidate client set is not received, the loading method in step 204 is directly adopted, that is, when it is determined that there is at least one idle node matching the identification information, at least one idle node is reused to load the data to be promoted corresponding to the identification information.
[0135] Furthermore, when the application client determines that there is at least one idle node matching the identification information, when reusing at least one idle node to load the data to be promoted corresponding to the identification information, a data loading request is sent to a preset node management terminal based on the identification information; if at least one idle node address sent by the node management terminal is received, it is determined that there is an idle node matching the identification information; and the data to be promoted corresponding to the identification information is loaded from at least one idle node corresponding to the at least one idle node address.
[0136] Specifically, after the application client determines that it is unable to load the data to be promoted from other clients, the application client can send a data loading request to a preset node management terminal based on the identification information of the data to be promoted, and upon receiving at least one idle node address sent by the node management terminal, it can be determined that there is an idle node that matches the identification information of the data to be promoted, wherein the idle node that matches the identification information of the data to be promoted at least satisfies the following conditions: the node device currently has idle bandwidth that can provide data loading services, and stores the data to be promoted corresponding to the identification information.
[0137] It should be noted that, in the embodiment of the present application, the node management end may specifically be an application management end corresponding to the application client, or may be a third-party service end.
[0138] When the node management end is an application management end, the application management end can maintain some node devices by itself. The maintained node devices may be various types of terminal devices or server devices. Among them, according to actual processing needs, the server device as a node device may have other business functions, or the corresponding application may not be installed in the terminal device as a node device.
[0139] When the node management end is a third-party server, the third-party server may specifically be an operator that maintains a CDN network, or other servers that maintain some node devices.
[0140] In the case where the third-party server is an operator that maintains a CDN network, the operator can be requested to use CDN nodes with idle bandwidth that implement other business functions as idle nodes to provide data loading services.
[0141] Based on this, from the perspective of the operator, additional revenue can be obtained with the help of idle bandwidth. From the perspective of data loading in this application, since the operator provides idle bandwidth, the occupancy cost of occupying such bandwidth may be less than half of the occupancy cost of conventional loading from CDN; therefore, data loading based on idle nodes can, on the one hand, improve bandwidth utilization and avoid resource waste, and on the other hand, reduce data loading costs.
[0142] In the case where the third-party server is another server that maintains some node devices, the third-party server can maintain some node devices by itself. The maintained node devices may be various types of terminal devices or server devices. According to actual processing needs, the server device as a node device may assume other business functions, or the corresponding application may not be installed in the terminal device as a node device.
[0143] It should be noted that in an embodiment of the present application, in a possible application scenario, the application management end can push the data to be promoted to node devices within a certain range as needed. Specifically, the application management end can determine the address information corresponding to each client that requests to load the data to be promoted, and count at least one geographical area to which each address information belongs, and push the data to be promoted to each node device in at least one geographical area, so that each node device in the determined at least one geographical area can store the data to be promoted.
[0144] Based on this, when the node server is an application management terminal, the application management terminal can directly push the data to be promoted to the determined node device, and when the node server is a third-party server, the application management terminal can use the third-party server to determine the geographical area and address information of the node device, and then push the data to be promoted to the determined node device.
[0145] For example, see Figure 2C As shown, it is a schematic diagram of the process when the application management end pushes the data to be promoted in the embodiment of the present application. Figure 2C As shown, after multiple application clients send data loading requests based on identification information t, if the query function in the application management end fails to find the candidate client set corresponding to the identification information t, the information is reported to the internal statistical function. Specifically, the missing information of a candidate client corresponding to the data to be promoted is reported to the log system, and the IP address of the terminal requesting the data to be promoted is carried in the report;
[0146] Furthermore, continue to combine Figure 2C To explain, the internal statistics function of the application management end will regularly count the data to be promoted that have a large number of failed queries, and perform cluster analysis on the client IPs that query these data to be promoted, locate the city where the client that needs these data to be promoted is located, and further analyze the regional targeting of the data to be promoted based on the level of the city (including first-tier cities, strong second-tier cities, second-tier cities, third-tier cities, and cities below the third tier);
[0147] After that, continue to combine the Figure 2CTo illustrate, when the application client acts as a data delivery platform and a node management terminal, the data to be promoted is sent to the node devices in the corresponding area for download and storage according to the data to be promoted and the regional orientation. When the application client is not a data delivery platform and a node management terminal, the data to be promoted and the corresponding regional orientation are sent to the data delivery platform, so that the data delivery platform sends the address of the data to be promoted to the node management terminal, and the node management terminal pushes the address of the data to be promoted to the node devices in the corresponding city for download and storage according to the corresponding regional orientation.
[0148] In this way, in the distribution network designed by the present application, the data to be promoted stored on the CDN node is directly pushed by the application management end after the data to be promoted is obtained or generated, and the reliability is guaranteed. However, the data to be promoted on the node devices managed by the node management end is not pushed immediately after the data to be promoted is obtained or generated.
[0149] Furthermore, when the application client determines that there is at least one matching idle node, the at least one idle node may be reused to load the corresponding data to be promoted.
[0150] Specifically, when there is an idle node with idle bandwidth and storing corresponding data to be promoted in each node device maintained by the preset node server, the application client receives at least one idle node fed back by the node server and loads the corresponding data to be promoted from the at least one idle node.
[0151] In addition, the method of loading the data to be promoted from at least one idle node may be the same as the logic of loading the data to be promoted from at least one target client, and will not be described again here.
[0152] For example, see Figure 2D As shown, it is a schematic diagram of the process of loading data with the help of idle nodes in an embodiment of the present application. Figure 2D As shown in the content, the method of loading the data to be promoted between the clients in a P2P manner, which is constructed with the assistance of the application management end, can be regarded as a P2P network, in which the clients establish a relationship between the loading of different data to be promoted. Figure 2D The P2P network shown; further, the application client can first determine whether there is a corresponding candidate client based on the identification information of the data to be promoted, and when it is determined that there is no corresponding candidate client, obtain the idle node information (such as the information of the node device m+1) with the help of the node network maintained by the node management end, and then load the data to be promoted from the idle node.
[0153] In this way, when the data to be promoted cannot be loaded from the target client pre-loaded with the data to be promoted, the loading of the data to be promoted can be achieved with the help of the idle nodes determined by the node management end. This is equivalent to proposing a loading method of loading the data to be promoted from idle nodes on the basis of a loading method of loading the data to be promoted from a client with the same application installed, so as to ensure as much as possible that the loading cost is reduced while improving the utilization rate of the bandwidth.
[0154] In particular, if the application client determines that there is no at least one idle node matching the identification information, it performs the following operations: based on the identification information, sends a data loading request to the CDN network management end; receives the CDN node address fed back by the CDN network management end, and loads the data to be promoted corresponding to the identification information from the CDN node corresponding to the CDN node address, wherein various types of data to be promoted are pre-stored on the CDN node.
[0155] Specifically, when there is no node device with idle bandwidth among the node devices maintained by the node management end, or when there is a node device with idle bandwidth among the node devices maintained by the node management end and the corresponding data to be promoted is not stored on the node device; correspondingly, the application client determines that there is no at least one idle node matching the identification information of the data to be promoted based on the feedback information obtained from the node management end.
[0156] Furthermore, the application client can send a data loading request to the CDN network management end, and receive the CDN node address fed back by the CDN network management end according to the data loading method of the CDN network, and load the data to be promoted corresponding to the identification information from the CDN node corresponding to the CDN node address.
[0157] It should be noted that in the embodiment of the present application, the method of loading through the CDN network is configured as the loading method with the lowest priority. When it is determined that the P2P loading method between clients cannot be used, and the data to be promoted cannot be loaded from idle nodes, the CDN network is used to achieve loading, which can ensure that the application client loads the data to be promoted.
[0158] It should be understood that in the solution proposed in the embodiments of the present application, by introducing CDN nodes that specialize in providing data loading services under the CDN network, it can be guaranteed that the data to be promoted will be loaded successfully, and in the present application, after the data to be promoted is acquired or generated, it is configured to be first pushed to each CDN node on the CDN network for storage, and for the node devices that can act as idle nodes, the data to be promoted is subsequently pushed to the node devices that can act as idle nodes in a certain area according to the actual client request.
[0159] For example, see Figure 2EAs shown, it is a schematic diagram of three loading methods involved in data loading in the embodiment of the present application. Figure 2E It can be seen from the illustrated content that when the application client cannot determine the target client from the P2P network, the application client can use the node network maintained by the preset node management terminal to determine whether there are idle nodes, and then when it is determined that there are no idle nodes, the application client can use the CDN network maintained by the operator to load the data to be promoted. Among them, the process of using the CDN network to realize data loading is a conventional technology in the field and will not be explained in detail.
[0160] In this way, it is equivalent to determining the loading method of loading the data to be promoted with the help of the CDN network, which requires a large amount of bandwidth occupancy, as the backup loading method in this application, so that when it is impossible to load data between clients with the help of the P2P method, and when it is impossible to load data with the help of the idle bandwidth of idle nodes, it is guaranteed that the application client can load the data to be promoted.
[0161] In the embodiment of the present application, after the application client completes loading of the data to be promoted, it can register as a provider of the data to be promoted for other clients.
[0162] Specifically, the application client can send a candidate client registration request to the application management end based on the identification information and local address information of the data to be promoted; and after the application management end registers the application client as a candidate client, it responds to the heartbeat connection request sent by the application management end and establishes a heartbeat connection with the application management end.
[0163] It should be noted that, when the application client authorizes external data loading services, on the one hand, it can load the data to be promoted from other clients, and on the other hand, it needs to provide loading services for other clients that have the need to load data to be promoted. Based on this, after the application client successfully loads the data to be promoted, it will actively report its address information and loaded material information (i.e., the identification information of the data to be promoted) to the application management end, and the application management end will register the application client as the loading source of the data to be promoted and store it.
[0164] At the same time, the application client will receive the heartbeat connection request sent by the application management end, and maintain a long link with the heartbeat service in the application management end. It will confirm that it can serve as the loading source of the data to be promoted by regularly sending heartbeat signals and provide external loading services for the data to be promoted. Moreover, the heartbeat service in the application management end will regularly update the survival status of the loading source stored in the corresponding identification information based on the received heartbeat information.
[0165] For example, see Figure 2F As shown, it is a partial schematic diagram of the P2P loading architecture established in the embodiment of the present application. Figure 2F As can be seen from the illustrated content, after successfully loading the data to be promoted, the application client (assuming it is client s) can send a candidate client registration request to the application management end based on its own address information and the identification information of the data to be promoted (assuming it is identification information x), and write client s into the candidate client set constructed corresponding to the identification information x inside the application management end.
[0166] At the same time, continue to combine Figure 2F To explain, the application client receives a heartbeat connection request sent by the heartbeat connection maintenance function in the application management end, and establishes a heartbeat connection with the application management end; then, when other clients (such as application client y) send data loading requests to the application management end based on identification information x, the application management end receives the data loading request sent by application client y based on the received candidate client set, and provides application client y with loadable data to be promoted.
[0167] In this way, after completing the loading of the data to be promoted, the application client can register as the loading source of the data to be promoted, so that the scope of clients that can serve as the loading source of the data to be promoted can be gradually expanded, the influence of P2P loading can be expanded, and the data loading method between terminals can be covered in a large range.
[0168] See also Figure 3 As shown, it is a schematic diagram of the process of loading advertising materials in the embodiment of the present application. Figure 3 , taking the data to be promoted as the advertising material, and the advertising material being a splash screen advertisement presented when the application is opened as an example, the process of loading the advertising material on the application client 1 is schematically described:
[0169] It should be noted that the loading method of the advertising materials presented in other advertising positions is the same as the loading logic of the advertising materials for loading splash screen ads when the application is opened. This application only uses the loading of advertising materials for splash screen ads as an example for schematic explanation.
[0170] The application client 1 responds to the target object's indication of opening the XX video application, and when it is determined that a splash screen advertisement needs to be presented when the application is opened, and the advertising material corresponding to the splash screen advertisement has not been previously loaded, initiates an indication of loading the splash screen advertisement, and obtains the material identification information fed back by the application management end of the XX video application, wherein the material identification information is used to uniquely identify the advertising material corresponding to the splash screen advertisement;
[0171] Afterwards, when the target object previously authorized to join the P2P network and agreed to provide data loading services to other clients while enjoying data loading services from other clients, the application client sequentially attempts to use the three loading methods proposed in this application to request to load advertising materials.
[0172] Specifically, the application client first queries the application management end of the XX video application for candidate clients that are still online and can provide data loading services to the outside world. Then, when it is determined that there are selectable candidate clients, a target client that is closest to the candidate clients is selected and the IP address of the target client is obtained. A TCP link is then established with the corresponding target client based on the IP address to load the advertising material content in a P2P manner.
[0173] On the contrary, if there is currently no candidate client that can provide the advertising material loading function, then when it is determined that the node server can provide available idle nodes, the advertising material is loaded from the idle nodes; and when it is determined that the advertising material cannot be loaded from the idle nodes, the advertising material is loaded with the help of the CDN network maintained by the operator.
[0174] Based on this, we can know that in the process of loading advertising materials, the priority of the three loading methods is: first try P2P loading, then try to load from idle nodes, and finally load from the CDN network.
[0175] Analysis shows that in the process of attempting to load by using three loading methods proposed in this application, P2P loading utilizes the uncharged transmission bandwidth between user terminals (i.e., application clients of different users) and the idle storage resources on the user terminal devices. After the user authorizes to join the P2P loading method, it is completely transparent to the user and will not let the user perceive the existence of the P2P network, which can guarantee the user's experience. In a possible implementation method, the node network constructed by the node management end is similar to the CDN network maintained by the operator, and uses domain names to provide content distribution services to the outside world.
[0176] For the application client 1 itself, when implementing the loading logic proposed in this application, the advertising SDK in the terminal can be modified to make it compatible with different loading logics. Therefore, after upgrading the corresponding APP or loading the corresponding update package on the application client, the corresponding loading logic can be assembled.
[0177] In a possible implementation, for example, when the target user is a test user, the application client 1 can automatically join the P2P loading method proposed in this application by default after assembling the corresponding loading logic, without obtaining authorization again. This application does not impose specific restrictions on this.
[0178] In particular, when loading advertising materials, the materials cached by application client 1 are mainly pulled actively by itself and cannot be pushed in advance using a pre-push algorithm. Therefore, in a P2P loading method (or P2P network), application client 1 can initiate a loading request for advertising materials based on the CPD type. If it is determined that the corresponding candidate client set has not been obtained, it can randomly back off and initiate again.
[0179] It should be made clear that during the peak period of user requests for CPD ads, most clients will load the same ad material at the same time. At this time, since most nodes in the P2P network have never loaded the ad material, and are limited by factors such as distance, most terminals can only download the ad material from idle nodes or CDN nodes, resulting in low P2P network utilization and a sharp increase in the bandwidth cost of loading ad materials.
[0180] Based on this, when application client 1 accesses the corresponding application management end, it can adopt a strategy of randomly delaying for a certain period of time to access the application management end again after determining that there is no candidate client that has loaded the advertising material in the P2P network, to query whether there is a corresponding candidate client, where the length of the random delay can be randomly selected within the range of 0 to 16 milliseconds.
[0181] Furthermore, when the client with short latency finds that there is still no corresponding candidate client in the P2P network, it will download the advertising material from an idle node or CDN node instead, and after loading, it will register itself as a candidate client corresponding to the advertising material. As time goes by, there will be more and more candidate clients for the advertising material in the P2P network, and those terminals with longer latency can load the advertising material from the candidate clients that have already loaded the advertising material, thereby improving the utilization rate of the P2P network and reducing the bandwidth cost of downloading the material. Therefore, assuming that the application client 1 has a longer latency, the corresponding candidate client information can be obtained, and the target client can be selected to load the advertising data.
[0182] It should be noted that when the target object first accesses the XX video application on the application client 1, it can be loaded by default using the P2P loading method, and then the target object will be asked whether to authorize the provision of data loading services to the outside after entering the application; and when it is determined that the target object does not authorize the provision of data loading services to the outside, it is possible to choose not to use the P2P loading method to provide services to the target object, or it is possible to choose to configure the use of the P2P loading method to provide services to the target object, and configure not to load data from the application client where the target object is located. This application does not impose specific restrictions on this.
[0183] Based on the above processing logic, the application client 1 can effectively obtain the advertising material corresponding to the splash screen advertisement, and present it on the advertising position after the XX video application is opened.
[0184] After testing and comparison, the advertising material distribution network that combines P2P loading, idle node loading, and CDN network loading proposed in this application has a 14% lower bandwidth cost than the traditional advertising material distribution network built only on the CDN network, and can reduce the network bandwidth cost by about 1.4 million yuan per month. While ensuring the stable loading of advertising materials, it reduces the dependence on the CDN network and reduces the loading cost of advertising materials.
[0185] In summary, the present application is equivalent to designing a loading method based on a combination of P2P loading and node loading, which utilizes the cheap uplink bandwidth of user terminals and the edge network bandwidth, and is equivalent to building a content distribution network based on the P2P protocol with lower bandwidth cost between the CDN network and the application client. While ensuring the user experience of viewing advertising materials, it reduces the bandwidth cost of loading advertising materials and avoids excessive reliance on the CDN network. Moreover, the present application also proposes a random backoff process when loading general types of advertising materials, which improves the bandwidth utilization ratio of P2P and node devices, and can better reduce the bandwidth cost of loading advertising materials.
[0186] Based on the same inventive concept, see Figure 4 As shown, it is a schematic diagram of the logical structure of the data loading device in the embodiment of the present application. The data loading device 400 includes a sending unit 401 and a determining unit 402, wherein:
[0187] The sending unit 401 is used to obtain identification information of the data to be promoted in response to a data loading instruction triggered by the target object in the operation interface for the target area, and send a data loading request to the application management end based on the identification information, wherein the data to be promoted is configured to be displayed in the target area;
[0188] The determination unit 402 is configured to perform the following operations:
[0189] If it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services externally;
[0190] If it is determined that no candidate client set is received from the application management end, then when it is determined that there is at least one idle node matching the identification information, at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
[0191] Optionally, after determining that no candidate client set fed back by the application management terminal is received, if it is determined that there is an idle node matching the identification information, before reusing the idle node to load the data to be promoted corresponding to the identification information, the determining unit 402 is further configured to:
[0192] When it is determined that the data to be promoted corresponding to the identification information is of a general type, the request delay duration is randomly determined; the general type of data to be promoted is indiscriminately loaded on clients exceeding the set number;
[0193] When it is determined that the timing duration reaches the request delay duration, a data loading request is resent to the application management end based on the identification information.
[0194] Optionally, when it is determined that there is at least one idle node matching the identification information, when the at least one idle node is reused to load the data to be promoted corresponding to the identification information, the determining unit 402 is configured to:
[0195] Based on the identification information, a data loading request is sent to a preset node management terminal;
[0196] If at least one idle node address sent by the node management terminal is received, it is determined that there is an idle node matching the identification information;
[0197] The data to be promoted corresponding to the identification information is loaded from at least one idle node corresponding to at least one idle node address.
[0198] Optionally, if it is determined that there is no at least one idle node matching the identification information, the determining unit 402 performs the following operations:
[0199] Based on the identification information, a data loading request is sent to the CDN network management terminal;
[0200] The CDN node address fed back by the CDN network management terminal is received, and the data to be promoted corresponding to the identification information is loaded from the CDN node corresponding to the CDN node address, wherein various types of data to be promoted are pre-stored on the CDN node.
[0201] Optionally, after loading the data to be promoted corresponding to the identification information, the determination unit 402 is further configured to:
[0202] Based on the identification information and local address information of the data to be promoted, a candidate client registration request is sent to the application management end;
[0203] After the application management end registers the application client as a candidate client, a heartbeat connection with the application management end is established in response to a heartbeat connection request sent by the application management end.
[0204] Optionally, when loading the to-be-promoted data corresponding to the identification information from at least one target client, the determination unit 402 is configured to perform the following operations:
[0205] If the number of the target client is one, the address information corresponding to the target client is determined, and after establishing point-to-point communication with the corresponding target client according to the address information, the data to be promoted corresponding to the identification information is loaded from the target client;
[0206] If there are multiple target clients, the address information corresponding to each target client is determined, and the part of the data to be promoted obtained from each target client is determined respectively, and after establishing point-to-point communication with each corresponding target client based on each address information, the part of the data to be promoted corresponding to the identification information is loaded from each target client.
[0207] Optionally, when at least one target client is selected from the candidate client set, the determining unit 402 is configured to:
[0208] The address information of each candidate client in the candidate client set is determined, and based on the relative position between the local address and the address information of each candidate client, at least one target client meeting a preset condition is screened out from each candidate client.
[0209] Optionally, when authorizing to provide data loading service externally, the device further includes an authorization unit 403, and the authorization unit 403 is used to:
[0210] On the application operation page, the authorization prompt information is displayed to the target object, where the authorization prompt information is used to prompt the authorization to provide external data loading services;
[0211] Get the service authorization indication triggered by the target object.
[0212] After introducing the data loading method and device according to the exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is introduced.
[0213] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0214] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application, referring to Figure 5 As shown, it is a schematic diagram of a hardware structure of an electronic device using an embodiment of the present application, and the electronic device 500 may include at least a processor 501 and a memory 502. Among them, the memory 502 stores program codes, and when the program codes are executed by the processor 501, the processor 501 executes the steps of any one of the above-mentioned data loading methods.
[0215] In some possible implementations, the computing device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the data loading steps according to various exemplary implementations of the present application described above in this specification. For example, the processor may execute the following steps: Figure 2A Follow the steps shown in .
[0216] Refer to the following Figure 6 The computing device 600 according to this embodiment of the present application is described below. Figure 6 As shown, the computing device 600 is in the form of a general computing device. The components of the computing device 600 may include but are not limited to: at least one processing unit 601, at least one storage unit 602, and a bus 603 connecting different system components (including the storage unit 602 and the processing unit 601).
[0217] Bus 603 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0218] The storage unit 602 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 6021 and / or a cache memory 6022 , and may further include a read-only memory (ROM) 6023 .
[0219] The storage unit 602 may also include a program / utility 6025 having a set (at least one) of program modules 8024, such program modules 6024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0220] The computing device 600 may also communicate with one or more external devices 604 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable objects to interact with the computing device 600, and / or any device that enables the computing device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 605. In addition, the computing device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 606. As shown, the network adapter 606 communicates with other modules for the computing device 600 via a bus 603. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computing device 600, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0221] Based on the same inventive concept as the above method embodiment, various aspects of the data loading method provided by the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the data loading method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device can execute the following steps: Figure 2A Follow the steps shown in .
[0222] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0223] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0224] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data loading method, characterized in that: Applied to application clients, including: In response to a data loading instruction triggered by a target object in an operation interface for a target area, obtaining identification information of the data to be promoted, and sending a data loading request to the application management end based on the identification information, wherein the data to be promoted is configured to be displayed in the target area; If it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services externally; If it is determined that the candidate client set fed back by the application management end has not been received, then when it is determined that there is at least one idle node matching the identification information, the at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
2. The method according to claim 1, characterized in that After determining that no candidate client set fed back by the application management terminal is received, and before determining that there is an idle node matching the identification information, reusing the idle node to load the data to be promoted corresponding to the identification information, the method further includes: When it is determined that the data to be promoted corresponding to the identification information is of a general type, the request delay duration is randomly determined; the data to be promoted of the general type is indiscriminately loaded on clients exceeding a set number; When it is determined that the timing duration reaches the request delay duration, a data loading request is resent to the application management end based on the identification information.
3. The method according to claim 1, characterized in that In the case where it is determined that there is at least one idle node matching the identification information, reusing the at least one idle node to load the to-be-promoted data corresponding to the identification information includes: Based on the identification information, sending a data loading request to a preset node management terminal; If at least one idle node address sent by the node management terminal is received, determining that there is an idle node matching the identification information; The data to be promoted corresponding to the identification information is loaded from at least one idle node corresponding to the at least one idle node address.
4. The method according to claim 3, characterized in that If it is determined that there is no at least one idle node matching the identification information, the following operations are performed: Based on the identification information, a data loading request is sent to the CDN network management terminal; The CDN node address fed back by the CDN network management terminal is received, and the data to be promoted corresponding to the identification information is loaded from the CDN node corresponding to the CDN node address, wherein various types of data to be promoted are pre-stored on the CDN node.
5. The method according to any one of claims 1 to 4, characterized in that: After the data to be promoted corresponding to the identification information is loaded, the method further includes: Based on the identification information and local address information of the data to be promoted, sending a candidate client registration request to the application management end; After the application management end registers the application client as a candidate client, a heartbeat connection with the application management end is established in response to a heartbeat connection request sent by the application management end.
6. The method according to any one of claims 1 to 4, characterized in that: When the data to be promoted corresponding to the identification information is loaded from the at least one target client, the following operations are performed: If the number of the target client is one, determining the address information corresponding to the target client, establishing point-to-point communication with the corresponding target client according to the address information, and then loading the data to be promoted corresponding to the identification information from the target client; If there are multiple target clients, the address information corresponding to each target client is determined, and the part of the data to be promoted obtained from each target client is determined respectively, and after establishing point-to-point communication with each corresponding target client based on each address information, the part of the data to be promoted corresponding to the identification information is loaded from each target client.
7. The method according to any one of claims 1 to 4, characterized in that: The selecting at least one target client in the candidate client set comprises: The address information of each candidate client in the candidate client set is determined, and based on the relative position between the local address and the address information of each candidate client, at least one target client meeting a preset condition is screened out from the candidate clients.
8. The method according to any one of claims 1 to 4, characterized in that: Authorization to provide external data loading services includes: Displaying authorization prompt information to the target object on the application operation page, wherein the authorization prompt information is used to prompt authorization to provide data loading services externally; Obtain a service authorization indication triggered by the target object.
9. A data loading device, characterized in that: include: a sending unit, configured to obtain identification information of the data to be promoted in response to a data loading instruction triggered by a target object in an operation interface for a target area, and send a data loading request to the application management end based on the identification information, wherein the data to be promoted is configured to be displayed in the target area; The determination unit is used to perform the following operations: If it is determined that a candidate client set fed back by the application management end is received, at least one target client is selected from the candidate client set, and the data to be promoted corresponding to the identification information is loaded from the at least one target client; wherein each candidate client is pre-loaded with the data to be promoted corresponding to the identification information, and is currently authorized to provide data loading services externally; If it is determined that the candidate client set fed back by the application management end has not been received, then when it is determined that there is at least one idle node matching the identification information, the at least one idle node is reused to load the data to be promoted corresponding to the identification information; wherein each idle node pre-stores the data to be promoted corresponding to the identification information, and the current bandwidth is idle.
10. The device according to claim 9, characterized in that After determining that the candidate client set fed back by the application management terminal is not received, in the case where it is determined that there is an idle node matching the identification information, before reusing the idle node to load the data to be promoted corresponding to the identification information, the determining unit is further configured to: When it is determined that the data to be promoted corresponding to the identification information is of a general type, the request delay duration is randomly determined; the data to be promoted of the general type is indiscriminately loaded on clients exceeding a set number; When it is determined that the timing duration reaches the request delay duration, a data loading request is resent to the application management end based on the identification information.
11. The device according to claim 10, characterized in that In the case where it is determined that there is at least one idle node matching the identification information, when the at least one idle node is reused to load the data to be promoted corresponding to the identification information, the determination unit is used to: Based on the identification information, sending a data loading request to a preset node management terminal; If at least one idle node address sent by the node management terminal is received, determining that there is an idle node matching the identification information; The data to be promoted corresponding to the identification information is loaded from at least one idle node corresponding to the at least one idle node address.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
