CN113949736A - Real-time delivery method and device, electronic equipment and storage medium - Google Patents

Real-time delivery method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113949736A
CN113949736A CN202111202943.9A CN202111202943A CN113949736A CN 113949736 A CN113949736 A CN 113949736A CN 202111202943 A CN202111202943 A CN 202111202943A CN 113949736 A CN113949736 A CN 113949736A
Authority
CN
China
Prior art keywords
sampling
information
strategy
real
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111202943.9A
Other languages
Chinese (zh)
Inventor
张大海
王景飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202111202943.9A priority Critical patent/CN113949736A/en
Publication of CN113949736A publication Critical patent/CN113949736A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a real-time delivery method, a real-time delivery device, electronic equipment and a storage medium, wherein for a target action of a client, once the report information of the client is received, the target action can be processed according to a configured delivery strategy, so that the delivery information is delivered to the client based on a processing result. Based on the invention, the actions of the user can be processed in real time, so that the related delivery information is quickly issued, and therefore, the purposes of optimizing the system flow, reducing the dependence of a large number of components on services and improving the calculation response can be achieved.

Description

Real-time delivery method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a real-time delivery method and apparatus, an electronic device, and a storage medium.
Background
The internet service generally adopts a log analysis mode of recording all logs, adopts an off-line log calculation or quasi real-time log stream processing mode to perform data calculation, performs action processing of a user according to a strategy, and then guides the user to operate later.
The method has low real-time performance, consumes a large amount of computing resources, and needs to coordinate a plurality of related development resources, so that the system is large and complex.
Disclosure of Invention
In view of the above, to solve the above problems, the present invention provides a real-time delivery method, a real-time delivery device, an electronic device, and a storage medium, and the technical solution is as follows:
one aspect of the present invention provides a real-time delivery method, including:
acquiring a configured target action release strategy;
receiving reported information of the client aiming at the target action;
and processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
Preferably, the release strategy comprises an offset duration, a sampling duration and a number of issuing times, wherein the number of issuing times corresponds to the number of samples;
the processing the reported information according to the delivery strategy and issuing the delivery information to the client based on the processing result of the reported information comprises the following steps:
determining a processing time period according to the offset duration;
sampling the reported information in the processing time period according to the sampling duration to obtain a target sampling number;
and determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
Preferably, the sampling the reported information in the processing time period according to the sampling duration includes:
carrying out duplicate removal on the reported information in the processing time period;
and sampling the duplicate removal result of the reported information according to the sampling duration.
Preferably, the method further comprises:
and calculating the strategy name of the release strategy according to the target action and the offset duration, wherein the strategy name can uniquely mark the release strategy.
In another aspect, the present invention provides a real-time delivery apparatus, including:
the strategy acquisition module is used for acquiring a configured release strategy of the target action;
the real-time delivery module is used for receiving the reported information of the client aiming at the target action; and processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
Preferably, the release strategy comprises an offset duration, a sampling duration and a number of issuing times, wherein the number of issuing times corresponds to the number of samples;
the real-time delivery module is configured to process the report information according to the delivery policy, and issue delivery information to the client based on a processing result of the report information, and is specifically configured to:
determining a processing time period according to the offset duration; sampling the reported information in the processing time period according to the sampling duration to obtain a target sampling number; and determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
Preferably, the real-time delivery module, configured to sample the reported information in the processing time period according to the sampling duration, is specifically configured to:
carrying out duplicate removal on the reported information in the processing time period; and sampling the duplicate removal result of the reported information according to the sampling duration.
Preferably, the real-time delivery module is further configured to:
and calculating the strategy name of the release strategy according to the target action and the offset duration, wherein the strategy name can uniquely mark the release strategy.
Another aspect of the present invention provides an electronic device, including: at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, wherein the program is used for realizing the real-time delivery method.
Another aspect of the present invention provides a storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are configured to execute the real-time delivery method.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a real-time delivery method, a real-time delivery device, electronic equipment and a storage medium, wherein for a target action of a client, once the report information of the client is received, the target action can be processed according to a configured delivery strategy, so that the delivery information is delivered to the client based on a processing result. Based on the invention, the actions of the user can be processed in real time, so that the related delivery information is quickly issued, and therefore, the purposes of optimizing the system flow, reducing the dependence of a large number of components on services and improving the calculation response can be achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method of a real-time delivery method according to an embodiment of the present invention;
fig. 2 is a partial flowchart of a method of a real-time delivery method according to an embodiment of the present invention;
fig. 3 is a flowchart of another part of a real-time delivery method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a real-time delivery device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The embodiment of the invention provides a real-time delivery method, which can be applied to the fields of data statistics and information delivery, is particularly applied to a server, and has a flow chart as shown in figure 1, and comprises the following steps:
and S10, obtaining the configured release strategy of the target action.
In the embodiment of the present invention, the target action is an action specified by the administrator, and may be one of a click operation, a statistical gesture, and a motion trajectory, for example, a login action, a registration action, and the like, which is not limited in the embodiment of the present invention.
In addition, the administrator can configure at least one release policy for the target action by configuring policy parameters, and the policy parameters of the release policy are specified in a certain format in a storage medium of the server. For example, different delivery policies may be configured for clients within different geographic regions for login actions.
Specifically, according to the service requirement, the administrator configures a relevant policy parameter for an issuing policy of the target action, where the policy parameter includes, but is not limited to, an offset duration, a sampling duration, and an issuing number, and the issuing number corresponds to a sampling number. The offset duration represents the time interval of two sampling by the server, the sampling duration represents the duration of each sampling by the server, the issuing times represent the releasing quantity of releasing information, and the sampling quantity is the quantity sampled by the server in the sampling duration.
Of course, one delivery policy may correspond to at least one delivery information, which is a content resource delivered to the client, such as advertisement information.
And S20, receiving the reported information of the client aiming at the target action.
In the embodiment of the invention, the client can obtain the actions corresponding to different delivery strategies from the server, namely the client and the server determine the monitored actions through communication interaction. For a target action, once the client monitors that the target action occurs in the running period, the client reports the target action to the server immediately.
The reported information of the client at least comprises an action mark representing the target action and an identity mark representing the client. The server can determine that the client has the target action based on the action mark and the identity mark in the report information, and if the communication delay is ignored, the server can take the report time of the client as the occurrence time of the target action. Of course, if the communication delay is not ignored, the report information of the client may include the occurrence time of the target action, which is not limited in the embodiment of the present invention. After the client reports to the server, the client can wait for the delivery information issued by the server, and after the delivery information is obtained, the client finishes the exhibition and broadcasting.
In addition, the server may set up an API interface to communicate with the client. Through the API interface, the client can determine the target action and report the target action to the server, and the server sends the delivery information to the client.
And S30, processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
In the embodiment of the invention, for the reported information of the client, the server screens the reported information according to the target action on one hand, and performs real-time statistics on the reported information under the target action on the other hand. Specifically, the target action and the client generating the target action may be classified according to the action tag and the identity tag in the reported information, and the classified clients are counted according to the occurrence time of the target action to determine the number of clients generating the target action at different times, so as to complete information delivery.
In the specific implementation process, the step S30 "process the report information according to the delivery policy, and issue the delivery information to the client based on the processing result of the report information" may adopt the following steps, and a flowchart of the method is shown in fig. 2:
s301, determining a processing time period according to the offset duration.
In the embodiment of the invention, the offset duration represents the time interval of two sampling of the server, so that the corresponding processing time interval can be determined based on the offset duration, and the duration of each processing time interval is the same as the time interval.
S302, sampling the reported information in the processing time interval according to the sampling time length to obtain the target sampling number.
In the embodiment of the invention, for the reported information of the client, the server can determine the occurrence time of the corresponding target action, and the reported information can be classified into the processing time interval of the reported information based on the occurrence time.
Further, the server side samples the corresponding duration of the reported information in the processing time period according to the sampling duration. Because one piece of reporting information at least comprises one action mark and one identity mark, the action of one piece of reporting information of the client can be determined by identifying the action mark, and then the identity marks of all the clients under the same action are sampled. The number of the identity marks sampled by the server in the target action is the target sampling number of the current sampling.
The server may store the target sample number according to the action dimension and the time dimension, that is, the target action stores the corresponding target sample number for each processing period.
In other embodiments, in order to avoid the influence of the client on the delivery due to repeated target actions caused by the client, in the embodiment of the present invention, the target actions generated by the client are extracted for the first time. Referring to the flowchart of the method shown in fig. 3, the step S302 "sampling the reported information in the processing time period according to the sampling duration" may include the following steps:
s3021, duplicate removal is performed on the reported information within the processing time period.
In the embodiment of the invention, for a processing time interval, the target action of the client in the processing time interval is extracted for the first time. That is, during the processing period, one client performs one target action, which can be realized by performing de-duplication on the sampled identity marks. Specifically, a set may be set according to the target action and the processing time period, specifically, the identity tag under the target action may be determined according to the action tag in the report information, the identity tag in the processing time period may be stored in a set manner, and the characteristics of the set are used to automatically perform deduplication.
And S3022, sampling the duplicate removal result of the reported information according to the sampling duration.
In the embodiment of the invention, for one processing period, the de-duplication result is sampled by the sampling time length so as to obtain the corresponding target sampling number.
And S303, determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
In the embodiment of the invention, because the down-sending times correspond to the sampling number, the corresponding target down-sending times can be determined according to the target sampling number. For example, 100 clients perform login actions in one processing period, one client performs login actions, the server samples the identity tags in the reported information of the 100 clients according to the sampling duration, and assuming that the number of target samples is 10 and the corresponding target issuing times is 5, the server issues the delivery information to 5 of the 10 sampled clients, which has the actual effect of delivering the delivery information to 5 of the 100 clients.
In some other embodiments, in order to facilitate the administrator to filter and manage the delivery policy, the embodiment of the present invention may set a policy name of the delivery policy based on the policy parameter, where the policy name is capable of uniquely marking the delivery policy. Specifically, the policy name of the release policy may be calculated according to the target action and the offset duration, that is, the processing time period is determined according to the offset duration, and the form of "target action + processing time period" is used as the policy name. In addition, the target action and the processing time period can be encoded (such as hash encoding) through an encoding mode, and an encoding result is used as a policy name of the release policy. The policy name may be used as a set name corresponding to the corresponding processing period, and by matching the processing period with the policy name, the identity tag of the information reported in the processing period may be placed in the corresponding set.
The real-time delivery method provided by the embodiment of the invention can process the actions of the user in real time, so that the relevant delivery information is rapidly issued, and therefore, the purposes of optimizing the system flow, reducing the dependence of a large number of service components and improving the calculation response can be achieved. In addition, the statistical screening is performed in real time, and compared with offline calculation and quasi-real-time calculation screening in a log mode, the statistical screening method improves response time, improves production efficiency, simplifies system architecture, reduces dependence of the system on external series components, reduces hardware cost, is convenient to develop, reduces development cost and improves production efficiency.
Based on the real-time delivery method provided by the foregoing embodiment, an embodiment of the present invention provides a device for executing the real-time delivery method, where a schematic structural diagram of the device is shown in fig. 4, and the device includes:
a policy obtaining module 10, configured to obtain a configured release policy of the target action;
the real-time delivery module 20 is configured to receive report information of a client for a target action; and processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
Optionally, the release strategy includes an offset duration, a sampling duration and a number of issuing times, and the number of issuing times corresponds to the number of samples;
the real-time delivery module 20 is configured to process the report information according to the delivery policy, and deliver the delivery information to the client based on a processing result of the report information, and is specifically configured to:
determining a processing time period according to the offset duration; sampling reported information in a processing time period according to the sampling time length to obtain a target sampling number; and determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
Optionally, the real-time delivery module 20 is configured to sample the reported information in the processing time period according to the sampling duration, and specifically configured to:
carrying out duplicate removal on the reported information in the processing time period; and sampling the duplicate removal result of the reported information according to the sampling time length.
Optionally, the real-time delivery module 20 is further configured to:
and calculating the strategy name of the release strategy according to the target action and the offset duration, wherein the strategy name can uniquely mark the release strategy.
It should be noted that, for the detailed functions of each module in the embodiment of the present invention, reference may be made to the corresponding disclosure part of the embodiment of the real-time delivery method, and details are not described herein again.
Based on the real-time delivery method provided by the above embodiment, an embodiment of the present invention correspondingly provides an electronic device, where the electronic device includes: at least one memory and at least one processor; the memory stores a program, the processor calls the program stored in the memory, and the program is used for realizing the real-time delivery method.
Based on the real-time delivery method provided by the above embodiment, an embodiment of the present invention correspondingly provides a storage medium, where the storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the real-time delivery method.
The real-time delivery method, the real-time delivery device, the electronic device and the storage medium provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation of the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include or include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A real-time delivery method, the method comprising:
acquiring a configured target action release strategy;
receiving reported information of the client aiming at the target action;
and processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
2. The method of claim 1, wherein the delivery strategy comprises an offset duration, a sampling duration, and a number of deliveries, the number of deliveries corresponding to a number of samples;
the processing the reported information according to the delivery strategy and issuing the delivery information to the client based on the processing result of the reported information comprises the following steps:
determining a processing time period according to the offset duration;
sampling the reported information in the processing time period according to the sampling duration to obtain a target sampling number;
and determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
3. The method of claim 2, wherein the sampling the reported information in the processing period according to the sampling duration comprises:
carrying out duplicate removal on the reported information in the processing time period;
and sampling the duplicate removal result of the reported information according to the sampling duration.
4. The method of claim 2, further comprising:
and calculating the strategy name of the release strategy according to the target action and the offset duration, wherein the strategy name can uniquely mark the release strategy.
5. A real-time delivery apparatus, the apparatus comprising:
the strategy acquisition module is used for acquiring a configured release strategy of the target action;
the real-time delivery module is used for receiving the reported information of the client aiming at the target action; and processing the reported information according to the releasing strategy, and issuing releasing information to the client based on the processing result of the reported information.
6. The apparatus of claim 5, wherein the delivery strategy comprises an offset duration, a sampling duration, and a number of deliveries, the number of deliveries corresponding to a number of samples;
the real-time delivery module is configured to process the report information according to the delivery policy, and issue delivery information to the client based on a processing result of the report information, and is specifically configured to:
determining a processing time period according to the offset duration; sampling the reported information in the processing time period according to the sampling duration to obtain a target sampling number; and determining the target issuing times corresponding to the target sampling number, and issuing the issuing information matched with the target issuing times to the client.
7. The apparatus according to claim 6, wherein the real-time delivery module, configured to sample the reported information in the processing time period according to the sampling duration, is specifically configured to:
carrying out duplicate removal on the reported information in the processing time period; and sampling the duplicate removal result of the reported information according to the sampling duration.
8. The apparatus of claim 6, wherein the real-time delivery module is further configured to:
and calculating the strategy name of the release strategy according to the target action and the offset duration, wherein the strategy name can uniquely mark the release strategy.
9. An electronic device, characterized in that the electronic device comprises: at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, and the program is used for realizing the real-time delivery method of any one of claims 1-4.
10. A storage medium having stored thereon computer-executable instructions for performing the real-time delivery method of any one of claims 1-4.
CN202111202943.9A 2021-10-15 2021-10-15 Real-time delivery method and device, electronic equipment and storage medium Pending CN113949736A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111202943.9A CN113949736A (en) 2021-10-15 2021-10-15 Real-time delivery method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111202943.9A CN113949736A (en) 2021-10-15 2021-10-15 Real-time delivery method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113949736A true CN113949736A (en) 2022-01-18

