CN116389594A - Message processing method, device and computer equipment - Google Patents

Message processing method, device and computer equipment Download PDF

Info

Publication number
CN116389594A
CN116389594A CN202310532338.0A CN202310532338A CN116389594A CN 116389594 A CN116389594 A CN 116389594A CN 202310532338 A CN202310532338 A CN 202310532338A CN 116389594 A CN116389594 A CN 116389594A
Authority
CN
China
Prior art keywords
message
frequency control
issued
information
control state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310532338.0A
Other languages
Chinese (zh)
Other versions
CN116389594B (en
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.)
Shanghai Yitan Network Technology Co ltd
Guangzhou This Voice Network Technology Co ltd
Original Assignee
Shanghai Yitan Network Technology Co ltd
Guangzhou This Voice Network Technology 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 Shanghai Yitan Network Technology Co ltd, Guangzhou This Voice Network Technology Co ltd filed Critical Shanghai Yitan Network Technology Co ltd
Priority to CN202310532338.0A priority Critical patent/CN116389594B/en
Publication of CN116389594A publication Critical patent/CN116389594A/en
Application granted granted Critical
Publication of CN116389594B publication Critical patent/CN116389594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a message processing method, a message processing device and computer equipment. The message processing method comprises the following steps: acquiring attribute information of a message to be issued; grading the message to be issued according to the attribute information and the preset information grade; determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level; according to the frequency control state and the delay value threshold value corresponding to each information level, the information to be issued is issued, through the setting, information layering of different processing priorities and importance degrees is realized, the differential regulation and control of the frequency control state of the information to be issued is realized, the rapid distinction of the information with higher importance degree in a large number of information is realized, the high concurrency pressure of a server is relieved, and the issuing of the important information is ensured.

Description

