CN107147504A - A kind of information push method and device - Google Patents

A kind of information push method and device Download PDF

Info

Publication number
CN107147504A
CN107147504A CN201710209819.2A CN201710209819A CN107147504A CN 107147504 A CN107147504 A CN 107147504A CN 201710209819 A CN201710209819 A CN 201710209819A CN 107147504 A CN107147504 A CN 107147504A
Authority
CN
China
Prior art keywords
chat messages
priority
pushed
chatroom
chat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710209819.2A
Other languages
Chinese (zh)
Inventor
周志远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710209819.2A priority Critical patent/CN107147504A/en
Publication of CN107147504A publication Critical patent/CN107147504A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1859Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/226Delivery according to priorities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiments of the invention provide a kind of information push method and device, wherein, methods described includes:Receive the chat messages that chatroom user sends;Chat messages are detected, the credit rating of chat messages is obtained;According to the credit rating of chat messages, chat messages are stored in corresponding priority query;According to the order of priority from high to low, chat messages to be pushed are taken out from priority query successively, and chat messages to be pushed are pushed to each user of chatroom.Low-quality chat messages are delayed push or abandoned, improve Consumer's Experience by a kind of information push method and device provided in an embodiment of the present invention, it is possible to achieve push the higher chat messages of quality to user first, improve the enthusiasm that user participates in chatroom chat.

Description