Family

ID=79330555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111202943.9A Pending CN113949736A (en) 2021-10-15 2021-10-15 Real-time delivery method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113949736A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110314039A1 (en) * 2010-06-18 2011-12-22 Microsoft Corporation Media Item Recommendation
CN106227796A (en) * 2016-07-20 2016-12-14 无锡天脉聚源传媒科技有限公司 A kind of method and device building keyed advertising
CN109816460A (en) * 2019-03-26 2019-05-28 湖南快乐阳光互动娱乐传媒有限公司 Conversion ratio statistical method and device
CN110704706A (en) * 2019-09-11 2020-01-17 北京海益同展信息科技有限公司 Training method and classification method of classification model, related equipment and classification system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110314039A1 (en) * 2010-06-18 2011-12-22 Microsoft Corporation Media Item Recommendation
CN106227796A (en) * 2016-07-20 2016-12-14 无锡天脉聚源传媒科技有限公司 A kind of method and device building keyed advertising
CN109816460A (en) * 2019-03-26 2019-05-28 湖南快乐阳光互动娱乐传媒有限公司 Conversion ratio statistical method and device
CN110704706A (en) * 2019-09-11 2020-01-17 北京海益同展信息科技有限公司 Training method and classification method of classification model, related equipment and classification system

Similar Documents

