Message frequency limiting method, device, electronic device and storage medium
By implementing the message frequency limiting method on the live broadcast platform to limit the frequency of message sending, the network pressure problem caused by the influx of a large number of messages is solved, and the user experience and the stability of message transmission are improved.
Patent Information
- Application Number
- CN202410775047.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-17
AI Technical Summary
When a live streaming platform faces an influx of messages, it is easy to cause network pressure, leading to lags and message sending failures, affecting user experience.
The message frequency limiting method is adopted to record the number of received broadcast messages, process the messages according to the preset frequency limiting rules and level identifiers, limit the frequency of message sending, ensure the transmission of high-priority messages, and avoid loss caused by the flooding of low-level messages.
It effectively reduces the occupation of service resources, relieves network pressure, improves the smoothness of message sending and real-time interaction, and ensures the smooth transmission of messages of different priorities.
Smart Images

Figure CN118338050B
Abstract
Description
Technical Field
[0001] The present application relates to the field of live broadcast technology, and in particular to a message frequency limiting method, device, electronic device and storage medium. Background Art
[0002] With the development of the Internet, live broadcast technology has become increasingly mature, and live broadcast platforms for individuals and enterprises have become an innovative way of business communication and marketing in all walks of life. At present, in the live broadcast environment, the messaging mechanism plays the role of a business hub and is the core carrier of live broadcast interaction. Faced with the rapid growth of the user group, the live broadcast platform must have the ability to reliably handle large-volume messaging.
[0003] In actual applications, the massive influx of messages undoubtedly brings great pressure to various service resources, especially network resources such as bandwidth, latency, and number of connections. When the number of messages is too large, it is easy to cause problems such as lag and message sending failure, which seriously affects the user's message sending experience. Summary of the invention
[0004] In order to effectively filter messages, reduce the occupancy of service resources, alleviate network pressure, and improve the user's message sending experience, the present application provides a message frequency limiting method, device, electronic device, and storage medium.
[0005] This application provides a message frequency limiting method, which adopts the following technical solution:
[0006] A message frequency limiting method, comprising:
[0007] Recording the number of broadcast messages received during the frequency-limited period, and obtaining target broadcast messages exceeding the initial frequency-limited number; wherein the broadcast message is a message sent to an online user terminal;
[0008] Determine the first target level of the target broadcast message according to the level identifier contained in the called frequency limiting rule; wherein the level identifier is a preset message type identifier; determine the set level of the broadcast message and the corresponding frequency limiting quantity as the frequency limiting rule;
[0009] The targeted broadcast message is processed based on the first target level and the frequency limiting rule.
[0010] According to some embodiments, the frequency limiting rule includes a frequency limiting quantity corresponding to a level; and processing the target broadcast message based on the first target level and the frequency limiting rule includes:
[0011] Obtaining a target frequency limiting quantity corresponding to a first target level based on the frequency limiting quantity corresponding to the level included in the frequency limiting rule;
[0012] Comparing the number of processed broadcast messages corresponding to the first target level with the target frequency limit number;
[0013] When the number of processed broadcast messages corresponding to the first target level is less than the target frequency limit number, the target broadcast message is sent to the user terminal.
[0014] According to some embodiments, processing a target broadcast message based on a first target level and a frequency limiting rule includes:
[0015] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, determining the second target level; wherein the second target level is a level at which the number of processed broadcast messages corresponding to the second target level is less than the corresponding frequency limit number and is lower than the first target level;
[0016] The target broadcast message is processed based on the second target level and the frequency limiting rule, and the number of processed broadcast messages of the second target level is increased.
[0017] According to some embodiments, processing a target broadcast message based on a first target level and a frequency limiting rule includes:
[0018] When the number of processed broadcast messages of the first target level reaches the target frequency limit number and the first target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0019] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, and the second target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0020] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, continue to determine the target level lower than the second target level and judge whether the number of processed broadcast messages reaches its corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the lowest target level reaches its corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of the target level lower than the second target level does not reach its corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
[0021] According to some embodiments, the message frequency limiting method further includes:
[0022] Obtaining a user ID corresponding to a message to be processed during a frequency-limited period;
[0023] In the case where the user identifier is a target user identifier recorded in the white list, the message to be processed is defined as a non-broadcast message, and the broadcast message is sent to the user terminal corresponding to the target user identifier.
[0024] According to some embodiments, the message frequency limiting method further includes:
[0025] Acquire at least two broadcast messages during the frequency-limited period, and determine the message types corresponding to the at least two broadcast messages respectively;
[0026] In the case where the message types corresponding to at least two broadcast messages are of the same type but different types, configuring the message types of the at least two broadcast messages to be a unified message type; wherein the unified message type corresponds to a frequency limiting rule;
[0027] Frequency limiting processing is performed on at least two broadcast messages based on the frequency limiting rule corresponding to the unified message type.
[0028] According to some embodiments, recording the number of broadcast messages received during the frequency-limited period includes:
[0029] When the number of online users reaches the frequency limit threshold, it is determined to enter the frequency limit period;
[0030] Record the number of broadcast messages received during the frequency-limited period;
[0031] Determining the first target level of the target broadcast message according to the level identifier included in the called frequency limiting rule includes:
[0032] Determine the target dimension for the number of online users to reach the frequency limit threshold; the target dimension is the business scenario that needs to be limited; the business scenario is one of all business scenarios, a single business line, and a single live broadcast room;
[0033] Get the target frequency limit rule of the target dimension;
[0034] A first target level of the target broadcast message is determined according to the level identifier of the target frequency limiting rule.
[0035] The present application provides a message frequency limiting device, which adopts the following technical solution;
[0036] A message frequency limiting device comprises: a message acquisition module, a level determination module and a message processing module, wherein:
[0037] A message acquisition module, used to record the number of broadcast messages received during the frequency-limited period, and to acquire target broadcast messages exceeding the initial frequency-limited number; wherein the broadcast message is a message sent to an online user terminal;
[0038] The level determination module is used to determine the first target level of the target broadcast message according to the level identifier contained in the called frequency limit rule; wherein the level identifier is a preset message type identifier; and the set broadcast message level and the corresponding frequency limit quantity are determined as the frequency limit rule;
[0039] The message processing module is used to process the target broadcast message based on the first target level and the frequency limiting rule.
[0040] According to some embodiments, the frequency limiting rule includes the frequency limiting quantity corresponding to the level; the message processing module is specifically used to:
[0041] Obtaining a target frequency limiting quantity corresponding to a first target level based on the frequency limiting quantity corresponding to the level included in the frequency limiting rule;
[0042] Comparing the number of processed broadcast messages corresponding to the first target level with the target frequency limit number;
[0043] When the number of processed broadcast messages corresponding to the first target level is less than the target frequency limit number, the target broadcast message is sent to the user terminal.
[0044] According to some embodiments, the message processing module is specifically configured to:
[0045] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, determining the second target level; wherein the second target level is a level at which the number of processed broadcast messages corresponding to the second target level is less than the corresponding frequency limit number and is lower than the first target level;
[0046] The target broadcast message is processed based on the second target level and the frequency limiting rule, and the number of processed broadcast messages of the second target level is increased.
[0047] According to some embodiments, the message processing module is specifically configured to:
[0048] When the number of processed broadcast messages of the first target level reaches the target frequency limit number and the first target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0049] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, and the second target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0050] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, continue to determine the target level lower than the second target level and judge whether the number of processed broadcast messages reaches its corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the lowest target level reaches its corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of the target level lower than the second target level does not reach its corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
[0051] According to some embodiments, the message frequency limiting device further includes: a user identification acquisition module and a message definition module, wherein:
[0052] A user identification acquisition module, used to acquire the user identification corresponding to the message to be processed during the frequency-limited period;
[0053] The message definition module is used to define the message to be processed as a non-broadcast message when the user identifier is a target user identifier recorded in the white list, and send the broadcast message to the user terminal corresponding to the target user identifier.
[0054] According to some embodiments, the message frequency limiting device further includes: a message type determination module and a message type configuration module, wherein:
[0055] A message type determination module, used to obtain at least two broadcast messages during the frequency-limited period, and determine the message types corresponding to the at least two broadcast messages respectively;
[0056] A message type configuration module, configured to configure the message types of at least two broadcast messages to be a unified message type when the message types corresponding to at least two broadcast messages are of the same type but different types; wherein the unified message type corresponds to a frequency limiting rule;
[0057] Frequency limiting processing is performed on at least two broadcast messages based on the frequency limiting rule corresponding to the unified message type.
[0058] According to some embodiments, the message acquisition module is specifically used to:
[0059] When the number of online users reaches the frequency limit threshold, it is determined to enter the frequency limit period;
[0060] Record the number of broadcast messages received during the frequency-limited period;
[0061] Level determination module, specifically used for:
[0062] Determine the target dimension for the number of online users to reach the frequency limit threshold; the target dimension is the business scenario that needs to be limited; the business scenario is one of all business scenarios, a single business line, and a single live broadcast room;
[0063] Get the target frequency limit rule of the target dimension;
[0064] A first target level of the target broadcast message is determined according to the level identifier of the target frequency limiting rule.
[0065] The present application provides an electronic device, which adopts the following technical solution:
[0066] An electronic device, comprising:
[0067] processor;
[0068] The memory stores a computer program, and when the computer program is executed by the processor, the processor executes the above-mentioned message frequency limiting method.
[0069] The present application provides a computer-readable storage medium, which adopts the following technical solution:
[0070] A computer-readable storage medium stores a computer program, which, when executed in a computer, causes the computer to execute a message frequency limiting method.
[0071] This application includes the following beneficial technical effects:
[0072] 1. Standardize at least two broadcast messages from different business lines, that is, of the same type but different types, into the same message type, thereby simplifying the processing logic of broadcast messages, reducing the complexity of processing caused by message diversity, and alleviating the complexity of subsequent frequency limiting and processing procedures.
[0073] 2. Design frequency limiting rules, use corresponding frequency limiting rules to process broadcast messages, and when the broadcast message does not meet the requirements of the current frequency limiting rules, use frequency limiting rules of a higher or lower level than the current frequency limiting rules to process the message; this ensures the process transmission of broadcast messages of different priorities and avoids the loss of broadcast messages due to the flooding of low-level broadcast messages.
[0074] 3. Create a whitelist containing target user tags. The target user tags correspond to specific users. After obtaining the broadcast message, determine the user ID corresponding to the broadcast message, and judge whether the user ID corresponds to the target user tag in the whitelist. If it corresponds, the broadcast message is directly sent to the terminal of the target user corresponding to the target user tag to ensure that the messages of specific users are not restricted and conveyed in a timely manner, meet the special requirements of live broadcast interaction, and improve the smooth delivery of broadcast messages and the real-time nature of interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 It is a block diagram of a message frequency limiting method according to an embodiment of the present application;
[0076] Figure 2 It is a flowchart of the message frequency limiting method according to an embodiment of the present application;
[0077] Figure 3 It is a block diagram of a message frequency limiting device according to an embodiment of the present application;
[0078] Figure 4 It is a schematic diagram of an electronic device according to an embodiment of the present application.
[0079] Explanation of reference numerals: 301: message acquisition module; 302: level determination module; 303: message processing module; 40: electronic device; 401: processor; 402: bus; 403: memory; 404: transceiver. DETAILED DESCRIPTION
[0080] The following is combined with Figure 1-Figure 4 This application is described in further detail.
[0081] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the drawings in the embodiments of the present application are collected below to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0082] In the field of live broadcasting, with the maturity of live broadcasting technology, the application of live broadcasting has gradually become popular, and the user groups such as anchor users, audience users, and corporate users have expanded rapidly, which has brought challenges to the processing capabilities of live broadcasting platforms such as receiving, filtering, and sending messages. Usually, network resources are limited. As the number of users accessing the platform increases, the demand for message processing and transmission will reach saturation. Live broadcasting involves many users online at the same time, so the message service needs to achieve load balancing between multiple servers, and generally adopts distributed processing. During the live broadcast process, efficient network communication technologies such as the application layer network protocol WebSocket can be used to achieve full-duplex communication between the browser and the server, allowing the server to actively send information to the client, so that messages can be sent and received quickly and accurately. In the process of processing message data, the storage involved can use memory cache, such as using the Redis database to speed up data reading and writing and reduce latency. The Redis database is an open source log-type, Key-Value database written in ANSI C language, supports the network, can be based on memory and can be persistent, and provides APIs in multiple languages.
[0083] In some embodiments, in order to provide users with a good message processing experience efficiently and accurately, a rate limiting method is used to control the message service to avoid channel or platform message overload and affect the user experience. Rate Limiting: In layman's terms, it is to limit the number of requests a user makes to an interface within a certain period of time. Rate limiting is an important technology to prevent overload and ensure system stability. Combined with the rate limiting algorithm, the number of requests can be effectively recorded. For example, a counter algorithm can be used, that is, a counter is used to record the number of requests within a certain period of time; when the number of requests exceeds the threshold, the current limiting is triggered. By processing large amounts of data and responding quickly through rate limiting design, system stability and operating efficiency can be effectively maintained.
[0084] In the message service, the counter algorithm is mainly used for frequency limiting. The main purpose is to control the frequency of sending messages on a single channel to avoid overload, abuse or degradation of service quality. The frequency limiting strategy can use the following components and algorithms:
[0085] Fixed window counter: You can count requests in a fixed time window (for example, every minute, every hour) and limit the number of requests sent within this time window. When the number of requests exceeds the set threshold, subsequent requests will be rejected until the next time window starts.
[0086] Choosing a data structure: Redis string keys are often used to store counters because they provide atomic increment commands for counting.
[0087] Set time window: Define a time window (for example, 1 second, 1 minute, 1 hour, etc.) as the basic unit of frequency limiting, that is, the processing cycle.
[0088] Counting and expiration: Use Redis keys to track the number of messages sent within the current time window in a certain dimension. Redis allows you to set the expiration time (TTL) of the key to match the time window, which ensures that the counter is automatically reset at the end of the window.
[0089] Atomicity check: In a distributed high-concurrency environment, in order to ensure the atomicity of counting and judgment, Lua scripts are used in Redis to implement atomic operations (counting + judgment). Atomicity means that when performing a series of operations, these operations are either completed or not performed at all, and will not stop at a certain step in the middle. This concept is often used in databases and concurrent programming to ensure data integrity and consistency.
[0090] The embodiment of the present application provides a message frequency limiting method, which can be applied to the reception, analysis, and sending of messages on a live broadcast platform, and can be executed by an electronic device, which is equipped with a live broadcast platform, wherein the electronic device can be a server or a terminal device, wherein the server can be an independent physical server, or a server cluster or distributed device composed of multiple physical servers, or a cloud server providing cloud computing services; the terminal device can be a smart phone, a computer, etc., but is not limited to this, and the terminal device and the server can be directly or indirectly connected via wired or wireless communication, which is not limited to the embodiment of the present application.
[0091] Reference Figure 1 A message frequency limiting method includes: step S101, step S102 and step S103, wherein:
[0092] S101, recording the number of broadcast messages received during a frequency-limited period, and acquiring target broadcast messages exceeding an initial frequency-limited number.
[0093] In some embodiments, the broadcast message is a message sent to online user terminals;
[0094] During the live broadcast process, the interaction between the audience and the host, the platform's information promotion, and the announcements in the live broadcast room all need to generate messages, such as text messages, graphic messages, audio messages, video messages, like messages, gift messages, etc., which are transmitted or pushed based on the live broadcast platform. Among them, they are generally divided into private messages and broadcast messages. For example, audience users send gifts on the public screen of the live broadcast room, display gift effects, like, and post comments. The host user can reply to the audience in the comment area, and publish announcements. Such messages that need to be publicly displayed in the live broadcast room are broadcast messages; private messages between the host user and the audience user, chat messages in small groups, and other content that do not need to be publicly displayed are private messages.
[0095] In some embodiments, the online time of the audience user is affected by the online time of the anchor user. When the anchor user is online, the number of online audience users will also increase accordingly. In addition, affected by the work and rest time of the audience users, when the anchor user is online, there will be a surge in online users in some time periods; and due to the increase in the number of online audience users, the number of messages generated will also increase accordingly. Therefore, the time period when the anchor user is online and there are more online audience users can be defined as a frequency-limited time period. In addition, the electronic device can define an online number threshold, that is, a number of frequency-limited threshold, and judge in real time whether the number of online people reaches the number of frequency-limited threshold. When the number of online people reaches the number of frequency-limited threshold, it is determined to enter the defined frequency-limited time period, and the electronic device records the number of broadcast messages received in the frequency-limited time period; and the electronic device sets the initial frequency-limited number of the frequency-limited time period, that is, the number of broadcast messages normally received and processed in the frequency-limited time period; for example, according to the resource occupation of the broadcast message, the number of corresponding broadcast messages can be determined as a based on the resource occupation of 80% of the reserved resources for the broadcast message, and the number a is used as the initial frequency-limited number.
[0096] The number of broadcast messages processed during the frequency-limited period is less than the initial frequency-limited number, which can effectively ensure the normal processing and display of messages; when the number of broadcast messages reaches the initial frequency-limited number, the subsequent broadcast messages to be processed can be used as target broadcast messages for frequency-limited processing. For example, the number of target broadcast messages can be set to b, and the resources corresponding to b broadcast messages are less than 20% of the reserved resources for broadcast messages, that is, after the number of broadcast messages processed reaches the initial frequency-limited number, the number that can continue to be processed is b, and the part exceeding b will not be processed in this cycle.
[0097] S102: Determine a first target level of a target broadcast message according to a level identifier included in the called frequency limiting rule.
[0098] In some embodiments, the level identifier is a preset message type identifier; when the target broadcast message is frequency-limited, due to the different importance of the broadcast messages, uniform processing according to the quantity will result in some important messages not being processed in time. Therefore, the level can be set for the broadcast message in advance, and the frequency limit quantity can be set for the broadcast message based on different levels.
[0099] In some embodiments, before processing the message, the level of the broadcast message can be set according to the type of the broadcast message, and a default level can be specified; wherein the default level is a level uniformly specified for types that do not appear when setting the level of the broadcast message.
[0100] In some embodiments, broadcast messages generally include chat messages, comment messages, gift messages, like messages, and the like. The levels of messages can be set in advance, such as setting the chat messages and comment messages to a low level, setting the like messages to a medium level, and setting the gift messages to a high level; or, the levels can be set from the first level to the nth level according to the number of levels required, and the order of the levels can be set. After the level of the broadcast message is initially set, a default level can also be specified, which can be the level of the broadcast messages of the broadcast message type that does not appear in the divided levels among the broadcast messages to be processed. For example, each message should be marked with the corresponding level by the business side according to its importance when it is sent. If the business side does not explicitly specify the importance of the message, it will be marked as medium importance by default.
[0101] Based on the levels of different broadcast messages, the frequency limit quantity of each level is set, and the level of the set broadcast message and the corresponding frequency limit quantity are determined as the frequency limit rule, that is, the level corresponding to any broadcast message and the frequency limit quantity corresponding to the level can be used as the frequency limit rule of any broadcast message. For the target broadcast message, the frequency limit rule corresponding to the pre-set target broadcast message can be obtained, and its first target level and the frequency limit quantity corresponding to the first target level can be determined.
[0102] In some embodiments, if there is no level corresponding to the target broadcast message in the pre-set broadcast message levels, the default level is used as the first target level of the target broadcast message.
[0103] When the target broadcast message is a new type of broadcast message, its level can be used as the default level, and the default frequency limiting rule can be obtained as the frequency limiting rule of the target broadcast message. For example, when setting the level of the broadcast message, only the levels of comment messages, like messages, and gift messages are set to low, medium, and high, and the default level is specified as medium. When a homemade gift is received and its level cannot be determined, the homemade gift will be processed according to the default level.
[0104] The electronic device can count the message using the default level frequency limit rule. The counting operation means increasing the relevant frequency index by one unit within the specified time window to record the number of messages processed in the current time window; if the message does not exceed the default level limit threshold, the electronic device allows the message to be processed normally.
[0105] S103: Process the target broadcast message based on the first target level and the frequency limiting rule.
[0106] In some embodiments, after the electronic device determines the first target level corresponding to the target broadcast message, it uses the corresponding frequency limiting rule to perform corresponding processing on the target broadcast message; since there are corresponding message quantity restrictions for broadcast messages of different levels, that is, there is a frequency limiting number; therefore, when the electronic device processes the target broadcast message based on the frequency limiting rule of the first target level, it is necessary to first determine whether the number of broadcast messages that have been processed and belong to the first target level has not exceeded the frequency limiting number; if it has not exceeded the frequency limiting number, the target broadcast message is processed based on the first target level and the frequency limiting rule; thereby effectively filtering messages, reducing the occupancy of service resources, and alleviating network pressure.
[0107] In step S102, the first target level of the target broadcast message is determined according to the level identifier contained in the called frequency limiting rule, including: determining the target dimension where the number of online people reaches the frequency limiting threshold; wherein the target dimension is a business scenario that requires frequency limiting; wherein the business scenario is one of all business scenarios, a single business line, and a single live broadcast room; obtaining the target frequency limiting rule for the target dimension; and determining the first target level of the target broadcast message according to the level identifier of the target frequency limiting rule.
[0108] In some embodiments, in the message system of the live broadcast service, the publishing and receiving of messages are usually carried out in a specific channel. This system can be effectively managed by introducing the concept of target dimension, that is, all business scenario dimensions, application dimensions, and channel dimensions. Here, "application" can represent a specific business side, and "channel" represents a specific live broadcast room under the business side. In order to implement an efficient frequency limiting strategy in the messaging service, frequency limiting rules at different levels can be designed: such as general level, application level, and channel level.
[0109] General rate limiting rules: These rules apply to all business scenarios of the entire messaging service.
[0110] Application-level rate limiting rules: These rules are specific to a single business line, allowing different business lines to set unique rules based on their own needs.
[0111] Channel-level rate limiting rules: These rules are the most specific and apply to a single live broadcast room, i.e. a specific channel.
[0112] When executing the frequency limit rules, the combined result of the above three rules shall prevail. Among them, the channel-level rules have the highest priority, followed by the application-level rules, and finally the general-level rules. In this way, we can provide sufficient flexibility to meet the needs of various specific business scenarios while ensuring unified management.
[0113] For example, the frequency limit number within the general level cycle can be set to 100; the frequency limit number within the application level cycle can be set to 50; the frequency limit number within the channel level cycle can be set to 20; when the number of broadcast messages processed by the live broadcast room in the channel within the cycle reaches 20, the channel-level frequency limit number is reached, and the live broadcast room will not process the broadcast message according to the level of the live broadcast room. Since the live broadcast room has the highest priority, it can be downgraded to the channel level to process the broadcast message, or the broadcast message can be processed in the next cycle.
[0114] In some embodiments, when the electronic device determines that the number of online people has reached a frequency limit threshold, it determines the target dimension corresponding to the number of online people reaching the frequency limit threshold, and obtains the target frequency limit rule corresponding to the target dimension, determines the first target level of the target broadcast message according to the level identifier contained in the target frequency limit rule, and subsequently processes the target broadcast message based on the processing rule corresponding to the first target level in the target rule.
[0115] In step S103, the target broadcast message is processed based on the first target level and the frequency limiting rule, including: obtaining the target frequency limiting number corresponding to the first target level based on the frequency limiting number corresponding to the level included in the frequency limiting rule; comparing the number of processed broadcast messages corresponding to the first target level with the target frequency limiting number; and sending the target broadcast message to the user terminal when the number of processed broadcast messages corresponding to the first target level is less than the target frequency limiting number.
[0116] In some embodiments, the target frequency limit number is the maximum number of processed broadcast messages of the first target level; the electronic device compares the number of processed broadcast messages corresponding to the current first target level with the target frequency limit number. When the number of processed broadcast messages corresponding to the first target level is less than the target frequency limit number, it indicates that the target broadcast message can be directly processed based on the frequency limit rule at the current level, that is, the first target level, and the target broadcast message is sent to the user terminal to complete the processing of the target broadcast message.
[0117] In some embodiments, when the number of processed broadcast messages at the first target level reaches the target frequency limit number, it indicates that the number of processed broadcast messages at the first target level reaches the maximum number that can be processed, and at this time, a second target level needs to be determined, wherein the second target level is that the number of processed broadcast messages corresponding to the second target level is less than its corresponding frequency limit number, and is lower than the level of the first target level; then, the electronic device processes the target broadcast message based on the second target level and the frequency limit rule, and increases the number of processed broadcast messages of the second target level after the processing of the target broadcast message is completed.
[0118] In some embodiments, when the number of processed broadcast messages at the first target level reaches the target frequency limit number and the first target level is the lowest level, it indicates that there are too many broadcast messages in the frequency limit period and the target broadcast message cannot be processed in the frequency limit period. At this time, the electronic device processes the target broadcast message in the non-frequency limit period or directly does not process it.
[0119] In some embodiments, when the number of processed broadcast messages of the first target level reaches the target frequency limit number and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, the target broadcast message is discarded and not broadcast.
[0120] In some embodiments, when the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, the target level lower than the second target level continues to be determined and it is determined whether the number of processed broadcast messages reaches its corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the lowest target level reaches its corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of a target level lower than the second target level does not reach its corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
[0121] In some embodiments, for example, during a live broadcast, if the number of gifts in the frequency-limited period reaches the frequency-limited number corresponding to the gifts, and the number of processed comment messages has not yet reached the frequency-limited number corresponding to the comment messages, and the level corresponding to the gifts is higher than the level corresponding to the comment messages, then the subsequent gifts can be processed according to the level of the comment messages until the number of processed subsequent comment messages and gifts reaches the frequency-limited number corresponding to the comment messages; that is, if the message processing frequency exceeds the limit threshold of the rule corresponding to the broadcast message, the live broadcast platform will perform a downgrade check according to the level of the message tag, and verify the frequency limit step by step according to the available level order. During the entire inspection process, as long as it is found that the broadcast message does not exceed the limit threshold of any level, the broadcast message is allowed to be processed. If the broadcast message frequency exceeds all available level limit thresholds continuously, the broadcast message will be judged to exceed the frequency limit, and the live broadcast will discard the message or process it during a non-frequency-limited period.
[0122] In some embodiments, Lua scripts in Redis can be used to perform count increment and frequency limit judgment. Lua scripts are atomic operations when executed in Redis, which means that no other Redis commands will be inserted and executed during the execution of the Lua script. Using Lua scripts can effectively ensure the atomicity of the operation, making the frequency limit logic more responsive and accurate.
[0123] This application discloses a message frequency limiting method, referring to Figure 2 , which is a flow chart of the message frequency limiting method; after the user sends a message, the live broadcast platform determines whether it is a broadcast message; for non-broadcast messages, it is sent normally; after it is determined to be a broadcast message, the message is adapted, and the available frequency limiting rules are obtained and merged; it is determined whether the available rules are empty, that is, whether the number of broadcast messages sent has reached the frequency limit number; if the rule is empty, that is, when the frequency limit number has not been reached, the message is sent normally; if the rule is not empty, that is, when the current level has reached the frequency limit number, the frequency limiting rule of the next level is taken out to determine whether the rule is empty. If it is not empty, count according to the time window and check the limit to determine whether it exceeds the frequency limit. If it does not exceed the frequency limit, it is sent normally. After determining that the frequency limit is exceeded, the frequency limiting rule of the next level is taken out; when the rule is determined to be empty and finally reaches the frequency limit, it can be sent to special users in a targeted manner, but it will not be pushed and displayed publicly.
[0124] In the actual live broadcast process, taking gift sending as an example, it is as follows: assuming that the default level limit is set to no more than 5 messages per second; the medium level limit is set to no more than 2 messages per second; the low level limit is set to only 1 message per second.
[0125] In specific use, if a channel on the business side sends a "sports car" gift message of level medium, the default level of frequency limit will be applied first. If it does not exceed the limit, the message will be sent. If the frequency limit of the default level is exceeded, the system will continue to apply the frequency limit rules of the middle level, and so on. If the frequency limit is still exceeded at the lower level, the message will not be sent.
[0126] Similarly, if the message sent is a "flower" gift message, and its message level is low, then after exceeding the default level limit, the low-level limit will be directly judged. If it still exceeds the limit, the message will not be sent.
[0127] In some embodiments, a user identifier corresponding to the message to be processed is obtained during a frequency-limited period; when the user identifier is a target user identifier recorded in a whitelist, the message to be processed is defined as a non-broadcast message, and the broadcast message is sent to the user terminal.
[0128] In some embodiments, during the live broadcast process, live broadcast users are generally divided into special users and non-special users, such as special users (hosts, speakers, guests, assistants, microphone users) and non-special users (audiences). For special users, their broadcast messages may not be restricted. Specifically, a whitelist may be set to add the accounts of users whose broadcast messages are not restricted to the whitelist, so that when recording the broadcast message, the user account that sends the broadcast message is obtained, and based on the user account being in the whitelist, the broadcast message is determined as the first broadcast message. When recording the broadcast message, the first broadcast message may not be recorded. Therefore, for the broadcast messages sent by the anchor, guests, and management users, the live broadcast platform can process and publish them in a timely manner, avoiding the problem of publishing delays caused by exceeding the frequency limit of the message when important messages are published.
[0129] In some embodiments, at least two broadcast messages are obtained during a frequency limited time period, and message types corresponding to the at least two broadcast messages are determined; when the message types corresponding to the at least two broadcast messages are of the same type but different types, the message types of the at least two broadcast messages are configured as a unified message type; wherein the unified message type corresponds to a frequency limited rule; and frequency limited processing is performed on the at least two broadcast messages based on the frequency limited rule corresponding to the unified message type.
[0130] In some embodiments, for different types of broadcast messages, message adaptation processing may be performed on different types of messages in the broadcast message, and the number of broadcast messages may be recorded; wherein the message adaptation processing is used to unify the message types.
[0131] Message service is a general underlying basic service, which is widely used in different business scenarios. Different business sides may have different usage methods for the same type of business, resulting in different types of messages received by the message side. In the message service, multiple message types can also be distinguished according to different standards and purposes. For example: text messages, graphic messages, audio messages, video messages, like messages, gift messages, etc.; that is, the messages received by the live broadcast platform usually include different types. When limiting, counting, and recording different types, the type of broadcast message is converted into a unified message type by adapting the message to the message adaptation process, so that the frequency limiting, counting, recording and other processing can be unified, without setting corresponding frequency limiting, counting, recording and other rules for each type of message. Through message adaptation processing, unified management of message types can be achieved, simplifying the configuration and management of frequency limiting rules. Therefore, no matter what type of message is used by the business side, the corresponding frequency limiting rules can be queried according to the adapted unified message type, and frequency limiting verification can be performed to ensure the logical unity and stable operation of the message service, and also ensure the consistency and flexibility of message processing.
[0132] After adapting different types of messages in the broadcast message, the number of broadcast messages can be recorded in a unified way. For example, in the live broadcast room, different business sides will have different message identifiers and parameters for like messages. In the chat message, customPraiseTotal (total number of praises) needs to be counted as the number of likes, while in the room message, room_like_num (number of room likes) needs to be counted as the number of likes. On the message side, the two like messages can be adapted to total_likes (total number of likes) through the adaptation interface.
[0133] Through the above-mentioned technical scheme of the present application, the frequency limiting rules of broadcast messages are set, so that the processing quantity can be effectively controlled in each cycle of message processing, and high-priority broadcast messages can be processed first according to their importance. Broadcast messages of each level and each type can be accurately divided and controlled, which effectively saves server resources and network bandwidth, and effectively improves the overall message processing efficiency and the stability of the live broadcast platform.
[0134] The present application provides a message frequency limiting device, which adopts the following technical solution;
[0135] Reference Figure 3 , a message frequency limiting device 30, comprising: a message acquisition module 301, a level determination module 302 and a message processing module 303, wherein,
[0136] The message acquisition module 301 is used to record the number of broadcast messages received during the frequency-limited period and acquire target broadcast messages exceeding the initial frequency-limited number; wherein the broadcast message is a message sent to an online user terminal;
[0137] The level determination module 302 is used to determine the first target level of the target broadcast message according to the level identifier contained in the called frequency limit rule; wherein the level identifier is a preset message type identifier; and the set broadcast message level and the corresponding frequency limit quantity are determined as the frequency limit rule;
[0138] The message processing module 303 is used to process the target broadcast message based on the first target level and the frequency limiting rule.
[0139] According to some embodiments, the frequency limiting rule includes the frequency limiting quantity corresponding to the level; the message processing module 303 is specifically used to:
[0140] Obtaining a target frequency limiting quantity corresponding to a first target level based on the frequency limiting quantity corresponding to the level included in the frequency limiting rule;
[0141] Comparing the number of processed broadcast messages corresponding to the first target level with the target frequency limit number;
[0142] When the number of processed broadcast messages corresponding to the first target level is less than the target frequency limit number, the target broadcast message is sent to the user terminal.
[0143] According to some embodiments, the message processing module 303 is specifically configured to:
[0144] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, determining the second target level; wherein the second target level is a level at which the number of processed broadcast messages corresponding to the second target level is less than the corresponding frequency limit number and is lower than the first target level;
[0145] The target broadcast message is processed based on the second target level and the frequency limiting rule, and the number of processed broadcast messages of the second target level is increased.
[0146] According to some embodiments, the message processing module 303 is specifically configured to:
[0147] When the number of processed broadcast messages of the first target level reaches the target frequency limit number and the first target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0148] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, and the second target level is the lowest level, the target broadcast message is discarded and not broadcast; or,
[0149] When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, continue to determine the target level lower than the second target level and judge whether the number of processed broadcast messages reaches its corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the lowest target level reaches its corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of the target level lower than the second target level does not reach its corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
[0150] According to some embodiments, the message frequency limiting device 30 further includes: a user identification acquisition module and a message definition module, wherein:
[0151] A user identification acquisition module, used to acquire the user identification corresponding to the message to be processed during the frequency-limited period;
[0152] The message definition module is used to define the message to be processed as a non-broadcast message when the user identifier is a target user identifier recorded in the white list, and send the broadcast message to the user terminal corresponding to the target user identifier.
[0153] According to some embodiments, the message frequency limiting device 30 further includes: a message type determination module and a message type configuration module, wherein:
[0154] A message type determination module, used to obtain at least two broadcast messages during the frequency-limited period, and determine the message types corresponding to the at least two broadcast messages respectively;
[0155] A message type configuration module, configured to configure the message types of at least two broadcast messages to be a unified message type when the message types corresponding to at least two broadcast messages are of the same type but different types; wherein the unified message type corresponds to a frequency limiting rule;
[0156] Frequency limiting processing is performed on at least two broadcast messages based on the frequency limiting rule corresponding to the unified message type.
[0157] According to some embodiments, the message acquisition module 301 is specifically used to:
[0158] When the number of online users reaches the frequency limit threshold, it is determined to enter the frequency limit period;
[0159] Record the number of broadcast messages received during the frequency-limited period;
[0160] The level determination module 302 is specifically used for:
[0161] Determine the target dimension for the number of online users to reach the frequency limit threshold; the target dimension is the business scenario that needs to be limited; the business scenario is one of all business scenarios, a single business line, and a single live broadcast room;
[0162] Get the target frequency limit rule of the target dimension;
[0163] A first target level of the target broadcast message is determined according to the level identifier of the target frequency limiting rule.
[0164] In some embodiments, the message acquisition module 301 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in an electronic device;
[0165] The level determination module 302 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device;
[0166] The message processing module 303 may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device;
[0167] The user identification acquisition module may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device;
[0168] The message definition module may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device;
[0169] The message type determination module may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device;
[0170] The message type configuration module may include a logic circuit, or may be implemented by a central processing unit, a digital signal processor, or a field programmable gate array included in the electronic device.
[0171] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0172] An embodiment of the present invention provides an electronic device, comprising: a processor; a memory storing a computer program, and when the computer program is executed by the processor, the processor executes a message frequency limiting method; for example, referring to Figure 4 , Figure 4 The electronic device 40 shown includes: a processor 401 and a memory 403. The processor 401 and the memory 403 are connected, such as through a bus 402. Optionally, the electronic device 40 may also include a transceiver 404. It should be noted that in actual applications, the transceiver 404 is not limited to one, and the structure of the electronic device 40 does not constitute a limitation on the embodiments of the present invention.
[0173] Processor 401 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in the disclosure of the present invention. Processor 401 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0174] The bus 402 may include a path to transmit information between the above components. The bus 402 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 402 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0175] The memory 403 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0176] The memory 403 is used to store application code for executing the solution of the present invention, and the execution is controlled by the processor 401. The processor 401 is used to execute the application code stored in the memory 403 to implement the content shown in the above method embodiment.
[0177] Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0178] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a message frequency limiting method.
[0179] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0180] The above are only some implementation methods of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A message frequency limiting method, characterized in that: include: Recording the number of broadcast messages received during the frequency-limited period, and acquiring target broadcast messages exceeding the initial frequency-limited number; wherein the broadcast message is a message sent to an online user terminal; Determine the first target level of the target broadcast message according to the level identifier contained in the called frequency limiting rule; wherein the level identifier is a preset message type identifier; determine the set level of the broadcast message and the corresponding frequency limiting quantity as the frequency limiting rule; Processing the target broadcast message based on the first target level and the frequency limiting rule; The frequency limiting rule includes a frequency limiting quantity corresponding to a level; and processing the target broadcast message based on the first target level and the frequency limiting rule includes: Obtaining a target frequency limiting quantity corresponding to the first target level based on the frequency limiting quantity corresponding to the level included in the frequency limiting rule; comparing the number of processed broadcast messages corresponding to the first target level with the target frequency limit number; When the number of processed broadcast messages corresponding to the first target level is less than the target frequency limit number, sending the target broadcast message to the user terminal; The processing of the target broadcast message based on the first target level and the frequency limiting rule includes: When the number of processed broadcast messages of the first target level reaches the target frequency limit number, determining a second target level; wherein the second target level is a level where the number of processed broadcast messages corresponding to the second target level is less than the corresponding frequency limit number and is lower than the first target level; Processing the target broadcast message based on the second target level and the frequency limiting rule, and increasing the number of processed broadcast messages of the second target level; The processing of the target broadcast message based on the first target level and the frequency limiting rule includes: When the number of processed broadcast messages of the first target level reaches the target frequency limit number and the first target level is the lowest level, the target broadcast message is discarded and not broadcast; or When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, and the second target level is the lowest level, the target broadcast message is discarded and not broadcast; or, When the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, continue to determine the target level lower than the second target level and judge whether the number of processed broadcast messages reaches its corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the lowest target level reaches its corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of the target level lower than the second target level does not reach its corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
2. The method according to claim 1, characterized in that Also includes: Obtaining a user ID corresponding to a message to be processed during a frequency-limited period; In the case that the user identifier is a target user identifier recorded in the white list, the message to be processed is defined as a non-broadcast message, and the broadcast message is sent to a user terminal corresponding to the target user identifier.
3. The method according to claim 1, characterized in that Also includes: Acquire at least two broadcast messages during the frequency-limited period, and determine the message types corresponding to the at least two broadcast messages respectively; In the case where the message types respectively corresponding to the at least two broadcast messages are of the same type but different types, configuring the message types of the at least two broadcast messages to be a unified message type; wherein the unified message type corresponds to a frequency limiting rule; The at least two broadcast messages are frequency limited based on the frequency limit rule corresponding to the unified message type.
4. The method according to any one of claims 1 to 3, characterized in that: The recording of the number of broadcast messages received during the frequency-limited period includes: When the number of online users reaches the frequency limit threshold, determining to enter the frequency limit period; Recording the number of broadcast messages received during the frequency-limited period; The step of determining the first target level of the target broadcast message according to the level identifier included in the called frequency limiting rule includes: Determine the target dimension for the number of online users to reach the frequency limiting threshold; wherein the target dimension is a business scenario that requires frequency limiting; wherein the business scenario is one of all business scenarios, a single business line, and a single live broadcast room; Obtain a target frequency limiting rule for the target dimension; A first target level of the target broadcast message is determined according to the level identifier of the target frequency limiting rule.
5. A message frequency limiting device, characterized in that: include: A message acquisition module, used to record the number of broadcast messages received during the frequency-limited period, and to acquire target broadcast messages exceeding the initial frequency-limited number; wherein the broadcast message is a message sent to an online user terminal; A level determination module, used to determine the first target level of the target broadcast message according to the level identifier contained in the called frequency limit rule; wherein the level identifier is a preset message type identifier; and determine the set broadcast message level and the corresponding frequency limit quantity as the frequency limit rule; A message processing module, configured to process the target broadcast message based on the first target level and the frequency limiting rule; The frequency limiting rule includes a frequency limiting number corresponding to a level; the message processing module is used to obtain a target frequency limiting number corresponding to the first target level based on the frequency limiting number corresponding to the level included in the frequency limiting rule; compare the number of processed broadcast messages corresponding to the first target level with the target frequency limiting number; and send the target broadcast message to the user terminal when the number of processed broadcast messages corresponding to the first target level is less than the target frequency limiting number; The message processing module is configured to determine a second target level when the number of processed broadcast messages of the first target level reaches the target frequency limit number; wherein the second target level is a level at which the number of processed broadcast messages corresponding to the second target level is less than the corresponding frequency limit number and lower than the first target level; based on the second target level and the frequency limit rule, the target broadcast message is processed, and the number of processed broadcast messages of the second target level is increased; Among them, the message processing module is used to, when the number of processed broadcast messages of the first target level reaches the target frequency limit number and the first target level is the lowest level, eliminate the target broadcast message and not broadcast it; or, when the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number, and the second target level is the lowest level, eliminate the target broadcast message and not broadcast it; or, when the number of processed broadcast messages of the first target level reaches the target frequency limit number, and the number of processed broadcast messages of the second target level reaches its corresponding frequency limit number. When the number of processed broadcast messages of the target level lower than the second target level reaches the corresponding frequency limit number, continue to determine the target level lower than the second target level and judge whether the number of processed broadcast messages reaches the corresponding frequency limit number; until the lowest target level is determined, and when the number of processed broadcast messages of the target level lower than the second target level reaches the corresponding frequency limit number, the target broadcast message is eliminated and not broadcast; when the number of processed broadcast messages of the target level lower than the second target level does not reach the corresponding frequency limit number, the target broadcast message is processed based on the target level lower than the second target level and the frequency limit rule, and the number of processed broadcast messages of the target level lower than the second target level is increased.
6. An electronic device, characterized in that: include: processor; A memory storing a computer program, which, when executed by the processor, enables the processor to execute the message frequency limiting method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed in a computer, the computer is caused to execute the message frequency limiting method according to any one of claims 1 to 4.