Message processing method, device and computer equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a message processing method, device, and computer device.
Background
With the development of internet technology, a server may issue different messages to different clients based on different business expectations. For example, pro-production messages may be pushed to users based on production business expectations, activity-related messages may be pushed to users based on growth business expectations, live switch-on-demand messages may be pushed to users based on live business expectations, and the like. In any scenario with larger concurrency pressure, the query rate per second (Queries Per Second, QPS) for the same client may reach thousands or even tens of thousands, and obviously the client cannot bear the message input of this magnitude, so the server performs certain frequency control and current limiting, and selectively discards a part of the messages.
In general, a server side will set a frequency control threshold, then push the message which does not reach the frequency control threshold to all clients in the same room, and discard the message which reaches the frequency control threshold directly, so as to realize screening and selecting of the message.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a message processing method, apparatus, and computer device capable of guaranteeing priority delivery of important information.
In a first aspect, the present application provides a message processing method, including:
acquiring attribute information of a message to be issued;
grading the message to be issued according to the attribute information and the preset information grade;
determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level;
and carrying out issuing processing on the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
In one embodiment, the attribute information includes service type information;
the information grade corresponds to at least one service type information;
the grading of the message to be issued according to the attribute information and the preset information grade comprises the following steps:
and matching the information grade corresponding to each message to be issued according to the service type information.
In one embodiment, before determining the frequency control state of each message to be sent according to the frequency control threshold corresponding to each information level, the method includes:
acquiring real-time frequency control information of an initiator corresponding to each message to be issued;
the determining the frequency control state of each message to be issued according to the frequency control threshold corresponding to each information level comprises the following steps:
and determining the frequency control state of each message to be issued according to the real-time frequency control information of the initiator corresponding to each message to be issued and the frequency control threshold corresponding to the message level of the message to be issued.
In one embodiment, the determining the frequency control state of each message to be delivered according to the real-time frequency control information of the initiator corresponding to each message to be delivered and the frequency control threshold corresponding to each information level includes:
when the real-time frequency control information of the initiator corresponding to the message to be issued reaches a frequency control threshold corresponding to the information level of the message to be issued, the frequency control threshold is used as the frequency control state of the message to be issued;
and when the real-time frequency control information of the initiator corresponding to the message to be issued does not reach the frequency control threshold corresponding to the information level of the message to be issued, taking the frequency control threshold which is not reached as the frequency control state of the message to be issued.
In one embodiment, the issuing the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level includes:
when the frequency control state of the message to be issued does not reach the frequency control threshold value, issuing the message to be issued;
when the frequency control state of the message to be issued reaches a frequency control threshold value, acquiring an actual delay value of the message to be issued;
and when the actual delay value does not reach the delay value threshold corresponding to the information level of the message to be issued, issuing the message to be issued.
In one embodiment, the method further comprises:
and discarding the message to be issued when the actual delay value reaches a delay value threshold corresponding to the information level of the message to be issued.
In a second aspect, the present application further provides a message processing apparatus, including:
the first acquisition module is used for acquiring attribute information of the message to be issued;
the dividing module is used for classifying the message to be issued according to the attribute information and the preset information grade;
the determining module is used for determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level;
and the issuing module is used for issuing the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the message processing method according to any of the above embodiments when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the message processing method according to any of the above embodiments.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the message processing method according to any of the embodiments described above.
The message processing method, the device and the computer equipment can layer the information of the processing priority and the importance degree of the messages to be issued according to the attribute information, realize the differential regulation and control of the frequency control states of the messages to be issued through different frequency control thresholds, realize the rapid distinction of the messages with higher importance degree in a large number of messages, relieve the high concurrency pressure of a server and ensure the preferential issuing of the important messages.
Drawings
FIG. 1 is a diagram of an application environment for a message processing method in one embodiment;
FIG. 2 is a flow diagram of a message processing method in one embodiment;
FIG. 3 is a flow chart of a message processing method according to another embodiment;
FIG. 4 is a flow chart of a message processing method in yet another embodiment;
FIG. 5 is a flow chart of a message processing method according to yet another embodiment;
FIG. 6 is a block diagram of a message processing apparatus in one embodiment;
FIG. 7 is a block diagram showing the structure of a message processing apparatus in yet another embodiment;
FIG. 8 is a block diagram illustrating the structure of a delivery module in a message processing apparatus according to one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The message processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the client 102 communicates with the server 104 via a network.
For example, the message processing method is applied to the client 102, the client 102 firstly obtains attribute information of the message to be issued, and then ranks the message to be issued according to the attribute information and the preset information ranks; determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level; then, the client 102 sends the frequency control state of the message to be sent to the server 104, and the server 104 determines a sending processing result of the message to be sent to be processed according to the frequency control state and a delay value threshold corresponding to each information level, wherein the client 102 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or a server cluster formed by a plurality of servers. The client 102 and the server 104 may be connected directly or indirectly through wired or wireless communication, such as through a network connection.
For another example, the memory data access method is applied to the server 104, after the server 104 receives the message to be issued sent by the client 102, attribute information of the message to be issued is firstly obtained, and then the message to be issued is classified according to the attribute information and a preset information level; determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level; and then the server 104 determines the transmission processing result of the message to be transmitted to transmit according to the frequency control state and the delay value threshold corresponding to each information level. As an example, the server 104 may store information such as a frequency control status of each message to be sent in the data storage system. It will be appreciated that the data storage system may be a stand-alone storage device, or the data storage system may be located on a server, or the data storage system may be located on another terminal.
In one embodiment, a message processing method is provided, and this embodiment is illustrated by applying the message processing method to a processor, where it is understood that the processor may be located on a client or a server. As shown in fig. 2, the message processing method includes:
step 202, obtaining attribute information of the message to be issued.
The attribute information refers to related information carried by the message to be issued, and may include, for example, a service type of the message to be issued, a message sending time, information of a client corresponding to the message to be issued, and the like.
As an example, in a live broadcast scenario, a message to be delivered sent by a plurality of users in each live broadcast room through a mobile phone, a tablet or a computer may be received in real time, the attribute information of the message to be delivered may include user identity information, live broadcast room information, keyword content of the current message to be delivered, and the like, where the user identity information may be a correspondence between a user ID and terminal information sending the current message to be delivered, such as a user ID-computer model, the live broadcast room information may be a live broadcast room number, and the keyword content of the current message to be delivered may be a successfully-compared field obtained by comparing the specific content of the message to be delivered with a preset keyword list.
In this embodiment, the processor may obtain attribute information of at least one message to be delivered sent by at least one client.
Step 204, grading the message to be issued according to the attribute information and the preset information grade.
The information levels may be preset by the user, different information levels may be used to distinguish messages with different processing priorities and different importance levels, and the processor may preset at least one information level, where the processing priorities corresponding to the information levels decrease in sequence, i.e. the importance levels decrease in sequence.
Specifically, the processor may preset a plurality of hierarchical keyword lists, where the importance degrees of the keyword lists are sequentially reduced, so as to distinguish the importance degrees of the text information of different to-be-issued messages, and if the text information of the to-be-issued message is not matched with the keyword list of each hierarchical keyword list, consider that the current to-be-issued message is a common text message that can be discarded.
As an example, in a live broadcast scene, a first list and a second list are preset in a processor, the first list and the second list respectively contain a plurality of keywords, and the importance degree of the keywords in the first list is higher than that of the keywords in the second list; the processor is further preset with four information levels, wherein the first information level corresponds to a high-level message, for example, the first information level can be a live broadcast room gift with a value higher than a first preset threshold value or a text message with first list keyword contents; the second information level corresponds to a relatively important message, for example, a live broadcast gift with a value lower than a first preset threshold value but higher than a second preset threshold value, or a text message with a second list keyword content, or a message which can be sent with a lower delay is preset; the third information level corresponds to a general message, for example, information sent by higher delay can be received; the fourth information level corresponds to non-important messages, such as text messages that do not match keywords in both the first list and the second list and do not carry any tags. The message capable of receiving the lower delay and the message capable of receiving the higher delay can respectively carry corresponding delay labels, the delay labels can be at least one of letters, characters or numbers, and the state capable of receiving the delay corresponding to the current message can comprise the lower delay and the higher delay.
As an example, each information level may correspond to at least one attribute information, respectively. After acquiring the attribute information of the message to be issued, the processor can match the attribute information with the attribute information corresponding to each information grade, and the matched information grade is used as the information grade corresponding to the message to be issued.
Or, the attribute information of the message to be issued can carry a grade label, the grade label can be at least one of letters, characters or numbers, the grade label is used for representing a unique information grade, and the processor reads the grade label carried by the attribute information after acquiring the attribute information of the message to be issued and matches the information grade corresponding to the message to be issued according to the grade label.
In this embodiment, the processor may match the attribute information carried by the message to be issued to the information level corresponding to the message to be issued, so as to complete the level division.
Step 206, determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level.
The frequency control threshold refers to the number of messages sent by a certain client received by the server in a certain time.
The frequency control state refers to that the number of messages sent to the server by the client corresponding to the message to be sent in a certain time reaches or does not reach the frequency control threshold.
The server may set the frequency control threshold for the client based on: user identity: the server may set the frequency control threshold according to the identity of the user. For example, for a normal user and an advanced user, the server may set different frequency control thresholds. Request type: the server may also set the frequency control threshold according to the request type. For example, for some requests that require processing of large amounts of data, the server may set a lower frequency control threshold. System load: the server may also dynamically adjust the frequency control threshold according to the system load condition. If the server finds that the system load is too high, the frequency control threshold can be adjusted to be high so as to relieve the pressure of the server. Business requirements: the server may also set a frequency control threshold according to the service requirement. For example, for some online games or real-time transactions, the server needs to guarantee low latency and high throughput, and therefore needs to set a higher frequency control threshold. Security policy: the server may also set a frequency control threshold according to a security policy. For example, in order to prevent security problems such as malicious attacks or attacks by the disk operating system (Disk Operating System, doS), the server needs to set a higher frequency control threshold. In summary, the server may set the frequency control threshold of the client based on factors such as the user identity, the request type, the system load, the service requirement, and the security policy, so as to ensure stability of the system, improve the response speed, and prevent the security problem.
In this embodiment, the processor may regulate and control the frequency control states of the messages to be issued with different processing priorities and different importance levels by setting different frequency control thresholds for different information levels.
And step 208, carrying out issuing processing on the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
The delay value refers to the time consumed by the message in the transmission process, and the corresponding delay value threshold value is preset for each information level, so that the transmission priority or transmission sequence of the message to be transmitted of the same information level can be further distinguished.
The processor may also set a range of delay values for each level of information to more precisely define the corresponding level of information
The delay time of the information refers to the time interval from the sending of the information from the client to the receiving of the information by the server. This time interval may involve a number of factors, including the following: channel transmission delay: when information is transmitted, the time required for the channel to propagate will be referred to as the transmission delay. This delay is typically determined by the propagation velocity of the electromagnetic wave or other medium. Network congestion: if the network is heavily loaded, the information needs to wait for other information to complete transmission to be successfully transmitted, which becomes network congestion, and this factor also causes information delay. Processing time of the server: after the information arrives at the server, if the server needs to process or decode the information, this processing time becomes one of the delay factors; the physical distance between the client and the server also affects the delay in information transmission, as the information needs to travel a period of time to reach the target at the speed of light, so a longer distance results in a higher delay. In summary, the delay duration of information may be caused by a variety of factors, the most predominant of which are channel transmission delay, network congestion, receiver processing time, physical distance, and the like.
In this embodiment, the processor may further subdivide the order of sending the messages to be sent in each information level according to the frequency control status of the messages to be sent and the delay value threshold corresponding to the information level where each message to be sent is located.
In the message processing method, the processor can acquire the attribute information of the message to be issued, and layers the message according to the attribute information by at least one preset information level, so that a large number of messages to be issued can be differentiated in processing priority and importance, further, the processor sets different frequency control thresholds for the information levels respectively, so that the differentiated regulation and control of the frequency control states of the messages to be issued with different processing priorities and different importance is realized, on the basis, the processor sets different delay value thresholds for the information levels respectively, and finally, the processor performs issuing processing on the message to be issued through the frequency control states regulated and controlled by the messages to be issued and the delay value thresholds corresponding to the information levels. By the arrangement, the sequential layering of the messages with different processing priorities and different importance degrees is realized, the messages with higher importance degrees can be rapidly distinguished from a large number of messages, the issuing of the important messages is ensured, the high concurrence pressure of the server is relieved, and the stable operation of the server is ensured.
As shown in fig. 3, in some alternative embodiments, the attribute information includes service type information; the information level corresponds to at least one service type information; step 204 includes: step 204a, matching the information grade corresponding to each message to be issued according to the service type information.
The service type information refers to a type of action to be actually performed by the message to be delivered, for example, in a live scene, the message to be delivered may include a direct broadcast gift service, a main cast message service, and a general audience speaking service.
As an example, the processor presets three message levels (1), (2) and (3), where the message level (1) corresponds to a direct broadcast gift service, the message level (2) corresponds to a host message service, the message level (3) corresponds to a general audience speaking service, when the processor faces three messages A, B, C to be delivered, and the service type information in the attribute information of the message a to be delivered is a host message service, the service type information in the attribute information of the message B to be delivered is a direct broadcast gift service, and the service type information in the attribute information of the message C to be delivered is a general audience speaking service, the processor may be matched to the information level of the message a to be delivered is (2), the information level of the message B to be delivered is (1), and the information level of the message C to be delivered is (3).
Further, the attribute information may further include service type information, message sending time, and information of a client corresponding to the message to be sent; each information level may also correspond to at least one service type information, at least one message transmission time period, at least one client, respectively. Step 204 may further comprise: and according to the service type, the message sending time, the information of the client corresponding to the message to be sent and at least one service type information, at least one message sending time period and at least one client which can be corresponding to each information grade, matching the information grade corresponding to each message to be sent.
As shown in fig. 4, in some alternative embodiments, prior to step 206, comprising: step 205, acquiring real-time frequency control information of the initiator corresponding to each message to be issued; step 206 comprises: step 206a, determining the frequency control state of each message to be issued according to the real-time frequency control information of the initiator corresponding to each message to be issued and the frequency control threshold corresponding to the message level of the message to be issued.
The real-time frequency control information refers to the number of messages sent to the server by the client in a certain time.
The initiator corresponding to the message to be issued is the client, the processor acquires the message sending time of each message to be issued, and further acquires the number of messages sent to the server by the client corresponding to the message to be issued within a certain time before the message sending time, and the number of messages is used as real-time frequency control information. And then comparing the real-time frequency control information with a frequency control threshold corresponding to the information level of the current message to be issued, and determining the frequency control state of the message to be issued.
The step of determining the frequency control state of each message to be issued specifically includes: when the real-time frequency control information of the initiator corresponding to the message to be issued reaches a frequency control threshold corresponding to the information level of the message to be issued, the frequency control threshold is used as the frequency control state of the message to be issued; and when the real-time frequency control information of the initiator corresponding to the message to be issued does not reach the frequency control threshold corresponding to the information level of the message to be issued, taking the frequency control threshold which is not reached as the frequency control state of the message to be issued.
As shown in fig. 5, in some alternative embodiments, step 208 includes:
step 2082, when the frequency control state of the message to be issued is not up to the frequency control threshold, issuing the message to be issued;
step 2084, when the frequency control state of the message to be issued is the frequency control threshold, acquiring the actual delay value of the message to be issued;
and step 2086, when the actual delay value does not reach the delay value threshold corresponding to the information level of the message to be issued, issuing the message to be issued.
The frequency control threshold values corresponding to different message levels can be different, for example, according to the order that the processing priority and the importance degree corresponding to the message levels are reduced in sequence, the frequency control threshold values and the delay value threshold values which are reduced in sequence are set, the higher the frequency control threshold value is, the easier the message to be issued does not reach the frequency control threshold value, the easier the message to be issued is issued by the processor, the higher the delay value refers to the threshold value, the harder the actual delay value of the message to be issued reaches the delay value threshold value corresponding to the information level, the easier the frequency control state is for the message to be issued reaching the frequency control threshold value to be issued by the processor, and by the setting, the priority issuing of the message to be issued with the higher importance degree is realized, the issuing touch rate of the message to be issued in the message level with the highest processing priority degree and the highest importance degree is the highest, and the issuing touch rate of the message to be issued in the message level with the lowest processing priority degree and the importance degree is the lowest.
In step 208, the processor may send the message to be delivered to all clients in the same room except the client that sent the message to be delivered. The same room refers to a client which establishes connection with the same server and carries the same room label, and the room label is used for uniquely identifying a network environment or accessing a website.
In some alternative embodiments, the message processing method further comprises: and discarding the message to be issued when the actual delay value reaches a delay value threshold corresponding to the information level of the message to be issued.
In some alternative embodiments, an ack mechanism may also be added for different message levels,
the processor may preset a high-value set of users as ack users, and when the client where the users are located receives the message in the message class where the ack mechanism exists, the client replies immediately that the server has received the message. The server detects the timing and retransmits the message to the client that receives the message in the message class with the ack mechanism but does not reply to the ack. Each message issued by the server has a unique message identifier, and the client makes idempotent based on the message identifier.
According to the information processing method, the information to be sent can be layered according to different attribute information, a large number of information to be sent are differentiated in processing priority and importance, different frequency control thresholds are further set for the information levels respectively, different frequency control states of the information to be sent with different processing priorities and different importance are regulated and controlled differently, different delay value thresholds are set for the information levels respectively on the basis, the information to be sent with the frequency control state being the information to be sent which does not reach the frequency control threshold in the information levels is sent most preferentially on the basis of the processing priority of each information level, the frequency control state is sent after the information to be sent with the frequency control threshold but the actual delay value does not reach the delay value threshold, the frequency control state is sent with the frequency control threshold but the actual delay value does not reach the delay value threshold, and therefore multi-layer classification of the information is achieved.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a message processing device for realizing the above related message processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the message processing device provided below may refer to the limitation of the message processing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 6, there is provided a message processing apparatus 500 comprising: a first acquisition module 502, a partitioning module 504, a determination module 506, and a delivery module 508, wherein:
the first obtaining module 502 is configured to obtain attribute information of a message to be sent;
the classifying module 504 is configured to classify the message to be sent according to the attribute information and a preset information level;
the determining module 506 is configured to determine a frequency control state of each message to be sent according to a frequency control threshold corresponding to each information level;
the issuing module 508 is configured to issue a message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
In some alternative embodiments, the attribute information includes business type information; the information level corresponds to at least one service type information; the partitioning module 504 is further configured to: and matching the information grade corresponding to each message to be issued according to the service type information.
As shown in fig. 7, in some alternative embodiments, the message processing apparatus 500 further includes: a second obtaining module 505, configured to obtain real-time frequency control information of the initiator corresponding to each message to be issued; the determination module 506 is further configured to: and determining the frequency control state of each message to be issued according to the real-time frequency control information of the initiator corresponding to each message to be issued and the frequency control threshold corresponding to the message level of the message to be issued.
In some alternative embodiments, the determination module 506 is configured to: when the real-time frequency control information of the initiator corresponding to the message to be issued reaches a frequency control threshold corresponding to the information level of the message to be issued, the frequency control threshold is used as the frequency control state of the message to be issued; and when the real-time frequency control information of the initiator corresponding to the message to be issued does not reach the frequency control threshold corresponding to the information level of the message to be issued, taking the frequency control threshold which is not reached as the frequency control state of the message to be issued.
As shown in fig. 8, in some alternative embodiments, the issuing module 508 includes: a first issuing unit 5082, configured to issue the message to be issued when the frequency control state of the message to be issued is not up to the frequency control threshold; an obtaining unit 5084, configured to obtain an actual delay value of the message to be sent when the frequency control state of the message to be sent is a frequency control threshold; and the second issuing unit 5086 is configured to issue the message to be issued when the actual delay value does not reach the delay value threshold corresponding to the information level where the message to be issued is located.
The respective modules in the above-described message processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a message processing method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the message processing method described above.
In one embodiment, a computer program product is provided comprising a computer program product which, when executed by a processor, implements the steps of the message processing method described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric RandomAccess Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can take many forms, such as static Random access memory (Static Random Access Memory, SRAM) or Dynamic Random access memory (Dynamic Random AccessMemory, DRAM), among others. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of message processing comprising:
acquiring attribute information of a message to be issued;
grading the message to be issued according to the attribute information and the preset information grade;
determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level;
and carrying out issuing processing on the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
2. The method of claim 1, wherein the attribute information comprises service type information;
the information grade corresponds to at least one service type information;
the grading of the message to be issued according to the attribute information and the preset information grade comprises the following steps:
and matching the information grade corresponding to each message to be issued according to the service type information.
3. The method according to claim 1, wherein before determining the frequency control status of each message to be delivered according to the frequency control threshold corresponding to each information level, the method comprises:
acquiring real-time frequency control information of an initiator corresponding to each message to be issued;
the determining the frequency control state of each message to be issued according to the frequency control threshold corresponding to each information level comprises the following steps:
and determining the frequency control state of each message to be issued according to the real-time frequency control information of the initiator corresponding to each message to be issued and the frequency control threshold corresponding to the message level of the message to be issued.
4. The method of claim 3, wherein the determining the frequency control status of each message to be delivered according to the real-time frequency control information of the initiator corresponding to each message to be delivered and the frequency control threshold corresponding to each information level comprises:
when the real-time frequency control information of the initiator corresponding to the message to be issued reaches a frequency control threshold corresponding to the information level of the message to be issued, the frequency control threshold is used as the frequency control state of the message to be issued;
and when the real-time frequency control information of the initiator corresponding to the message to be issued does not reach the frequency control threshold corresponding to the information level of the message to be issued, taking the frequency control threshold which is not reached as the frequency control state of the message to be issued.
5. The method of claim 4, wherein the issuing the message according to the frequency control state and the delay value threshold corresponding to each information level includes:
when the frequency control state of the message to be issued does not reach the frequency control threshold value, issuing the message to be issued;
when the frequency control state of the message to be issued reaches a frequency control threshold value, acquiring an actual delay value of the message to be issued;
and when the actual delay value does not reach the delay value threshold corresponding to the information level of the message to be issued, issuing the message to be issued.
6. The method of claim 5, wherein the method further comprises:
and discarding the message to be issued when the actual delay value reaches a delay value threshold corresponding to the information level of the message to be issued.
7. A message processing apparatus, comprising:
the first acquisition module is used for acquiring attribute information of the message to be issued;
the dividing module is used for classifying the message to be issued according to the attribute information and the preset information grade;
the determining module is used for determining the frequency control state of each message to be issued according to the frequency control threshold value corresponding to each information level;
and the issuing module is used for issuing the message to be issued according to the frequency control state and the delay value threshold corresponding to each information level.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the message processing method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the message processing method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the message processing method of any of claims 1 to 6.
CN202310532338.0A 2023-05-12 2023-05-12 Message processing method, device and computer equipment Active CN116389594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310532338.0A CN116389594B (en) 2023-05-12 2023-05-12 Message processing method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310532338.0A CN116389594B (en) 2023-05-12 2023-05-12 Message processing method, device and computer equipment

