CN107231294A - Message treatment method and device - Google Patents

Message treatment method and device Download PDF

Info

Publication number
CN107231294A
CN107231294A CN201710374871.3A CN201710374871A CN107231294A CN 107231294 A CN107231294 A CN 107231294A CN 201710374871 A CN201710374871 A CN 201710374871A CN 107231294 A CN107231294 A CN 107231294A
Authority
CN
China
Prior art keywords
message
type
direct broadcasting
broadcasting room
groups
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
CN201710374871.3A
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 Panda Mutual Entertainment Technology Co Ltd
Original Assignee
Beijing Panda Mutual Entertainment 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 Panda Mutual Entertainment Technology Co Ltd filed Critical Beijing Panda Mutual Entertainment Technology Co Ltd
Priority to CN201710374871.3A priority Critical patent/CN107231294A/en
Publication of CN107231294A publication Critical patent/CN107231294A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

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

Abstract

The embodiment of the present invention provides a kind of message treatment method and device, and this method includes:The message received in preset time is put into buffer queue by message server first, and then, the message in buffer queue is grouped according to type of message, that is to say enables message server to obtain a message groups corresponding with the type of message for each type of message.Message server carries out disposable Message Processing to the message that can merge, can so reduce the Message Processing pressure of message server, and the message that can not merge simultaneously for remaining in message groups is still as an independent Message Processing.Finally, then by each message in each message groups after merging treatment send to corresponding recipient.Based on this, message server can effectively reduce the number of times that message server handles message, so as to reduce the Message Processing pressure of message server by being cached, being grouped and merging treatment to message.

Description

Message treatment method and device
Technical field
The present invention relates to field of information processing, more particularly to a kind of message treatment method and device.
Background technology
With the development of the communication technology, increasing entertainment way, such as microblogging, mobile phone games, Internet video are occurred in that It is live etc., wherein internet video live broadcasting due to its it is directly perceived, abundant in content the features such as, be particularly subject to the welcome of people.
In a direct broadcasting room in webcast website or in webcast website, user can be by sending message to server Realize a variety of functions in webcast website, such as interaction function, broadcast capability etc..In the prior art, server real-time reception The message that user sends, and client is sent a message in real time, increase the Message Processing pressure of server.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of message treatment method and device, by message is classified with And merging treatment, mitigate the Message Processing pressure of server.
The embodiment of the present invention provides a kind of message treatment method, including:
The message of at least one type received in preset time is put into buffer queue;
Packet transaction is carried out according to type of message homogeneity to the message in the buffer queue, to obtain each message groups;
Processing is merged to the message in same message groups;
By each messages sent after merging treatment to corresponding recipient.
Alternatively, the type of message is included such as at least one of Types Below:Whole station broadcast message type, towards part The type of message of direct broadcasting room broadcast, the type of message towards main broadcaster, the type of message towards viewing user.
Alternatively, the message in same message groups merges processing, including:
Message to identical/similar message content is merged;And/or
Message to same informed source is merged;And/or
Message to same recipient is merged.
Alternatively, the type of message includes the type of message broadcasted towards part direct broadcasting room, described to disappear to same Message in breath group merges processing, including:
For any message groups corresponding with the type of message towards the broadcast of part direct broadcasting room in each message groups:
According to the corresponding direct broadcasting room mark of message in any message groups, message in any message groups is divided Group processing, to obtain each subgroup;
Corresponding relation between the forward node of region is identified according to default direct broadcasting room, it is determined that being identified with each direct broadcasting room Corresponding each region forward node;
Message in each subgroup is respectively sent to corresponding region forward node, to be forwarded by the region Node is forwarded to corresponding direct broadcasting room.
Alternatively, the message by least one type received in preset time is put into buffer queue, including:
If the processing load of server is more than predetermined threshold value, by disappearing at least one type received in preset time Breath is put into buffer queue.
The embodiment of the present invention provides a kind of message processing apparatus, including:
Cache module, for the message of at least one type received in preset time to be put into buffer queue;
Grouping module, for carrying out packet transaction according to type of message homogeneity to the message in the buffer queue, with Obtain each message groups;
Merging module, for merging processing to the message in same message groups;
Sending module, for by each messages sent after merging treatment to corresponding recipient.
Alternatively, the type of message is included such as at least one of Types Below:Whole station broadcast message type, towards part The type of message of direct broadcasting room broadcast, the type of message towards main broadcaster, the type of message towards viewing user;
The merging module specifically for:
Message to identical/similar message content is merged;And/or
Message to same informed source is merged;And/or
Message to same recipient is merged.
Alternatively, the type of message includes the type of message broadcasted towards part direct broadcasting room, the merging module Specifically include:
Grouped element, for being identified according to the corresponding direct broadcasting room of message in any message groups, in any message groups Message carry out packet transaction, to obtain each subgroup, wherein, any message groups be each message groups in it is described towards The corresponding any message groups of type of message of part direct broadcasting room broadcast;
Determining unit, for identifying the corresponding relation between the forward node of region according to default direct broadcasting room, it is determined that and institute State each direct broadcasting room and identify corresponding each region forward node;
Transmitting element, for the message in each subgroup to be respectively sent into corresponding region forward node, with logical Cross the region forward node and be forwarded to corresponding direct broadcasting room.
Alternatively, the cache module is additionally operable to:
If the processing load of server is more than predetermined threshold value, by disappearing at least one type received in preset time Breath is put into buffer queue.
Message treatment method and device provided in an embodiment of the present invention, message server will be received in preset time first Message be put into buffer queue, and then, the message in buffer queue is grouped according to type of message, that is to say makes message Server can obtain a message groups corresponding with the type of message for each type of message.Message server is to that can close And message carry out disposable Message Processing, the Message Processing pressure of message server can be so reduced, simultaneously for disappearing The message that remaining in breath group can not merge is still as an independent Message Processing.Finally, then by respectively disappearing after merging treatment Each message is sent to corresponding recipient in breath group.Based on this, message server to message by being cached, being grouped and being closed And handle, the number of times that message server handles message can be effectively reduced, so as to reduce the Message Processing pressure of message server.
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 this hairs Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of message treatment method embodiment one provided in an embodiment of the present invention;
Fig. 2 is the flow chart of message treatment method embodiment two provided in an embodiment of the present invention;
Fig. 3 is the flow chart of message treatment method embodiment three provided in an embodiment of the present invention;
Fig. 4 is the structural representation of message processing apparatus embodiment one provided in an embodiment of the present invention;
Fig. 5 is the structural representation of message processing apparatus embodiment two provided in an embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, and is not intended to be limiting The present invention." one kind ", " described " and "the" of singulative used in the embodiment of the present invention and appended claims It is also intended to including most forms, unless context clearly shows that other implications, " a variety of " generally comprise at least two, but not Exclude and include at least one situation.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, represent There may be three kinds of relations, for example, A and/or B, can be represented:Individualism A, while there is A and B, individualism B these three Situation.In addition, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
It will be appreciated that though XXX may be described using term first, second, third, etc. in embodiments of the present invention, but These XXX should not necessarily be limited by these terms.These terms are only used for XXX being distinguished from each other out.For example, not departing from implementation of the present invention In the case of example scope, the first XXX can also be referred to as the 2nd XXX, similarly, and the 2nd XXX can also be referred to as the first XXX.
Depending on linguistic context, word as used in this " if ", " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit detection (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when detection (statement Condition or event) when " or " in response to detection (condition or event of statement) ".
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability Comprising, so that commodity or system including a series of key elements not only include those key elements, but also including without clear and definite Other key elements listed, or also include for this commodity or the intrinsic key element of system.In the feelings of not more limitations Under condition, the key element limited by sentence "including a ...", it is not excluded that in the commodity or system including the key element also There is other identical element.
Fig. 1 is the flow chart of message treatment method embodiment one provided in an embodiment of the present invention, and what the present embodiment was provided should The executive agent of message treatment method can be message server, as shown in figure 1, this method comprises the following steps:
S101, the message of at least one type received in preset time is put into buffer queue.
User can be straight accessing by watching a certain direct broadcasting room in client access webcast website or webcast website During broadcasting website or a certain direct broadcasting room, user can produce different messages by triggering different operations in webcast website The message of type.User is after certain operation is triggered, and viewing client end response is sent out in the operation of user to message server Send the message of type of message corresponding with the operation.Message server receives the message of at least one type in preset time, and The message received is cached in buffer queue.Wherein, the message that message server is received includes indicating message The type of message mark of type.
Alternatively, message server can carry out Type division according to the recipient of message to message.Type of message can be with The type of message broadcasted including whole station broadcast message type, towards part direct broadcasting room, towards the type of message of main broadcaster, towards viewing The type of message of user.
Alternatively, in practical application, as user, to have given a value to main broadcaster in a certain direct broadcasting room higher virtual During present, now webcast website would generally broadcast this present message each direct broadcasting room into webcast website to embody website The activity of user, the corresponding type of message of this present message is whole station broadcast message type.Or, when in webcast website just A certain activity is being carried out, such as theme Below-the-line, the attendant of website, can be by this relevant work in order to promote this activity The event promotion message of dynamic content sends each direct broadcasting room into webcast website, current online user is understood this Activity, the corresponding type of message of this event promotion message is also whole station broadcast message type.
Alternatively, when user selects the direct broadcasting room of a certain type of viewing and has given present value higher void to main broadcaster When intending present, now the user of all viewing this type direct broadcasting rooms is it can be seen that this present message, such a present message correspondence Type be towards part direct broadcasting room broadcast type of message.
Alternatively, when user is watching the live content of a certain direct broadcasting room, user can be by sending barrage to main broadcaster Message is interactive with main broadcaster to realize, the corresponding type of message of such a barrage message is the type of message towards main broadcaster.
Alternatively, when user wants to carry out one-to-one or one-to-many chat interaction with the other users in same direct broadcasting room When, then it can send barrage message to some or several users, the corresponding type of message of such a barrage message is user oriented Type of message.
S102, carries out packet transaction, to obtain each message groups to the message in buffer queue according to type of message homogeneity.
Because the message that message server is received includes type of message mark, therefore, message server being capable of basis Message in buffer queue is grouped by type of message mark according to type of message, and the message of identical message type is put into together In one packet, to obtain at least one corresponding message groups of at least one type of message.
S103, processing is merged to the message in same message groups.
S104, by each messages sent after merging treatment to corresponding recipient.
Message in one message groups of same type of message merged, so that message server is to that can merge Message is disposably handled, and the message that can not merge for remaining in the message groups is still as independent a piece of news Handled.Recipient's mark that message server recycles message to include will be each in each message groups after merging treatment Bar message is sent to corresponding recipient.
In the present embodiment, the message received in preset time is put into buffer queue by message server first, and then, The message in buffer queue is grouped according to type of message, that is to say enables message server to be directed to each type of message Obtain a message groups corresponding with the type of message.Message server is carried out at disposable message to the message that can merge Reason, can so reduce the Message Processing pressure of message server, and the message that can not merge simultaneously for remaining in message groups is still It is old to be used as an independent Message Processing.Finally, then each message in each message groups after merging treatment is sent to corresponding and connect Debit.Based on this, message server can effectively reduce message clothes by being cached, being grouped and merging treatment to message The number of times for device processing message of being engaged in, so as to reduce the Message Processing pressure of message server.
Fig. 2 is the flow chart of message treatment method embodiment two provided in an embodiment of the present invention, as shown in Fig. 2 this method It may include steps of:
S201, the message of at least one type received in preset time is put into buffer queue.
S202, carries out packet transaction, to obtain each message groups to the message in buffer queue according to type of message homogeneity.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
S203, processing is merged using consolidation strategy to the message in same message groups, wherein, consolidation strategy includes disappearing Cease content consolidation strategy, informed source consolidation strategy and message receiver consolidation strategy.
Message server is received after message, can obtain the much information that message includes, such as transmitting side marking, reception Side's mark and content keyword etc., content keyword therein can be to represent the content of message.Message server root The much information included according to message is using corresponding consolidation strategy to that can carry out the message of message coalescing in each message groups Processing is merged, so that message server is disposably handled the message that can merge, and in each message groups The message of processing can not be merged, is still handled as single a piece of news.Wherein, consolidation strategy can be wrapped Include:Message content consolidation strategy, informed source consolidation strategy and message receiver consolidation strategy.
What deserves to be explained is, message server can use above-mentioned conjunction according to the corresponding type of message of message in message groups And strategy is merged to the message in same message groups.
Alternatively, for whole station broadcast message type or towards belonging to the message of part direct broadcasting room broadcast message type For message groups, message server can be using message content consolidation strategy to having identical/similar message in same message groups The message of content is merged.
The message of whole station broadcast message type can be the present message that certain user gives high value present to certain direct broadcasting room Or the event promotion message of web site activity.Message server is by the message groups belonging to whole station broadcast message type message Every message content keyword, this content keyword is to show such as present title of the present information in present message Deng, or action message in event promotion message is such as activity name, the duration.And then, message server is calculated should Crucial Word similarity between the content keyword that each message includes in message groups, and by this crucial Word similarity judge come Whether each bar message in the message groups can use message content consolidation strategy to carry out message coalescing.
Alternatively, for the message groups belonging to the message of the type of message towards viewing user, message server can To be merged using informed source consolidation strategy to the message that in the message groups there is identical message to originate.
Message towards the type of message of viewing user can be chat messages between user and user, and in message Including sender's mark can be to represent the source of message.Message server can be identified the message according to this sender The a plurality of chat messages that a certain user sends to another user in group are merged, in order to which message server disposably handles this A little message.
Alternatively, for the message groups belonging to the message of any one type of message, message server can be used Message receiver consolidation strategy is merged to recipient's identical message in the message groups belonging to a certain type of message.
Message server obtains recipient's mark that message includes, and this recipient identifies pair to show message sink As recipient's mark identical multiple messages in the message groups being merged, in order to which message server disposably handles this A little message.
It should be noted that described above has been only referred to the message list in the message groups corresponding to certain type of message Solely use certain consolidation strategy.But a variety of merging plans can also be used in combination for the message of a certain type of message in message server Slightly come to merge processing to each message in same message groups.
Alternatively, for the message groups residing for the message towards the type of message of main broadcaster, message content can be merged plan Slightly and informed source consolidation strategy is used in combination, the message to this type merges, and that is to say a certain user to a certain The same or analogous message of multiple messages content that direct broadcasting room main broadcaster sends is merged.
Alternatively, for the message groups residing for the message of the type of message towards viewing user, message content can be closed And strategy and message receiver consolidation strategy are used in combination, will send to it is same user's and message content is same or similar Multiple messages merge.
S204, by each messages sent after merging treatment to corresponding recipient.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
In addition, in actual applications, message server is typically under normal working condition, but also occurs and disappear Cease the excessive situation of server load.In this case, message server can disappearing at least one type received Breath is put into buffer queue.Again by performing above-mentioned steps S202-S204, the message in buffer queue is grouped, merged And distribution operation.
In the present embodiment, what is cached in different message groups is the message of different messages type, and message server is not for Different message coalescing strategies is used with the message that can merge in message groups, and for that can not be closed in different messages group And the message handled, still handled as a single message.So cause the merging of message more added with pin, optimization The effect of message coalescing, so as to reduce the Message Processing pressure of message server.
Fig. 3 is the flow chart of message treatment method embodiment three provided in an embodiment of the present invention, when only being deposited in buffer queue In the message for the type of message broadcasted towards part direct broadcasting room, as shown in figure 3, this method comprises the following steps:
S301, caching team is put into by the message of the type of message broadcasted towards part direct broadcasting room received in preset time In row.
The implementation procedure of above-mentioned steps is similar to the corresponding steps of previous embodiment, may refer to embodiment as shown in Figure 1 In associated description, will not be repeated here.
S302, identifies according to the corresponding direct broadcasting room of message in message groups, packet transaction is carried out to message in message groups, to obtain Obtain each subgroup.
For the message for the type of message broadcasted towards part direct broadcasting room, alternatively, recipient's mark that message includes It can be direct broadcasting room mark.For the message groups belonging to the message for the type of message broadcasted towards part direct broadcasting room, messenger service Device can identify according to direct broadcasting room and carry out further packet transaction to the message in this message groups, to form at least one son point Group.Now the message in each subgroup is the message for a certain direct broadcasting room.
S303, according to default direct broadcasting room identify and region forward node between corresponding relation, it is determined that with each direct broadcasting room mark Know corresponding each region forward node.
S304, corresponding region forward node is respectively sent to by the message in each subgroup, is saved with being forwarded by region Point is forwarded to corresponding direct broadcasting room.
Alternatively, main broadcaster is after a direct broadcasting room is registered, the position that message server is filled in when can be registered according to main broadcaster Area information is that the direct broadcasting room distributes a region forward node with the same or like band of position, makes region forwarding section Point sets up corresponding relation with direct broadcasting room.And identified because each direct broadcasting room has with its unique corresponding direct broadcasting room, this Exactly set up the corresponding relation between region forward node and direct broadcasting room mark.
Alternatively, message server can also obtain the operator belonging to the corresponding IP address of main broadcaster's client, and based on Broadcast the corresponding direct broadcasting room of client and distribute a region forward node with same operator, and pass through each direct broadcasting room institute Corresponding unique direct broadcasting room mark, and then message server is set up pair between direct broadcasting room mark and region forward node It should be related to.
Based on this, message server can be determined and the corresponding region of direct broadcasting room mark according to above-mentioned default corresponding relation Forward node, the message in each subgroup is sent to corresponding region forward node, Area Node is again by each subgroup Message send to the corresponding direct broadcasting room of direct broadcasting room mark, user now just it can be seen that this towards part direct broadcasting room broadcast disappearing Cease the message of type.
Similarly, in actual applications, message server is typically under normal working condition, but is also occurred The situation of message server load excessive.Message server can be by the type of message broadcasted towards part direct broadcasting room received Message be put into buffer queue.Again by performing above-mentioned steps S302-S304, the message in buffer queue is grouped, Merge and distribute.
In the present embodiment, the message of the type of message broadcasted towards part direct broadcasting room cached in buffer queue is directed to, The message of this type is further grouped according to direct broadcasting room mark, further to improve the specific aim of message coalescing.Again will Broadcast message for different direct broadcasting rooms is sent to each direct broadcasting room by corresponding region forward node, so as to reduce The message distribution pressure of message server.
Fig. 4 is the structural representation of message processing apparatus embodiment one provided in an embodiment of the present invention, as shown in figure 4, should Message processing apparatus includes:Cache module 11, grouping module 12, merging module 13, sending module 14.
Cache module 11, for the message of at least one type received in preset time to be put into buffer queue.
Grouping module 12, for carrying out packet transaction according to type of message homogeneity to the message in buffer queue, to obtain Obtain each message groups.
Merging module 13, for merging processing to the message in same message groups.
Sending module 14, for by each messages sent after merging treatment to corresponding recipient.
Alternatively, type of message is included such as at least one of Types Below:It is whole station broadcast message type, live towards part Between broadcast type of message, towards main broadcaster type of message, towards viewing user type of message, then in the message processing apparatus Merging module specifically for:Merging module 13 specifically for:
Message to identical/similar message content is merged, and/or
Message to same informed source is merged, and/or
Message to same recipient is merged.
Alternatively, cache module 11 is additionally operable to:
If the processing load of server is more than predetermined threshold value, by disappearing at least one type received in preset time Breath is put into buffer queue.
Fig. 4 shown devices can perform the method for Fig. 1 or embodiment illustrated in fig. 2, the part that the present embodiment is not described in detail, Refer to the related description to Fig. 1 or embodiment illustrated in fig. 2.The implementation procedure and technique effect of the technical scheme referring to Fig. 1 or Description in embodiment illustrated in fig. 2, will not be repeated here.
Fig. 5 is the structural representation of message processing apparatus embodiment two provided in an embodiment of the present invention, as shown in figure 5, On the basis of embodiment illustrated in fig. 4, type of message includes the type of message broadcasted towards part direct broadcasting room, Message Processing dress Merging module 13 in putting is specifically included:Grouped element 131, determining unit 132, transmitting element 133.
Grouped element 131, for being identified according to the corresponding direct broadcasting room of message in any message groups, to disappearing in any message groups Breath carry out packet transaction, to obtain each subgroup, wherein, any message groups be each message groups in towards part direct broadcasting room broadcast The corresponding any message groups of type of message.
Determining unit 132, for identifying the corresponding relation between the forward node of region according to default direct broadcasting room, it is determined that with Each direct broadcasting room identifies corresponding each region forward node.
Transmitting element 133, for the message in each subgroup to be respectively sent into corresponding region forward node, to pass through Region forward node is forwarded to corresponding direct broadcasting room.
Alternatively, cache module 11 is additionally operable to:
If the processing load of server is more than predetermined threshold value, by disappearing at least one type received in preset time Breath is put into buffer queue.
Fig. 5 shown devices can perform the method for embodiment illustrated in fig. 3, and the part that the present embodiment is not described in detail can join Examine the related description to embodiment illustrated in fig. 3.In implementation procedure and the technique effect embodiment shown in Figure 3 of the technical scheme Description, will not be repeated here.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, the part shown as unit can be or may not be physics list Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Work in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of general hardware platform necessary to add, naturally it is also possible to pass through hardware.Understood based on such, above-mentioned skill The part that art scheme substantially contributes to prior art in other words can be embodied in the form of product, computer production Product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause one Platform computer installation (can be personal computer, server, or network equipment etc.) performs each embodiment or embodiment Some parts described in method.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (9)

1. a kind of message treatment method, it is characterised in that including:
The message of at least one type received in preset time is put into buffer queue;
Packet transaction is carried out according to type of message homogeneity to the message in the buffer queue, to obtain each message groups;
Processing is merged to the message in same message groups;
By each messages sent after merging treatment to corresponding recipient.
2. according to the method described in claim 1, it is characterised in that the type of message is included such as at least one in Types Below Kind:Whole station broadcast message type, the type of message broadcasted towards part direct broadcasting room, towards the type of message of main broadcaster, towards viewing The type of message of user.
3. method according to claim 2, it is characterised in that the message in same message groups merges place Reason, including:
Message to identical/similar message content is merged;And/or
Message to same informed source is merged;And/or
Message to same recipient is merged.
4. method according to claim 2, it is characterised in that the type of message includes described wide towards part direct broadcasting room The type of message broadcast, the message in same message groups merges processing, including:
For message groups corresponding with the type of message towards the broadcast of part direct broadcasting room in each message groups:
According to the corresponding direct broadcasting room mark of message in the message groups, packet transaction is carried out to message in the message groups, to obtain Obtain each subgroup;
Corresponding relation between the forward node of region is identified according to default direct broadcasting room, it is determined that corresponding with each direct broadcasting room mark Each region forward node;
Message in each subgroup is respectively sent to corresponding region forward node, to pass through the region forward node It is forwarded to corresponding direct broadcasting room.
5. method according to any one of claim 1 to 4, it is characterised in that described to be received in preset time The message of at least one type, which is put into buffer queue, to be included:
If the processing load of server is more than predetermined threshold value, the message of at least one type received in preset time is put Enter in buffer queue.
6. a kind of message processing apparatus, it is characterised in that including:
Cache module, for the message of at least one type received in preset time to be put into buffer queue;
Grouping module, for carrying out packet transaction according to type of message homogeneity to the message in the buffer queue, to obtain Each message groups;
Merging module, for merging processing to the message in same message groups;
Sending module, for by each messages sent after merging treatment to corresponding recipient.
7. device according to claim 6, it is characterised in that the type of message is included such as at least one in Types Below Kind:Whole station broadcast message type, the type of message broadcasted towards part direct broadcasting room, towards the type of message of main broadcaster, towards viewing The type of message of user;
The merging module specifically for:
Message to identical/similar message content is merged;And/or
Message to same informed source is merged;And/or
Message to same recipient is merged.
8. device according to claim 6, it is characterised in that the type of message includes described wide towards part direct broadcasting room The type of message broadcast, the merging module is specifically included:
Grouped element, for being identified according to the corresponding direct broadcasting room of message in any message groups, to message in any message groups Carry out packet transaction, to obtain each subgroup, wherein, any message groups be each message groups in described towards part The corresponding any message groups of type of message of direct broadcasting room broadcast;
Determining unit, for identifying the corresponding relation between the forward node of region according to default direct broadcasting room, it is determined that with it is described each Direct broadcasting room identifies corresponding each region forward node;
Transmitting element, for the message in each subgroup to be respectively sent into corresponding region forward node, to pass through institute State region forward node and be forwarded to corresponding direct broadcasting room.
9. the device according to claim 6-8, it is characterised in that the cache module is additionally operable to:
If the processing load of server is more than predetermined threshold value, the message of at least one type received in preset time is put Enter in buffer queue.
CN201710374871.3A 2017-05-24 2017-05-24 Message treatment method and device Pending CN107231294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374871.3A CN107231294A (en) 2017-05-24 2017-05-24 Message treatment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374871.3A CN107231294A (en) 2017-05-24 2017-05-24 Message treatment method and device

Publications (1)

Publication Number Publication Date
CN107231294A true CN107231294A (en) 2017-10-03

Family

ID=59933285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374871.3A Pending CN107231294A (en) 2017-05-24 2017-05-24 Message treatment method and device

Country Status (1)

Country Link
CN (1) CN107231294A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462894A (en) * 2018-03-30 2018-08-28 武汉斗鱼网络科技有限公司 Direct broadcasting room broadcast processing method, device and readable storage medium storing program for executing
CN108471557A (en) * 2018-03-28 2018-08-31 武汉斗鱼网络科技有限公司 A kind of barrage broadcasting method, device, server and medium
CN108572877A (en) * 2018-05-10 2018-09-25 厦门南讯软件科技有限公司 A kind of concurrent message processing method of feature based grouping
CN109660858A (en) * 2018-12-29 2019-04-19 北京字节跳动网络技术有限公司 Transmission method, device, terminal and the server of direct broadcasting room interaction data
CN109685487A (en) * 2018-12-21 2019-04-26 北京潘达互娱科技有限公司 It handles the method, apparatus of the first ideal money, calculate equipment and storage medium
CN110022335A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 Data packet sending method, device, server and computer readable storage medium
CN110380955A (en) * 2019-07-23 2019-10-25 北京字节跳动网络技术有限公司 Message treatment method, device and electronic equipment
CN110662085A (en) * 2019-10-16 2020-01-07 北京字节跳动网络技术有限公司 Message sending method, device, readable medium and electronic equipment
CN110865891A (en) * 2019-09-29 2020-03-06 深圳市华力特电气有限公司 Asynchronous message arranging method and device
CN111259246A (en) * 2020-01-17 2020-06-09 北京达佳互联信息技术有限公司 Information pushing method and device, electronic equipment and storage medium
CN111464824A (en) * 2020-04-03 2020-07-28 北京达佳互联信息技术有限公司 Message sending method and system, server and storage medium
CN111625560A (en) * 2019-02-28 2020-09-04 北京沃东天骏信息技术有限公司 Information processing method, device, medium and electronic equipment
CN111741110A (en) * 2020-06-22 2020-10-02 北京奇艺世纪科技有限公司 Message pushing system and method
CN111918102A (en) * 2020-07-30 2020-11-10 中国建设银行股份有限公司 Bullet screen management method, bullet screen management device, bullet screen management equipment and storage medium
CN112565056A (en) * 2020-11-11 2021-03-26 中国软件与技术服务股份有限公司 Method and device for processing group sending on-line and off-line messages through instant messaging
CN112733010A (en) * 2020-12-16 2021-04-30 深圳市欢太科技有限公司 Message pushing method and device, electronic equipment and computer readable storage medium
CN113747192A (en) * 2021-11-03 2021-12-03 腾讯科技(深圳)有限公司 Live broadcast control method and device, electronic equipment and storage medium
CN114598894A (en) * 2020-12-03 2022-06-07 北京字节跳动网络技术有限公司 Interactive message processing method, device, equipment and medium
CN117992251A (en) * 2024-01-10 2024-05-07 荣耀终端有限公司 Broadcast distribution method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572840A (en) * 2014-12-11 2015-04-29 百度在线网络技术(北京)有限公司 Method and equipment used for providing push message
CN106502875A (en) * 2016-10-21 2017-03-15 过冬 A kind of daily record generation method and system based on cloud computing
CN106559695A (en) * 2016-10-14 2017-04-05 北京金山安全软件有限公司 Barrage message processing method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572840A (en) * 2014-12-11 2015-04-29 百度在线网络技术(北京)有限公司 Method and equipment used for providing push message
CN106559695A (en) * 2016-10-14 2017-04-05 北京金山安全软件有限公司 Barrage message processing method and device and electronic equipment
CN106502875A (en) * 2016-10-21 2017-03-15 过冬 A kind of daily record generation method and system based on cloud computing

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110022335A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 Data packet sending method, device, server and computer readable storage medium
CN110022335B (en) * 2018-01-09 2021-10-29 腾讯科技(深圳)有限公司 Data packet transmitting method, device, server and computer readable storage medium
CN108471557B (en) * 2018-03-28 2020-06-16 武汉斗鱼网络科技有限公司 Barrage broadcasting method, device, server and medium
CN108471557A (en) * 2018-03-28 2018-08-31 武汉斗鱼网络科技有限公司 A kind of barrage broadcasting method, device, server and medium
CN108462894A (en) * 2018-03-30 2018-08-28 武汉斗鱼网络科技有限公司 Direct broadcasting room broadcast processing method, device and readable storage medium storing program for executing
CN108572877A (en) * 2018-05-10 2018-09-25 厦门南讯软件科技有限公司 A kind of concurrent message processing method of feature based grouping
CN109685487A (en) * 2018-12-21 2019-04-26 北京潘达互娱科技有限公司 It handles the method, apparatus of the first ideal money, calculate equipment and storage medium
WO2020135776A1 (en) * 2018-12-29 2020-07-02 北京字节跳动网络技术有限公司 Interaction data transmission method, device, terminal and server
CN109660858A (en) * 2018-12-29 2019-04-19 北京字节跳动网络技术有限公司 Transmission method, device, terminal and the server of direct broadcasting room interaction data
CN111625560A (en) * 2019-02-28 2020-09-04 北京沃东天骏信息技术有限公司 Information processing method, device, medium and electronic equipment
CN111625560B (en) * 2019-02-28 2024-04-09 北京沃东天骏信息技术有限公司 Information processing method, device, medium and electronic equipment
CN110380955A (en) * 2019-07-23 2019-10-25 北京字节跳动网络技术有限公司 Message treatment method, device and electronic equipment
CN110380955B (en) * 2019-07-23 2022-01-28 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment
CN110865891B (en) * 2019-09-29 2024-04-12 深圳市华力特电气有限公司 Asynchronous message arrangement method and device
CN110865891A (en) * 2019-09-29 2020-03-06 深圳市华力特电气有限公司 Asynchronous message arranging method and device
US12075106B2 (en) 2019-10-16 2024-08-27 Beijing Bytedance Network Technology Co., Ltd. Message sending method and device, readable medium and electronic device
JP7454662B2 (en) 2019-10-16 2024-03-22 北京字節跳動網絡技術有限公司 Information transmission method, device, readable storage medium and electronic device
CN110662085B (en) * 2019-10-16 2021-10-01 北京字节跳动网络技术有限公司 Message sending method, device, readable medium and electronic equipment
JP2022552986A (en) * 2019-10-16 2022-12-21 北京字節跳動網絡技術有限公司 Information transmission method, device, readable storage medium and electronic device
CN110662085A (en) * 2019-10-16 2020-01-07 北京字节跳动网络技术有限公司 Message sending method, device, readable medium and electronic equipment
CN111259246A (en) * 2020-01-17 2020-06-09 北京达佳互联信息技术有限公司 Information pushing method and device, electronic equipment and storage medium
CN111464824A (en) * 2020-04-03 2020-07-28 北京达佳互联信息技术有限公司 Message sending method and system, server and storage medium
CN111741110B (en) * 2020-06-22 2022-07-22 北京奇艺世纪科技有限公司 Message pushing system and method
CN111741110A (en) * 2020-06-22 2020-10-02 北京奇艺世纪科技有限公司 Message pushing system and method
CN111918102A (en) * 2020-07-30 2020-11-10 中国建设银行股份有限公司 Bullet screen management method, bullet screen management device, bullet screen management equipment and storage medium
CN112565056B (en) * 2020-11-11 2022-09-09 中国软件与技术服务股份有限公司 Method and device for processing group sending on-line and off-line messages through instant messaging
CN112565056A (en) * 2020-11-11 2021-03-26 中国软件与技术服务股份有限公司 Method and device for processing group sending on-line and off-line messages through instant messaging
CN114598894A (en) * 2020-12-03 2022-06-07 北京字节跳动网络技术有限公司 Interactive message processing method, device, equipment and medium
CN112733010A (en) * 2020-12-16 2021-04-30 深圳市欢太科技有限公司 Message pushing method and device, electronic equipment and computer readable storage medium
CN113747192B (en) * 2021-11-03 2022-02-22 腾讯科技(深圳)有限公司 Live broadcast control method and device, electronic equipment and storage medium
CN113747192A (en) * 2021-11-03 2021-12-03 腾讯科技(深圳)有限公司 Live broadcast control method and device, electronic equipment and storage medium
CN117992251A (en) * 2024-01-10 2024-05-07 荣耀终端有限公司 Broadcast distribution method and electronic equipment

Similar Documents

Publication Publication Date Title
CN107231294A (en) Message treatment method and device
EP3591941B1 (en) Live video stream guiding method, ccl server and system
CN107302489A (en) Message display method and device
CN107105309A (en) Live dispatching method and device
US9686329B2 (en) Method and apparatus for displaying webcast rooms
US6564244B1 (en) System for chat network search notifying user of changed-status chat network meeting user-tailored input predetermined parameters relating to search preferences
US20060235932A1 (en) Chat server mute capability
WO2017088381A1 (en) Method, apparatus and system for playing live video
CN105357146B (en) Buffer queue saturation attack defence method, apparatus and system in egress gateways
US8463897B2 (en) Systems and methods to emulate user network activity
US20030005152A1 (en) Content-request redirection method and system
CN109067910A (en) A kind of method and device that message pulls
CN103136255B (en) The method and apparatus of information management
CN103457967B (en) Service node switching method and system
CN102984144B (en) Free matching method of mobile phone game matching competitive race
CN113300955B (en) Method, system and equipment for determining paths between nodes in content distribution network
CN112751748B (en) Session message management method, device, server and readable storage medium
CN107172015A (en) Live video method for pushing and device
WO2006047720A2 (en) Web site presence detector
CN106878769A (en) live video quality monitoring method and device
CN108668178A (en) A kind of method of realizing group broadcasting and related network device
CN111355986B (en) Message processing method and device in live broadcast room and storage medium
CN109412977A (en) A kind of domain name bandwidth adjustment method and relevant device
CN107231350A (en) A kind of message treatment method and device
CN102075561A (en) Method, device and system for downloading network resources

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: 20171003