CN109617792A - Instant communicating system and broadcast message distribution method - Google Patents
Instant communicating system and broadcast message distribution method Download PDFInfo
- Publication number
- CN109617792A CN109617792A CN201910047756.4A CN201910047756A CN109617792A CN 109617792 A CN109617792 A CN 109617792A CN 201910047756 A CN201910047756 A CN 201910047756A CN 109617792 A CN109617792 A CN 109617792A
- Authority
- CN
- China
- Prior art keywords
- message
- broadcast
- user
- broadcast message
- service node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/80—Actions related to the user profile or the type of traffic
- H04L47/806—Broadcast or multicast traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/827—Aggregation of resource allocation or reservation requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of instant communicating system and broadcast message distribution methods, are related to the technical field of instant messaging, which includes: Broadcast Serving Node, and multiple message service nodes with Broadcast Serving Node communication connection;Broadcast Serving Node is used to receive the distribution service request of broadcast message, carries out polymerization grouping to user identifier, polymerize task to generate the corresponding user of each message service node;And broadcast message instruction is sent to each message service node;Message service node polymerize multiple user identifiers that task includes to corresponding user and sends broadcast message for receiving broadcast message instruction.Instant communicating system provided by the invention and broadcast message distribution method, the case where being significantly reduced the interaction times of transmitted data on network amount and network, effectively prevent network congestion, and then improve the efficiency of instant messaging and the Experience Degree of user.
Description
Technical field
The present invention relates to the technical fields of instant messaging, distribute more particularly, to a kind of instant communicating system and broadcast message
Method.
Background technique
Instant messaging is referred to as real-time communication, and two or more users is allowed to disappear using network real-time delivery text
Breath, file, voice or video information etc., most instant messaging service can show data contact person list, and contact person is
It is no on line, and can with contact person talk etc., can establish it is a kind of suitable for user exchange communication platform.
Currently, existing instant communicating system mostly uses scanning the whole network user data table, in serial or parallel fashion needle
Broadcast message is successively assembled to each user, and to the scheme that broadcast message is distributed, the message sum generated in distribution
Amount is identical as total number of users amount, also, message content is usually complete broadcast message content, so that distributing in broadcast message
A large amount of distribution service CPU and memory source are persistently occupied in journey, meanwhile, it also can long-time high load capacity occupancy internal network money
Network pressure is caused in source, and serious the case where causing inner-mesh network congestion reduces efficiency and the user of instant messaging
Experience Degree.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of instant communicating system and broadcast message distribution methods, with slow
Solve the lower technical problem of above-mentioned user experience.
In a first aspect, the embodiment of the invention provides a kind of instant communicating systems, comprising: Broadcast Serving Node, Yi Jiyu
Multiple message service nodes of Broadcast Serving Node communication connection;Broadcast Serving Node is used to receive the distribution service of broadcast message
Request carries out polymerization point to the user identifier that pre-stored user list includes according to the message service node currently connected
Group polymerize task to generate the corresponding user of each message service node, wherein it includes multiple user's marks that user, which polymerize task,
Know;And broadcast message instruction is sent to each message service node, broadcast message instruction includes that user polymerize task, with
Instruction message service node polymerize multiple user identifiers that task includes to user and provides broadcast message distribution service;Messaging service
Node polymerize multiple user identifiers that task includes to corresponding user and sends broadcast message for receiving broadcast message instruction.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein on
The system of stating further includes the message database connecting with Broadcast Serving Node and message service node;The distribution service of broadcast message is asked
Seek the content including broadcast message;Above-mentioned Broadcast Serving Node is also used to after the distribution service request for receiving broadcast message,
Generate the mark of broadcast message, and identifying broadcast message and the content associated storage of broadcast message to message database;With
And the cache instruction of broadcast message is sent to message service node;Wherein, cache instruction includes the mark of broadcast message, and
The content of broadcast message;Message service node is also used to receive cache instruction, to the mark of broadcast message, and broadcast the message
Content is cached.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein on
The system of stating further includes the customer data base connecting with Broadcast Serving Node;Pre-stored user list is stored in customer data base
In.
The possible embodiment of second with reference to first aspect, the embodiment of the invention provides the third of first aspect
Possible embodiment, wherein above-mentioned Broadcast Serving Node is according to the message service node currently connected to pre-stored use
The user identifier that family list includes carry out polymerization grouping the step of include: receive broadcast message distribution service request after,
User list is inquired from customer data base using paging mode, generates user's set of each paging query;Using parallel place
The user identifier that reason mode includes to each user set carries out polymerization grouping, to generate the corresponding use of each message service node
Family polymerize task.
The third possible embodiment with reference to first aspect, the embodiment of the invention provides the 4th kind of first aspect
Possible embodiment, wherein the user identifier that above-mentioned Broadcast Serving Node includes to each user set carries out polymerization grouping
The step of include: to match corresponding message service node for each user identifier, generate user identifier and message service node
Corresponding relationship;Wherein, corresponding relationship includes user identifier, and provides broadcast message distribution clothes for the corresponding user of user identifier
The corresponding user identifier of identical message service node polymerize by the mark of the message service node of business according to the corresponding relationship
At message service node, corresponding user polymerize task.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein on
Stating the step of multiple user identifiers that message service node includes into corresponding user's polymerization task send broadcast message includes:
Each user identifier in message service node traverse user polymerization task;Judge the corresponding User Status of user identifier whether be
Presence;It broadcasts the message if so, being sent to the user identifier of presence;If not, cached broadcast message.
The 5th kind of possible embodiment with reference to first aspect, the embodiment of the invention provides the 6th kind of first aspect
Possible embodiment, wherein above-mentioned message service node is also used to: if monitoring the online of the user identifier of off-line state
Message, obtains the corresponding history message of user identifier and pulls time point, pulls time point as starting point using history message, marks for user
Know corresponding user and pulls broadcast message;It is that offline message pulls as a result, and by offline message by the broadcast message tissue pulled
It pulls result and is sent to the corresponding user of user identifier.
Second aspect, the embodiment of the present invention also provide a kind of broadcast message distribution method, and this method is applied to above-mentioned first
The instant communicating system of aspect, this method comprises: Broadcast Serving Node receives the distribution service request of broadcast message, according to current
The message service node of connection carries out polymerization grouping to the user identifier that pre-stored user list includes, and is each disappeared with generating
It ceases the corresponding user of service node and polymerize task, wherein it includes multiple user identifiers that user, which polymerize task,;And disappear to each
It ceases service node and sends broadcast message instruction, broadcast message instruction includes that user polymerize task, with instruction message service node
It polymerize multiple user identifiers that task includes to user and broadcast message distribution service is provided;Message service node receives broadcast message
Instruction polymerize multiple user identifiers that task includes to corresponding user and sends broadcast message.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein on
Stating instant communicating system further includes the message database connecting with Broadcast Serving Node, and the distribution service request of broadcast message includes
The content of broadcast message;The above method further include: Broadcast Serving Node is raw after the distribution service request for receiving broadcast message
At the mark of broadcast message, and identifying broadcast message and the content associated storage of broadcast message to message database;And
The cache instruction of broadcast message is sent to message service node;Wherein, cache instruction includes the mark of broadcast message, and broadcast
The content of message;Message service node is also used to receive cache instruction, to the mark of broadcast message, and the content of broadcast message
It is cached.
The third aspect, the embodiment of the present invention also provides a kind of computer storage medium, for storing computer program instructions,
When computer executes the computer program instructions, the method as described in second aspect is executed.
The embodiment of the present invention bring it is following the utility model has the advantages that
A kind of instant communicating system provided in an embodiment of the present invention and broadcast message distribution method, can pass through broadcast service
Node receives the distribution service request of broadcast message, and is arranged according to the message service node currently connected pre-stored user
The user identifier that table includes carries out polymerization grouping, generates the corresponding user of each message service node and polymerize task, and then to every
It includes broadcast message instruction that user polymerize task that a message service node, which is sent, so that message service node is to corresponding user
Multiple user identifiers that polymerization task includes send broadcast message, by the way that user is carried out polymerization grouping, then distribute broadcast message
Mode, network transmission number will be carried out to broadcast message content in broadcast message distribution procedure and message is reduced to by total number of users
Service node number is significantly reduced the interaction times of transmitted data on network amount and network, reduces the occupancy of Internet resources
Rate, the case where effectively preventing network congestion, and then improve the efficiency of instant messaging and the Experience Degree of user.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those skilled in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of instant communicating system provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of another instant communicating system provided in an embodiment of the present invention;
Fig. 3 is a kind of interaction schematic diagram of instant communicating system provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart of distribution method that broadcasts the message provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those skilled in the art institute without making creative work
The every other embodiment obtained, shall fall within the protection scope of the present invention.
Current instant communicating system mostly uses the mode of the whole network user data table to be distributed broadcast message, causes
The message total quantity generated when broadcast message distribution is identical as total number of users amount, more Internet resources is occupied, to a certain degree
On reduce the efficiency of instant messaging and the Experience Degree of user.Based on this, a kind of instant messaging provided in an embodiment of the present invention
System and broadcast message distribution method, can be effectively relieved above-mentioned broadcast message distribution procedure and occupy asking for more Internet resources
Topic, to improve the efficiency of instant messaging and the Experience Degree of user.
For convenient for understanding the present embodiment, first to a kind of instant communicating system disclosed in the embodiment of the present invention into
Row is discussed in detail.
Embodiment one:
The embodiment of the invention provides a kind of instant communicating system, a kind of structures of instant communicating system as shown in Figure 1
Schematic diagram, comprising: Broadcast Serving Node 100, and multiple message service nodes with the Broadcast Serving Node 100 communication connection
102。
Wherein, the Broadcast Serving Node in the embodiment of the present invention is usually that user's broadcast message is received in instant communicating system
Distribute the service node of request, and the distribution of broadcast message is thought to trigger etc..
Further, the message service node in the embodiment of the present invention is often referred to the clothes docked in instant communicating system with user
Business node, can handle the uplink and downlink message of user side.
In actual use, above-mentioned instant communicating system may include multiple Broadcast Serving Nodes, each broadcast service section
Point can connect multiple messaging service solution points, for ease of description, be a Broadcast Serving Node as shown in 1 with it is multiple
The schematic diagram that message service node is communicated, it should be understood that the Broadcast Serving Node of instant communicating system and each broadcast
The quantity of the message service node of service node connection can be configured according to actual use situation, and the embodiment of the present invention is to this
It is not limited.
Specifically, as shown in Figure 1, the Broadcast Serving Node 100 in the embodiment of the present invention is used to receive point of broadcast message
Sending service request, gathers according to the user identifier that the message service node currently connected includes to pre-stored user list
Grouping is closed, polymerize task to generate the corresponding user of each message service node, wherein it includes multiple users that user, which polymerize task,
Mark;And
Broadcast message instruction is sent to each message service node, in general, broadcast message instruction includes that user's polymerization is appointed
Business polymerize multiple user identifiers that task includes to user with instruction message service node and provides broadcast message distribution service;
Message service node polymerize multiple use that task includes to corresponding user for receiving above-mentioned broadcast message instruction
Family mark sends broadcast message.
A kind of instant communicating system provided in an embodiment of the present invention can receive broadcast message by Broadcast Serving Node
Distribution service request, and the user identifier for including to pre-stored user list according to the message service node currently connected into
Row polymerization grouping generates the corresponding user of each message service node and polymerize task, and then sends to each message service node
Including user polymerize task broadcast message instruction so that message service node to corresponding user polymerize task include it is multiple
User identifier sends broadcast message, by the way that user is carried out polymerization grouping, then distributes the mode of broadcast message, will broadcast message point
Network transmission number is carried out to broadcast message content during hair, message service node number is reduced to by total number of users, greatly subtracted
The interaction times of few transmitted data on network amount and network, reduce the occupancy of Internet resources, effectively prevent network congestion
The case where, and then improve the efficiency of instant messaging and the Experience Degree of user.
When specific implementation, the distribution service request of the above-mentioned received broadcast message of Broadcast Serving Node can be current instant
Administrator in communication system logs in the distribution service request sent after Broadcast Serving Node, is also possible in instant communicating system
The instant message that any one user in full user sends can be with after Broadcast Serving Node receives distribution service request
The process of further triggering following.
In actual use, above-mentioned distribution service request generally includes the content of broadcast message, therefore, above-mentioned broadcast service
After node receives distribution service request, can to comprising the content of broadcast message store, it is more in order to what is connected
A message service node is distributed current broadcast message.
Therefore, instant communicating system provided in an embodiment of the present invention also typically includes message database, above-mentioned wide to store
Broadcast the content of message and the storage service of user message record.
Specifically, the structural schematic diagram of another instant communicating system as shown in Figure 2, in addition to structure shown in FIG. 1, on
Stating instant communicating system further includes the message database 104 connecting with Broadcast Serving Node 100 and message service node 102;On
The distribution service request for stating broadcast message includes the content of broadcast message;
Therefore, above-mentioned Broadcast Serving Node 100 is also used to after the distribution service request for receiving broadcast message, is generated wide
Broadcast the mark of message, and identifying the broadcast message and the content associated storage of broadcast message to message database;And
The cache instruction of broadcast message is sent to message service node 102;Wherein, which includes broadcast message
Mark, and the content of broadcast message;
Above-mentioned message service node 102 is also used to receive the cache instruction, to the mark of broadcast message, and broadcast message
Content cached.
Specifically, the content of above-mentioned broadcast message can store in above-mentioned message database, also, above-mentioned broadcast message
Mark, usually this broadcast message number, for example, the number may include send the broadcast message user it is corresponding
User identifier and reference number of a document etc., in order to which instant communicating system is saved and recorded to this broadcast message.Specifically
Ground, can with broadcast the message ID indicate be above-mentioned broadcast message mark.The specific number form of broadcast message ID can be with
It is configured according to actual use situation, it is not limited by the embodiments of the present invention.
It further, can be to broadcast message ID and broadcast message after above-mentioned message service node receives cache instruction
Content do memory hierarchy dictionary mapping, the content of broadcast message is stored with dictionary format.
Further, above system can also include the customer data base 106 connecting with Broadcast Serving Node 102;It is above-mentioned pre-
The user list first stored is stored in customer data base, in order to which Broadcast Serving Node is in the distribution industry for receiving broadcast message
After business request, pre-stored user list is searched from the customer data base.
Specifically, above-mentioned user identifier is referred to as ID users, in order to the unique designation in instant communicating system
One user, for example, above-mentioned user list can be the public affairs so that the user of above-mentioned instant communicating system is certain company personnel as an example
The employee information table of department, each ID users, the cell-phone number, station number or identification card number that can be employee further may be used also
It, can be with the information of the unique identification user, to avoid occurring in above-mentioned user list to be fingerprint, the facial information etc. of employee
Duplicate user identifier.
In actual use, the quantity for the user identifier for including in user list is usually more, usually can all be greater than message
Therefore the quantity of service node is distributed broadcast message for the ease of message service node, usually in Broadcast Serving Node
Polymerization grouping can be carried out to the Data Identification for including in user list.Specifically, Broadcast Serving Node can take according to message
The quantity of business node carries out polymerization grouping to user identifier, for example, equally by taking company as an example, can by department to user identifier into
Row polymerization, or according to hiring date user identifier polymerize etc., user identifier is divided into several groups, it is specific to be grouped
Quantity it is usually consistent with the quantity of message service node, in order to clearly each message service node be which user identifier
Polymerization grouping provide broadcast message distribution service.
Further, it is contemplated that the quantity of user identifier is relatively more, and therefore, Broadcast Serving Node can when obtaining user list
To inquire user list from customer data base using paging mode, it is based on this, above-mentioned Broadcast Serving Node is according to current connection
Message service node to the user identifier that pre-stored user list includes carry out polymerization grouping the step of include:
After the distribution service request for receiving broadcast message, user's column are inquired from customer data base using paging mode
Table generates user's set of each paging query;
Polymerization grouping is carried out using the user identifier that parallel processing manner includes to each user set, is each disappeared with generating
It ceases the corresponding user of service node and polymerize task.
Specifically, the quantity that user identifier can be inquired when can be to each paging query is configured, and to each
The result of paging query is saved, for example, the result of paging query is recorded as user set C, then be can be generated and is divided every time
User's set C1, C2 ... Cn of page inquiry, further, set { C1, C2 ... Cn } can then indicate whole users.Then it is adopting
Polymerization grouping is carried out to each user's set C1, C2 ... Cn user identifier for including with parallel processing manner.
In actual use, the user identifier that above-mentioned Broadcast Serving Node includes to each user set carries out polymerization grouping
The step of may include:
Corresponding message service node is matched for each user identifier, it is corresponding with message service node to generate user identifier
Relationship;Wherein, which includes user identifier, and provides broadcast message distribution clothes for the corresponding user of the user identifier
The mark of the message service node of business marks the corresponding user of identical message service node then further according to the corresponding relationship
Knowledge aggregates into the corresponding user of message service node and polymerize task.When Broadcast Serving Node is sent extensively to each message service node
When broadcasting message instruction, which can be polymerize to task and broadcast message instruction one is logical is sent to message service node, so as to disappear
Breath service node, which determines, to be needed to provide broadcast message point-score service for which or which group user identifier.
Specifically, for the user set C of above-mentioned each paging query result, it can produce a broadcast message user
Polymerization task P, if generating broadcast message user in total to polymerize the quantity of task is n, full users broadcasting task aggregation is
{ P1, P2 ... Pn }.
It, can be with the user of each paging query result when matching corresponding message service node for each user identifier
Set C is that a user polymerize task P, matches corresponding message service node, tool to the user identifier for including in user's set C
Body, user's set C can be traversed, be calculated as the user according to User ID and the message service node ID of service is provided,
And by result using message service node ID as key, User ID is stored as dictionary set as the mode of value, to generate user's mark
Know the corresponding relationship with message service node, and then realizes that the user identifier for including to user's set carries out polymerization grouping.When right
After active user gathers completion traversal, it can continue to traverse next user set, until whole users have been traversed, it is complete
The process of polymerization grouping is carried out as all user identifiers for including in user list.
In order to make it easy to understand, table 1 show it is a kind of polymerization grouping as a result, as shown in table 1:
Table 1:
Key | Value |
Message service node -1 | [user A1, B1…N1] |
… | … |
Message service node-n | [user An, Bn…Nn] |
Wherein, table 1 shows that the polymerization of one of user's set is grouped as a result, if Broadcast Serving Node communicates
The quantity of multiple message service nodes of connection is n, then each message service node ID can be with " message service node-sequence
Number " form present, and the key as above-mentioned corresponding relationship, meanwhile, message service node -1 corresponds to user A1 in table 1,
What B1 ... N1 was indicated is that user identifier is A1 in active user's set, and the user of B1 ... N1 provides broadcast by message service node -1
The service of message distribution.
Similarly, above-mentioned 1 form of table can be obtained for user's set C Broadcast Serving Node of each paging query result
Corresponding relationship, and using asynchronous model to each message service node send broadcast message instruction, disappeared with triggering above-mentioned broadcast
The distributed tasks of breath.The above-mentioned mode that polymerization grouping is carried out to each user set, can be by the network transmission of broadcast message time
Number is reduced to message service node number by total number of users, considerably reduces the data volume of network transmission, effectively prevents occurring
The case where network congestion.
Further, each message service node can return after receiving broadcast message instruction to Broadcast Serving Node
Response is withheld in distribution service request, with response notification Broadcast Serving Node, and it is above-mentioned to the transmission of the user identifier of presence
Broadcast message.
Specifically, multiple user identifiers that above-mentioned message service node includes into corresponding user's polymerization task send wide
The step of broadcasting message include:
Each user identifier in message service node traverse user polymerization task;Judge the corresponding user's shape of user identifier
Whether state is presence;It broadcasts the message if so, being sent to the user identifier of presence;If not, cached broadcast message.
Specifically, the ergodic process of above-mentioned message service node can be gathered for the user of current paging query result
In each user identifier traversed, and judge the corresponding user of each user identifier for presence or off-line state,
If user is online, the content of the broadcast message of caching can be sent to the user identifier, at the same time it can also clear
Except in this distribution service process that broadcasts the message, the user identifier is corresponding data cached.
Further, it is reflected if message service node makees memory hierarchy dictionary to the content of broadcast message ID and broadcast message
It penetrates, then the content that broadcast message ID inquires the corresponding broadcast message of broadcast message ID from memory mapping can be used, then
Online broadcast message is sent to user.
If user is in off-line state, active user is skipped, continues to traverse subsequent user, execute to online user
Distribute the process of broadcast message.
Further, in order to avoid offline user loses the broadcast message, for offline user, above-mentioned messaging service section can be with
First broadcast message is cached, when online in order to user, distribute to the user and broadcasts the message, therefore, above-mentioned messaging service
Node is also used to: if monitoring the on-line message of the user identifier of off-line state, obtaining the corresponding history message of user identifier
Time point is pulled, time point is pulled as starting point using history message, pulls broadcast message for the corresponding user of user identifier;It will pull
Broadcast message tissue be that offline message pulls as a result, and the offline message is pulled result being sent to the corresponding use of user identifier
Family.
In actual use, message service node, which may determine that, is pulling in history message time range, if comprising slow
The broadcast message ID deposited, if comprising, broadcast message content of the ID from the memory map locating broadcast message can be used, and
Tissue be offline message pull as a result, and be sent to user, also, message service node can be cached only when being cached
Broadcast the message ID, does not need to store the content of broadcast message, realizes broadcast message in distribution procedure, only storage is primary
The content of broadcast message reduces disk and uses.
In order to make it easy to understand, being based on instant communicating system shown in Fig. 2, Fig. 3 also shows a kind of instant communicating system
Interaction schematic diagram, as shown in figure 3, the interactive process of the instant communicating system the following steps are included:
Step S302, Broadcast Serving Node receive the distribution service request of broadcast message, store the broadcast message, and generate
Broadcast the message ID;
Step S304, Broadcast Serving Node send the cache instruction of broadcast message to message service node;
Step S306, message service node receive cache instruction, to the mark of broadcast message, and the content of broadcast message
Do the mapping of memory hierarchy dictionary;
Step S308, Broadcast Serving Node inquire user list using paging mode from customer data base, generate each
The user of paging query gathers;
Step S310, Broadcast Serving Node are carried out using the user identifier that parallel processing manner includes to each user set
Polymerization grouping polymerize task to generate the corresponding user of each message service node;
Step S312, Broadcast Serving Node send broadcast message instruction to each message service node;
Step S314, each user identifier in message service node traverse user polymerization task;Judge user identifier pair
Whether the User Status answered is presence;If so, executing step S316;If not, executing step S318;
Step S316 sends to the user identifier of presence and broadcasts the message;
Step S318, cached broadcast message;
Step S320 obtains that user identifier is corresponding goes through if monitoring the on-line message of the user identifier of off-line state
History message pulls time point, and pulling time point using history message as starting point is that the corresponding user of user identifier pulls broadcast message;
The broadcast message tissue pulled is that offline message pulls as a result, and offline message is pulled result by step S322
It is sent to user identifier.
To sum up, instant communicating system provided in an embodiment of the present invention has the advantage that
(1) it polymerize the mode distributed again using user grouping in broadcast message distribution procedure, reduces network interaction number.
(2) in broadcast message distribution procedure, by the side for executing broadcast message cache instruction according to message service node
Formula, by broadcast message distribution procedure, the network transmission number of broadcast message is reduced to message service node number by total number of users
Quantity greatly reduces transmitted data on network amount.
(3) it broadcasts the message in distribution procedure, only stores the content once to broadcast the message, reduce disk and use.
Embodiment two:
On the basis of the above embodiments, the embodiment of the invention also provides a kind of broadcast message distribution method, this method
Applied to instant communicating system described in above-described embodiment, specifically, a kind of stream of broadcast message distribution method as shown in Figure 4
Cheng Tu, method includes the following steps:
Step S402, Broadcast Serving Node receive the distribution service request of broadcast message, are taken according to the message currently connected
Business node carries out polymerization grouping to the user identifier that pre-stored user list includes, to generate each message service node pair
The user answered polymerize task;
Wherein, it includes multiple user identifiers which, which polymerize task,;
Step S404, Broadcast Serving Node send broadcast message instruction to each message service node;
Broadcast message instruction includes that user polymerize task, polymerize task to user with instruction message service node and includes
Multiple user identifiers provide broadcast message distribution service;
Step S406, message service node receive above-mentioned broadcast message instruction, and polymerizeing task to corresponding user includes
Multiple user identifiers send broadcast message.
Specifically, above-mentioned instant communicating system further includes the message database connecting with Broadcast Serving Node, broadcast message
Distribution service request include broadcast message content;
Therefore, the above method further include:
Broadcast Serving Node generates the mark of broadcast message after the distribution service request for receiving broadcast message, and will
Broadcast message identifies and the content associated storage of broadcast message to message database;And
The cache instruction of broadcast message is sent to message service node;Wherein, which includes the mark of broadcast message
Know, and the content of broadcast message;
Message service node is also used to receive above-mentioned cache instruction, to the mark of broadcast message, and broadcasts the message interior
Appearance is cached.
Broadcast message distribution method provided in an embodiment of the present invention, has with instant communicating system provided by the above embodiment
Identical technical characteristic reaches identical technical effect so also can solve identical technical problem.
It is apparent to those skilled in the art that for convenience and simplicity of description, above-described embodiment two is retouched
The specific work process stated, can be with reference to the corresponding process in previous embodiment, and details are not described herein.
Further, the embodiment of the invention also provides a kind of computer storage mediums, for storing computer program instructions,
When computer executes the computer program instructions, broadcast message distribution method as shown in Figure 4 above is executed.
The computer program product of instant communicating system provided by the embodiment of the present invention and the distribution method that broadcasts the message, packet
The computer readable storage medium for storing program code is included, the instruction that said program code includes can be used for executing previous methods
Method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.To those skilled in the art, above-mentioned term can be understood in the present invention with concrete condition
Concrete meaning.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
In the description of the present invention, it should be noted that term " center ", "upper", "lower", "left", "right", "vertical",
The orientation or positional relationship of the instructions such as "horizontal", "inner", "outside" be based on the orientation or positional relationship shown in the drawings, merely to
Convenient for description the present invention and simplify description, rather than the device or element of indication or suggestion meaning must have a particular orientation,
It is constructed and operated in a specific orientation, therefore is not considered as limiting the invention.In addition, term " first ", " second ",
" third " is used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance.
Finally, it should be noted that above embodiments, only a specific embodiment of the invention, to illustrate skill of the invention
Art scheme, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to the present invention into
Go detailed description, it should be understood by those skilled in the art that: anyone skilled in the art takes off in the present invention
In the technical scope of dew, it can still modify to technical solution documented by previous embodiment or can readily occur in change
Change or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make relevant art
Scheme essence be detached from technical solution of the embodiment of the present invention spirit and scope, should all cover protection scope of the present invention it
It is interior.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of instant communicating system characterized by comprising Broadcast Serving Node, and it is logical with the Broadcast Serving Node
Believe multiple message service nodes of connection;
The Broadcast Serving Node is used to receive the distribution service request of broadcast message, according to the messaging service currently connected
Node carries out polymerization grouping to the user identifier that pre-stored user list includes, to generate each message service node
Corresponding user polymerize task, wherein it includes multiple user identifiers that the user, which polymerize task,;And
Broadcast message instruction is sent to each message service node, the broadcast message instruction includes that user polymerization is appointed
Business provides broadcast message to indicate that the message service node polymerize multiple user identifiers that task includes to the user
Distribution service;
For the message service node for receiving the broadcast message instruction, include to corresponding user's polymerization task is more
A user identifier corresponding user's transmission broadcast message.
2. system according to claim 1, which is characterized in that the system also includes with the Broadcast Serving Node and institute
State the message database of message service node connection;The distribution service request of the broadcast message includes the content of broadcast message;
The Broadcast Serving Node is also used to after the distribution service request for receiving the broadcast message, is generated the broadcast and is disappeared
The mark of breath, and identifying the broadcast message and the content associated storage of the broadcast message to the message database;
And
The cache instruction of the broadcast message is sent to the message service node;Wherein, the cache instruction includes described wide
Broadcast the mark of message and the content of the broadcast message;
The message service node is also used to receive the cache instruction, mark and the broadcast to the broadcast message
The content of message is cached.
3. system according to claim 1, which is characterized in that the system also includes connect with the Broadcast Serving Node
Customer data base;The pre-stored user list is stored in the customer data base.
4. system according to claim 3, which is characterized in that the Broadcast Serving Node described disappears according to what is currently connected
Breath service node carries out the step of polymerization is grouped to the user identifier that pre-stored user list includes
After the distribution service request for receiving the broadcast message, institute is inquired from the customer data base using paging mode
User list is stated, user's set of each paging query is generated;
Polymerization grouping is carried out using the user identifier that parallel processing manner includes to each user's set, to generate each institute
It states the corresponding user of message service node and polymerize task.
5. system according to claim 4, which is characterized in that the Broadcast Serving Node gathers packet to each user
The user identifier contained carries out polymerizeing the step of being grouped
Corresponding message service node is matched for each user identifier, generates the user identifier and the messaging service section
The corresponding relationship of point;Wherein, the corresponding relationship includes the user identifier, and is mentioned for the corresponding user of the user identifier
For the mark of the message service node of broadcast message distribution service;
According to the corresponding relationship, the corresponding user identifier of the identical message service node is aggregated into the message
The corresponding user of service node polymerize task.
6. system according to claim 1, which is characterized in that the message service node polymerize to the corresponding user
The step of multiple user identifiers for including in task send the broadcast message include:
The message service node traverses each user identifier in user's polymerization task;
Judge whether the corresponding User Status of the user identifier is presence;
If so, sending the broadcast message to the user identifier of presence;
If not, caching the broadcast message.
7. system according to claim 6, which is characterized in that the message service node is also used to:
If monitoring the on-line message of the user identifier of off-line state, obtains the corresponding history message of the user identifier and pull
Time point pulls time point as starting point using the history message, pulls broadcast message for the corresponding user of the user identifier;
It is that offline message pulls as a result, and the offline message is pulled result being sent to by the broadcast message tissue pulled
The corresponding user of the user identifier.
8. a kind of broadcast message distribution method, which is characterized in that it is described in any item that the method is applied to claim 1~7
Instant communicating system, which comprises
The Broadcast Serving Node receives the distribution service request of broadcast message, according to the message service node currently connected
Polymerization grouping is carried out to the user identifier that pre-stored user list includes, it is corresponding to generate each message service node
User polymerize task, wherein it includes multiple user identifiers that the user, which polymerize task,;And
Broadcast message instruction is sent to each message service node, the broadcast message instruction includes that user polymerization is appointed
Business provides broadcast message to indicate that the message service node polymerize multiple user identifiers that task includes to the user
Distribution service;
The message service node receives the broadcast message instruction, polymerize multiple institutes that task includes to the corresponding user
It states user identifier and sends the broadcast message.
9. according to the method described in claim 8, it is characterized in that, the instant communicating system further includes and the broadcast service
The message database of node connection, the distribution service request of the broadcast message include the content of broadcast message;
The method also includes:
The Broadcast Serving Node generates the mark of the broadcast message after the distribution service request for receiving the broadcast message
Know, and identifying the broadcast message and the content associated storage of the broadcast message to the message database;And
The cache instruction of the broadcast message is sent to the message service node;Wherein, the cache instruction includes described wide
Broadcast the mark of message and the content of the broadcast message;
The message service node is also used to receive the cache instruction, mark and the broadcast to the broadcast message
The content of message is cached.
10. a kind of computer storage medium, which is characterized in that for storing computer program instructions, described in computer execution
When computer program instructions, method as claimed in claim 8 or 9 is executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910047756.4A CN109617792A (en) | 2019-01-17 | 2019-01-17 | Instant communicating system and broadcast message distribution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910047756.4A CN109617792A (en) | 2019-01-17 | 2019-01-17 | Instant communicating system and broadcast message distribution method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109617792A true CN109617792A (en) | 2019-04-12 |
Family
ID=66019032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910047756.4A Pending CN109617792A (en) | 2019-01-17 | 2019-01-17 | Instant communicating system and broadcast message distribution method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109617792A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505276A (en) * | 2019-07-17 | 2019-11-26 | 北京三快在线科技有限公司 | Object matching method, apparatus and system, electronic equipment and storage medium |
CN111953584A (en) * | 2020-08-21 | 2020-11-17 | 北京一起教育信息咨询有限责任公司 | Method and system for optimizing real-time message channel flow |
CN114465976A (en) * | 2022-01-28 | 2022-05-10 | 深圳快银付信息科技有限公司 | Message distribution and aggregation method and device |
CN115174501A (en) * | 2022-05-23 | 2022-10-11 | 未名智算(北京)科技有限公司 | Service system and service method for intra-network aggregation transmission |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101834809A (en) * | 2010-05-18 | 2010-09-15 | 华中科技大学 | Internet instant message communication system |
CN106998287A (en) * | 2016-01-22 | 2017-08-01 | 北京北信源软件股份有限公司 | A kind of instant messaging group's message coalescing retransmission method for isolation network environment |
CN108667899A (en) * | 2018-03-29 | 2018-10-16 | 挂号网(杭州)科技有限公司 | Multiple terminals message synchronization and isolation instant communication method and system |
US10110550B1 (en) * | 2007-07-23 | 2018-10-23 | Twitter, Inc. | Device independent message distribution platform |
-
2019
- 2019-01-17 CN CN201910047756.4A patent/CN109617792A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10110550B1 (en) * | 2007-07-23 | 2018-10-23 | Twitter, Inc. | Device independent message distribution platform |
CN101834809A (en) * | 2010-05-18 | 2010-09-15 | 华中科技大学 | Internet instant message communication system |
CN106998287A (en) * | 2016-01-22 | 2017-08-01 | 北京北信源软件股份有限公司 | A kind of instant messaging group's message coalescing retransmission method for isolation network environment |
CN108667899A (en) * | 2018-03-29 | 2018-10-16 | 挂号网(杭州)科技有限公司 | Multiple terminals message synchronization and isolation instant communication method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110505276A (en) * | 2019-07-17 | 2019-11-26 | 北京三快在线科技有限公司 | Object matching method, apparatus and system, electronic equipment and storage medium |
CN111953584A (en) * | 2020-08-21 | 2020-11-17 | 北京一起教育信息咨询有限责任公司 | Method and system for optimizing real-time message channel flow |
CN114465976A (en) * | 2022-01-28 | 2022-05-10 | 深圳快银付信息科技有限公司 | Message distribution and aggregation method and device |
CN115174501A (en) * | 2022-05-23 | 2022-10-11 | 未名智算(北京)科技有限公司 | Service system and service method for intra-network aggregation transmission |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109617792A (en) | Instant communicating system and broadcast message distribution method | |
CN112689300B (en) | Method, apparatus, system, and medium for managing application and execution unit | |
CN106897810B (en) | Business processing method and system, workflow engine and system and business system | |
US8838703B2 (en) | Method and system for message processing | |
CN110324177A (en) | Service request processing method, system and medium under micro-service architecture | |
CN109558301A (en) | A kind of distributed system data monitoring method, device and relevant device | |
CN107341044A (en) | A kind of distributive data center unified monitoring framework and method | |
CN104536965B (en) | A kind of data query display systems under the conditions of big data and method | |
CN105959395A (en) | Cluster self-feedback type load balancing scheduling system and method | |
CN110110006A (en) | Data managing method and Related product | |
CN106814975A (en) | A kind of memory management method and its system for polymorphic type storage device | |
CN105869057A (en) | Comment storage device, comment reading method and apparatus, and comment writing method and apparatus | |
CN109492056A (en) | A kind of method and system of business intelligence data inquiry | |
CN108989063B (en) | Group account data processing method, device and equipment and readable storage medium | |
CN103947157A (en) | Apparatus and method for M2M communications | |
CN106131141B (en) | A kind of distributed type assemblies load balancing parallel dispatch system and method | |
CN103414732B (en) | Application integration device and application integration processing method | |
CN105468699B (en) | Duplicate removal data statistical approach and equipment | |
CN107480910A (en) | Task allocating method and system based on address information | |
CN105450589B (en) | Remote invocation method and system | |
CN106447242B (en) | Electricity consumption service handling time limit management method and device | |
JP2002351760A (en) | Device and method for decentralizing server load, and program making computer implement the same method | |
CN104363257B (en) | A kind of user interface data method for refreshing and equipment | |
CN107784463A (en) | Inventory information processing method, system and equipment | |
CN107391764A (en) | Business datum querying method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |
|
RJ01 | Rejection of invention patent application after publication |