Publications (2)

Publication Number Publication Date
CN116389594A true CN116389594A (en) 2023-07-04
CN116389594B CN116389594B (en) 2023-09-01

Family

ID=86965875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310532338.0A Active CN116389594B (en) 2023-05-12 2023-05-12 Message processing method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN116389594B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414516A (en) * 2020-03-17 2020-07-14 北京字节跳动网络技术有限公司 Live broadcast room message processing method and device, electronic equipment and storage medium
CN112804545A (en) * 2021-01-07 2021-05-14 中电福富信息科技有限公司 Slow live broadcast processing method and system based on live broadcast streaming frame extraction algorithm
CN114626875A (en) * 2022-02-14 2022-06-14 北京快乐茄信息技术有限公司 Information processing method, information processing apparatus, server, and storage medium
CN115022264A (en) * 2022-06-27 2022-09-06 北京达佳互联信息技术有限公司 Message pushing method and device, electronic equipment and computer readable storage medium
CN115633010A (en) * 2022-10-20 2023-01-20 北京达佳互联信息技术有限公司 Message control method and message control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414516A (en) * 2020-03-17 2020-07-14 北京字节跳动网络技术有限公司 Live broadcast room message processing method and device, electronic equipment and storage medium
CN112804545A (en) * 2021-01-07 2021-05-14 中电福富信息科技有限公司 Slow live broadcast processing method and system based on live broadcast streaming frame extraction algorithm
CN114626875A (en) * 2022-02-14 2022-06-14 北京快乐茄信息技术有限公司 Information processing method, information processing apparatus, server, and storage medium
CN115022264A (en) * 2022-06-27 2022-09-06 北京达佳互联信息技术有限公司 Message pushing method and device, electronic equipment and computer readable storage medium
CN115633010A (en) * 2022-10-20 2023-01-20 北京达佳互联信息技术有限公司 Message control method and message control device

