CN107231350A - A kind of message treatment method and device - Google Patents

A kind of message treatment method and device Download PDF

Info

Publication number
CN107231350A
CN107231350A CN201710374188.XA CN201710374188A CN107231350A CN 107231350 A CN107231350 A CN 107231350A CN 201710374188 A CN201710374188 A CN 201710374188A CN 107231350 A CN107231350 A CN 107231350A
Authority
CN
China
Prior art keywords
message
direct broadcasting
broadcasting room
duration
concurrency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710374188.XA
Other languages
Chinese (zh)
Other versions
CN107231350B (en
Inventor
徐海博
朱宇潮
张菊元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing longzhixin 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 CN201710374188.XA priority Critical patent/CN107231350B/en
Publication of CN107231350A publication Critical patent/CN107231350A/en
Application granted granted Critical
Publication of CN107231350B publication Critical patent/CN107231350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/80Responding to QoS
    • 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/60Network streaming of media packets

Abstract

The embodiment of the present invention provides a kind of message treatment method and device, is related to internet direct seeding technique field.Wherein, methods described includes:Obtain the message concurrency of direct broadcasting room;If the message concurrency exceedes first threshold, the message to the direct broadcasting room merges processing;Message after merging treatment is pushed to the client for accessing the direct broadcasting room.The embodiment of the present invention can be reduced to the gateway bandwidth participated in shared by the client push user message of direct broadcasting room in live peak period, so as to be prevented effectively from the situation that gateway overload operation causes gateway to break down.

Description

A kind of message treatment method and device
Technical field
The present invention relates to internet direct seeding technique field, more particularly to a kind of message treatment method and device.
Background technology
Network direct broadcasting system is that a kind of at most individual spectators user of the live video streaming by main broadcaster user is watched Internet system.Network direct broadcasting system is generally divided according to direct broadcasting room or room, in a room or a direct broadcasting room Inside generally include:One main broadcaster user and multiple participation users.
User is participated in by sending instant message and main broadcaster user's progress real-time interactive to direct broadcasting room, and it is this in order to realize Real-time interactive by gateway on backstage, it is necessary to safeguard a set of long link, that is, participating in the client of user and main broadcaster user needs to connect Barrage message could normally be sent and received by connecing corresponding gateway.Generally, in live peak period, the surge of message concurrency, So that gateway overload operation, easilys lead to the failure of some gateways in this case.Once arise a problem that, Substantial amounts of barrage will be caused not push out normally, Consumer's Experience is influenceed.
The content of the invention
The present invention provides a kind of message treatment method and device, it is therefore intended that in live peak period, reduces live to participating in Between client push user message shared by gateway bandwidth so that be prevented effectively from gateway overload operation cause gateway occur therefore The situation of barrier.
In order to solve the above-mentioned technical problem, the present invention provides a kind of message treatment method, including:
Obtain the message concurrency of direct broadcasting room;
If the message concurrency exceedes first threshold, the message to the direct broadcasting room merges processing;
Message after merging treatment is pushed to the client for accessing the direct broadcasting room.
Alternatively, the message to the direct broadcasting room merges processing, including:
Based on the message concurrency, it is determined that overstocking duration;
Message in the overstocked duration is packed to generate message package;
Wherein, the message package is the message after the merging treatment.
Alternatively, based on the message concurrency, determine that message overstocks duration, including:
Obtain multiple threshold intervals and the corresponding reference duration of each threshold interval;
By the corresponding reference duration of threshold interval where the message concurrency, it is defined as the overstocked duration.
Alternatively, the message to the direct broadcasting room merges processing, including:
Message to the direct broadcasting room is merged, and part messages are deleted;
Wherein, remaining message is the message after the merging treatment after deletion.
Alternatively, the message to the direct broadcasting room is merged, and part messages are deleted, including:
The message of identical/similar message content is merged;And/or
Multiple message of same informed source are merged.
Alternatively, methods described, in addition to:
Message to the direct broadcasting room carries out priority judgement;
And, the message to the direct broadcasting room merges processing, including:
Processing is merged less than preset level other message to priority.
Alternatively, methods described, in addition to:
Obtain total message concurrency of multiple direct broadcasting rooms;
If total message concurrency exceedes Second Threshold, found out from the multiple direct broadcasting room and do not merge processing Direct broadcasting room;
Message to the direct broadcasting room for not merging processing merges processing.
Alternatively, methods described, in addition to:
According to total message concurrency, determine that standard overstocks duration;
Obtain the overstocked duration that each current merging treatment of direct broadcasting room is used in the multiple direct broadcasting room;
The overstocked duration that current merging treatment use is found out from the multiple direct broadcasting room is less than the overstocked duration of the standard Direct broadcasting room;
Duration is overstock using the standard to overstock the overstocked duration of the current merging treatment use less than the standard The message of the direct broadcasting room of duration merges processing.
In order to solve the above-mentioned technical problem, present invention also offers a kind of message processing apparatus, described device, including:
First acquisition module, the message concurrency for obtaining direct broadcasting room;
Processing module, if exceeding first threshold for the message concurrency, the message to the direct broadcasting room is closed And handle;
Pushing module, the client of the direct broadcasting room is accessed for the message after merging treatment to be pushed to.
In embodiments of the present invention, when the message concurrency sent to a certain direct broadcasting room exceedes the threshold value pre-set, The direct broadcasting room is accessed with regard to no longer being pushed to each one by one for every a piece of news transmitted by the user of the participation direct broadcasting room Client, but merge processing by sending to multiple message of the direct broadcasting room, then by the message after merging treatment uniformly Push to the client for accessing the direct broadcasting room.This can largely reduce gateway and be pushed away to client at live peak period The number of times of message is sent, effectively reduction pushes the gateway bandwidth shared by user message, draws so as to be prevented effectively from gateway overload operation Play the situation that gateway breaks down.
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.
The schematic flow sheet for the message treatment method that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet for the message treatment method that Fig. 2 provides for further embodiment of this invention;
The structural representation for the message processing apparatus that Fig. 3 provides for one embodiment of the 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 monitoring ".Similarly, depending on linguistic context, phrase " if it is determined that " or " such as Fruit monitoring (condition or event of statement) " can be construed to " when it is determined that when " or " in response to determine " or " when monitoring (statement Condition or event) when " or " in response to monitoring (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.
The schematic flow sheet for the message treatment method that Fig. 1 provides for one embodiment of the invention.As shown in figure 1, this method bag Include:
101st, the message concurrency of direct broadcasting room is obtained.
If the 102, the message concurrency exceedes first threshold, the message to the direct broadcasting room merges processing.
The 103rd, message after merging treatment pushed to the client for accessing the direct broadcasting room.
In live class application scenarios, the message that the user of participation direct broadcasting room sends to direct broadcasting room includes word message, figure Piece message, present message etc..Wherein, message concurrency refers to total message count that synchronization is sent to the direct broadcasting room Amount.
In above-mentioned steps 102, the first threshold can be preset according to passing experience.Certainly, described first Threshold value can also be updated according to actual conditions at any time.Specific update mode is as follows, and whether monitor has in current live system Main broadcaster closes the operation broadcast and/or started broadcasting;If so, the quantity N and single gateway that then obtain gateway in current live system are same The moment treatable maximum amount of message M of institute;Obtain in current live system just in the quantity Q of live direct broadcasting room;NM/Q is made For the maximum message concurrency of single direct broadcasting room;Described first is updated according to the maximum message concurrency of the single direct broadcasting room Threshold value.In order to prevent gateway full load from running, the first threshold can be arranged on to the maximum message concurrency of single direct broadcasting room 90 percent within.
It should be noted that because the quantity under normal conditions, being the gateway that live broadcast system is set is a fixed value, often The treatable maximum amount of message of individual gateway synchronization institute is also a fixed value, therefore, need to only monitor whether have main broadcaster close broadcast and/ Or the operation started broadcasting, it is possible to determine whether the quantity in current live system just in live direct broadcasting room changes, one Denier determines the knots modification of the quantity of direct broadcasting room, it is possible to update first threshold.Certainly, if the gateway that live broadcast system is set Quantity is changed has carried out performance improvement or replacement to the gateway device in live broadcast system, also can be according to actual feelings Condition is updated to first threshold.
For example, the quantity for being currently the gateway that the live broadcast system is set is 2, single gateway synchronization can be handled Maximum amount of message be 1000, be currently 20 just in the quantity of live direct broadcasting room, then by calculate understand it is single straight Maximum message concurrency between broadcasting is 100, in order to prevent gateway full load from running, first threshold can be arranged on 90 with It is interior.
If the message concurrency exceedes first threshold, the message to the direct broadcasting room merges processing, described to close And handle one or more realizations in can specifically adopting with the following method:
Method one, pre-set one overstock duration, the message of the direct broadcasting room in overstocked duration is packed with life Into message package.For example, a length of 1s when default overstocked, at a time has found that transmission to the message concurrency of the direct broadcasting room surpasses When crossing first threshold, then timing is carried out from the moment, the multiple message for being sent to the direct broadcasting room in timing 1s are beaten Bag, generates a message package.The message package is pushed to all clients for accessing the direct broadcasting room again.
Method two, random erasure part are sent to the message of the direct broadcasting room.For example, at a time sending to described straight Message between broadcasting is 100, then wherein 20 message of random erasure, and it is described straight that remaining 80 message is pushed into access one by one All clients between broadcasting.
Method three, by send into the message of the direct broadcasting room message of identical/similar message content merge.Example Such as, at a time send into the message of the direct broadcasting room that to there are multiple messages identical/similar, in this manner it is possible to by it is identical/ It is generally one that similar message, which is closed, i.e., identical/similar message is only retained into one and pushed.
Method four, the multiple message for sending same informed source into the message of the direct broadcasting room are merged.Its In, multiple message of the same informed source can be understood as multiple message that same participation user sends.For example, a certain Message is sent to direct broadcasting room with participating in user's high-frequency, in order to not influence other to participate in the participation of user interaction, this can be participated in Part messages in multiple message of user are deleted.
In embodiments of the present invention, when the message concurrency sent to a certain direct broadcasting room exceedes the threshold value pre-set, The direct broadcasting room is accessed with regard to no longer being pushed to each one by one for every a piece of news transmitted by the user of the participation direct broadcasting room Client, but merge processing by sending to multiple message of the direct broadcasting room, then by the message after merging treatment uniformly Push to the client for accessing the direct broadcasting room.This can largely reduce gateway and be pushed away to client at live peak period The number of times of message is sent, effectively reduction pushes the gateway resource shared by user message, draws so as to be prevented effectively from gateway overload operation Play the situation that gateway breaks down.
The schematic flow sheet for the message treatment method that Fig. 2 provides for further embodiment of this invention.As described in Figure 2, this method Including:
201st, the message concurrency of direct broadcasting room is obtained.
If the 202, the message concurrency exceedes first threshold, based on the message concurrency, it is determined that overstocking duration.
203rd, the message in the overstocked duration is packed to generate message package, wherein, the message package is institute State the message after merging treatment.
The 204th, message after merging treatment pushed to the client for accessing the direct broadcasting room.
The step of step 201 obtains the message concurrency of direct broadcasting room, specific implementation is as follows, is retrieved as described live Between safeguard at least one gateway of long connection;Singly disappearing for the direct broadcasting room that is received at least one described gateway is obtained respectively Cease concurrency;Using single message concurrency sum at least one described gateway as the direct broadcasting room message concurrency. It is that the direct broadcasting room safeguards that the gateway of long connection may be one, it is also possible to be multiple in practical application.When gateway is one When, single message concurrency on the gateway for the direct broadcasting room is the message concurrency of the direct broadcasting room;When gateway is many When individual, single message concurrency on multiple gateways is added, obtained summation is the message concurrency of the direct broadcasting room.
It is when the message concurrency for monitoring direct broadcasting room exceedes first threshold, then concurrent according to message in above-mentioned steps 202 Amount, it is determined that overstocking duration.Generally, message concurrency is bigger, and it is longer that it overstocks duration.
It is above-mentioned according to message concurrency in a kind of achievable scheme, it is determined that overstocking duration, it may include:Obtain multiple Threshold interval and the corresponding reference duration of each threshold interval;During reference that threshold interval where the message concurrency is corresponding It is long, it is defined as the overstocked duration.
For example, the maximum message concurrency of direct broadcasting room is X bars, first threshold is set to 70%X, by 70%X~90%X It is set to first threshold interval, is that Second Threshold is interval by 90%X and arrangement above, is that first threshold interval sets first to refer to Shi Changwei a, are a length of b when Second Threshold interval sets the second reference.If the message concurrency Y of the direct broadcasting room got is 80% X, because Y is in first threshold interval, then a length of a when can determine overstocked.Preferably, a may be configured as 1s, and b can be set For 2s.
From the description of above-described embodiment, first threshold can be updated according to actual conditions, i.e., foundation is got The maximum message concurrency of new direct broadcasting room updates first threshold.Optionally, when setting first threshold, pre-set One specific accounting is (for example:70%), after the maximum message concurrency of new direct broadcasting room is got, by the specific accounting and newly The product of the maximum message concurrency of direct broadcasting room is used as first threshold.Equally, it is also pre- when setting the bound of threshold interval One lower limit accounting and upper limit accounting are first set, after the maximum message concurrency of new direct broadcasting room is got, by lower limit accounting with The product of the maximum message concurrency of direct broadcasting room disappears the maximum of upper limit accounting and direct broadcasting room as the lower limit of the threshold interval The product for ceasing concurrency is used as the higher limit of the threshold interval.
In above-mentioned steps 203 and 204, due to passing through TCP (Transmission Control Protocol, transmission control Agreement) transmission message data when, can some redundancies be added in message data to guarantee the message normally Data-pushing extremely accesses each client of direct broadcasting room.When multiple message in the overstocked duration carry out packing processing, The redundancy of same section in these message can be closed mostly one, i.e., only retain a identical portions in message package The redundancy divided, has so not only been effectively compressed data volume, also because multiple message compressions in overstocked duration are disappeared into one Breath bag, once pushes to the client for accessing the direct broadcasting room, considerably reduces the push times of gateway.
In a kind of achievable scheme, it can also disappear same or analogous in multiple message in the overstocked duration Breath is merged, and is that those same or analogous multiple message are only retained into a in message package;Or by same message Source (for example, it is same participate in user send multiple message be regarded as same informed source) it is multiple same or similar Message merge, be that multiple same or analogous message of same source are only retained a in message package.
In embodiments of the present invention, when the message concurrency sent to a certain direct broadcasting room exceedes the threshold value pre-set, The direct broadcasting room is accessed with regard to no longer being pushed to each one by one for every a piece of news transmitted by the user of the participation direct broadcasting room Client, but merge processing by sending to multiple message of the direct broadcasting room, then by the message after merging treatment uniformly Push to the client for accessing the direct broadcasting room.This can largely reduce gateway and be pushed away to client at live peak period The number of times of message is sent, effectively reduction pushes the gateway bandwidth shared by user message, draws so as to be prevented effectively from gateway overload operation Play the situation that gateway breaks down.
In the various embodiments described above and following each embodiments, methods described, in addition to:Message to the direct broadcasting room is carried out Priority judges;And, the message to the direct broadcasting room merges processing, including:Priority is disappeared less than preset level is other Breath merges processing.The priority of message can be set according to the importance of message, for example, the priority of present message is most Secondly height, be set to three-level, the priority of word message, be set to two grades, the priority of image information is minimum, is set to one-level.It is preset Rank is three-level, then when message coalescing is handled, just merged the image information of two grades of word message and one-level, three The present message of level carries out real time propelling movement, without merging treatment.
While first threshold is set for single room, total message concurrency in whole live broadcast system can also be directed to and set Put Second Threshold.When total message concurrency exceedes Second Threshold, to the direct broadcasting room for not merging processing in live broadcast system Message merge processing.Concrete methods of realizing is as follows:Obtain total message concurrency of multiple direct broadcasting rooms;If total message Concurrency exceedes Second Threshold, then the direct broadcasting room for not merging processing is found out from the multiple direct broadcasting room;Do not enter to described The message of the direct broadcasting room of row merging treatment merges processing.Wherein, the multiple direct broadcasting room is referred in whole live broadcast system All direct broadcasting rooms.
Preferably, the message to a direct broadcasting room in the direct broadcasting room for not merging processing merges processing Step, specifically may include:Based on total message concurrency, determine that standard overstocks duration;The standard is overstock in duration Message is packed to generate message package.
It is described to be based on total message concurrency, the step of standard overstocks duration is determined, specifically be may include:Obtain for total Multiple level threshold values that message concurrency is set are interval and the interval corresponding canonical reference duration of each level threshold value;Always disappear described The interval corresponding canonical reference duration of level threshold value where ceasing concurrency, is defined as the standard and overstocks duration.
By the quantity of gateway in live broadcast system and single gateway synchronization treatable size of message be fixed, and The treatable maximum message concurrency of live broadcast system institute is gateway quantity and the treatable message of single gateway synchronization The product of amount, that is to say, that the treatable maximum message concurrency of live broadcast system institute is a fixed value.So, setting the During two threshold values, a concrete numerical value can be specifically configured to, as long as the concrete numerical value is in the treatable maximum message of live broadcast system institute Within 90 the percent of concurrency.Setting level threshold value interval and each level threshold value area for total message concurrency Between corresponding canonical reference duration when, the interval bound of level threshold value can be set to a concrete numerical value.For example.Live broadcast system Maximum message concurrency can be handled for 2000, the first level threshold value interval is arranged on 1400~1800, during its canonical reference A length of 1s, the second level threshold value interval be arranged on 1800 and more than, a length of 2s during its canonical reference.
Further, when total message concurrency exceedes Second Threshold, except not merging processing for those Direct broadcasting room carries out message coalescing processing, and the currently employed overstocked duration of the direct broadcasting room of processing can also have been merged for those Carry out Reasonable adjustment.Specific implementation is as follows:According to total message concurrency, determine that standard overstocks duration;Obtain described The overstocked duration that each current merging treatment of direct broadcasting room is used in multiple direct broadcasting rooms;Current merging is found out from the multiple direct broadcasting room The overstocked duration that processing is used is less than the direct broadcasting room that the standard overstocks duration;Duration is overstock to described current using the standard The message that the overstocked duration that merging treatment is used is less than the direct broadcasting room that the standard overstocks duration merges processing.For example, straight A length of 1s when broadcasting currently employed overstocked of an A, and it is 2s that the standard determined, which overstocks duration, then is come with 2s overstocked duration to straight The message for broadcasting an A merges processing.
In embodiments of the present invention, when the message concurrency sent to a certain direct broadcasting room exceedes the threshold value pre-set, The direct broadcasting room is accessed with regard to no longer being pushed to each one by one for every a piece of news transmitted by the user of the participation direct broadcasting room Client, but merge processing by sending to multiple message of the direct broadcasting room, then by the message after merging treatment uniformly Push to the client for accessing the direct broadcasting room.This can largely reduce gateway and be pushed away to client at live peak period The number of times of message is sent, effectively reduction pushes the gateway bandwidth shared by user message, draws so as to be prevented effectively from gateway overload operation Play the situation that gateway breaks down.
The structural representation for the message processing apparatus that Fig. 3 provides for one embodiment of the invention.As described in Figure 3, the device bag Include:First acquisition module 301, processing module 302 and pushing module 303.
First acquisition module 301, the message concurrency for obtaining direct broadcasting room.
Processing module 302, if exceeding first threshold for the message concurrency, the message to the direct broadcasting room is carried out Merging treatment.
Pushing module 303, the client of the direct broadcasting room is accessed for the message after merging treatment to be pushed to.
Alternatively, the processing module 302, including:
Determining unit, for based on the message concurrency, it is determined that overstocking duration.
Combining unit, for the message in the overstocked duration to be packed to generate message package.
Wherein, the message package is the message after the merging treatment.
Alternatively, the determining unit, including:
Subelement is obtained, for obtaining multiple threshold intervals and the corresponding reference duration of each threshold interval.
Determination subelement, for by the corresponding reference duration of threshold interval where the message concurrency, being defined as described Overstock duration.
Alternatively, the processing module 302, including:
Unit is deleted, is merged for the message to the direct broadcasting room, part messages is deleted.
Wherein, remaining message is the message after the merging treatment after deletion.
Alternatively, the deletion unit, is additionally operable to:
The message of identical/similar message content is merged;And/or
Multiple message of same informed source are merged.
Alternatively, described device, in addition to:
Determination module, priority judgement is carried out for the message to the direct broadcasting room.
And, the processing module 302 is additionally operable to:
Processing is merged less than preset level other message to priority.
Alternatively, described device, in addition to:
Second acquisition module, total message concurrency for obtaining multiple direct broadcasting rooms.
Searching modul, if exceeding Second Threshold for total message concurrency, finds out from the multiple direct broadcasting room The direct broadcasting room of processing is not merged.
The processing module 302, is additionally operable to merge processing to the message of the direct broadcasting room for not merging processing.
Alternatively, described device, in addition to:
Determining module, for according to total message concurrency, determining that standard overstocks duration.
3rd acquisition module, for obtain that the current merging treatment of each direct broadcasting room in the multiple direct broadcasting room uses it is overstocked when It is long.
The searching modul, the overstocked duration for being additionally operable to find out current merging treatment use from the multiple direct broadcasting room is small The direct broadcasting room of duration is overstock in the standard.
The processing module 302, is additionally operable to overstock the product that duration uses the current merging treatment using the standard The message that pressure duration is less than the direct broadcasting room that the standard overstocks duration merges processing.
Need exist for explanation be:The message processing apparatus that the present embodiment is provided can realize above-mentioned each message processing The technical scheme that method embodiment is provided, concrete implementation principle can be found in the corresponding contents in the various embodiments described above, herein no longer Repeat.
In embodiments of the present invention, when the message concurrency sent to a certain direct broadcasting room exceedes the threshold value pre-set, The direct broadcasting room is accessed with regard to no longer being pushed to each one by one for every a piece of news transmitted by the user of the participation direct broadcasting room Client, but merge processing by sending to multiple message of the direct broadcasting room, then by the message after merging treatment uniformly Push to the client for accessing the direct broadcasting room.This can largely reduce gateway and be pushed away to client at live peak period The number of times of message is sent, effectively reduction pushes the gateway bandwidth shared by user message, draws so as to be prevented effectively from gateway overload operation Play the situation that gateway breaks down.
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 software plus required general hardware platform, naturally it is also possible to pass through hardware.Understood based on such, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Order is to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
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 (16)

1. a kind of message treatment method, it is characterised in that including:
Obtain the message concurrency of direct broadcasting room;
If the message concurrency exceedes first threshold, the message to the direct broadcasting room merges processing;
Message after merging treatment is pushed to the client for accessing the direct broadcasting room.
2. according to the method described in claim 1, it is characterised in that the message to the direct broadcasting room merges processing, including:
Based on the message concurrency, it is determined that overstocking duration;
Message in the overstocked duration is packed to generate message package;
Wherein, the message package is the message after the merging treatment.
3. method according to claim 2, it is characterised in that based on the message concurrency, determines that message overstocks duration, Including:
Obtain multiple threshold intervals and the corresponding reference duration of each threshold interval;
By the corresponding reference duration of threshold interval where the message concurrency, it is defined as the overstocked duration.
4. according to the method described in claim 1, it is characterised in that the message to the direct broadcasting room merges processing, including:
Message to the direct broadcasting room is merged, and part messages are deleted;
Wherein, remaining message is the message after the merging treatment after deletion.
5. method according to claim 4, it is characterised in that the message to the direct broadcasting room is merged, by part Message is deleted, including:
The message of identical/similar message content is merged;And/or
Multiple message of same informed source are merged.
6. method according to any one of claim 1 to 5, it is characterised in that also include:
Message to the direct broadcasting room carries out priority judgement;
And, the message to the direct broadcasting room merges processing, including:
Processing is merged less than preset level other message to priority.
7. method according to any one of claim 1 to 5, it is characterised in that also include:
Obtain total message concurrency of multiple direct broadcasting rooms;
If total message concurrency exceedes Second Threshold, found out from the multiple direct broadcasting room and do not merge the straight of processing Between broadcasting;
Message to the direct broadcasting room for not merging processing merges processing.
8. method according to claim 7, it is characterised in that also include:
According to total message concurrency, determine that standard overstocks duration;
Obtain the overstocked duration that each current merging treatment of direct broadcasting room is used in the multiple direct broadcasting room;
The overstocked duration that current merging treatment use is found out from the multiple direct broadcasting room is less than the straight of the overstocked duration of the standard Between broadcasting;
Duration is overstock using the standard the overstocked duration of the standard is less than to the overstocked duration of the current merging treatment use The message of direct broadcasting room merge processing.
9. a kind of message processing apparatus, it is characterised in that described device, including:
First acquisition module, the message concurrency for obtaining direct broadcasting room;
Processing module, if exceeding first threshold for the message concurrency, the message to the direct broadcasting room merges place Reason;
Pushing module, the client of the direct broadcasting room is accessed for the message after merging treatment to be pushed to.
10. device according to claim 9, it is characterised in that the processing module, including:
Determining unit, for based on the message concurrency, it is determined that overstocking duration;
Combining unit, for the message in the overstocked duration to be packed to generate message package;
Wherein, the message package is the message after the merging treatment.
11. device according to claim 10, it is characterised in that the determining unit, including:
Subelement is obtained, for obtaining multiple threshold intervals and the corresponding reference duration of each threshold interval;
Determination subelement, for by the corresponding reference duration of threshold interval where the message concurrency, being defined as described overstock Duration.
12. device according to claim 9, it is characterised in that the processing module, including:
Unit is deleted, is merged for the message to the direct broadcasting room, part messages is deleted;
Wherein, remaining message is the message after the merging treatment after deletion.
13. device according to claim 12, it is characterised in that the deletion unit, is additionally operable to:
The message of identical/similar message content is merged;And/or
Multiple message of same informed source are merged.
14. the device according to any one of claim 9 to 13, it is characterised in that described device, in addition to:
Determination module, priority judgement is carried out for the message to the direct broadcasting room;
And, the processing module is additionally operable to:
Processing is merged less than preset level other message to priority.
15. the device according to any one of claim 9 to 13, it is characterised in that described device, in addition to:
Second acquisition module, total message concurrency for obtaining multiple direct broadcasting rooms;
Searching modul, if exceeding Second Threshold for total message concurrency, finds out not entering from the multiple direct broadcasting room The direct broadcasting room of row merging treatment;
The processing module, is additionally operable to merge processing to the message of the direct broadcasting room for not merging processing.
16. device according to claim 15, it is characterised in that described device, in addition to:
Determining module, for according to total message concurrency, determining that standard overstocks duration;
3rd acquisition module, for obtaining the overstocked duration that each current merging treatment of direct broadcasting room is used in the multiple direct broadcasting room;
The searching modul, the overstocked duration for being additionally operable to find out current merging treatment use from the multiple direct broadcasting room is less than institute State the direct broadcasting room that standard overstocks duration;
The processing module, is additionally operable to small to the overstocked duration of the current merging treatment use using the overstocked duration of the standard The message that the direct broadcasting room of duration is overstock in the standard merges processing.
CN201710374188.XA 2017-05-24 2017-05-24 Message processing method and device Active CN107231350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710374188.XA CN107231350B (en) 2017-05-24 2017-05-24 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710374188.XA CN107231350B (en) 2017-05-24 2017-05-24 Message processing method and device

Publications (2)

Publication Number Publication Date
CN107231350A true CN107231350A (en) 2017-10-03
CN107231350B CN107231350B (en) 2020-05-19

Family

ID=59933945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710374188.XA Active CN107231350B (en) 2017-05-24 2017-05-24 Message processing method and device

Country Status (1)

Country Link
CN (1) CN107231350B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108418743A (en) * 2018-01-16 2018-08-17 北京奇艺世纪科技有限公司 A kind of chatroom message distributing method, device and electronic equipment
CN108600772A (en) * 2018-04-24 2018-09-28 北京奇艺世纪科技有限公司 A kind of filter method and device of direct broadcasting room message
CN108600089A (en) * 2018-04-20 2018-09-28 维沃移动通信有限公司 A kind of display methods and terminal device of facial expression image
CN110022335A (en) * 2018-01-09 2019-07-16 腾讯科技(深圳)有限公司 Data packet sending method, device, server and computer readable storage medium
CN110191348A (en) * 2018-02-23 2019-08-30 武汉斗鱼网络科技有限公司 The processing method and processing device of interactive message in net cast
CN111414516A (en) * 2020-03-17 2020-07-14 北京字节跳动网络技术有限公司 Live broadcast room message processing method and device, electronic equipment and storage medium
CN112073207A (en) * 2020-11-16 2020-12-11 广州易方信息科技股份有限公司 Method, device and computer equipment for reducing message bandwidth of chat room

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724677A (en) * 2012-07-02 2012-10-10 厦门大学 Overload indication threshold value dynamic adjusting system and adjusting method
CN105262629A (en) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 Method and system enabling WebSocket in network management system to push alarm information
CN105578209A (en) * 2015-12-16 2016-05-11 广州酷狗计算机科技有限公司 Pop-up screen display method and apparatus
CN106101862A (en) * 2016-06-15 2016-11-09 武汉斗鱼网络科技有限公司 A kind of intelligent barrage guard method for video website and device
CN106559695A (en) * 2016-10-14 2017-04-05 北京金山安全软件有限公司 Barrage message processing method and device and electronic equipment
CN106612329A (en) * 2016-12-29 2017-05-03 北京奇艺世纪科技有限公司 Caching method and device
CN106657197A (en) * 2015-11-02 2017-05-10 腾讯科技(深圳)有限公司 File uploading method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5406613A (en) * 1993-06-29 1995-04-11 Pacific Communication Sciences, Inc. Method and apparatus for reducing power consumption in cellular telephone by adaptively determining the reliability of the reception of a received message block
CN105450615B (en) * 2014-09-02 2019-06-14 中国移动通信集团广东有限公司 Multimedia live broadcasting method, system, server, first terminal and second terminal
CN105635180B (en) * 2016-03-04 2019-03-19 广州酷狗计算机科技有限公司 Information push method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724677A (en) * 2012-07-02 2012-10-10 厦门大学 Overload indication threshold value dynamic adjusting system and adjusting method
CN106657197A (en) * 2015-11-02 2017-05-10 腾讯科技(深圳)有限公司 File uploading method and device
CN105262629A (en) * 2015-11-18 2016-01-20 上海斐讯数据通信技术有限公司 Method and system enabling WebSocket in network management system to push alarm information
CN105578209A (en) * 2015-12-16 2016-05-11 广州酷狗计算机科技有限公司 Pop-up screen display method and apparatus
CN106101862A (en) * 2016-06-15 2016-11-09 武汉斗鱼网络科技有限公司 A kind of intelligent barrage guard method for video website and device
CN106559695A (en) * 2016-10-14 2017-04-05 北京金山安全软件有限公司 Barrage message processing method and device and electronic equipment
CN106612329A (en) * 2016-12-29 2017-05-03 北京奇艺世纪科技有限公司 Caching method and device

Cited By (11)

* 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
CN108418743A (en) * 2018-01-16 2018-08-17 北京奇艺世纪科技有限公司 A kind of chatroom message distributing method, device and electronic equipment
CN108418743B (en) * 2018-01-16 2020-10-02 北京奇艺世纪科技有限公司 Chat room message distribution method and device and electronic equipment
CN110191348A (en) * 2018-02-23 2019-08-30 武汉斗鱼网络科技有限公司 The processing method and processing device of interactive message in net cast
CN110191348B (en) * 2018-02-23 2022-02-22 武汉斗鱼网络科技有限公司 Method and device for processing interactive messages in live video
CN108600089A (en) * 2018-04-20 2018-09-28 维沃移动通信有限公司 A kind of display methods and terminal device of facial expression image
CN108600772A (en) * 2018-04-24 2018-09-28 北京奇艺世纪科技有限公司 A kind of filter method and device of direct broadcasting room message
CN111414516A (en) * 2020-03-17 2020-07-14 北京字节跳动网络技术有限公司 Live broadcast room message processing method and device, electronic equipment and storage medium
CN112073207A (en) * 2020-11-16 2020-12-11 广州易方信息科技股份有限公司 Method, device and computer equipment for reducing message bandwidth of chat room
CN112073207B (en) * 2020-11-16 2021-02-09 广州易方信息科技股份有限公司 Method, device and computer equipment for reducing message bandwidth of chat room

Also Published As

Publication number Publication date
CN107231350B (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN107231350A (en) A kind of message treatment method and device
CN107231294A (en) Message treatment method and device
CN106993234A (en) Barrage display methods and device
US8316097B2 (en) Multiple-layer chat filter system and method
CN107277160A (en) A kind of content delivery network node switching method and device
CN107302489A (en) Message display method and device
US9521178B1 (en) Dynamic bandwidth thresholds
Gecsei Adaptation in distributed multimedia systems
CN100388693C (en) Method and system for monitoring service quality according to service level protocol
WO2019223553A1 (en) Network traffic identification method and related device
US20120263037A1 (en) Methods and Systems for Network Address Translation Management
CN105471869B (en) A kind of connection multiplexing method and system of internet television content requests
CN106878769A (en) live video quality monitoring method and device
CN101188570B (en) Instant message processing system and method
CN107483976A (en) Live management-control method, device and electronic equipment
CN106453625B (en) Information synchronization method and high availability cluster system
DE202018104604U1 (en) Overload prevention in a network switch device
CN104092650A (en) Service distributing request method and device
US20180329771A1 (en) Identifying failed customer experience in distributed computer systems
CN106534043A (en) Flow processing method, equipment and system
CN107295387A (en) Barrage display methods and device
CN102694832B (en) Game system and realization method thereof, and game clients
WO2017016568A1 (en) Method and telecommunications network for streaming and for reproducing applications
CN107483350A (en) A kind of gateway distribution method and device
CN109275156B (en) Wifi network alarm information control method and system

Legal Events

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

Effective date of registration: 20210208

Address after: 101300 309, 3rd floor, 60 Fuqian 1st Street, Tianzhu District, Shunyi District, Beijing

Patentee after: Beijing longzhixin Technology Co.,Ltd.

Address before: 100041 room 120, 4th floor, building 17, yard 30, Shixing street, Shijingshan District, Beijing

Patentee before: BEIJING PANDA MUTUAL ENTERTAINMENT TECHNOLOGY Co.,Ltd.