CN114979169B - A network resource push method, device, storage medium and electronic device - Google Patents
A network resource push method, device, storage medium and electronic device Download PDFInfo
- Publication number
- CN114979169B CN114979169B CN202210600141.1A CN202210600141A CN114979169B CN 114979169 B CN114979169 B CN 114979169B CN 202210600141 A CN202210600141 A CN 202210600141A CN 114979169 B CN114979169 B CN 114979169B
- Authority
- CN
- China
- Prior art keywords
- target message
- pushed
- bandwidth
- client terminal
- state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 79
- 238000012545 processing Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 claims description 9
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
- H04L67/1074—Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
- H04L67/1078—Resource delivery mechanisms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/20—Traffic policing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请提出一种网络资源推送方法、装置、存储介质及电子设备,基于需求带宽和实时下载带宽确定预估占用带宽。需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果。在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。能够统计到的存储服务器的下载带宽依然不会超过带宽阈值,保障不会出现存储服务器的下载带宽峰值过高的情况,从而避免导致储服务器的下载阻塞,且能够降低对应的流量计算费用。
This application proposes a network resource pushing method, device, storage medium and electronic equipment, which determines the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth. The required bandwidth is the bandwidth required when the target message in the to-be-pushed state is executed. The real-time download bandwidth is the sum of the bandwidth required when the target message in the first type of status is executed. The first type of status indicates that it has been pushed to the client terminal. target message, and the corresponding execution result was not obtained. When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, the resource identifier to be pushed is pushed to the client terminal to be pushed. The download bandwidth of the storage server that can be counted will still not exceed the bandwidth threshold, which ensures that the peak download bandwidth of the storage server will not be too high, thereby avoiding download congestion on the storage server and reducing the corresponding traffic calculation costs.
Description
技术领域Technical field
本申请涉及数据领域,具体而言,涉及一种网络资源推送方法、装置、存储介质及电子设备。The present application relates to the field of data, and more specifically, to a method, device, storage medium and electronic device for pushing network resources.
背景技术Background technique
随着互联网技术发展,网络资源种类越来越丰富,数量越来越大。网络资源包括视频资源、音频资源、图像资源、网页资源以及APP资源等等。数量巨大的网络资源可以集中存储在一个或几个存储服务器中。存储服务器响应用户终端的下载请求,将对应的网络资源下发给用户终端,现有的存储服务器虽然能提供高带宽下载能力,但高带宽下载能力如不加以限制往往给存储服务用户带来其他负担问题。With the development of Internet technology, the types and quantities of network resources are becoming more and more abundant. Network resources include video resources, audio resources, image resources, web page resources, APP resources, etc. A huge number of network resources can be centrally stored in one or several storage servers. The storage server responds to the user terminal's download request and delivers the corresponding network resources to the user terminal. Although the existing storage server can provide high-bandwidth download capabilities, if the high-bandwidth download capabilities are not restricted, it often brings other problems to storage service users. Burden issue.
如何保障存储服务器高效响应用户终端的下载请求,防止下载带宽出现过高的峰值引发其他问题,成为了本领域技术人员所关注的难题。How to ensure that the storage server efficiently responds to the download request of the user terminal and prevent the download bandwidth from having too high a peak value and causing other problems has become a difficult problem that technical personnel in this field are concerned about.
发明内容Contents of the invention
本申请的目的在于提供一种网络资源推送方法、装置、存储介质及电子设备,以至少部分改善上述问题。The purpose of this application is to provide a network resource pushing method, device, storage medium and electronic device to at least partially improve the above problems.
为了实现上述目的,本申请实施例采用的技术方案如下:In order to achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
第一方面,本申请实施例提供一种网络资源推送方法,应用于服务终端,所述方法包括:In the first aspect, embodiments of the present application provide a network resource pushing method, which is applied to service terminals. The method includes:
基于需求带宽和实时下载带宽确定预估占用带宽;Determine the estimated occupied bandwidth based on demand bandwidth and real-time download bandwidth;
其中,所述需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,所述实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,所述第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,所述待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识;Wherein, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed, and the first The class state represents the target message that has been pushed to the client terminal, and the corresponding execution result has not been obtained. The target message in the state to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed;
在所述预估占用带宽未超过预设的带宽阈值的情况下,将所述待推送的资源标识推送给所述待推送的客户终端;If the estimated occupied bandwidth does not exceed the preset bandwidth threshold, push the resource identifier to be pushed to the client terminal to be pushed;
所述客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,所述下载请求包括所述资源标识,所述存储服务器用于将所述资源标识对应的资源信息反馈给所述客户终端。The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identification. The download request includes the resource identification. The storage server is used to feed back the resource information corresponding to the resource identification to the storage server. The client terminal.
第二方面,本申请实施例提供一种网络资源推送方法,应用于推送系统,所述推送系统包括服务终端、客户终端以及存储服务器,所述服务终端、所述客户终端以及所述存储服务器中的任意两者间保持通信连接;In the second aspect, embodiments of the present application provide a method for pushing network resources, which is applied to a push system. The push system includes a service terminal, a client terminal, and a storage server. The service terminal, the client terminal, and the storage server Maintain a communication connection between any two;
所述服务终端基于需求带宽和实时下载带宽确定预估占用带宽;The service terminal determines the estimated occupied bandwidth based on the required bandwidth and the real-time download bandwidth;
其中,所述需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,所述实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,所述第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,所述待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识;Wherein, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed, and the first The class state represents the target message that has been pushed to the client terminal, and the corresponding execution result has not been obtained. The target message in the state to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed;
所述服务终端在所述预估占用带宽未超过预设的带宽阈值的情况下,将所述待推送的资源标识推送给所述待推送的客户终端;The service terminal pushes the resource identifier to be pushed to the client terminal to be pushed when the estimated occupied bandwidth does not exceed a preset bandwidth threshold;
所述客户终端执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,所述下载请求包括所述资源标识;The client terminal executes the target message and sends a download request to the storage server according to the received resource identification, where the download request includes the resource identification;
所述存储服务器将所述资源标识对应的资源信息反馈给所述客户终端。The storage server feeds back the resource information corresponding to the resource identifier to the client terminal.
第三方面,本申请实施例提供一种网络资源推送系统,所述推送系统包括服务终端、客户终端以及存储服务器,所述服务终端、所述客户终端以及所述存储服务器中的任意两者间保持通信连接;In a third aspect, embodiments of the present application provide a network resource push system. The push system includes a service terminal, a client terminal, and a storage server. Any two of the service terminal, the client terminal, and the storage server communicate with each other. maintain communication connections;
所述服务终端用于基于需求带宽和实时下载带宽确定预估占用带宽;The service terminal is used to determine the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth;
其中,所述需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,所述实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,所述第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,所述待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识;The required bandwidth is the bandwidth required when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth required when the target messages in the first category are executed. The first category represents the target message that has been pushed to the client terminal and the corresponding execution result has not been obtained. The target message in the to-be-pushed state includes the identifier of the client terminal to be pushed and the identifier of the resource to be pushed;
所述服务终端还用于在所述预估占用带宽未超过预设的带宽阈值的情况下,将所述待推送的资源标识推送给所述待推送的客户终端;The service terminal is also configured to push the resource identifier to be pushed to the client terminal to be pushed when the estimated occupied bandwidth does not exceed a preset bandwidth threshold;
所述客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,所述下载请求包括所述资源标识;The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identification, where the download request includes the resource identification;
所述存储服务器用于将所述资源标识对应的资源信息反馈给所述客户终端。The storage server is configured to feed back the resource information corresponding to the resource identifier to the client terminal.
第四方面,本申请实施例提供一种网络资源推送装置,应用于服务终端,所述装置包括:In the fourth aspect, embodiments of the present application provide a network resource pushing device, which is applied to service terminals. The device includes:
处理单元,用于基于需求带宽和实时下载带宽确定预估占用带宽;A processing unit configured to determine the estimated occupied bandwidth based on the demand bandwidth and real-time download bandwidth;
其中,所述需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,所述实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,所述第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,所述待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识;The required bandwidth is the bandwidth required when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth required when the target messages in the first category are executed. The first category represents the target message that has been pushed to the client terminal and the corresponding execution result has not been obtained. The target message in the to-be-pushed state includes the identifier of the client terminal to be pushed and the identifier of the resource to be pushed;
信息收发单元,用于在所述预估占用带宽未超过预设的带宽阈值的情况下,将所述待推送的资源标识推送给所述待推送的客户终端;An information transceiver unit configured to push the resource identifier to be pushed to the client terminal to be pushed when the estimated occupied bandwidth does not exceed a preset bandwidth threshold;
所述客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,所述下载请求包括所述资源标识,所述存储服务器用于将所述资源标识对应的资源信息反馈给所述客户终端。The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identification. The download request includes the resource identification. The storage server is used to feed back the resource information corresponding to the resource identification to the storage server. The client terminal.
第五方面,本申请实施例提供一种存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的方法。In a fifth aspect, embodiments of the present application provide a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.
第六方面,本申请实施例提供一种电子设备,所述电子设备包括:处理器和存储器,所述存储器用于存储一个或多个程序;当所述一个或多个程序被所述处理器执行时,实现上述的方法。In a sixth aspect, embodiments of the present application provide an electronic device. The electronic device includes: a processor and a memory, the memory being used to store one or more programs; when the one or more programs are processed by the processor When executed, the above methods are implemented.
相对于现有技术,本申请实施例所提供的一种网络资源推送方法、装置、存储介质及电子设备,基于需求带宽和实时下载带宽确定预估占用带宽。需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识。在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。能够统计到的存储服务器的下载带宽依然不会超过带宽阈值,保障不会出现存储服务器的下载带宽峰值过高的情况,从而避免导致储服务器的下载阻塞,且能够降低对应的流量计算费用。Compared with the existing technology, embodiments of the present application provide a network resource pushing method, device, storage medium and electronic device, which determines the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth. The required bandwidth is the bandwidth required when the target message in the to-be-pushed state is executed. The real-time download bandwidth is the sum of the bandwidth required when the target message in the first type of status is executed. The first type of status indicates that it has been pushed to the client terminal. The target message, and the corresponding execution result is not obtained, the target message in the to-be-pushed state includes the identifier of the client terminal to be pushed and the identifier of the resource to be pushed. When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, the resource identifier to be pushed is pushed to the client terminal to be pushed. The download bandwidth of the storage server that can be counted will still not exceed the bandwidth threshold, which ensures that the peak download bandwidth of the storage server will not be too high, thereby avoiding download congestion on the storage server and reducing the corresponding traffic calculation costs.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present application more obvious and understandable, preferred embodiments are given below and described in detail with reference to the attached drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore do not It should be regarded as a limitation of the scope. For those of ordinary skill in the art, other relevant drawings can also be obtained based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种网络资源推送的流程示意图;Figure 1 is a schematic flow chart of network resource pushing provided by an embodiment of the present application;
图2为本申请实施例提供的电子设备的结构示意图;Figure 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图3为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 3 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图4为本申请实施例提供的一种队列单元示意图;Figure 4 is a schematic diagram of a queue unit provided by an embodiment of the present application;
图5为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 5 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图6为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 6 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图7为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 7 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图8为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 8 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图9为本申请实施例提供的网络资源推送方法的流程示意图之一;FIG9 is a flow chart of a method for pushing network resources according to an embodiment of the present application;
图10为本申请实施例提供的网络资源推送方法的流程示意图之一;Figure 10 is one of the flow diagrams of the network resource pushing method provided by the embodiment of the present application;
图11为本申请实施例提供的网络资源推送装置的示意图。Figure 11 is a schematic diagram of a network resource pushing device provided by an embodiment of the present application.
图中:10-处理器;11-存储器;12-总线;13-通信接口;701-处理单元;702-信息收发单元。In the figure: 10-processor; 11-memory; 12-bus; 13-communication interface; 701-processing unit; 702-information transceiver unit.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments 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 These are part of the embodiments of this application, not all of them. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In the description of the present application, the terms “first”, “second”, etc. are only used to distinguish the descriptions and should not be understood as indicating or implying relative importance.
术语“包括”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。The term "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus including a list of elements includes not only those elements but also other elements not expressly listed, or is Also includes elements inherent to such process, method, article or equipment.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
网络资源推送的实现过程如下:将下载地址推送给终端设备,终端设备接收到包括下载地址的推送通知后,根据下载地址进行资源下载,具体地,可以向存储网络资源的存储服务器请求下载地址对应的网络资源。存储服务器考虑避免系统设计的复杂性、与其他系统的高耦合性,对终端设备下载行为的下载带宽进行不监测与控制,在该实现方式中,在某一个时间段内,同时推送的终端设备的数量决定了存储服务器的下载带宽峰值。例如,当同时推送的终端设备的数量较大时,会导致下载带宽峰值很高。可选地,资源存储和下载采用的公有云服务按照带宽峰值收费,在下载带宽峰值很高,会产生相对高额的费用。The implementation process of network resource push is as follows: push the download address to the terminal device. After the terminal device receives the push notification including the download address, it downloads the resource according to the download address. Specifically, it can request the network resource corresponding to the download address from the storage server that stores the network resource. In order to avoid the complexity of system design and high coupling with other systems, the storage server does not monitor and control the download bandwidth of the terminal device download behavior. In this implementation method, within a certain time period, the number of terminal devices pushed at the same time determines the download bandwidth peak of the storage server. For example, when the number of terminal devices pushed at the same time is large, the download bandwidth peak will be very high. Optionally, the public cloud service used for resource storage and download is charged according to the bandwidth peak. When the download bandwidth peak is very high, relatively high fees will be incurred.
请参考图1,图1为本申请实施例提供的一种网络资源推送的流程示意图。如图1所示,网络资源推送的流程包括第一步、第二步、第三步、第四步、第五步以及第六步,具体阐述如下。Please refer to Figure 1, which is a schematic diagram of a process of network resource push provided by an embodiment of the present application. As shown in Figure 1, the process of network resource push includes the first step, the second step, the third step, the fourth step, the fifth step and the sixth step, which are specifically described as follows.
第一步,上传素材,具体地,服务终端将网络资源上传存储服务器。The first step is to upload materials. Specifically, the service terminal uploads network resources to the storage server.
存储服务器在接收到网络资源后,会对其进行存储,并将其存储地址确定为网络资源的下载地址,又称为资源地址或资源存储地址。资源地址可以为统一资源定位器(Uniform Resource Locator,简称URL)。After receiving the network resource, the storage server will store it and determine its storage address as the download address of the network resource, also known as the resource address or resource storage address. The resource address may be a Uniform Resource Locator (URL).
第二步,存储服务器向服务终端反馈资源地址。In the second step, the storage server feeds back the resource address to the service terminal.
第三步,服务终端向客户终端传输推送请求,推送请求包括资源地址。In the third step, the service terminal transmits a push request to the client terminal, and the push request includes the resource address.
第四步,客户终端在接收到推送请求后,可以向存储服务器传输下载请求,下载请求包括资源地址。In the fourth step, after receiving the push request, the client terminal can transmit a download request to the storage server. The download request includes the resource address.
第五步,存储服务器在接收到下载请求后,获取资源地址对应的网络资源,并将该网络资源下发给客户终端。In the fifth step, after receiving the download request, the storage server obtains the network resource corresponding to the resource address and sends the network resource to the client terminal.
第六步,客户终端在接收到对应的网络资源后,向服务终端反馈下载成功指示。In the sixth step, after receiving the corresponding network resource, the client terminal feeds back a download success indication to the service terminal.
以网络资源为广告素材作为示例进行说明,广告素材存储在云服务器中,例如阿里云OSS服务器。服务终端向支付显示终端(客户终端)进行推送广告素材,假设阿里云OSS服务器没有可以检测实时带宽的接口,支付显示终端由于所要实现的功能相对比较单一,基于硬件成本控制的考虑,支付显示终端中没有预制相关网速检测模块,支付显示终端由于使用场景的特殊性,需要较高的安全性,因此广告服务端的关联性较低,支付显示终端应避免不必要的数据上传功能到广告服务端。在该场景下,带宽并不是以采集实时下载速率进行计算的,而是以素材包的容量进行计算,当素材包的容量计入下载后,无论终端是否实际存在下载,均计入到带宽计算中,因此需要检测因未建立连接的支付终端的并将其对应的广告素材占用的带宽进行及时释放。Taking network resources as advertising materials as an example, the advertising materials are stored in cloud servers, such as Alibaba Cloud OSS servers. The service terminal pushes advertising materials to the payment display terminal (client terminal). Assuming that the Alibaba Cloud OSS server does not have an interface that can detect real-time bandwidth, the payment display terminal has a relatively simple function to be implemented. Based on the consideration of hardware cost control, the payment display terminal There is no pre-made related network speed detection module in the payment display terminal. Due to the particularity of the usage scenario, the payment display terminal requires higher security, so the relevance of the advertising server is low. The payment display terminal should avoid unnecessary data upload functions to the advertising server. . In this scenario, the bandwidth is not calculated based on the real-time download rate collected, but based on the capacity of the material package. When the capacity of the material package is included in the download, it will be included in the bandwidth calculation regardless of whether there is actual downloading on the terminal. Therefore, it is necessary to detect the payment terminal that has not established a connection and release the bandwidth occupied by its corresponding advertising material in a timely manner.
本申请实施例提供了一种电子设备,可以是上文所述的服务终端、客户终端以及存储服务器中的任意一种。请参照图2,电子设备的结构示意图。电子设备包括处理器10、存储器11、总线12。处理器10、存储器11通过总线12连接,处理器10用于执行存储器11中存储的可执行模块,例如计算机程序。The embodiment of the present application provides an electronic device, which can be any one of the above-mentioned service terminal, client terminal and storage server. Please refer to Figure 2, which is a schematic structural diagram of the electronic device. The electronic device includes a processor 10 , a memory 11 , and a bus 12 . The processor 10 and the memory 11 are connected through a bus 12, and the processor 10 is used to execute executable modules stored in the memory 11, such as computer programs.
处理器10可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,网络资源推送方法的各步骤可以通过处理器10中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器10可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(DigitalSignal Processor,简称DSP)、专用集成电路(Application Specific IntegratedCircuit,简称ASIC)、现场可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The processor 10 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the network resource pushing method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 10 . The above-mentioned processor 10 can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; it can also be a digital signal processor (DigitalSignal Processor, DSP for short). , Application Specific Integrated Circuit (ASIC for short), Field-Programmable Gate Array (FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
存储器11可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 11 may include high-speed random access memory (RAM: Random Access Memory), and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
总线12可以是ISA(Industry Standard Architecture)总线、PCI(PeripheralComponent Interconnect)总线或EISA(Extended Industry Standard Architecture)总线等。图2中仅用一个双向箭头表示,但并不表示仅有一根总线12或一种类型的总线12。The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. FIG2 shows only one bidirectional arrow, but does not mean that there is only one bus 12 or one type of bus 12 .
存储器11用于存储程序,例如网络资源推送装置对应的程序。网络资源推送装置包括至少一个可以软件或固件(firmware)的形式存储于存储器11中或固化在电子设备的操作系统(operating system,OS)中的软件功能模块。处理器10在接收到执行指令后,执行所述程序以实现网络资源推送方法。The memory 11 is used to store programs, such as programs corresponding to the network resource push device. The network resource pushing device includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or solidified in the operating system (OS) of the electronic device. After receiving the execution instruction, the processor 10 executes the program to implement the network resource pushing method.
可能地,本申请实施例提供的电子设备还包括通信接口13。通信接口13通过总线与处理器10连接。Possibly, the electronic device provided in the embodiment of the present application further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.
应理解,在本申请实施例中,服务终端分别与客户终端、存储服务器通信连接,存储服务器与客户终端通信连接。It should be understood that in this embodiment of the present application, the service terminal is communicatively connected to the client terminal and the storage server, and the storage server is communicatively connected to the client terminal.
应当理解的是,图2所示的结构仅为电子设备的部分的结构示意图,电子设备还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。图2中所示的各组件可以采用硬件、软件或其组合实现。It should be understood that the structure shown in FIG. 2 is only a schematic structural diagram of a part of an electronic device. The electronic device may also include more or fewer components than shown in FIG. 2 , or have a different configuration than that shown in FIG. 2 . Each component shown in Figure 2 can be implemented in hardware, software, or a combination thereof.
本申请实施例提供的一种网络资源推送方法,可以但不限于应用于服务终端,具体的流程,请参考图3,网络资源推送方法包括:S201和S203,具体阐述如下。The network resource pushing method provided by the embodiment of the present application can be, but is not limited to, applied to service terminals. Please refer to Figure 3 for the specific process. The network resource pushing method includes: S201 and S203, which are described in detail as follows.
S201,基于需求带宽和实时下载带宽确定预估占用带宽。S201: Determine the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth.
其中,需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识。执行结果可以为下载成功或下载超时。Among them, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed. The first type of status indicates that it has been pushed to The target message of the client terminal, and the corresponding execution result has not been obtained. The target message in the status to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed. The execution result can be download success or download timeout.
应理解,待推送的资源标识对应一个或多个存储于存储服务器中的网络资源信息,待推送的资源标识对应的资源信息的容量为待推送状态的目标消息被执行时所需要占用的带宽,即为需求带宽。It should be understood that the resource identifier to be pushed corresponds to one or more network resource information stored in the storage server, and the capacity of the resource information corresponding to the resource identifier to be pushed is the bandwidth required when the target message in the to-be-pushed state is executed. That is the required bandwidth.
所有第一类状态的目标消息中的资源标识对应的资源信息的容量的总和,等于第一类状态的目标消息被执行时所需要占用的带宽的总和,即为实时下载带宽。The sum of the capacities of resource information corresponding to resource identifiers in all target messages of the first state is equal to the sum of bandwidths required when the target messages of the first state are executed, which is the real-time download bandwidth.
预估占用带宽表征在完成待推送状态的目标消息的推送后,即将该待推送状态的目标消息发送给客户终端后,预估的存储服务器的下载带宽。The estimated occupied bandwidth represents the estimated download bandwidth of the storage server after completing the push of the target message in the to-be-pushed state, that is, after sending the target message in the to-be-pushed state to the client terminal.
S203,在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。S203: When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, push the resource identifier to be pushed to the client terminal to be pushed.
应理解,当预估占用带宽过高时,可能会导致存储服务器下载阻塞,并且可能会产生高额的费用,所以需要对预估占用带宽的最大值进行限定,即上文中的带宽阈值。It should be understood that when the estimated occupied bandwidth is too high, it may cause download congestion on the storage server and may incur high fees. Therefore, it is necessary to limit the maximum value of the estimated occupied bandwidth, that is, the bandwidth threshold mentioned above.
在预估占用带宽未超过预设的带宽阈值的情况下,表示即使将该待推送状态的目标消息发送给客户终端,能够统计到的存储服务器的下载带宽依然不会超过带宽阈值,保障不会出现存储服务器的下载带宽峰值过高的情况,从而避免导致储服务器的下载阻塞,且能够降低对应的流量计算费用。When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, it means that even if the target message to be pushed is sent to the client terminal, the download bandwidth of the storage server that can be counted will still not exceed the bandwidth threshold, ensuring that it will not When the peak download bandwidth of the storage server is too high, this avoids download congestion on the storage server and reduces the corresponding traffic calculation costs.
客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,下载请求包括资源标识,存储服务器用于将资源标识对应的资源信息反馈给客户终端。The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identification. The download request includes the resource identification. The storage server is used to feed back the resource information corresponding to the resource identification to the client terminal.
综上所述,本申请实施例提供的网络资源推送方法,基于需求带宽和实时下载带宽确定预估占用带宽。需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端和待推送的资源标识。在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。能够统计到的存储服务器的下载带宽依然不会超过带宽阈值,保障不会出现存储服务器的下载带宽峰值过高的情况,从而避免导致储服务器的下载阻塞,且能够降低对应的流量计算费用。To sum up, the network resource pushing method provided by the embodiment of the present application determines the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth. The required bandwidth is the bandwidth required when the target message in the to-be-pushed state is executed. The real-time download bandwidth is the sum of the bandwidth required when the target message in the first type of status is executed. The first type of status indicates that it has been pushed to the client terminal. The target message is in the state and the corresponding execution result is not obtained. The target message in the status to be pushed includes the client terminal to be pushed and the resource identifier to be pushed. When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, the resource identifier to be pushed is pushed to the client terminal to be pushed. The download bandwidth of the storage server that can be counted will still not exceed the bandwidth threshold, which ensures that the peak download bandwidth of the storage server will not be too high, thereby avoiding download congestion on the storage server and reducing the corresponding traffic calculation costs.
在图3的基础上,关于资源标识的类型,本申请实施例还提供以下可能的实现方式。Based on Figure 3, regarding the type of resource identification, the embodiment of this application also provides the following possible implementation methods.
第一种,资源标识可以是上文中的资源地址,例如URL地址。在此情况下,存储服务器在接收到包括资源地址的下载请求后,可以直接调用资源地址对应的网络资源信息,将网络资源信息反馈给客户终端,快速响应客户终端的下载请求。First, the resource identifier can be the resource address mentioned above, such as a URL address. In this case, after receiving a download request including a resource address, the storage server can directly call the network resource information corresponding to the resource address, feed the network resource information back to the client terminal, and quickly respond to the client terminal's download request.
第二种,资源标识可以是标号(例如ID)、名称或者特征码。存储服务器中配置有资源标识与网络资源信息之间映射关系,例如映射表。Second, the resource identifier can be a label (such as ID), name or feature code. The storage server is configured with a mapping relationship between resource identifiers and network resource information, such as a mapping table.
存储服务器在接收到包括资源标识的下载请求后,通过查询映射关系,确定对应的网络资源信息,将网络资源信息反馈给客户终端,快速响应客户终端的下载请求。After receiving the download request including the resource identifier, the storage server determines the corresponding network resource information by querying the mapping relationship, feeds the network resource information back to the client terminal, and quickly responds to the client terminal's download request.
在此种场景下,即使客户终端的下载请求或服务终端传输给客户终端的推送通知被拦截,拦截者也不能直接获知网络资源信息的存储地址,降低了网络资源信息被篡改的风险。In this scenario, even if the download request from the client terminal or the push notification transmitted from the service terminal to the client terminal is intercepted, the interceptor cannot directly know the storage address of the network resource information, which reduces the risk of network resource information being tampered with.
在一种可能的实现方式中,服务终端配置有先进先出的推送队列,待推送状态的目标消息为在推送队列中的第一个目标消息。当然地,在一些时段下推送队列可以为空置状态,其中未存储任何目标消息,则不需要进行推送。请参考图4,图4为本申请实施例提供的一种队列单元示意图。如图4所示,当推送队列为非空置状态时,推送队列中包括第k个目标消息到第m个目标消息,m大于或等于k,第k个目标消息为当前时刻下推送队列中的第一个目标消息,第k个目标消息为待推送状态的目标消息。In one possible implementation, the service terminal is configured with a first-in-first-out push queue, and the target message to be pushed is the first target message in the push queue. Of course, during some periods the push queue may be empty and no target messages are stored in it, so there is no need to push. Please refer to Figure 4, which is a schematic diagram of a queue unit provided by an embodiment of the present application. As shown in Figure 4, when the push queue is in a non-empty state, the push queue includes the k-th target message to the m-th target message, m is greater than or equal to k, and the k-th target message is in the push queue at the current moment. The first target message and the k-th target message are the target messages to be pushed.
应理解,服务终端每一次仅推送一个目标消息,在第k个目标消息被推送后,第k+1个目标消息即为新的待推送状态的目标消息。It should be understood that the service terminal pushes only one target message each time, and after the kth target message is pushed, the k+1th target message is the new target message in the to-be-pushed state.
在服务终端配置有先进先出的推送队列的基础上,关于推送队列中的目标消息构建,本申请实施例还提供了一种可能的实现方式,请参考图5,网络资源推送方法还包括:S101和S102,具体阐述如下。On the basis that the service terminal is configured with a first-in-first-out push queue, the embodiment of the present application also provides a possible implementation method regarding the construction of the target message in the push queue. Please refer to Figure 5. The network resource push method also includes: S101 and S102 are detailed as follows.
S101,获取推送请求。S101, obtain the push request.
其中,推送请求包括客户终端的标识和资源标识。The push request includes the client terminal identifier and resource identifier.
应理解,推送请求可以工作人员通过人机交互设备在服务终端上所创建的,也可以是其他终端(例如工作人员终端或管理终端)传输给服务终端的。It should be understood that the push request may be created by a staff member on the service terminal through a human-computer interaction device, or may be transmitted to the service terminal by another terminal (such as a staff terminal or a management terminal).
S102,依据获取到的推送请求,在推送队列的尾端构建新的目标消息。S102: Construct a new target message at the end of the push queue based on the obtained push request.
需要指出的是,对于不同的存储服务器,设置有不同的推送队列。It should be pointed out that different push queues are set for different storage servers.
可选地,对于S102中的内容,本申请实施例还提供了一种可能的实现方式,具体阐述如下。Optionally, for the content in S102, the embodiment of this application also provides a possible implementation manner, which is specifically described as follows.
依据推送请求中的资源标识确定目标存储服务器,目标存储服务器为存储有资源标识对应的网络资源信息的存储服务器。The target storage server is determined based on the resource identifier in the push request, and the target storage server is a storage server that stores network resource information corresponding to the resource identifier.
依据目标存储服务器确定目标推送队列。The target push queue is determined based on the target storage server.
在目标推送队列构建与推送请求对应的新的目标消息。Construct a new target message corresponding to the push request in the target push queue.
应理解,不同的存储服务器的运营商可能不同,每一个存储服务器的下载带宽是分开单独计算的,为了精确控制不同的存储服务器的下载带宽,需要对于不同的存储服务器,设置不同的推送队列。It should be understood that different storage server operators may be different, and the download bandwidth of each storage server is calculated separately. In order to accurately control the download bandwidth of different storage servers, different push queues need to be set for different storage servers.
需要说明的是,图5中所示的步骤S101和S102,与图3中所示的步骤S201和S203,之间的执行并没有先后顺序,图5和图3中所示的步骤可以独立分开执行。It should be noted that there is no order of execution between steps S101 and S102 shown in Figure 5 and steps S201 and S203 shown in Figure 3. The steps shown in Figure 5 and Figure 3 can be separated independently. implement.
在一种可能的实现方式中,服务终端还配置有缓存单元,第一类状态的目标消息为缓存单元中的目标消息。应理解,缓存单元中的目标消息中的资源标识对应的资源信息的容量的总和即为实时下载带宽。In a possible implementation manner, the service terminal is further configured with a cache unit, and the target message in the first type state is the target message in the cache unit. It should be understood that the sum of the capacities of the resource information corresponding to the resource identifiers in the target message in the cache unit is the real-time download bandwidth.
当然地,在一些时段下(例如目标消息推送间隔时长过长时)缓存单元可以为空置状态,其中未存储任何目标消息,则此时实时下载带宽为0。Of course, in some periods of time (for example, when the target message push interval is too long) the cache unit may be in an empty state and no target message is stored in it, and then the real-time download bandwidth is 0 at this time.
请参考图4,当缓存单元为非空置状态,缓存单元中包括第h个目标消息到第k-1个目标消息,h小于或等于k-1。需要说明的是,从h到k-1可以是连续的数组,也可以是不连续的数组。Please refer to Figure 4. When the cache unit is in a non-empty state, the cache unit includes the h-th target message to the k-1th target message, and h is less than or equal to k-1. It should be noted that from h to k-1 can be a continuous array or a discontinuous array.
在服务终端配置有推送队列和缓存单元的基础上,关于实时下载带宽的更新,本申请实施例还提供了一种可能的实现方式,请参考图6,在S203之后,网络资源推送方法还包括:S205和S206,具体阐述如下。On the basis that the service terminal is configured with a push queue and a cache unit, the embodiment of the present application also provides a possible implementation method for updating the real-time download bandwidth. Please refer to Figure 6. After S203, the network resource push method also includes : S205 and S206, the details are as follows.
S205,将待推送状态的目标消息从推送队列迁移至缓存单元中。S205: Migrate the target message to be pushed from the push queue to the cache unit.
请继续参考图4,假设第k个目标消息为待推送状态的目标消息。在将第k个目标消息推送给对应的客户终端后。为了避免重复推送第k个目标消息,需要执行S205,将第k个目标消息从推送队列迁移至缓存单元中。应理解,在S205之后,迁移至缓存单元中的目标消息的由待推送状态切换为第一类状态。Please continue to refer to Figure 4, assuming that the k-th target message is a target message in a pending push state. After pushing the k-th target message to the corresponding client terminal. In order to avoid repeatedly pushing the k-th target message, S205 needs to be executed to migrate the k-th target message from the push queue to the cache unit. It should be understood that after S205, the target message migrated to the cache unit is switched from the state to be pushed to the first type state.
应理解,目标消息添加至缓存单元后,处于第一类状态,目标消息对应的网络资源信息的容量计入实时下载带宽。It should be understood that after the target message is added to the cache unit, it is in the first state, and the capacity of the network resource information corresponding to the target message is included in the real-time download bandwidth.
S206,在接收客户终端反馈的下载成功指示之后,将下载成功指示对应的目标消息从第一类状态修改为第二类状态,或将下载成功指示对应的目标消息从缓存单元中移除。S206: After receiving the download success indication fed back by the client terminal, modify the target message corresponding to the download success indication from the first type state to the second type state, or remove the target message corresponding to the download success indication from the cache unit.
请参考图1所示的步骤,客户终端在接收到存储服务器反馈的网络资源信息时,会生成下载成功指示,并将下载成功指示反馈给服务终端。需要说明的是,下载成功指示包括对应的资源标识。Please refer to the steps shown in Figure 1. When the client terminal receives the network resource information fed back by the storage server, it will generate a download success indication and feed back the download success indication to the service terminal. It should be noted that the download success indication includes the corresponding resource identifier.
服务终端在接收到下载成功指示后,依据其中的资源标识确定下载成功指示对应的目标消息。应理解,下载成功指示对应的目标消息存储在缓存单元中。此时,可以将下载成功指示对应的目标消息从第一类状态修改为第二类状态,或将下载成功指示对应的目标消息从缓存单元中移除。After receiving the download success indication, the service terminal determines the target message corresponding to the download success indication according to the resource identifier therein. It should be understood that the target message corresponding to the download success indication is stored in the cache unit. At this time, the target message corresponding to the download success indication can be modified from the first category state to the second category state, or the target message corresponding to the download success indication can be removed from the cache unit.
可选地,第二类状态可以是迁移至持久化存储的数据库中,并可以将其标记为推送成功状态。Optionally, the second type of status can be migrated to the database of persistent storage, and can be marked as a push success status.
应理解,下载成功指示对应的目标消息对应的网络资源信息的容量不再计入实时下载带宽。随着缓存单元中的目标消息发生变化,实时下载带宽也会随之更新。It should be understood that the capacity of the network resource information corresponding to the target message corresponding to the download success indication is no longer counted in the real-time download bandwidth. As the target message in the cache unit changes, the real-time download bandwidth will also be updated accordingly.
在一种可能的实现方式中,服务终端还配置有重试队列,重试队列用于存储下载超时的目标消息。下载超时的目标消息为在推送给客户终端之后预设的第一时间间隔内未收到对应的下载成功指示的目标消息。In a possible implementation, the service terminal is further configured with a retry queue, which is used to store target messages with download timeouts. The target messages with download timeouts are target messages for which no corresponding download success indication is received within a preset first time interval after being pushed to the client terminal.
当然地,在一些时段下重试队列可以为空置状态,其中未存储任何目标消息,则此时不存在下载超时的目标消息。Of course, in some periods of time, the retry queue may be empty and no target message is stored in it, and then there is no download timeout target message at this time.
请参考图4,当重试队列为非空置状态,重试队列中包括第k-o个目标消息、第k-p个目标消息以及第k-q个目标消息等等。需要说明的是,重试队列的目标消息也可以是不连续排列的。Please refer to Figure 4. When the retry queue is in a non-empty state, the retry queue includes the k-oth target message, the k-pth target message, the k-qth target message, and so on. It should be noted that the target messages of the retry queue may also be arranged discontinuously.
在服务终端配置有重试队列和缓存单元的基础上,关于如何对重试队列进行管理,本申请实施例还提供了一种可能的实现方式,请继续参考6,在S205之后,网络资源推送方法还包括:S207,具体阐述如下。On the basis that the service terminal is configured with a retry queue and a cache unit, regarding how to manage the retry queue, the embodiment of the present application also provides a possible implementation method, please continue to refer to 6. After S205, the network resource push method also includes: S207, which is specifically described as follows.
S207,若出现下载超时的目标消息,将下载超时的目标消息从缓存单元中迁移至重试队列。S207: If a download timeout target message occurs, the download timeout target message is migrated from the cache unit to the retry queue.
可选地,在客户终端未开机或网络服务信号差的情况下,客户终端可能并未接收到目标消息,或即使接收到了目标消息,也可能不会向存储服务器发送下载请求。在此情况下,可能会导致出现下载超时的目标消息,在推送给客户终端之后预设的第一时间间隔内未收到对应的下载成功指示的目标消息。应理解,下载超时的目标消息往往并没有实际占用存储服务器的下载带宽,但若下载超时的目标消息一直存储在缓存单元中,则会持续去统计下载超时的目标消息对应的网络资源信息的容量,作为实时下载带宽的一部分。明显地,下载超时的目标消息对应的网络资源信息的容量为冗余带宽,需要从实时下载带宽中将冗余带宽释放掉,所以需要执行S207,将下载超时的目标消息从缓存单元中迁移至重试队列。Alternatively, when the client terminal is not powered on or the network service signal is poor, the client terminal may not receive the target message, or even if it receives the target message, it may not send a download request to the storage server. In this case, the target message may cause a download timeout, and the corresponding target message indicating a successful download is not received within the preset first time interval after being pushed to the client terminal. It should be understood that the download timeout target message often does not actually occupy the download bandwidth of the storage server. However, if the download timeout target message is always stored in the cache unit, the capacity of the network resource information corresponding to the download timeout target message will continue to be counted. , as part of the real-time download bandwidth. Obviously, the capacity of the network resource information corresponding to the download timeout target message is redundant bandwidth, and the redundant bandwidth needs to be released from the real-time download bandwidth. Therefore, S207 needs to be executed to migrate the download timeout target message from the cache unit to Retry queue.
在服务终端配置有重试队列的基础上,关于如何对重试队列进行管理,本申请实施例还提供了一种可能的实现方式,请继续参考7,网络资源推送方法还包括:S301、S302以及S302,具体阐述如下。On the basis that the service terminal is configured with a retry queue, the embodiment of this application also provides a possible implementation method for how to manage the retry queue. Please continue to refer to 7. The network resource push method also includes: S301, S302 and S302, which are described in detail below.
S301,确定待重发的目标消息的下载超时次数是否小于预设的次数阈值。若是,则执行S302;若否,则执行S303。S301: Determine whether the number of download timeouts of the target message to be retransmitted is less than a preset threshold. If yes, execute S302; if not, execute S303.
其中,待重发的目标消息为重试队列中的任意一个目标消息。Among them, the target message to be resent is any target message in the retry queue.
可选地,将下载超时的目标消息从缓存单元中迁移至重试队列时,根据新迁移至重试队列的目标消息中的客户终端和资源标识确定其迁移至重试队列中的次数,即下载超时次数。Optionally, when the target message with download timeout is migrated from the cache unit to the retry queue, the number of migrations to the retry queue, ie, the number of download timeouts, is determined according to the client terminal and resource identifier in the target message newly migrated to the retry queue.
待重发的目标消息的下载超时次数大于或等于预设的次数阈值,说明书对应的客户终端未工作,即使继续推送,仍然可能出现下载超时,所以需要执行S303,从重试队列将待重发的目标消息移除。The number of download timeouts of the target message to be resent is greater than or equal to the preset threshold. The client terminal corresponding to the instruction is not working. Even if the push is continued, a download timeout may still occur. Therefore, S303 needs to be executed to remove the target message to be resent from the retry queue. Target message removed.
待重发的目标消息的下载超时次数小于预设的次数阈值时,为了尽可能保障能够将目标消息推送到对应的客户终端,需要执行S302。When the number of download timeouts of the target message to be resent is less than the preset threshold, in order to ensure that the target message can be pushed to the corresponding client terminal as much as possible, S302 needs to be executed.
S302,在第二时间间隔后,将待重发的目标消息作为新的目标消息,迁移至推送队列。S302: After the second time interval, the target message to be resent is used as a new target message and moved to the push queue.
应理解,在待重发的目标消息最新写入重试队列的时间点之后的第二时间间隔,例如300s,将待重发的目标消息作为新的目标消息,迁移至推送队列。It should be understood that in the second time interval, for example, 300 seconds, after the time point when the target message to be resent is last written into the retry queue, the target message to be resent is taken as a new target message and migrated to the push queue.
S302,从重试队列将待重发的目标消息移除。S302, remove the target message to be resent from the retry queue.
应理解,从重试队列中移除的目标消息,不需要再进行推送。It should be understood that target messages removed from the retry queue do not need to be pushed again.
在一种可能的情况下,目标消息对应的网络资源信息的容量过大,导致下载时间过长,被误认为下载超时的目标消息,从而进行了重复推送。In one possible case, the capacity of the network resource information corresponding to the target message is too large, causing the download time to be too long, and it is mistaken for the target message with a download timeout, so the message is pushed repeatedly.
需要说明的是,客户终端在重复接收到相同的目标消息时,不会重复向存储服务器发送下载请求。It should be noted that when the client terminal repeatedly receives the same target message, it will not repeatedly send download requests to the storage server.
需要说明的是,图7中所示的步骤S301、S302以及S303,与图3中所示的步骤S201和S203,之间的执行并没有先后顺序,图7和图3中所示的步骤可以独立分开执行。It should be noted that there is no order of execution between steps S301, S302 and S303 shown in Figure 7 and steps S201 and S203 shown in Figure 3. The steps shown in Figure 7 and Figure 3 can be Execute independently.
在服务终端配置有推送队列的基础上,关于如何灵活调整带宽阈值,本申请实施例还提供了一种可能的实现方式,请参考图8,网络资源推送方法还包括:S401、S402以及S403,具体阐述如下。On the basis that the service terminal is configured with a push queue, the embodiment of this application also provides a possible implementation method for how to flexibly adjust the bandwidth threshold. Please refer to Figure 8. The network resource push method also includes: S401, S402 and S403. The details are as follows.
S401,确定推送队列中的目标消息的总数量是否小于预设的第一数量阈值。若是,则执行S403;若否,则执行S402。S401. Determine whether the total number of target messages in the push queue is less than a preset first quantity threshold. If yes, execute S403; if not, execute S402.
应理解,推送队列中的目标消息的总数量表征下载积压程度,在推送队列中的目标消息的总数量大于或等于第一数量阈值时,表示下载积压程度过高,此时为了缓解下载积压程度,需要执行S402,增大带宽阈值。反之,在推送队列中的目标消息的总数量小于预设的第一数量阈值时,可以执行S403,保持带宽阈值不变,以限制下载带宽峰值,避免产生不必要的费用。It should be understood that the total number of target messages in the push queue represents the download backlog. When the total number of target messages in the push queue is greater than or equal to the first quantity threshold, it indicates that the download backlog is too high. At this time, in order to alleviate the download backlog , you need to execute S402 to increase the bandwidth threshold. On the contrary, when the total number of target messages in the push queue is less than the preset first quantity threshold, S403 can be executed to keep the bandwidth threshold unchanged to limit the peak download bandwidth and avoid unnecessary charges.
S402,增大带宽阈值。S402: Increase the bandwidth threshold.
可选地,依据推送队列中的目标消息的总数量与第一数量阈值之间的差值,确定增幅,基于增幅在当前的带宽阈值的基础上,进行调整,从而增大带宽阈值。Optionally, the increase is determined based on the difference between the total number of target messages in the push queue and the first quantity threshold, and based on the increase, the current bandwidth threshold is adjusted to increase the bandwidth threshold.
S403,保持带宽阈值不变。S403, keep the bandwidth threshold unchanged.
通过监控数据中的下载积压情况,在服务配置中心动态调整下载的带宽阈值,达到下载带宽控制和推送效率的平衡。By monitoring the download backlog in the data, the download bandwidth threshold is dynamically adjusted in the service configuration center to achieve a balance between download bandwidth control and push efficiency.
需要说明的是,图8中所示的步骤S401、S402以及S403,与图3中所示的步骤S201和S203,之间的执行并没有先后顺序,图8和图3中所示的步骤可以独立分开执行。It should be noted that there is no order of execution between steps S401, S402 and S403 shown in Figure 8 and steps S201 and S203 shown in Figure 3. The steps shown in Figure 8 and Figure 3 can be Execute independently.
在图3的基础上,关于如何实现网络资源推送,本申请实施例还提供了一种可能的实现方式,请参考图9,在S201之后,网络资源推送方法还包括:S202和S204,具体阐述如下。On the basis of Figure 3, regarding how to implement network resource push, the embodiment of the present application also provides a possible implementation method. Please refer to Figure 9. After S201, the network resource push method also includes: S202 and S204. Detailed description as follows.
S202,确定预估占用带宽是否超过预设的带宽阈值。若是,则执行S204;若否,则执行S203。S202: Determine whether the estimated occupied bandwidth exceeds a preset bandwidth threshold. If yes, execute S204; if not, execute S203.
S204,等待第三时间间隔。S204, wait for the third time interval.
在等待第三时间间隔后,重复执行S201,确定预估占用带宽是否超过预设的带宽阈值,直至预估占用带宽未超过预设的带宽阈值。After waiting for the third time interval, S201 is repeatedly performed to determine whether the estimated occupied bandwidth exceeds the preset bandwidth threshold, until the estimated occupied bandwidth does not exceed the preset bandwidth threshold.
关于如何对服务终端进行配置,本申请实施例还提供了一种可能的实现方式,请参考下文。Regarding how to configure the service terminal, the embodiment of this application also provides a possible implementation method, please refer to the following.
在服务终端配置中心设置带宽阈值、第一时间间隔(下载超时时间)、第二时间间隔(重试间隔)以及次数阈值(超时重试次数)等Set the bandwidth threshold, first time interval (download timeout), second time interval (retry interval), and number threshold (number of timeout retries) in the service terminal configuration center.
(//广告推送调度配置(//Ad push scheduling configuration
"AdPushOption":{"AdPushOption":{
"Enable":true,//是否启用,如不启用则直接推送上架消息;修改后立即生效,不用重启服务 "Enable": true, //Whether it is enabled, if not enabled, the listing message will be pushed directly; the modification will take effect immediately without restarting the service.
"DowloadLimit":30.0,//带宽阈值,单位MB,修改后立即生效 "DowloadLimit":30.0,//Bandwidth threshold, unit MB, effective immediately after modification
"DownloadTimeout":"00:02:00",//下载超时时间,默认2分钟,修改后立即生效"DownloadTimeout":"00:02:00", //Download timeout, default is 2 minutes, change will take effect immediately
"RetryInterval":300,//重试间隔,默认5分钟"RetryInterval": 300, //Retry interval, default 5 minutes
"RetryLimit":3//重试次数上限,默认3 "RetryLimit":3//The upper limit of retries, default 3
})})
应理解,第三时间间隔的设置可以同理实现。It should be understood that the setting of the third time interval can be implemented in the same way.
在一种可能的实现方式中,服务终端可以对实时下载带宽、正在下载终端、重试队列等进行监控并显示,用来观察推送状态和问题排查。还可以提供人工推送的操作,可以在极端异常情况下(自动调度出现问题时,可以手动关闭自动调度),手(人)工介入,保证业务可用。In one possible implementation, the service terminal can monitor and display real-time download bandwidth, downloading terminals, retry queues, etc., to observe push status and troubleshoot problems. It can also provide manual push operations. In extreme abnormal situations (when automatic scheduling has problems, automatic scheduling can be manually turned off), manual (manual) intervention can be performed to ensure that the business is available.
请参考图10,本申请实施例还提供了一种可能的网络资源推送实现方式,应用于推送系统。推送系统包括服务终端、客户终端以及存储服务器,服务终端、客户终端以及存储服务器中的任意两者间保持通信连接。Please refer to Figure 10. This embodiment of the present application also provides a possible implementation method of network resource push, which is applied to the push system. The push system includes a service terminal, a client terminal and a storage server, and a communication connection is maintained between any two of the service terminal, the client terminal and the storage server.
如图10所示,网络资源推送方法包括:S201、S203、S501以及S601,具体阐述如下。As shown in Figure 10, the network resource pushing methods include: S201, S203, S501 and S601, which are detailed as follows.
S201,基于需求带宽和实时下载带宽确定预估占用带宽。S201: Determine an estimated occupied bandwidth based on the required bandwidth and the real-time download bandwidth.
其中,需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识。Among them, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed. The first type of status indicates that it has been pushed to The target message of the client terminal, and the corresponding execution result has not been obtained. The target message in the status to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed.
S203,在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。S203: When the estimated occupied bandwidth does not exceed the preset bandwidth threshold, push the resource identifier to be pushed to the client terminal to be pushed.
S501,客户终端执行目标消息,根据接收到的资源标识向存储服务器发送下载请求。S501: The client terminal executes the target message and sends a download request to the storage server according to the received resource identifier.
其中,下载请求包括资源标识。Among them, the download request includes the resource identification.
S601,存储服务器将资源标识对应的资源信息反馈给客户终端。S601. The storage server feeds back the resource information corresponding to the resource identifier to the client terminal.
需要说明的是,本实施例所提供的应用于推送系统的网络资源推送方法,其可以执行上述应用于服务终端的网络资源推送方法流程实施例所示的方法流程,以实现对应的技术效果。为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。It should be noted that the network resource pushing method applied to the push system provided by this embodiment can execute the method flow shown in the above embodiment of the network resource pushing method applied to the service terminal to achieve corresponding technical effects. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding content in the above embodiment.
本申请实施例还提供了一种网络资源推送系统,推送系统包括服务终端、客户终端以及存储服务器,服务终端、客户终端以及存储服务器中的任意两者间保持通信连接。Embodiments of the present application also provide a network resource push system. The push system includes a service terminal, a client terminal and a storage server, and a communication connection is maintained between any two of the service terminal, the client terminal and the storage server.
服务终端用于基于需求带宽和实时下载带宽确定预估占用带宽;The service terminal is used to determine the estimated occupied bandwidth based on the demand bandwidth and real-time download bandwidth;
其中,需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识。Among them, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed. The first type of status indicates that it has been pushed to The target message of the client terminal, and the corresponding execution result has not been obtained. The target message in the status to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed.
服务终端还用于在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。The service terminal is also used to push the resource identifier to be pushed to the client terminal to be pushed when the estimated occupied bandwidth does not exceed the preset bandwidth threshold.
客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,下载请求包括资源标识。The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identifier. The download request includes the resource identifier.
存储服务器用于将资源标识对应的资源信息反馈给客户终端。The storage server is used to feed back the resource information corresponding to the resource identifier to the client terminal.
需要说明的是,本实施例所提供的网络资源推送系统,其可以执行上述方法流程实施例所示的方法流程,以实现对应的技术效果。为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。It should be noted that the network resource push system provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve corresponding technical effects. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding content in the above embodiment.
请参阅图11,图11为本申请实施例提供的一种网络资源推送装置,可选的,该网络资源推送装置被应用于上文所述的电子设备。Please refer to Figure 11. Figure 11 is a network resource pushing device provided by an embodiment of the present application. Optionally, the network resource pushing device is applied to the electronic device described above.
网络资源推送装置包括:处理单元701和信息收发单元702。The network resource pushing device includes: a processing unit 701 and an information transceiving unit 702.
处理单元701,用于基于需求带宽和实时下载带宽确定预估占用带宽。The processing unit 701 is configured to determine the estimated occupied bandwidth based on the required bandwidth and real-time download bandwidth.
其中,需求带宽为待推送状态的目标消息被执行时所需要占用的带宽,实时下载带宽为第一类状态的目标消息被执行时所需要占用的带宽的总和,第一类状态表征已推送给客户终端的目标消息,且未获取到对应的执行结果,待推送状态的目标消息包括待推送的客户终端的标识和待推送的资源标识。Among them, the required bandwidth is the bandwidth that needs to be occupied when the target message in the to-be-pushed state is executed, and the real-time download bandwidth is the sum of the bandwidth that needs to be occupied when the target message in the first type of state is executed. The first type of status indicates that it has been pushed to The target message of the client terminal, and the corresponding execution result has not been obtained. The target message in the status to be pushed includes the identifier of the client terminal to be pushed and the resource identifier to be pushed.
信息收发单元702,用于在预估占用带宽未超过预设的带宽阈值的情况下,将待推送的资源标识推送给待推送的客户终端。The information sending and receiving unit 702 is configured to push the resource identifier to be pushed to the client terminal to be pushed when the estimated occupied bandwidth does not exceed the preset bandwidth threshold.
客户终端用于执行目标消息,根据接收到的资源标识向存储服务器发送下载请求,下载请求包括资源标识,存储服务器用于将资源标识对应的资源信息反馈给客户终端。The client terminal is used to execute the target message and send a download request to the storage server according to the received resource identification. The download request includes the resource identification. The storage server is used to feed back the resource information corresponding to the resource identification to the client terminal.
可选地,处理单元701可以执行上述的S102、S201、S202、S204-S207、S301-S303以及S401-S403,信息收发单元702可以执行上述的S101和S203。Optionally, the processing unit 701 can perform the above-mentioned S102, S201, S202, S204-S207, S301-S303, and S401-S403, and the information transceiver unit 702 can perform the above-mentioned S101 and S203.
需要说明的是,本实施例所提供的网络资源推送装置,其可以执行上述方法流程实施例所示的方法流程,以实现对应的技术效果。为简要描述,本实施例部分未提及之处,可参考上述的实施例中相应内容。It should be noted that the network resource pushing device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve corresponding technical effects. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding content in the above embodiment.
本申请实施例还提供了一种存储介质,该存储介质存储有计算机指令、程序,该计算机指令、程序在被读取并运行时执行上述实施例的网络资源推送方法。该存储介质可以包括内存、闪存、寄存器或者其结合等。Embodiments of the present application also provide a storage medium that stores computer instructions and programs. When the computer instructions and programs are read and run, the network resource pushing method of the above embodiments is executed. The storage medium may include memory, flash memory, registers, or a combination thereof.
下面提供一种电子设备,可以是上文所述的服务终端、客户终端以及存储服务器中的任意一种。该电子设备如图2所示,可以实现上述的网络资源推送方法;具体的,该电子设备包括:处理器10,存储器11、总线12。处理器10可以是CPU。存储器11用于存储一个或多个程序,当一个或多个程序被处理器10执行时,执行上述实施例的网络资源推送方法。An electronic device is provided below, which can be any one of the above-mentioned service terminal, client terminal, and storage server. As shown in Figure 2, the electronic device can implement the above-mentioned network resource pushing method; specifically, the electronic device includes: a processor 10, a memory 11, and a bus 12. Processor 10 may be a CPU. The memory 11 is used to store one or more programs. When the one or more programs are executed by the processor 10, the network resource pushing method of the above embodiment is executed.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and functions of the devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more components for implementing the specified logical function(s). Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two consecutive blocks may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts. , or can be implemented using a combination of specialized hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application can be integrated together to form an independent part, each module can exist alone, or two or more modules can be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘、网络存储空间等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, network storage space, etc. The medium for program code.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210600141.1A CN114979169B (en) | 2022-05-27 | 2022-05-27 | A network resource push method, device, storage medium and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210600141.1A CN114979169B (en) | 2022-05-27 | 2022-05-27 | A network resource push method, device, storage medium and electronic device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114979169A CN114979169A (en) | 2022-08-30 |
| CN114979169B true CN114979169B (en) | 2024-03-29 |
Family
ID=82957763
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210600141.1A Active CN114979169B (en) | 2022-05-27 | 2022-05-27 | A network resource push method, device, storage medium and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114979169B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117235363B (en) * | 2023-09-14 | 2025-08-22 | 深圳华云信息系统科技股份有限公司 | Market push method, device, electronic device and storage medium |
Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101217484A (en) * | 2008-01-21 | 2008-07-09 | 中兴通讯股份有限公司 | Resource distributing method and system |
| CN103841052A (en) * | 2012-11-27 | 2014-06-04 | 中国科学院声学研究所 | Bandwidth resource distribution system and method |
| CN104184683A (en) * | 2013-05-21 | 2014-12-03 | 方正宽带网络服务股份有限公司 | Network bandwidth resource classification interchangeability realization method and device |
| CN106357558A (en) * | 2016-09-05 | 2017-01-25 | 北京小米移动软件有限公司 | Bandwidth allocation method and device |
| CN106797488A (en) * | 2014-09-29 | 2017-05-31 | 苹果公司 | switch between media streams |
| CN108009022A (en) * | 2017-11-06 | 2018-05-08 | 联动优势科技有限公司 | A kind of message treatment method and server |
| CN109819000A (en) * | 2017-11-22 | 2019-05-28 | 航天信息股份有限公司 | Methods, devices and systems and machine readable storage medium for PUSH message |
| CN112073325A (en) * | 2019-06-10 | 2020-12-11 | 阿里巴巴集团控股有限公司 | Data congestion control and bandwidth estimation method |
| CN112165691A (en) * | 2020-09-24 | 2021-01-01 | 百度在线网络技术(北京)有限公司 | Content delivery network scheduling method, device, server and medium |
| CN113395671A (en) * | 2021-06-22 | 2021-09-14 | 中国农业银行股份有限公司 | Message pushing rate adjusting method and device and server |
| CN113709530A (en) * | 2021-09-01 | 2021-11-26 | 北京奇艺世纪科技有限公司 | Resource downloading method, system, electronic equipment and storage medium |
| CN113891129A (en) * | 2021-09-18 | 2022-01-04 | 海信视像科技股份有限公司 | Display device, content pushing and relay method |
| CN114389975A (en) * | 2022-02-08 | 2022-04-22 | 北京字节跳动网络技术有限公司 | Network bandwidth estimation method, device, system, electronic equipment and storage medium |
| CN114401231A (en) * | 2022-01-21 | 2022-04-26 | 苏州浪潮智能科技有限公司 | A method, apparatus, computer equipment and storage medium for network traffic control |
-
2022
- 2022-05-27 CN CN202210600141.1A patent/CN114979169B/en active Active
Patent Citations (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101217484A (en) * | 2008-01-21 | 2008-07-09 | 中兴通讯股份有限公司 | Resource distributing method and system |
| CN103841052A (en) * | 2012-11-27 | 2014-06-04 | 中国科学院声学研究所 | Bandwidth resource distribution system and method |
| CN104184683A (en) * | 2013-05-21 | 2014-12-03 | 方正宽带网络服务股份有限公司 | Network bandwidth resource classification interchangeability realization method and device |
| CN106797488A (en) * | 2014-09-29 | 2017-05-31 | 苹果公司 | switch between media streams |
| CN106357558A (en) * | 2016-09-05 | 2017-01-25 | 北京小米移动软件有限公司 | Bandwidth allocation method and device |
| CN108009022A (en) * | 2017-11-06 | 2018-05-08 | 联动优势科技有限公司 | A kind of message treatment method and server |
| CN109819000A (en) * | 2017-11-22 | 2019-05-28 | 航天信息股份有限公司 | Methods, devices and systems and machine readable storage medium for PUSH message |
| CN112073325A (en) * | 2019-06-10 | 2020-12-11 | 阿里巴巴集团控股有限公司 | Data congestion control and bandwidth estimation method |
| CN112165691A (en) * | 2020-09-24 | 2021-01-01 | 百度在线网络技术(北京)有限公司 | Content delivery network scheduling method, device, server and medium |
| CN113395671A (en) * | 2021-06-22 | 2021-09-14 | 中国农业银行股份有限公司 | Message pushing rate adjusting method and device and server |
| CN113709530A (en) * | 2021-09-01 | 2021-11-26 | 北京奇艺世纪科技有限公司 | Resource downloading method, system, electronic equipment and storage medium |
| CN113891129A (en) * | 2021-09-18 | 2022-01-04 | 海信视像科技股份有限公司 | Display device, content pushing and relay method |
| CN114401231A (en) * | 2022-01-21 | 2022-04-26 | 苏州浪潮智能科技有限公司 | A method, apparatus, computer equipment and storage medium for network traffic control |
| CN114389975A (en) * | 2022-02-08 | 2022-04-22 | 北京字节跳动网络技术有限公司 | Network bandwidth estimation method, device, system, electronic equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114979169A (en) | 2022-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11023411B2 (en) | Programmed input/output mode | |
| CN107547589B (en) | Data acquisition processing method and device | |
| CN106130868B (en) | Callback message processing method, queue management system, storage medium and server | |
| KR101006114B1 (en) | Content push service | |
| US8909761B2 (en) | Methods and computer program products for monitoring and reporting performance of network applications executing in operating-system-level virtualization containers | |
| CN103262498B (en) | Connect for issuing and subscribe environment server the method and system of optimizing | |
| JP2018045671A (en) | Method and apparatus for scheduling cloud server | |
| CN108055343A (en) | For the method for data synchronization and device of computer room | |
| CN110912949B (en) | Method and device for submitting sites | |
| CN111586140A (en) | Data interaction method and server | |
| WO2021057666A1 (en) | Transmission control method, network management server, base station and storage medium | |
| CN116204487A (en) | Remote data access method and device | |
| CN114116184B (en) | Data processing method and device in virtual scene, equipment and medium | |
| CN114979169B (en) | A network resource push method, device, storage medium and electronic device | |
| US20200059427A1 (en) | Integrating a communication bridge into a data processing system | |
| US9893972B1 (en) | Managing I/O requests | |
| CN102739761A (en) | Shared buffer for connectionless transfer protocols | |
| CN113055493B (en) | Data packet processing method, device, system, scheduling device and storage medium | |
| JP2011182115A (en) | Communication method, communication system and server | |
| CN113596123A (en) | Software downloading method, communication device and storage medium | |
| CN109560949A (en) | A kind of data processing method and management server, business device | |
| CN115080258A (en) | Data transmission system and related equipment | |
| CN104486215A (en) | Message transmitting method and equipment | |
| CN115934845A (en) | An adaptive data synchronization system, method and storage medium | |
| CN111316606A (en) | Optimized reconciliation in controller-switch networks |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20250124 Address after: 116001 No.4, 6th Floor, No.9 Renmin Road, Zhongshan District, Dalian City, Liaoning Province Patentee after: Sibairui Industrial (Shanghai) Co.,Ltd. Dalian Branch Country or region after: China Address before: 250000 floor 7, building 3, future entrepreneurship Plaza, north section of Gangxing Third Road, high tech Zone, Jinan, Shandong Province Patentee before: Shandong paimeng Network Technology Co.,Ltd. Country or region before: China |