Publication Publication Date Title
CN105657003B (en) Information processing method and server
US8914493B2 (en) Presence-based event driven architecture
US10044737B2 (en) Detection of beaconing behavior in network traffic
US9298492B2 (en) System and method for modifying allocated resources
CN103840950A (en) Information pushing method and system
US11153337B2 (en) Methods and systems for improving beaconing detection algorithms
US11570078B2 (en) Collecting route-based traffic metrics in a service-oriented system
US10044820B2 (en) Method and system for automated transaction analysis
CN111611140B (en) Report verification method and device for buried point data, electronic equipment and storage medium
CN107168844B (en) Performance monitoring method and device
WO2014206131A1 (en) Method and apparatus for report generation
CN110620699B (en) Message arrival rate determination method, device, equipment and computer readable storage medium
CN110858192A (en) Log query method and system, log checking system and query terminal
KR20220124271A (en) Fault detection method, device, electronic device and readable storage medium of live traffic
CN111064780B (en) Multitask content updating method, device, equipment and medium
US20200366967A1 (en) Method and system for monitoring quality of streaming media
CN108964967A (en) Method and system for intelligently monitoring and analyzing CDN acceleration service
CN111158926A (en) Service request analysis method, device and equipment
Lee et al. ATMSim: An anomaly teletraffic detection measurement analysis simulator
CN113542418A (en) File management method and device, electronic equipment and storage medium
CN106789277B (en) User behavior determination method and device based on state machine model
CN110839061B (en) Data distribution method, device and storage medium
CN113949736A (en) Real-time delivery method and device, electronic equipment and storage medium
CN110647448A (en) Mobile application operation log data real-time analysis method, server and system
WO2023045434A1 (en) Access detection method, system, and apparatus

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