A kind of information push method and device
Technical field
The present invention relates to instant messaging field, more particularly to a kind of information push method and device.
Background technology
With the high speed development of internet, instant messaging has turned into communication meanses indispensable during people live, flat When amusement and recreation and work in be obtained for and be widely applied.Chatroom is enjoyed as a kind of emerging instant communication mode People favor.
In chatroom, people can speak one's mind freely.But, because the user in chatroom is many and is mostly strange People, when the user relatively many or user for participating in chatroom chat, which makes a speech, more to be enlivened, has some second-rate unavoidably Information.
If have sent substantial amounts of second-rate information in the short time, the useful information quilt that other users will be caused to send It is submerged in these second-rate information.Also, second-rate information can cause the dislike of other users so that user's body Difference is tested, reduction user participates in the enthusiasm of chatroom chat.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of information push method and device, to realize raising Consumer's Experience, Improve the enthusiasm that user participates in chatroom chat.Concrete technical scheme is as follows:
In a first aspect, the embodiments of the invention provide a kind of information push method, methods described includes:
Receive the chat messages that chatroom user sends;
Chat messages are detected, the credit rating of chat messages is obtained;
According to the credit rating of chat messages, chat messages are stored in corresponding priority query;
According to the order of priority from high to low, chat messages to be pushed are taken out from priority query successively, and will Chat messages to be pushed are pushed to each user of chatroom.
Optionally, it is described that chat messages are detected, the credit rating of chat messages is obtained, including:
According to chat messages and the correlation of chatroom theme, frequency, the grade of chatroom user of chat messages appearance, Determine the credit rating of chat messages.
Optionally, the credit rating according to chat messages, chat messages are stored in corresponding priority query, Including:
According to the corresponding relation between the credit rating of chat messages, and default credit rating and priority, it is determined that The priority of chat messages;
According to the priority of chat messages, chat messages are stored in the header/trailer of corresponding priority query.
Optionally, each priority query is provided with its corresponding maximum length in advance;
In the priority according to chat messages, by chat messages be stored in corresponding priority query header/trailer it Afterwards, the information push method of the embodiment of the present invention also includes:
For any priority query, when the length of the priority query reaches corresponding maximum length, according to advanced The principle first gone out, takes out the chat messages on afterbody/head in the priority query, and abandons.
Optionally, the order according to priority from high to low, takes out to be pushed chat from priority query successively Its message, and chat messages to be pushed are pushed to each user of chatroom, including:
The currently stored priority query for having message is determined successively;
According to the order of priority from high to low, the priority query of limit priority from identified priority query Afterbody/head take out chat messages to be pushed, and chat messages to be pushed are pushed to each user of chatroom.
Optionally, each user that chat messages to be pushed are pushed to chatroom, including:
Chat messages to be pushed are pushed to each user of chatroom according to default push speed.
Second aspect, the embodiment of the present invention additionally provides a kind of message pusher, and described device includes:
Receiving module, the chat messages for receiving chatroom user transmission;
Detection module, for being detected to chat messages, obtains the credit rating of chat messages;
Chat messages, for the credit rating according to chat messages, are stored in corresponding priority query by memory module In;
Pushing module, for the order according to priority from high to low, takes out to be pushed from priority query successively Chat messages, and chat messages to be pushed are pushed to each user of chatroom.
Optionally, detection module, specifically for the correlation according to chat messages with chatroom theme, chat messages appearance Frequency, the grade of chatroom user, determine the credit rating of chat messages.
Optionally, memory module, including:
First determination sub-module, for the credit rating according to chat messages, and default credit rating and priority Between corresponding relation, determine the priority of chat messages;
Chat messages, for the priority according to chat messages, are stored in corresponding priority query by sub-module stored Header/trailer.
Optionally, each priority query is provided with its corresponding maximum length in advance;
The message pusher of the embodiment of the present invention also includes:
Give up module, for for any priority query, corresponding most greatly enhanced when the length of the priority query reaches When spending, according to the principle of first in first out, the chat messages on afterbody/head in the priority query are taken out, and abandon.
Optionally, pushing module, including:
Second determination sub-module, for determining the currently stored priority query for having message successively;
Submodule is pushed, for the order according to priority from high to low, highest is excellent from identified priority query Chat messages to be pushed are taken out on afterbody/head of the priority query of first level, and chat messages to be pushed are pushed to merely Each user of its room.
Optionally, pushing module, specifically for chat messages to be pushed are pushed into chat according to default push speed Each user of room.
A kind of information push method and device provided in an embodiment of the present invention, it is possible to achieve first to user push quality compared with Low-quality chat messages are delayed push or abandoned, improve Consumer's Experience by high chat messages, improve user and participate in chatroom The enthusiasm of chat.Certainly, any product or method for implementing the present invention it is not absolutely required to while reaching above-described institute There is advantage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of information push method of the embodiment of the present invention;
Fig. 2 is a kind of structure chart of message pusher of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In order to solve problems of the prior art, the embodiments of the invention provide a kind of information push method and dress Put, to realize raising Consumer's Experience, improve the enthusiasm that user participates in chatroom chat.
Below, a kind of information push method of the embodiment of the present invention is introduced first, as shown in figure 1, being the present invention A kind of flow chart of information push method of embodiment, this method can include:
S101, receives the chat messages that chatroom user sends.
Chatroom, i.e. Internet chatroom, be in a website or a software, for multiple users by word or/and Voice carries out live talk, the network place of chat, is a place opened towards whole internet.Generally include chatroom Server and client side, wherein, client can be WEB webpages or the application program installed in terminal.The chatroom Server can be desktop computer, portable computer etc., can also be the Large-scale professional service for being arranged in server room Device.Method provided in an embodiment of the present invention, can apply to chat room server.
Under normal circumstances, chatroom user can be registered by chat room server first when using chatroom, Obtain user name corresponding with the user.Then, the user is chatted using the user name in chatroom, and chat room server can be with Receive the chat messages of user transmission.The online hours of the user can be recorded, corresponding grade is set for the user.
It should be appreciated that the chatroom user for participating in chatroom is at least one.Therefore, chat room server can be with The chat messages of at least one chatroom user transmission are received simultaneously.
Chat messages are detected by S102, obtain the credit rating of chat messages.
In order to realize the purpose of the embodiment of the present invention, i.e., the higher chat messages of quality are pushed to user first, by low-quality The chat messages of amount are delayed push or abandoned.The storage queue of different priorities can be pre-set in chat room server, Chat messages for storing corresponding different quality grade.
In order to which into corresponding priority query, chat messages storage can be carried out into quality to chat messages first Grade classification.Therefore, chat room server is received after chat messages, and chat messages are detected first, obtains the chat Then the chat messages are carried out quality grade compartmentalization by the scoring of message according to preset quality table of grading.Wherein, preset quality etc. Level table can be as shown in table 1:
The preset quality table of grading of table 1
Chat messages score Credit rating Chat messages score Credit rating
1~10 1 51~60 6
11~20 2 61~70 7
21~30 3 71~80 8
31~40 4 81~90 9
41~50 5 91~100 10
Wherein, 1 grade is minimum credit rating, represents that the chat messages quality of the grade is worst;10 grades are highest matter Grade is measured, the chat messages quality highest of the grade is represented.
It should be noted that the preset quality table of grading shown in table 1 is more clear just for the sake of being carried out to the embodiment of the present invention The explanation of Chu, can not be used to limit the embodiment of the present invention.It should be appreciated that in actual applications, can also be to presetting matter Credit rating in amount table of grading carries out other divisions, for example, can be 3 grades or 10 by the grade classification of chat messages Grade.
For example, chat room server is respectively received what chatroom user A, chatroom user B, chatroom user C were sent Chat messages, and respectively to each chat messages detect after, obtain chatroom user A transmission chat messages scoring for 65 points, The scoring for the chat messages that chatroom user B is sent is 82 points, the scoring of the chat messages of chatroom user C transmissions is 96 points, Then the preset quality registration form according to table 1 carries out quality grade compartmentalization respectively, obtains the chat of chatroom user A transmissions The credit rating for the chat messages that the credit rating of message is 7 grades, chatroom user B is sent is 9 grades, chatroom user C is sent Chat messages credit rating be 10 grades.
Specifically, keywords database can be pre-set in chat room server, each keyword in the keywords database With corresponding credit rating.
Chat room server passes through the keywords database pre-set after the chat messages of chatroom user transmission are received Chat messages are analyzed, at least one keyword and corresponding credit rating that the chat messages are included is obtained.Then will The corresponding credit rating of each keyword is calculated accordingly, is such as averaged, and can obtain the quality of the chat messages Grade.
For example, geographic name, credit rating can be preserved in keywords database for 5 grades.For example, province in the whole country, City, county (area) town.It can also preserve:Very, word or the Chinese character such as kind, U.S., credit rating is 10 grades of highest ranking.It can also protect Have:It is ugly, false, etc. word or Chinese character, credit rating is 1 grade of the lowest class.
The information that chat room server receives chatroom user A transmissions is " Hainan Island is really very beautiful ".By closing After keyword storehouse is analyzed the chat messages, keyword is obtained:Hainan, true, beautiful, corresponding credit rating is respectively 5 grades, 10 Level, 10 grades.
Then the corresponding credit rating of three keywords is averaged and rounded up, obtain the chat messages corresponding Credit rating is 9 grades.
S103, according to the credit rating of chat messages, chat messages are stored in corresponding priority query.
In order to be stored respectively to different grades of chat messages, storage queue, the storage queue are provided with herein With different priority attributes, and credit rating has one-to-one relationship with priority.
For example, the corresponding relation can be credit rating as shown in table 2 and priority corresponding relations table (one), in the table In, the order of priority from high to low is respectively:10、9、8、7、6、5、4、3、2、1;It can also be quality as shown in table 3 etc. Level and priority corresponding relations table (two), in the table, the order of priority from high to low is respectively:1、2、3、4、5、6、7、8、 9、10.Wherein, the table is used only for the relation between clearer explanation credit rating and priority.
The credit rating of table 2 and priority corresponding relations table (one)
Credit rating Priority Credit rating Priority
1 1 6 6
2 2 7 7
3 3 8 8
4 4 9 9
5 5 10 10
The credit rating of table 3 and priority corresponding relations table (two)
Credit rating Priority Credit rating Priority
1 10 6 5
2 9 7 4
3 8 8 3
4 7 9 2
5 6 10 1
After the credit rating that chat messages are obtained by step S102, it can be closed according to credit rating is corresponding with priority System, the chat messages are stored in corresponding storage queue.
For example, credit rating and priority corresponding relations table (one) according to table 2, what chatroom user A was sent chats The credit rating for the chat messages that the credit rating of its message is 7 grades, chatroom user B is sent is 9 grades, chatroom user C hairs The credit rating for the message sent is 10 grades, then can store the chat messages that user A is sent to priority level and be deposited for 7 grades Store up in queue, the user B chat messages sent are stored to priority level in 9 grades of storage queue, user C is sent Chat messages are stored to priority level as in 10 grades of storage queue.
S104, according to the order of priority from high to low, takes out chat messages to be pushed from priority query successively, And chat messages to be pushed are pushed to each user of chatroom.
Be stored with storage queue chat messages when, chat room server can be according to priority from high to low suitable Sequence, takes out chat messages to be pushed from storage queue successively, is pushed to each user of chatroom.Wherein, it is above-mentioned to wait to push away The chat messages sent are at least 1.
For example, chat room server according to the credit rating shown in table 2 and priority corresponding relations table (one) to chat When message is stored, chat messages can be taken out in priority level is 10 storage queue first and each use is pushed to Family, the chat messages stored in the priority query are space-time, then are chatted from priority level to be taken out in 9 storage queue Message is pushed to each user.Above-mentioned action is repeated, until the chat messages stored in all priority queries are all sky.
A kind of information push method provided in an embodiment of the present invention, it is possible to achieve first to user push quality it is higher chat Low-quality chat messages are delayed push or abandoned, improve Consumer's Experience by its message, improve user and participate in chatroom chat Enthusiasm, saves Internet resources.
In chatroom, also there is a kind of chatroom of regulation theme, i.e., each chatroom has specific theme. When being detected by above-described embodiment to chat messages, the scoring of obtained chat messages can not necessarily be accurately reflected out should The chat theme of chatroom.
Therefore, in embodiments of the present invention, in order that the scoring of chat messages is corresponding with the theme of chatroom, to chat When message is detected, the credit rating of chat messages can also be obtained by following methods, this method can specifically include:
The first step, according to the correlation of chat messages and chatroom theme, determines the relevance score of the chat messages.
When chatroom user sends message in chatroom, there is corresponding theme each chatroom, is sent as the user Chat messages and the chatroom theme closer to, then correlation it is higher, therefore, relevance score is also higher.
Specifically, the correlation that the chat messages and the chatroom theme can be obtained by correlation calculations method is obtained Point.Wherein, correlation calculations method is prior art, and here is omitted.
For example, the corresponding relevance score of different correlations can be pre-set in chat room server, it is assumed that related The relevance score for the chat messages that property is 0 is 0, and the relevance score for the chat messages that correlation is 1 is 100 points, correlation It it is 55 points for the relevance score of 0.55 chat messages.
It is assumed that chat room server receives the chat messages W of chatroom user A transmissions, phase is carried out to chat messages W After closing property is calculated, the correlation for obtaining chat messages W is 0.9, then chat messages W relevance score is 90 points.
Second step, the frequency occurred according to chat messages determines the frequency scoring of the chat messages.
In chat room server, the corresponding scoring of chat messages of different frequency, chat room services can be pre-set Device is after chat messages are obtained, and corresponding score of the chat messages of the different frequency with pre-setting is contrasted, and is obtained this and is chatted The frequency scoring of its message.
For example, the frequency scoring of the chat messages per minute for occurring 100 times is 1 point, the chat per minute for occurring 50 times disappears The frequency scoring of breath is 50 points, and the frequency scoring of the chat messages per minute for occurring 1 time is 100 points.Assuming that chatroom user A is sent out The chat messages W sent occurs 10 times to be per minute, then the corresponding scorings of chat messages W are 90 points.
3rd step, according to the grade of chatroom user, determines the grade scoring of the chat messages.
In chat room server, the corresponding scoring of different grades of chatroom user, chatroom clothes can be pre-set Device be engaged in after chat messages are obtained, first according to the chat messages, obtains the class information of chatroom user, is chatted further according to this The grade of its room user obtains corresponding grade scoring.
It is assumed that in chat room server, 1~100 totally 100 grades, each one point of grade correspondence, for example, waiting is set The grade scoring of the chat messages of the chatroom user of level 100 is 100, the grade of the chat messages of the chatroom user of class 50 Score as 50 points.Chat room server is received after the chat messages W of chatroom user A transmissions, is inquired about according to chat messages W The grade for obtaining chatroom user A is 60 grades, then chat messages W grade scoring is 60 points.
4th step, is weighted to relevance score, frequency scoring and grade scoring, determines the quality of chat messages Grade.
It is assumed that in embodiments of the present invention, the weight of relevance score is 0.4, the weight of frequency scoring is 0.3, grade The weight of scoring is 0.3.After the chat messages W of chat user A transmissions is obtained by above three step, to the chat messages W is weighted, and can obtain chat messages W comprehensive grading X, is obtained further according to the preset quality table of grading shown in table 1 To chat messages W credit rating.
Specifically, comprehensive grading X=90*0.4+90*0.3+60*0.3=81 points of chat messages W, then chat messages W Comprehensive grading is 81 points, and corresponding credit rating is 9 grades.
By above-mentioned steps, the credit rating of obtained chat messages can fully reflect chat messages and chatroom master The correlation of topic, and send grade of the chatroom user of the chat messages in the chatroom.
When being stored by the first embodiment to chat messages, store each into corresponding priority query The problem of easily there is unordered storage in chat messages.In order that chat messages are pushed to each of chatroom earlier earlier for storage User, the embodiment of the present invention additionally provides a kind of storage method regarding to the issue above, and this method can include:
The first step, according to the corresponding pass between the credit rating of chat messages, and default credit rating and priority System, determines the priority of chat messages.
Second step, according to the priority of chat messages, chat messages is stored in head/tail of corresponding priority query Portion.
Specifically, the corresponding relation of credit rating and priority is previously provided with chat room server, can pass through The form of mapping table is individually stored, and chat room server obtains corresponding with credit rating excellent by inquiring about mapping table First level grade;It, when setting up storage queue, is that storage queue pre-sets credit rating and corresponding priority etc. that can also be Level, chat room server can store the chat messages by the credit rating of chat messages the storage team to correspondence priority In row.
Chat messages are stored by the above method, the chat messages of relatively early storage can be enabled to push away earlier Each user of chatroom is given, prevents chat messages from pushing the problem of delay is long.
In actual applications, because the hardware device for storing chat messages has hardware memory space limitation, therefore, it is necessary to Length to the storage queue of each priority level is defined.Specifically, it can be pre-configured with chat room server The corresponding maximum length of each priority level, the corresponding maximum length of each priority level can be with identical, can also be different, It is configured according to practical application.
It should be noted that the maximum length can be the length being defined to the quantity of chat messages, i.e. chat disappears The maximum quantity of breath;Can also be the length being defined to the number of characters that the chat messages in storage queue take, i.e., this is deposited The maximum quantity for the number of characters that storage queue can be accommodated.
Because storage queue has limited maximum length, when being stored by above-mentioned embodiment to chat messages, it is Guarantee chat messages to be stored can be stored in corresponding storage queue, and the embodiment of the present invention additionally provides a kind of message The method of push, in the priority according to chat messages, chat messages is stored in the header/trailer of corresponding priority query Afterwards, this method can also include:
For any priority query, when the length of the priority query reaches corresponding maximum length, according to advanced The principle first gone out, takes out the chat messages on afterbody/head in the priority query, and abandons.
For example, chat messages are stored into chat messages to the priority from the head of priority query in chat room server During queue, after the length of the priority query reaches corresponding maximum length, then take out and chat from the afterbody of the priority query Its message is simultaneously abandoned;Chat messages are stored into chat messages to the priority from the afterbody of priority query in chat room server During queue, after the length of the priority query reaches corresponding maximum length, then take out and chat from the head of the priority query Its message is simultaneously abandoned.By above-mentioned steps, ensure that the chat messages in each priority query is that newest chat disappears Breath.
Specifically, in order to ensure that the chat messages stored in high-priority queue can be pushed preferentially, according to priority Order from high to low, takes out chat messages to be pushed, and chat messages to be pushed are pushed away from priority query successively When giving each user of chatroom, chat room server can push chat messages by following step:
First, chat room server determines the currently stored priority query for having message successively.
Specifically, chat room server can give each priority query by sending query messages, to determine currently to deposit The priority query of message is contained, the chat messages of each priority query storage can also be recorded when storing chat messages Length, to determine the priority query of message of being stored with.
Secondly, according to the order of priority from high to low, limit priority is preferential from identified priority query Chat messages to be pushed are taken out on afterbody/head of level queue, and chat messages to be pushed are pushed to each use of chatroom Family.
For example, in the credit rating shown in table 2 and priority corresponding relations table (one), the order of priority from high to low Respectively:10、9、8、7、6、5、4、3、2、1.It is assumed that the message stored in the priority query that priority level is 10 is 10 The chat messages stored in bar, the priority query that priority level is 8 are 20, and priority level is 5 priority query The chat messages of middle storage are 7, and the chat messages stored in the corresponding priority query of other priority levels are 0.
Chat room server is when by above-mentioned steps PUSH message, first from the priority query that priority level is 10 In take out chat messages to be pushed successively, and be pushed to each user of chatroom.In the corresponding priority query of the grade When the chat messages of storage are 0, then from priority level to take out chat messages to be pushed successively in 8 priority query, It is pushed to each user of chatroom.Finally, disappear from priority level to take out chat to be pushed successively in 5 priority query Breath, is pushed to each user of chatroom.
In order to ensure that chat messages can be pushed to each user of chatroom in time, and ensure that each user can see Each chat messages that chat room server is pushed, can be with when by each user that chatroom is pushed to wait the chat messages pushed Chat messages to be pushed are pushed to each user of chatroom according to default push speed.
It should be noted that above-mentioned default push speed is the speed set according to practical application, the embodiment of the present invention It is not construed as limiting to pushing speed.
Corresponding to above method embodiment, the embodiments of the invention provide a kind of message pusher, as shown in Fig. 2 being A kind of structure chart of message pusher of the embodiment of the present invention, the device can include:
Receiving module 201, the chat messages for receiving chatroom user transmission;
Detection module 202, for being detected to chat messages, obtains the credit rating of chat messages;
Chat messages, for the credit rating according to chat messages, are stored in corresponding priority team by memory module 203 In row;
Pushing module 204, for the order according to priority from high to low, takes out from priority query wait to push successively Chat messages, and chat messages to be pushed are pushed to each user of chatroom.
A kind of message pusher provided in an embodiment of the present invention, it is possible to achieve first to user push quality it is higher chat Low-quality chat messages are delayed push or abandoned, improve Consumer's Experience by its message, improve user and participate in chatroom chat Enthusiasm, saves Internet resources.
Specifically, detection module 202, specifically for the correlation according to chat messages with chatroom theme, chat messages Frequency, the grade of chatroom user of appearance, determine the credit rating of chat messages.
Specifically, memory module 203, including:
First determination sub-module, for the credit rating according to chat messages, and default credit rating and priority Between corresponding relation, determine the priority of chat messages.
Chat messages, for the priority according to chat messages, are stored in corresponding priority query by sub-module stored Header/trailer.
Specifically, each priority query is provided with its corresponding maximum length in advance;
The message pusher of the embodiment of the present invention also includes:
Give up module, for for any priority query, corresponding most greatly enhanced when the length of the priority query reaches When spending, according to the principle of first in first out, the chat messages on afterbody/head in the priority query are taken out, and abandon.
Specifically, pushing module 204, including:
Second determination sub-module, for determining the currently stored priority query for having message successively.
Submodule is pushed, for the order according to priority from high to low, highest is excellent from identified priority query Chat messages to be pushed are taken out on afterbody/head of the priority query of first level, and chat messages to be pushed are pushed to merely Each user of its room.
Specifically, pushing module 204, specifically for being pushed to chat messages to be pushed merely according to default push speed Each user of its room.
It should be appreciated that a kind of message pusher of the embodiment of the present invention can also include central processing unit, it is used for The instruction that above-mentioned each module is sent is received, and respective handling is carried out to the instruction;Or, corresponding control is sent to above-mentioned each module System instruction, makes each module be handled accordingly.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for system Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of information push method, it is characterised in that methods described includes:
Receive the chat messages that chatroom user sends;
The chat messages are detected, the credit rating of the chat messages is obtained;
According to the credit rating of the chat messages, the chat messages are stored in corresponding priority query;
According to the order of priority from high to low, chat messages to be pushed are taken out from priority query successively, and will be described Chat messages to be pushed are pushed to each user of the chatroom.
2. according to the method described in claim 1, it is characterised in that described that the chat messages are detected, obtain described The credit rating of chat messages, including:
Used according to the correlation, the frequency of chat messages appearance, the chatroom of the chat messages and chatroom theme The grade at family, determines the credit rating of the chat messages.
3. according to the method described in claim 1, it is characterised in that the credit rating according to the chat messages, by institute Chat messages are stated to be stored in corresponding priority query, including:
According to the corresponding relation between the credit rating of the chat messages, and default credit rating and priority, it is determined that The priority of the chat messages;
According to the priority of the chat messages, the chat messages are stored in the header/trailer of corresponding priority query.
4. method according to claim 3, it is characterised in that each priority query is provided with its in advance and corresponding most greatly enhanced Degree;
In the priority according to the chat messages, the chat messages are stored in head/tail of corresponding priority query After portion, methods described also includes:
For any priority query, when the length of the priority query reaches corresponding maximum length, according to first in first out Principle, take out the chat messages on afterbody/head in the priority query, and abandon.
5. according to the method described in claim 1, it is characterised in that the order according to priority from high to low, successively from Chat messages to be pushed are taken out in priority query, and the chat messages to be pushed are pushed to each of the chatroom User, including:
The currently stored priority query for having message is determined successively;
According to the order of priority from high to low, the tail of the priority query of limit priority from identified priority query Chat messages to be pushed are taken out on portion/head, and the chat messages to be pushed are pushed to each user of the chatroom.
6. the method according to claim any one of 1-5, it is characterised in that described to push away the chat messages to be pushed Each user of the chatroom is given, including:
The chat messages to be pushed are pushed to each user of the chatroom according to default push speed.
7. a kind of message pusher, it is characterised in that described device includes:
Receiving module, the chat messages for receiving chatroom user transmission;
Detection module, for being detected to the chat messages, obtains the credit rating of the chat messages;
The chat messages, for the credit rating according to the chat messages, are stored in corresponding priority by memory module In queue;
Pushing module, for the order according to priority from high to low, takes out chat to be pushed from priority query successively Message, and the chat messages to be pushed are pushed to each user of the chatroom.
8. device according to claim 7, it is characterised in that the detection module, specifically for being disappeared according to the chat Correlation, frequency, the grade of the chatroom user of chat messages appearance with chatroom theme are ceased, it is determined that described chat The credit rating of its message.
9. device according to claim 7, it is characterised in that the memory module, including:
First determination sub-module, for the credit rating according to the chat messages, and default credit rating and priority Between corresponding relation, determine the priority of the chat messages;
The chat messages, for the priority according to the chat messages, are stored in corresponding priority by sub-module stored The header/trailer of queue.
10. device according to claim 9, it is characterised in that each priority query is provided with its corresponding maximum in advance Length;Described device also includes:
Give up module, for for any priority query, when the length of the priority query reaches corresponding maximum length, According to the principle of first in first out, the chat messages on afterbody/head in the priority query are taken out, and are abandoned.
11. device according to claim 7, it is characterised in that the pushing module, including:
Second determination sub-module, for determining the currently stored priority query for having message successively;
Push submodule, for the order according to priority from high to low, the limit priority from identified priority query Afterbody/head of priority query take out chat messages to be pushed, and the chat messages to be pushed are pushed to institute State each user of chatroom.
12. the device according to claim any one of 7-11, it is characterised in that the pushing module, specifically for according to It is default to push each user that the chat messages to be pushed are pushed to the chatroom by speed.
CN201710209819.2A 2017-03-31 2017-03-31 A kind of information push method and device Pending CN107147504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209819.2A CN107147504A (en) 2017-03-31 2017-03-31 A kind of information push method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209819.2A CN107147504A (en) 2017-03-31 2017-03-31 A kind of information push method and device

Publications (1)

Publication Number Publication Date
CN107147504A true CN107147504A (en) 2017-09-08

Family

ID=59783910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209819.2A Pending CN107147504A (en) 2017-03-31 2017-03-31 A kind of information push method and device

Country Status (1)

Country Link
CN (1) CN107147504A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243112A (en) * 2018-01-11 2018-07-03 杭州朗和科技有限公司 Chat group method for controlling network flow and device, storage medium and computing device
CN109698799A (en) * 2019-01-14 2019-04-30 广州荔支网络技术有限公司 A kind of information push method, device and mobile terminal
CN110020110A (en) * 2017-09-15 2019-07-16 腾讯科技(北京)有限公司 Media content recommendations method, apparatus and storage medium
CN115633187A (en) * 2022-12-22 2023-01-20 易方信息科技股份有限公司 Chat message processing method and device, computer equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863174A (en) * 2006-01-12 2006-11-15 华为技术有限公司 Instant message system and message processing method
CN101488926A (en) * 2009-02-27 2009-07-22 浪潮集团山东通用软件有限公司 Network message communication method based on XMPP protocol and SMS
US7664716B2 (en) * 2006-09-27 2010-02-16 Ehom Inc. Process and apparatus for realizing a digital neural network using electronic family
CN102215177A (en) * 2011-05-31 2011-10-12 广州华多网络科技有限公司 Method and device for processing system message of instant communication software
CN102970210A (en) * 2012-11-02 2013-03-13 北京百度网讯科技有限公司 Method and device for reminding group messages in instant chat tool
CN103052035A (en) * 2011-10-14 2013-04-17 上海博泰悦臻网络技术服务有限公司 Communication method and system among vehicles and server for communication among vehicles
CN103051648A (en) * 2011-10-14 2013-04-17 上海博泰悦臻网络技术服务有限公司 Communication method and system among vehicles and server for communication among vehicles
CN104980345A (en) * 2015-07-06 2015-10-14 浙江翼信科技有限公司 Group message displaying method and apparatus for instant messaging application
CN105072019A (en) * 2015-07-24 2015-11-18 北京元心科技有限公司 Processing method and processing system for instant communication messages
CN105337847A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Instant messaging information processing method, device and equipment
CN105704000A (en) * 2014-11-24 2016-06-22 阿里巴巴集团控股有限公司 Information prompting method, device and instant communication system
CN106302469A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of control the method and apparatus that information shows

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863174A (en) * 2006-01-12 2006-11-15 华为技术有限公司 Instant message system and message processing method
US7664716B2 (en) * 2006-09-27 2010-02-16 Ehom Inc. Process and apparatus for realizing a digital neural network using electronic family
CN101488926A (en) * 2009-02-27 2009-07-22 浪潮集团山东通用软件有限公司 Network message communication method based on XMPP protocol and SMS
CN102215177A (en) * 2011-05-31 2011-10-12 广州华多网络科技有限公司 Method and device for processing system message of instant communication software
CN103052035A (en) * 2011-10-14 2013-04-17 上海博泰悦臻网络技术服务有限公司 Communication method and system among vehicles and server for communication among vehicles
CN103051648A (en) * 2011-10-14 2013-04-17 上海博泰悦臻网络技术服务有限公司 Communication method and system among vehicles and server for communication among vehicles
CN102970210A (en) * 2012-11-02 2013-03-13 北京百度网讯科技有限公司 Method and device for reminding group messages in instant chat tool
CN105704000A (en) * 2014-11-24 2016-06-22 阿里巴巴集团控股有限公司 Information prompting method, device and instant communication system
CN104980345A (en) * 2015-07-06 2015-10-14 浙江翼信科技有限公司 Group message displaying method and apparatus for instant messaging application
CN105072019A (en) * 2015-07-24 2015-11-18 北京元心科技有限公司 Processing method and processing system for instant communication messages
CN105337847A (en) * 2015-11-17 2016-02-17 小米科技有限责任公司 Instant messaging information processing method, device and equipment
CN106302469A (en) * 2016-08-18 2017-01-04 北京奇虎科技有限公司 A kind of control the method and apparatus that information shows

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110020110A (en) * 2017-09-15 2019-07-16 腾讯科技(北京)有限公司 Media content recommendations method, apparatus and storage medium
CN110020110B (en) * 2017-09-15 2023-04-07 腾讯科技(北京)有限公司 Media content recommendation method, device and storage medium
CN108243112A (en) * 2018-01-11 2018-07-03 杭州朗和科技有限公司 Chat group method for controlling network flow and device, storage medium and computing device
CN109698799A (en) * 2019-01-14 2019-04-30 广州荔支网络技术有限公司 A kind of information push method, device and mobile terminal
CN109698799B (en) * 2019-01-14 2020-06-02 广州荔支网络技术有限公司 Message pushing method and device and mobile terminal
CN115633187A (en) * 2022-12-22 2023-01-20 易方信息科技股份有限公司 Chat message processing method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107147504A (en) A kind of information push method and device
Shamma et al. Peaks and persistence: modeling the shape of microblog conversations
CN102955781B (en) A kind of personage's searching method and device
JP4279427B2 (en) Communication support method and system
EP3316586A1 (en) Information pushing method and device
CN103051522B (en) Automatically the method and system of session window is created in a kind of group
CN109889426B (en) Information processing method, device and system based on instant messaging
US10257339B2 (en) Method and apparatus for processing contact information using a wireless terminal
CN103188139B (en) A kind of information displaying method of recommending friends and device
US20080281922A1 (en) Automatic generation of email previews and summaries
CN107526800A (en) Device, method and the computer-readable recording medium of information recommendation
CN107171934B (en) Information processing method, instant communication client and the system of immediate communication tool
CN101398844B (en) Resource file searching method and mobile terminal
CN101431486A (en) Method and apparatus for selecting conversation participant in instant communication
CN105933213A (en) Processing method, related equipment and system of chat message
CN104361003A (en) Method and device for classified displaying of chat records
CN107193937A (en) A kind of method and information retrieval device for searching for information
CN107358308B (en) Method and device for maximizing social network influence
CN103942282A (en) Sample data obtaining method, device and system
CN107562432A (en) Information processing method and related product
CN105099727B (en) Add the method and device of group member
CN108416019A (en) Conjunctive word method of adjustment and adjustment system
CN102801655A (en) Method and system for acquiring position associated data in instant communication
CN107153674B (en) A kind of live streaming room information methods of exhibiting and system
CN102404292A (en) Method and system for account automatic matching

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170908