CN107342929A - A kind of sending method of new message notification, apparatus and system - Google Patents
A kind of sending method of new message notification, apparatus and system Download PDFInfo
- Publication number
- CN107342929A CN107342929A CN201610658091.7A CN201610658091A CN107342929A CN 107342929 A CN107342929 A CN 107342929A CN 201610658091 A CN201610658091 A CN 201610658091A CN 107342929 A CN107342929 A CN 107342929A
- Authority
- CN
- China
- Prior art keywords
- group
- long connection
- chat group
- connection server
- new message
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Embodiments of the present invention provide a kind of sending method of new message notification.This method includes:It is determined that need to send new message notification to the member of specified chat group, according to the mark and the corresponding relation of long connection server group and the mark of the specified chat group of the chat group prestored, long connection server group corresponding to the specified chat group is determined;The new message notification is sent to the long connection server corresponding to the specified chat group in long connection server group, and the long connection server is used for the member new message notification being sent in the specified chat group.In addition, embodiments of the present invention provide the dispensing device and system of a kind of new message notification.
Description
Technical field
Embodiments of the present invention are related to network communication technology field, more specifically, embodiments of the present invention are related to one
The sending method of kind new message notification, apparatus and system.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein
Description recognizes it is prior art not because not being included in this part.
At present, the user of IM (Instant Messaging, instant messaging) instrument is more and more, and user can be in the terminal
Chat group (chat group is chatroom or instant messaging group) is established in the IM instruments of installation, and invites multiple IM works
Other users of tool enter chat group, now include multiple users (member) in chat group, when any in chat group
After user delivers the Multimedia Message such as word or picture sound (new information) in the chat group, other in the chat group
User can give a response with regard to that can receive the Multimedia Message to the Multimedia Message, and IM instruments have QQ, wechat, nail nail etc..
At present, what the other members into chat group of any user in central server reception chat group sent newly disappears
After breath, new message notification is sent to the other users of chat group, at present, new information is sent to other users of chat group and leads to
The method known is:
Central server identifies according to the chat group carried in new message notification, searches other users in the chat group
The long connection server connected, and send one to each other users by the long connection server that other users are connected
New message notification.
But this method for sending new message notification for each other users in chat group, it is necessary to send one
New message notification, when number of users is larger in chat group, it is necessary to which the quantity of the notice sent is also more, this can take big
Network bandwidth, the problem of causing network bandwidth resources to waste;In addition, when number of users is larger in chat group, each user
The long connection server quantity connected may be also bigger, and other users are connected in central server queries chat group
The quantity of long connection server is more, and search efficiency is relatively low, and this delay that may result in the other users of new message notification arrival adds
The problem of big.
The content of the invention
In view of above-mentioned technical problem present in prior art, the present invention provides a kind of transmission of improved new message notification
Method, new message notification can be reduced and reach the delay of other users, save network bandwidth resources.
In the present context, embodiments of the present invention it is expected to provide a kind of sending method of new message notification, device and
System.
In the first aspect of embodiment of the present invention, there is provided a kind of sending method of new message notification, including:
It is determined that need to send new message notification to the member of specified chat group, according to the mark of the chat group prestored
Knowledge and the corresponding relation of long connection server group and the mark of the specified chat group, determine the specified chat group pair
The long connection server group answered;
The new message notification is sent to the long connection corresponding to the specified chat group in long connection server group
Server, the long connection server are used for the member being sent to the new message notification in the specified chat group.
In the second aspect of embodiment of the present invention, there is provided a kind of dispensing device of new message notification, including:
Determining module, for determining to need to send new message notification to the member of specified chat group, according to prestoring
Chat group mark with the corresponding relation of long connection server group and the mark of the specified chat group, it is determined that described
Specify long connection server group corresponding to chat group;
Sending module, for the new message notification to be sent into long connection server corresponding to the specified chat group
Long connection server in group, the long connection server are used to the new message notification being sent to the specified chat group
Interior member.
In the third aspect of embodiment of the present invention, there is provided the sending method of another new message notification, including:
The new message notification that central server is sent is received, the mark of chat group is carried in the new message notification;
According to the mark of the chat group, chatted corresponding to the mark for the chat group for searching local service provided
Member in group;
The new message notification is sent to the member found.
In the fourth aspect of embodiment of the present invention, there is provided the dispensing device of another new message notification, including:
Receiving module, for receiving the new message notification of central server transmission, chat is carried in the new message notification
The mark of group;
Searching modul, for the mark according to the chat group, search the chat group of local service provided
Member corresponding to mark in chat group;
Sending module, for the new message notification to be sent into the member found.
In the 5th aspect of embodiment of the present invention, there is provided a kind of transmission equipment of new message notification, for example, can be with
Including memory and processor, wherein, processor can be used for reading the program in memory, perform following process:
It is determined that need to send new message notification to the member of specified chat group, according to the mark of the chat group prestored
Knowledge and the corresponding relation of long connection server group and the mark of the specified chat group, determine the specified chat group pair
The long connection server group answered;
The new message notification is sent to the long connection corresponding to the specified chat group in long connection server group
Server, the long connection server are used for the member being sent to the new message notification in the specified chat group.
In the 6th aspect of embodiment of the present invention, there is provided the transmission equipment of another new message notification, for example, can
With including memory and processor, wherein, processor can be used for reading the program in memory, perform following process:
The new message notification that central server is sent is received, the mark of chat group is carried in the new message notification;
According to the mark of the chat group, chatted corresponding to the mark for the chat group for searching local service provided
Member in group;
The new message notification is sent to the member found.
In the 7th aspect of embodiment of the present invention, there is provided a kind of program product, it includes program code, when described
When program product is run, described program code is used to perform procedure below:
It is determined that need to send new message notification to the member of specified chat group, according to the mark of the chat group prestored
Knowledge and the corresponding relation of long connection server group and the mark of the specified chat group, determine the specified chat group pair
The long connection server group answered;
The new message notification is sent to the long connection corresponding to the specified chat group in long connection server group
Server, the long connection server are used for the member being sent to the new message notification in the specified chat group.
In the eighth aspect of embodiment of the present invention, there is provided another program product, it includes program code, works as institute
When stating program product operation, described program code is used to perform procedure below:
The new message notification that central server is sent is received, the mark of chat group is carried in the new message notification;
According to the mark of the chat group, chatted corresponding to the mark for the chat group for searching local service provided
Member in group;
The new message notification is sent to the member found.
In the 9th aspect of embodiment of the present invention, there is provided a kind of transmission system of new message notification, including:
Central server, for determining to need to send new message notification to the member of specified chat group, according to depositing in advance
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of the chat group of storage, determine institute
State long connection server group corresponding to specified chat group;It is corresponding that the new message notification is sent to the specified chat group
Long connection server group in long connection server;
Long connection server, for receiving the new message notification of central server transmission, carried in the new message notification
The mark of chat group;According to the mark of the chat group, the mark pair of the chat group of local service provided is searched
The member in chat group answered;The new message notification is sent to the member found.
According to the sending method and device of the new message notification of embodiment of the present invention, pass through the chat group prestored
Mark and the corresponding relation of long connection server group, search and specify long connection server group corresponding to chat group, and will be new
Message informing is sent to the long connection server in the long connection server group found, so as to improve length to a certain extent
The search efficiency of connection server, also, by the way that new message notification is issued into long connection server, will be new by long connection server
Message informing is sent to the member in chat group, so as to which reduce that central server to be sent to a certain extent newly disappears
The quantity of notice is ceased, and then reduces the occupancy of network bandwidth, network bandwidth resources are saved, in addition, by long Connection Service
New message notification is sent to the member in chat group by device, can reduce the delay that new message notification reaches other users.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing
, feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation
Dry embodiment, wherein:
Fig. 1 schematically shows the application scenarios schematic diagram according to embodiment of the present invention;
The flow that Fig. 2 schematically shows a kind of sending method of new message notification according to an embodiment of the invention is shown
It is intended to;
Fig. 3 schematically shows the method flow schematic diagram of storage corresponding relation according to embodiments of the present invention;
Fig. 4 schematically shows the method flow for establishing long connection server group signal according to embodiments of the present invention
Figure;
Fig. 5 schematically shows the method flow according to embodiments of the present invention that long connection server is distributed for member and shown
It is intended to;
Fig. 6 schematically shows a kind of flow of the sending method of new message notification according to another embodiment of the present invention
Schematic diagram;
Fig. 7 schematically shows the method flow according to embodiments of the present invention that new message notification is sent to member and shown
It is intended to;
Fig. 8 schematically shows the structural representation of the dispensing device of new message notification according to an embodiment of the invention
Figure;
Fig. 9 schematically shows the structural representation of the dispensing device of new message notification according to another embodiment of the present invention
Figure;
The structure that Figure 10 schematically shows the dispensing device of the new message notification according to further embodiment of this invention is shown
It is intended to;
Figure 11 schematically shows the journey of the sending method for new message notification according to yet another embodiment of the invention
Sequence product schematic diagram.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that provide this
A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention
Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy
It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method
Or computer program product.Therefore, the disclosure can be implemented as following form, i.e.,:Complete hardware, complete software
(including firmware, resident software, microcode etc.), or the form that hardware and software combines.
According to the embodiment of the present invention, it is proposed that a kind of sending method of new message notification, apparatus and system.
Herein, it is to be understood that in involved term:
1. chat group:More than the session membership credentials of more than 2 members under IM application scenarios, member's energy in chat
Enough to deliver the Multimedia Messages such as word, picture or sound in real time, other online members in the chat group can receive and pin
Multimedia Message is replied, chat group is chatroom or instant messaging group.
2. long connection server:The service-specific of TCP length connections is kept with the client belonging to chat group for providing
Device, the long connection that the uplink and downlink transmission of Multimedia Message is required for providing by long connection server are completed.
In addition, any number of elements in accompanying drawing is used to example and unrestricted, and any name is only used for distinguishing,
Without any restrictions implication.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
The inventors discovered that in the prior art send new message notification method, it is necessary to in chat group it is each its
Its user send a new message notification, when number of users is larger in chat group, it is necessary to send notice quantity also compared with
More, this can take big network bandwidth, the problem of causing network bandwidth resources to waste;In addition, when number of users in chat group
When larger, the long connection server quantity that each user is connected may be also bigger, in central server queries chat group
The quantity for the long connection server that other users are connected is more, and search efficiency is relatively low, and this may result in new message notification arrival
The problem of delay of other users increases.Lack a kind of sending method of improved new message notification at present, network can be saved
Bandwidth resources wave, and reduce the delay that new message notification reaches other users.
Therefore, the invention provides a kind of sending method of new message notification, apparatus and system, the transmission of new message notification
Method can include:It is determined that need to send new message notification to the member of specified chat group, according to the chat group prestored
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of group, determine the specified chat
Long connection server group corresponding to group;The new message notification is sent to long connection clothes corresponding to the specified chat group
Long connection server in device group of being engaged in, the long connection server are used to the new message notification being sent to the specified chat
Member in group.
After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention
Formula.
Application scenarios overview
With reference first to Fig. 1, as shown in figure 1, the application of the sending method for new message notification provided in an embodiment of the present invention
Schematic diagram of a scenario, including user 10, user terminal 101, user 20, user terminal 102, central server 103 and long connection
Server group 104, wherein, include two long Connection Services, user terminal 101 and user terminal in long connection server group 104
Same chat software is installed, and user 10 and user 20 add the same chat group in the chat software (with in 102
The specified communication group of text), the mark for pre-setting the chat group corresponds to long connection server group 104.
Central server 103 receive user 10 transmission to specified communication group send new information notice when, it is determined that
Need to send new message notification to the member of specified chat group, taken according to the mark of the chat group prestored and long connection
The corresponding relation for device group of being engaged in and the mark of specified chat group, it is determined that specifying long connection server group corresponding to chat group
104;New message notification is sent to the long connection server corresponding to specified chat group in long connection server group 104, it is long
Long connection server in connection server group 104 receives the new message notification that central server is sent, the new message notification
The middle mark for carrying chat group;According to the mark of the chat group, the chat group of local service provided is searched
Member corresponding to mark in chat group;The new message notification is sent to the member found.User terminal can
Think mobile phone, tablet personal computer or desktop computer etc..
Illustrative methods
The sending method of new message notification according to exemplary embodiment of the invention is described below with reference to Fig. 2~Fig. 8.
It should be noted that embodiments of the present invention can apply to applicable any scene.
Fig. 2 is a kind of schematic flow sheet of an embodiment of the sending method of new message notification provided by the invention, mainly
New message notification is sent to the flow of long connection server including central server, as shown in Fig. 2 the embodiment of the present invention provides
A kind of new message notification sending method, comprise the following steps:
Step 201, it is determined that needing to send new message notification to the member of specified chat group, according to the chat prestored
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of group, determine that described specify is chatted
Long connection server group corresponding to its group.
In the specific implementation, long connection server corresponding to the chat group is distributed for chat group in advance, and stored logical
Believe the corresponding relation of the mark and long connection server group of group.Wherein, any member of instant messaging group is to the IMU
When interrogating group's transmission new information, it is determined that needing to send new message notification to the member of chat group.Specifically, from prestoring
The mark of chat group is with the corresponding relation of long connection server group, searching long connection corresponding to the mark for specifying chat group
Server group.Wherein, chat group is chatroom or instant messaging group, and the member of chatroom is online member, if
Online member in chatroom is offline, then illustrates that the member leaves chatroom, even and if the member in instant messaging group is offline,
It still belongs to the instant messaging group, and therefore, in the present invention, the implication of the member of chat group is:When chat group is merely
During its room, the member of chat group is the member in chatroom, when chat group is instant messaging group, chat group into
Member is the online member in instant messaging group.
Step 202, the new message notification is sent to corresponding to the specified chat group in long connection server group
Long connection server, the long connection server be used for the new message notification is sent in the specified chat group
Member.
In this step, new message notification is sent to each length corresponding to specified chat group in long connection server group
Connection server, wherein, after long connection server receives the new message notification of central server transmission, by the new message notification
The member being sent in specified chat group.
The embodiment of the present invention, it is in advance long connection server group corresponding to the distribution of each chat group, so that the chat
Each member in group carries out message by the long connection server corresponding to the chat group in long connection server group
Transmitting-receiving.
The embodiment of the present invention, by the corresponding relation of the mark and long connection server group of the chat group that prestores,
Search and specify long connection server group corresponding to chat group, and new message notification is sent to the long connection server found
Long connection server in group, so as to improve the search efficiency of long connection server to a certain extent, also, by by newly
Message informing issues long connection server, the member being sent to new message notification by long connection server in chat group, from
And reduce the quantity of the central server new message notification to be sent to a certain extent, and then reduce network bandwidth
Occupancy, save network bandwidth resources, in addition, by long connection server by new message notification be sent in chat group into
Member, can reduce the delay that new message notification reaches other users.
In the specific implementation, the content that can be provided according to Fig. 3, the mark of chat group and long connection server are prestored
The corresponding relation of group:
Step 301, for any chat group, when creating the chat group, at least one long connection server is selected to make
For long connection server group corresponding to the chat group.
Step 302, the corresponding relation of the mark and the long connection server group of the chat group is stored.
In the specific implementation, central server safeguards multiple long connection servers, when creating chat group, from its maintenance
Multiple long connection servers in select corresponding at least one long connection server chat group newly-built as this long connection
Server group, and the corresponding relation of the mark and the long connection server group of the newly-built chat group is stored, so as to be each
Long connection server group corresponding to chat group distribution.Wherein, each chat group has different marks, different to distinguish
Chat group.
Mode is preferably carried out as one kind, the content that can be provided according to Fig. 4, selects at least one long connection server to make
For long connection server group corresponding to the chat group:
Step 401, multiple long connection servers are sorted according to the ascending order of present load.
In this step, the present load for multiple long connection servers that central server is safeguarded, according to ascending
Order sequence, can also sort according to the descending order of present load, not limit here.
Step 402, according to the ascending order of present load, at least one length is selected from multiple long connection servers
Connection server is as long connection server group corresponding to the chat group.
In this step, selection loads relatively small at least one long connection server, as long corresponding to chat group
Connection server group.
The preferred embodiment provided using Fig. 4, can be the long connection server group that chat group distributes light load, from
And improve the efficiency that new message notification reaches other members in chat group.The embodiment that Fig. 4 is provided is only a kind of preferably real
Apply mode, also can at least one long connection server is as long connection server group corresponding to the chat group at random, here not
Limit.
In the specific implementation, long connection server is distributed in such a way for the member in specified communication group:
When determining that any member in the specified chat group is reached the standard grade, from long connection corresponding to the specified chat group
Select a long connection server to distribute to any member in server group, taken so that any member is connected by the length
The transmission for device progress message of being engaged in.
When member in for chat group distributes long connection server, select corresponding to the chat group belonging to the member
Long connection server in long connection server group distributes to the member, is connected so as to ensureing the member in the chat group
Long connection server belongs to same long connection server group, and then when sending new message notification to the chat group, only to this
Long connection server corresponding to chat group in long connection server group sends new message notification, you can reaches and leads to new information
Know the purpose for being sent to all online members in the chat group.
Mode is preferably carried out as one kind, the content that can be provided according to Fig. 5, from length corresponding to the specified chat group
A long connection server is selected to distribute to any member in connection server group:
Step 501, a long company of most lightly loaded in long connection server group corresponding to the specified chat group is determined
Connect server.
Step 502, a long connection server of the most lightly loaded is distributed into any member.
In the specific implementation, the load of long connection server can be determined according to the load information that long connection server is fed back,
The load information of long connection server feedback can include the valid link sum in long connection server and/or connect with the length
Connect the valid link number of each chat group corresponding to server.Wherein, valid link is effective TCP (Transmission
Control Protocol, transmission control protocol) length connection.
The embodiment that Fig. 5 is provided is only that one kind is preferably carried out mode, also can be by randomly selected mode from the finger
Determine to select a long connection server to distribute to any member in long connection server group corresponding to chat group, here not
Limit.
On the basis of the content that Fig. 5 is provided, it is preferable that determine long connection server corresponding to the specified chat group
It it is long corresponding to the specified chat group connect when the load of each long connection server in group is all higher than setting load threshold
Connect server group and add a long connection server;The long connection server of addition is distributed into any member.Wherein,
The size for setting load threshold is set according to practical application scene, is not limited here.When every in long connection server group
When the load of individual long connection server is all higher than setting load threshold, a long Connection Service is added for the long connection server group
Device, it is preferable that the load of the long connection server of addition is less than setting load threshold.
In the specific implementation, the load information of local is sent to central server by each long connection server, so that in
Central server determines the loading condition of each long connection server according to load information, can receive long connection clothes in such a way
The load information that business device is sent:
The heartbeat message that the long connection server is periodically sent is received, the long connection is carried in the heartbeat message
The load information of server, the load information include the long connection server on valid link sum and/or with it is described
The valid link number of each chat group corresponding to long connection server.
Specifically, for each long connection server, the heartbeat message that the long connection server is periodically sent is received, should
The local load information of the long connection server is carried in heartbeat message.
Fig. 6 is a kind of schematic flow sheet of another embodiment of the sending method of new message notification provided by the invention, main
To include the flow that new message notification is sent to member in chat group by long connection server, as shown in fig. 6, the present invention is implemented
The sending method for another new message notification that example provides, comprises the following steps:
Step 601, the new message notification that central server is sent is received, chat group is carried in the new message notification
Mark.
Step 602, according to the mark of the chat group, the mark pair of the chat group of local service provided is searched
The member in chat group answered.
Step 603, the new message notification is sent to the member found.
When it is implemented, carry the chat that the new message notification will be sent in the new message notification that central server is sent
The mark of group, long connection server search the long connection server local service provided according to the mark of the chat group
The chat group mark corresponding to member in chat group, that is, chat corresponding to the mark for searching the local chat group
The member of group, and the new message notification is sent to the member found.Wherein, chat group is chatroom or IMU
Believe group, the member of chatroom is online member, if the online member in chatroom is offline, illustrates that the member leaves merely
Its room, even and if the member in instant messaging group is offline, it still belongs to the instant messaging group, therefore, in the present invention, chat
The implication of the member of its group is:When chat group is chatroom, the member of chat group is the member in chatroom, when merely
When its group is instant messaging group, the member of chat group is the online member in instant messaging group.
The embodiment of the present invention, the member being sent to new message notification by long connection server in chat group, Neng Gou
The quantity of the central server new message notification to be sent is reduced to a certain extent, so as to reduce the occupancy of network bandwidth
Amount, saves network bandwidth resources, in addition, new message notification is sent to the member in chat group by long connection server,
The delay that new message notification reaches member in chat group can also be reduced.
As a kind of preferably embodiment, the content that can be provided according to Fig. 7, the new message notification is sent to described
The member found:
Step 701, it is determined that the number M of the member found, wherein, M is integer.
When it is implemented, member may not be found, therefore, M is equally likely to 0, and when finding member, M is more than zero.
Step 702, the new message notification is replicated, obtains new message notification described in M part identicals.
Step 703, a new message notification is sent to the member found respectively.
In the specific implementation, new message notification is replicated into M parts, and sends a new information to each member found and lead to
Know, or, new message notification is replicated into M-1 parts, is added to obtain M part new message notifications with the new message notification received, and to
The each member found sends a new message notification.
In the specific implementation, long connection server also periodically sends heartbeat message, the heart to the central server
Jump in message and carry local load information, the load information include the local valid link sum and/or with local
The valid link number of corresponding each chat group.Wherein, the big I in the cycle of heartbeat message is sent according to practical application field
Scape is set, and is not limited here.
In addition, the present invention also provides the transmission system schematic of new message notification a kind of, mainly include central server with
And long connection server, wherein:
Central server, for determining to need to send new message notification to the member of specified chat group, according to depositing in advance
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of the chat group of storage, determine institute
State long connection server group corresponding to specified chat group;It is corresponding that the new message notification is sent to the specified chat group
Long connection server group in long connection server;
Long connection server, for receiving the new message notification of central server transmission, carried in the new message notification
The mark of chat group;According to the mark of the chat group, the mark pair of the chat group of local service provided is searched
The member in chat group answered;The new message notification is sent to the member found.
In the transmission system of new message notification provided in an embodiment of the present invention, what central server side new message notification was sent
Implementation and long connection server side realize new message notification send implementation with above, central server side is new
The implementation and long connection server side that message informing is sent realize that the implementation that new message notification is sent is identical, here
Do not repeat.
Example devices
After the sending method of new message notification of exemplary embodiment of the invention is described, next, reference chart
8- Fig. 9 describes the dispensing device of the new message notification of exemplary embodiment of the invention.
Fig. 8 is a kind of structural representation of the dispensing device of new message notification provided in an embodiment of the present invention, such as Fig. 8 institutes
Show, following module can be included:
Determining module 801, for determining to need to send new message notification to the member of specified chat group, according to depositing in advance
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of the chat group of storage, determine institute
State long connection server group corresponding to specified chat group;
Sending module 802, for the new message notification to be sent into long connection clothes corresponding to the specified chat group
Long connection server in device group of being engaged in, the long connection server are used to the new message notification being sent to the specified chat
Member in group.
Preferably, the dispensing device of new message notification provided in an embodiment of the present invention, in addition to:
Memory module 803, for for any chat group, when creating the chat group, selecting at least one long connection
Server is as long connection server group corresponding to the chat group;Store the mark and the long connection server of the chat group
The corresponding relation of group.
Preferably, the memory module 803 includes:
Sequencing unit 8031, for multiple long connection servers to be sorted according to the ascending order of present load;
Selecting unit 8032, for according to the ascending order of present load, being selected from multiple long connection servers
At least one long connection server is as long connection server group corresponding to the chat group.
Preferably, the dispensing device of new message notification provided in an embodiment of the present invention, in addition to:
Distribute module 804, during for determining that any member in the specified chat group is reached the standard grade, from the specified chat
A long connection server is selected to distribute to any member in long connection server group corresponding to group.
Preferably, the distribute module 804 includes:
Load determining unit 8041, for determining to load most in long connection server group corresponding to the specified chat group
A light long connection server;
Allocation unit 8042, for a long connection server of the most lightly loaded to be distributed into any member.
Preferably, in the dispensing device of new message notification provided in an embodiment of the present invention, the distribute module 804 is also used
In:
Determine that the load of each long connection server in long connection server group corresponding to the specified chat group is equal
It is that long connection server group adds a long Connection Service corresponding to the specified chat group during more than setting load threshold
Device;The long connection server of addition is distributed into any member.
Preferably, the dispensing device of new message notification provided in an embodiment of the present invention, in addition to:
Receiving module 805, the heartbeat message periodically sent for receiving the long connection server, the heartbeat message
The middle load information for carrying the long connection server, the load information include the valid link in the long connection server
The valid link number of sum and/or each chat group corresponding with the long connection server.
Fig. 9 is the structural representation of the dispensing device of another new message notification provided in an embodiment of the present invention, such as Fig. 9 institutes
Show, following module can be included:
Receiving module 901, for receiving the new message notification of central server transmission, carry and chat in the new message notification
The mark of its group;
Searching modul 902, for the mark according to the chat group, search the chat group of local service provided
Mark corresponding to member in chat group;
Sending module 903, for the new message notification to be sent into the member found.
Preferably, the sending module 903 includes:
Determining unit 9031, for the number M for the member for determining to find, wherein, M is integer;
Copied cells 9032, for the new message notification to be replicated, obtain M part identicals described in new information lead to
Know;
Transmitting element 9033, for sending a new message notification to the member found respectively.
Preferably, the dispensing device of new message notification provided in an embodiment of the present invention, in addition to:
Heartbeat module 904, heartbeat message is sent to the central server for periodicity, is carried in the heartbeat message
Local load information, the load information include the local valid link sum and/or corresponding with local each chatted
The valid link number of its group.
Example devices
After the sending method of new message notification of exemplary embodiment of the invention, device and system are described, connect
Get off, introduce the dispensing device of the new message notification according to another exemplary embodiment of the invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be implemented as following form, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.), or hardware and software, can unite here
Referred to as " circuit ", " module " or " system ".
In some possible embodiments, it can be comprised at least extremely according to the dispensing device of the new message notification of the present invention
A few processing unit and at least one memory cell.Wherein, the memory cell has program stored therein code, when the journey
When sequence code is performed by the processing unit so that the processing unit is performed in above-mentioned " illustrative methods " part of this specification
Step in the sending method of the new message notification according to the various illustrative embodiments of the present invention of description.For example, the place
Reason unit can perform step 201 as shown in Figure 2, it is determined that needing to lead to member's transmission new information of specified chat group
Know, according to corresponding relation and the specified chat group of the mark of the chat group prestored with long connection server group
Mark, determine long connection server group corresponding to the specified chat group, step 202, the new message notification sent
To the long connection server corresponding to the specified chat group in long connection server group, the long connection server is used for will
The new message notification is sent to the member in the specified chat group.
The dispensing device 100 according to the new message notification of the embodiment of the invention is described referring to Figure 10.
The dispensing device 100 for the new message notification that Figure 10 is shown is only an example, to the function of the embodiment of the present invention and should not be made
With range band come any restrictions.
As shown in Figure 10, the dispensing device 100 of new message notification is showed in the form of universal computing device.New message notification
The component of dispensing device 100 can include but is not limited to:Above-mentioned at least one processing unit 1001, above-mentioned at least one storage
The bus 1003 of unit 1002, connection different system component (including processing unit 1001 and memory cell 1002).
Bus 1003 represents the one or more in a few class bus structures, including memory bus or memory control
Device, peripheral bus, processor or the local bus using any bus structures in a variety of bus structures.
Memory cell 1002 can include the computer-readable recording medium of form of volatile memory, such as random access memory
(RAM) 10021 and/or cache memory 10022, it can further include read-only storage (ROM) 10023.
Memory cell 1002 can also include program/utility with one group of (at least one) program module 10024
10025, such program module 10024 includes but is not limited to:Operating system, one or more application program, other programs
Module and routine data, the realization of network environment may be included in each or certain combination in these examples.
The dispensing device 100 of new message notification can also with one or more external equipments 1004 (such as keyboard, point to set
It is standby etc.) communication, it can also enable a user to lead to the equipment that the dispensing device of new message notification 100 interacts with one or more
Letter, and/or times with enabling the dispensing device 100 of the new message notification to be communicated with one or more of the other computing device
What equipment (such as router, modem etc.) communication.This communication can pass through input/output (I/O) interface 1005
Carry out.Also, the dispensing device 100 of new message notification can also pass through network adapter 1006 and one or more network
(such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown in Figure 10, Network adaptation
Device 1006 is communicated by bus 1003 with other modules of the dispensing device 100 for new message notification.It will be appreciated that though figure
Not shown in, the dispensing device 100 that can combine new message notification uses other hardware and/or software module, including but unlimited
In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number
According to backup storage system etc..
Exemplary process product
In some possible embodiments, the various aspects of the sending method of new message notification provided by the invention may be used also
In the form of being embodied as a kind of program product, it includes program code, when described program product is run on a computing device,
Described program code is used to make the computer equipment perform the basis described in above-mentioned " illustrative methods " part of this specification
Step in the sending method of the new message notification of the various illustrative embodiments of the present invention, for example, the computer equipment can
To perform step 201 as shown in Figure 2, it is determined that needing to send new message notification to the member of specified chat group, according to pre-
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of the chat group first stored, really
Long connection server group corresponding to the fixed specified chat group, step 202, the new message notification is sent to described specify
Long connection server corresponding to chat group in long connection server group, the long connection server are used for the new information
Notice is sent to the member in the specified chat group.
Described program product can use any combination of one or more computer-readable recording mediums.Computer-readable recording medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or any combination above.The more specifically example of readable storage medium storing program for executing
(non exhaustive list) includes:Electrical connection, portable disc with one or more wires, hard disk, random access memory
(RAM), read-only storage (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 11, the program product for being used for new message notification and sending according to the embodiment of the present invention is described
110, it can use portable compact disc read only memory (CD-ROM) and including program code, and can be on the terminal device
Operation.However, the program product not limited to this of the present invention, in this document, readable storage medium storing program for executing can any be included or deposit
The tangible medium of program is stored up, the program can be commanded the either device use or in connection of execution system, device.
Readable signal medium can be included in a base band or as a part of data-signal propagated of carrier wave, wherein carrying
Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter
Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be beyond readable storage medium storing program for executing it is any can
Read medium, the computer-readable recording medium can send, propagate either transmit for being used by instruction execution system, device or device or
Program in connection.
The program code included on computer-readable recording medium can be transmitted with any appropriate medium, including --- but being not limited to ---
Wirelessly, wired, optical cable, RF etc., or above-mentioned any appropriate combination.
Can being combined to write the program operated for performing the present invention with one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., include routine
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
Perform on computing device, partly perform on a user device, the software kit independent as one performs, is partly calculated in user
Its upper side point is performed or performed completely in remote computing device or server on a remote computing.It is remote being related to
In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or wide
Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service
Provider passes through Internet connection).
It should be noted that although being referred to some units or subelement of device in above-detailed, but this stroke
Point it is merely exemplary not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more
The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can
To be further divided into being embodied by multiple units.
In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, still, this do not require that or
Hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit some steps, multiple steps are merged into a step and performed, and/or by one
Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this
Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet
Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and
In the range of included various modifications and equivalent arrangements.
Claims (13)
1. a kind of sending method of new message notification, including:
It is determined that need to specified chat group member send new message notification, according to the mark of the chat group prestored with
The mark of the corresponding relation of long connection server group and the specified chat group, determine corresponding to the specified chat group
Long connection server group;
The new message notification is sent to the long Connection Service corresponding to the specified chat group in long connection server group
Device, the long connection server are used for the member being sent to the new message notification in the specified chat group.
2. according to the method for claim 1, store the mark of chat group and long Connection Service in such a way in advance
The corresponding relation of device group:
For any chat group, when creating the chat group, at least one long connection server is selected as the chat group
Corresponding long connection server group;
Store the corresponding relation of the mark and the long connection server group of the chat group.
3. at least one long connection server according to the method for claim 2, is selected as long corresponding to the chat group
Connection server group, including:
Multiple long connection servers are sorted according to the ascending order of present load;
According to the order that present load is ascending, at least one long connection server is selected to make from multiple long connection servers
For long connection server group corresponding to the chat group.
4. the method according to claim 11, in addition to:
When determining that any member in the specified chat group is reached the standard grade, from long Connection Service corresponding to the specified chat group
A long connection server is selected to distribute to any member in device group.
5. according to the method for claim 4, select one from long connection server group corresponding to the specified chat group
Individual long connection server distributes to any member, including:
Determine a long connection server of most lightly loaded in long connection server group corresponding to the specified chat group;
One long connection server of the most lightly loaded is distributed into any member.
6. the method according to claim 11, in addition to:
Determine that the load of each long connection server in long connection server group corresponding to the specified chat group is all higher than
It is that long connection server group adds a long connection server corresponding to the specified chat group when setting load threshold;
The long connection server of addition is distributed into any member.
7. according to any described methods of claim 1-6, in addition to:
The heartbeat message that the long connection server is periodically sent is received, the long Connection Service is carried in the heartbeat message
The load information of device, the load information include the valid link sum in the long connection server and/or connected with the length
Connect the valid link number of each chat group corresponding to server.
8. a kind of sending method of new message notification, including:
The new message notification that central server is sent is received, the mark of chat group is carried in the new message notification;
According to the mark of the chat group, chat group corresponding to the mark for the chat group for searching local service provided
Interior member;
The new message notification is sent to the member found.
9. the new message notification according to the method for claim 8, is sent to the member found, including:
It is determined that the number M of the member found, wherein, M is integer;
The new message notification is replicated, obtains new message notification described in M part identicals;
Respectively a new message notification is sent to the member found.
10. the method according to claim 11, in addition to:
Heartbeat message periodically is sent to the central server, local load information is carried in the heartbeat message, it is described
Load information includes the local valid link sum and/or the valid link number of each chat group corresponding with local.
11. a kind of dispensing device of new message notification, including:
Determining module, for determining to need to send new message notification to the member of specified chat group, chatted according to what is prestored
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of its group, determine described specify
Long connection server group corresponding to chat group;
Sending module, for the new message notification to be sent to corresponding to the specified chat group in long connection server group
Long connection server, the long connection server be used for the new message notification is sent in the specified chat group
Member.
12. a kind of dispensing device of new message notification, including:
Receiving module, for receiving the new message notification of central server transmission, chat group is carried in the new message notification
Mark;
Searching modul, for the mark according to the chat group, search the mark of the chat group of local service provided
Member in corresponding chat group;
Sending module, for the new message notification to be sent into the member found.
13. a kind of transmission system of new message notification, including:
Central server, for determining to need to send new message notification to the member of specified chat group, according to what is prestored
Mark and the corresponding relation of long connection server group and the mark of the specified chat group of chat group, determine the finger
Determine long connection server group corresponding to chat group;The new message notification is sent to long corresponding to the specified chat group
Long connection server in connection server group.
Long connection server, for receiving the new message notification of central server transmission, chat is carried in the new message notification
The mark of group;According to the mark of the chat group, corresponding to the mark for the chat group for searching local service provided
Member in chat group;The new message notification is sent to the member found.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610658091.7A CN107342929B (en) | 2016-08-10 | 2016-08-10 | Method, device and system for sending new message notification |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610658091.7A CN107342929B (en) | 2016-08-10 | 2016-08-10 | Method, device and system for sending new message notification |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107342929A true CN107342929A (en) | 2017-11-10 |
CN107342929B CN107342929B (en) | 2020-07-03 |
Family
ID=60222999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610658091.7A Active CN107342929B (en) | 2016-08-10 | 2016-08-10 | Method, device and system for sending new message notification |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107342929B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109921976A (en) * | 2017-12-12 | 2019-06-21 | 腾讯科技(深圳)有限公司 | A kind of communication control method based on group, device and storage medium |
CN110943907A (en) * | 2018-09-25 | 2020-03-31 | 富士施乐株式会社 | Control device, recording medium, and control method |
CN111478781A (en) * | 2019-01-24 | 2020-07-31 | 北京京东尚科信息技术有限公司 | Message broadcasting method and device |
CN115361353A (en) * | 2022-08-16 | 2022-11-18 | 杭州网易云音乐科技有限公司 | Information interaction method, medium, device and computing equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1482771A (en) * | 2002-09-09 | 2004-03-17 | 腾讯科技(深圳)有限公司 | Method for implementing network communication by identifying one user group with one number |
CN101039284A (en) * | 2006-03-16 | 2007-09-19 | 腾讯科技(深圳)有限公司 | Method for transmitting instant message to group |
CN101488928A (en) * | 2009-01-06 | 2009-07-22 | 腾讯科技(深圳)有限公司 | Internet enterprise group communication device and internet enterprise group communication method |
CN101753475A (en) * | 2008-12-04 | 2010-06-23 | 上海赢思软件技术有限公司 | Method and device for realizing real-time communication among a plurality of members in real-time communication group |
CN102045270A (en) * | 2010-11-30 | 2011-05-04 | 北京迅捷英翔网络科技有限公司 | Chat server system, method for constructing chat server system and chat system |
CN102118325A (en) * | 2010-11-30 | 2011-07-06 | 北京迅捷英翔网络科技有限公司 | Method and device for configuring chat client terminal, as well as chat client terminal |
CN102291327A (en) * | 2011-07-27 | 2011-12-21 | 苏州阔地网络科技有限公司 | Group communication method, system and instant messaging server |
CN202261363U (en) * | 2011-08-12 | 2012-05-30 | 苏州阔地网络科技有限公司 | Group messaging transmission system and instant messaging server |
CN103220354A (en) * | 2013-04-18 | 2013-07-24 | 广东宜通世纪科技股份有限公司 | Method for achieving load balancing of server cluster |
CN105704002A (en) * | 2014-11-26 | 2016-06-22 | 阿里巴巴集团控股有限公司 | Instant messaging method and instant messaging device |
US9413700B1 (en) * | 2015-12-09 | 2016-08-09 | International Business Machines Corporation | Operating a group chat session |
-
2016
- 2016-08-10 CN CN201610658091.7A patent/CN107342929B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1482771A (en) * | 2002-09-09 | 2004-03-17 | 腾讯科技(深圳)有限公司 | Method for implementing network communication by identifying one user group with one number |
CN101039284A (en) * | 2006-03-16 | 2007-09-19 | 腾讯科技(深圳)有限公司 | Method for transmitting instant message to group |
CN101753475A (en) * | 2008-12-04 | 2010-06-23 | 上海赢思软件技术有限公司 | Method and device for realizing real-time communication among a plurality of members in real-time communication group |
CN101488928A (en) * | 2009-01-06 | 2009-07-22 | 腾讯科技(深圳)有限公司 | Internet enterprise group communication device and internet enterprise group communication method |
CN102045270A (en) * | 2010-11-30 | 2011-05-04 | 北京迅捷英翔网络科技有限公司 | Chat server system, method for constructing chat server system and chat system |
CN102118325A (en) * | 2010-11-30 | 2011-07-06 | 北京迅捷英翔网络科技有限公司 | Method and device for configuring chat client terminal, as well as chat client terminal |
CN102291327A (en) * | 2011-07-27 | 2011-12-21 | 苏州阔地网络科技有限公司 | Group communication method, system and instant messaging server |
CN202261363U (en) * | 2011-08-12 | 2012-05-30 | 苏州阔地网络科技有限公司 | Group messaging transmission system and instant messaging server |
CN103220354A (en) * | 2013-04-18 | 2013-07-24 | 广东宜通世纪科技股份有限公司 | Method for achieving load balancing of server cluster |
CN105704002A (en) * | 2014-11-26 | 2016-06-22 | 阿里巴巴集团控股有限公司 | Instant messaging method and instant messaging device |
US9413700B1 (en) * | 2015-12-09 | 2016-08-09 | International Business Machines Corporation | Operating a group chat session |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109921976A (en) * | 2017-12-12 | 2019-06-21 | 腾讯科技(深圳)有限公司 | A kind of communication control method based on group, device and storage medium |
CN109921976B (en) * | 2017-12-12 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Group-based communication control method, device and storage medium |
CN110943907A (en) * | 2018-09-25 | 2020-03-31 | 富士施乐株式会社 | Control device, recording medium, and control method |
US11451677B2 (en) | 2018-09-25 | 2022-09-20 | Fujifilm Business Innovation Corp. | Control device and non-transitory computer readable medium storing control program |
CN110943907B (en) * | 2018-09-25 | 2023-03-24 | 富士胶片商业创新有限公司 | Control device, recording medium, and control method |
CN111478781A (en) * | 2019-01-24 | 2020-07-31 | 北京京东尚科信息技术有限公司 | Message broadcasting method and device |
CN111478781B (en) * | 2019-01-24 | 2022-11-08 | 北京京东尚科信息技术有限公司 | Message broadcasting method and device |
CN115361353A (en) * | 2022-08-16 | 2022-11-18 | 杭州网易云音乐科技有限公司 | Information interaction method, medium, device and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107342929B (en) | 2020-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102029277B1 (en) | Device Identifier-Dependent Operation Processing for Packet-Based Data Communications | |
CN102150443B (en) | System and methods for communication between instant message users and short message service users | |
RU2407232C2 (en) | Method, mobile terminal, system and computer software product for online attribution of content | |
US11140101B2 (en) | Bot group messaging method | |
CN104980339B (en) | Sharing files method and device | |
CN107342929A (en) | A kind of sending method of new message notification, apparatus and system | |
US20100125580A1 (en) | Automatic buddy management | |
CN102567299A (en) | Using text messages to interact with spreadsheets | |
CN105656763A (en) | Message pushing method and message pushing device | |
CN108712320B (en) | Message pushing method and device | |
US20210014074A1 (en) | Prioritize raise hand operation in a conference for efficient and time bound conference solution | |
US20180314407A1 (en) | Messaging queue topology configuration system | |
CN110945839A (en) | Shared and per-user robotic group messaging method | |
CN112346751B (en) | Application program installation method and device, electronic equipment and storage medium | |
JP6335978B2 (en) | System and method for providing a virtual communication session for some participants on a communication session | |
CN107046582A (en) | Message prompt method, medium, device and the computing device of e-sourcing information | |
US11127636B2 (en) | Bot group messaging using bot-specific voice libraries | |
US12021807B2 (en) | Aggregation and aggregation omission of messages | |
CN102201931A (en) | Device management method and system and related apparatus | |
CN102150151B (en) | Asynchronous queued messaging for Web applications | |
CN111314201A (en) | Application data processing method, system and related equipment | |
WO2018183290A1 (en) | Bot group messaging using general voice libraries | |
CN107888478A (en) | Voice messaging retransmission method, equipment and storage medium during instant messaging | |
CN110442698A (en) | Conversation content generation method and system | |
US20220321513A1 (en) | Method for chatting messages by topic based on subscription channel reference in server and user device |
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: 20210923 Address after: 310052 Room 408, building 3, No. 399, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Hangzhou Netease Zhiqi Technology Co.,Ltd. Address before: 310052 Room 301, Building No. 599, Changhe Street Network Business Road, Binjiang District, Hangzhou City, Zhejiang Province Patentee before: HANGZHOU LANGHE TECHNOLOGY Ltd. |