Also Published As

Publication number Publication date
CN116389594B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US8560962B2 (en) Promoting participation of low-activity users in social networking system
US10423459B1 (en) Resource manager
US9177009B2 (en) Generation based update system
CN109565518B (en) Method and system for interchangeable content retrieval
CN110546923A (en) selective distribution of messages in a scalable real-time messaging system
CN111684448B (en) Enhanced online privacy
CN106878370A (en) The update method and equipment of a kind of local cache
US11061727B1 (en) Preventing performance degradation over time in a cache
US9588983B2 (en) Data classification for adaptive synchronization
US20190005534A1 (en) Providing media assets to subscribers of a messaging system
US20170155739A1 (en) Advertisement data processing method and router
US20230379763A1 (en) Dynamic continuous quality of service adjustment system
US11977513B2 (en) Data flow control in distributed computing systems
US20170075886A1 (en) Selecting digital content for inclusion in media presentations
CN116389594B (en) Message processing method, device and computer equipment
US20140330889A1 (en) Data stage-in for network nodes
CN116800671A (en) Data transmission method, apparatus, computer device, storage medium, and program product
US10630767B1 (en) Hardware grouping based computing resource allocation
CN116860470A (en) Data transmission method, device, computer equipment and storage medium
CN108351888B (en) Generating deferrable data streams
US20170295200A1 (en) Distributed Denial Of Service Attack Protection
CN114253481A (en) Data storage method and device, computer equipment and storage medium
WO2019096207A1 (en) Image processing method and computer device, and computer readable storage medium
US20200195591A1 (en) Integration hub
US20210019392A1 (en) System and method for data processing device management

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant