CN109600240A - Group Communications method and device - Google Patents

Group Communications method and device Download PDF

Info

Publication number
CN109600240A
CN109600240A CN201811574334.4A CN201811574334A CN109600240A CN 109600240 A CN109600240 A CN 109600240A CN 201811574334 A CN201811574334 A CN 201811574334A CN 109600240 A CN109600240 A CN 109600240A
Authority
CN
China
Prior art keywords
group
message
server
members
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811574334.4A
Other languages
Chinese (zh)
Inventor
李淼
杨攀
华超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Cloud In Faith Network Technology Co Ltd
Original Assignee
Beijing Cloud In Faith Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Cloud In Faith Network Technology Co Ltd filed Critical Beijing Cloud In Faith Network Technology Co Ltd
Priority to CN201811574334.4A priority Critical patent/CN109600240A/en
Publication of CN109600240A publication Critical patent/CN109600240A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The embodiment of the present invention provides a kind of group Communications method and device, is related to instant messaging field.Wherein, the group Communications method includes the group's message for receiving any group members in the communication group of any one message server forwarding and sending;Group's message is stored according to presetting message storage organization, and generates message identifier corresponding with this group of message according to the member identities for including in group's message and message time stamp;Using the corresponding message server of other group members as destination server, and the message identifier is sent to each destination server and is stored.The present invention can be effectively reduced the message storage difficulty during group communication, while save storage resource, reduce communications cost.

Description

Group Communications method and device
Technical field
The present invention relates to instant messaging fields, in particular to a kind of group Communications method and device.
Background technique
It is more and more extensive in the related application of current Internet era, instant messaging field, especially group communication Technology, but the characteristic based on group communication, if any group members inside group send a piece of news, each group members need to receive It arrives, as soon as a piece of news needs to store 3000 parts, seriously unrestrained so as to cause storage resource if that there is the jumpbogroup of 3000 people Take, then how to save storage resource, while guaranteeing that each member remains to receive aobvious most important of message again.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of group Communications method and device, to improve above-mentioned ask Topic saves storage resource.
On the one hand, present pre-ferred embodiments also provide a kind of group Communications method, are applied to cluster server, group clothes Business device can be communicated with multiple message servers, and be preset in the cluster server belong to the group of a communication group at The member identities of member's list and each group members;The group Communications method includes:
Receive group's message that any group members in the communication group of any one message server forwarding are sent;
According to presetting message storage organization group's message is stored, and according to include in group's message at Member's mark and message time stamp generate message identifier corresponding with this group of message;
Using the corresponding message server of other group members as destination server, and the message identifier is sent to each institute Destination server is stated to be stored.
Optionally, the presetting message storage organization includes key-value pair data structure, and the key-value pair data structure is to apply The group of mark, group identification and message time stamp is combined into key, is value with group's message, wherein the application identities For the identification information of the application program for providing group communication, the group identification is the identification information of the communication group.
Optionally, using the corresponding message server of other group members as the step of destination server, comprising:
For each group members in other group members in the communication group, simultaneously according to the member identities of the group members The corresponding message server information of the group members is calculated based on consistency hash algorithm, and is determined according to the message server information Corresponding message server is as the destination server.
Optionally, the method also includes:
Receive group's message request that the destination server is initiated based on the message identifier;
Call group's information and sending corresponding with group's message request to the destination server, so that the target takes Business device shows corresponding group members after carrying out information merging to group's message and the message identifier.
Optionally, described before executing the step of storing according to presetting message storage organization to group's message Group Communications method further include:
Judge whether the length of group's message is greater than the first preset value or the quantity of the group members in the communication group is It is no to be greater than the second preset value;
When the quantity that the length of group's message is greater than the group members in first preset value or the communication group is greater than When second preset value, then executes and group's message is stored according to presetting message storage organization, and according to described The step of member identities and message time stamp for including in group's message generate message identifier corresponding with this group of message.
Optionally, before executing the step of storing according to default storage organization to group's message, the group is logical Letter method further include:
Judge whether the length of group's message is greater than the first preset value, and the quantity of the group members in the communication group is It is no to be greater than the second preset value;
When the length of group's message is greater than first preset value, and the quantity of the group members in the communication group is greater than When second preset value, then executes and group's message is stored according to presetting message storage organization, and according to described The step of member identities and message time stamp for including in group's message generate message identifier corresponding with this group of message.
Optionally, not no more than the quantity of first preset value or/and the group members when the length of group's message When greater than the second preset value, the group Communications method further include:
For each group members in the communication group, according to the member identities of the group members, group's message and institute The corresponding message time stamp of group message is stated to generate corresponding target complex information and store;
Using the corresponding message server of the member identities of other group members as destination server, and the target complex is believed Breath is sent to corresponding destination server to show corresponding group members.
On the other hand, present pre-ferred embodiments also provide a kind of group Communications method, are applied to message server, the message Server can be communicated with cluster server, and the group Communications method includes:
The message identifier that the cluster server is sent is received, which is to be based on other by the cluster server Member identities corresponding to group's message that message server is sent and message time stamp generate;
The information inspection that response group members are initiated based on the message identifier instructs, and according to the message identifier and described Information inspection instruction generates group's message request and is sent to the cluster server;
Receive group's message corresponding with group's message request of cluster server feedback, and to group's message and The message identifier shows group members after merging.
Another aspect, present pre-ferred embodiments also provide a kind of group communication device, are applied to cluster server, the group Server can be communicated with multiple message servers, and be preset in a communication group in the cluster server The member identities of group member list and each group members, the group communication device include:
Group's message reception module, for receiving any in the communication group of any one message server forwarding Group's message that group members are sent;
Identifier generation module, for being stored according to presetting message storage organization to group's message, and according to institute It states the member identities for including in group message and message time stamp generates message identifier corresponding with this group of message;
Forwarding module is identified, is used for using the corresponding message server of other group members as destination server, and will be described Message identifier is sent to each destination server and is stored.
Further, the group communication device further include:
Request receiving module, the group's message request initiated for receiving the destination server based on the message identifier;
Group's information sending module, for calling group's information and sending corresponding with group's message request to take to the target Business device, so that the destination server shows corresponding group after carrying out information merging to group's message and the message identifier Member.
Compared with prior art, group Communications method and device provided in an embodiment of the present invention, can't be according to group members Real group's message is stored as more parts corresponding with each group members by quantity etc., but only storage is a, and by cluster server Being sent to the content that other message servers are stored and shown also is only the message identifier not comprising group's message, so as to Under the premise of guaranteeing that each group members in communication group can receive group message, storage resource in the prior art is effectively solved Serious problem is wasted, storage resource is substantially saved, while can also reduce message storage difficulty.
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
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the frame structure schematic diagram of instantaneous communication system provided in an embodiment of the present invention.
Fig. 2 is the frame structure schematic diagram of the cluster server provided in Fig. 1.
Fig. 3 is the flow diagram of the group Communications method provided in an embodiment of the present invention applied to cluster server.
Fig. 4 is another flow diagram of group Communications method provided in an embodiment of the present invention.
Fig. 5 is the another flow diagram of group Communications method provided in an embodiment of the present invention.
Fig. 6 is the flow diagram of the group Communications method provided in an embodiment of the present invention applied to message server.
Fig. 7 is the frame structure schematic diagram of group communication device provided in an embodiment of the present invention.
Icon: 10- cluster server;100- group communication device;110- groups of message reception modules;120- mark generates mould Block;130- identifies forwarding module;140- request receiving module;150- groups of information sending modules;200- memory;300- storage control Device processed;400- processor;20- message server;30- instantaneous communication system.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.
Therefore, the detailed description of the embodiment of the present invention provided in the accompanying drawings is not intended to limit below claimed The scope of the present invention, but be merely representative of selected embodiment of the invention.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without creative efforts belongs to the model that the present invention protects It encloses.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
As shown in Figure 1, being the frame structure schematic diagram of instantaneous communication system 30 provided in an embodiment of the present invention, the Instant Messenger Letter system 30 includes cluster server 10 and multiple message servers 20, the cluster server 10 and each message server 20 communication connections, wherein the group identification of one or more communication groups can be preset in the cluster server 10, with each communication group The member identities of corresponding group member list and each group members.In the present embodiment, in order to it is clearer, succinct into Row explanation, at this to be preset with the group member list for belonging to a communication group and each group members in the cluster server 10 Member identities for the group Communications method and device that provide in the present embodiment are introduced.Wherein, the communication group can be with It is but not limited to QQ groups, wechat group, nail nail group etc..
Optionally, as shown in Fig. 2, the cluster server 10 includes group communication device 100, memory 200, storage control Device 300 and processor 400.Wherein, the memory 200, storage control 300, each element of processor 400 are straight between each other It connects or is electrically connected indirectly, to realize the transmission or interaction of data.For example, passing through one or more communication between these elements Bus or signal wire, which are realized, to be electrically connected.The group communication device 100 includes that at least one can be deposited in the form of software or firmware The software function module for being stored in the memory 200 or being solidificated in the operating system in the cluster server 10.It is described Processor 400 accesses the memory 200 under the control of the storage control 300, for executing the memory 200 The executable module of middle storage, such as software function module and computer program etc. included by the group communication device 100.
It is appreciated that structure shown in Fig. 2 be only illustrate, the cluster server 10 may also include than shown in Fig. 2 more More perhaps less component or with the configuration different from shown in Fig. 2.In addition, the cluster server 10 can be but not It is limited to smart phone, PC (personal computer, PC), tablet computer, personal digital assistant (personal Digital assistant, PDA), it is mobile internet surfing equipment (mobile Internet device, MID), Cloud Server, small-sized Machine, all-in-one machine etc..In addition, in the present embodiment, each message server 20 can be identical as the cluster server 10, Can be different, message server 20 as described in each is also possible to but is not limited to smart phone, PC (personal Computer, PC), tablet computer, personal digital assistant (personal digital assistant, PDA), mobile Internet access set Standby (mobile Internet device, MID), Cloud Server, minicomputer, all-in-one machine etc..
Further, as shown in figure 3, being the flow diagram of group Communications method provided in an embodiment of the present invention, the group is logical Letter method is applied to above-mentioned cluster server 10, below in conjunction with Fig. 3 to the specific steps and process of the group Communications method It is described in detail.It should be understood that the group Communications method provided in the present embodiment is not with steps described below and process Sequence is limitation.
Step S11 receives any group members hair in the communication group of any one message server 20 forwarding The group's message sent;
Step S12 stores group's message according to presetting message storage organization, and according in group's message Including member identities and message time stamp generate corresponding with this group of message message identifier;
Step S13 regard the corresponding message server 20 of other group members as destination server, and by the message identifier Each destination server is sent to be stored.
Compared with the prior art, in the group Communications method that above-mentioned steps S11- step S13 is provided, for each messaging service Real group's message, can't be stored as corresponding with each group members more by group's message that device 20 is sent according to the quantity of group members Part, but only storage is a, and is sent to content that other message servers 20 are stored also only by cluster server 10 It is the message identifier not comprising group's message, to effectively solve the problems, such as that storage resource wastes serious in the prior art, substantially saves Storage resource is saved, while can also reduce message storage difficulty.
In detail, in step s 11, it is assumed that any one group members B in a communication group A is sent into the communication group When group's message, message server 20 corresponding with group members B can the group identification based on consistency hash algorithm and communication group A (ID, Identity) is calculated and is found out the corresponding cluster server 10 of the communication group A, then in the message server 20 It finds out and group's message that group members B is sent is transmitted to the cluster server 10 after cluster server 10.It should be noted that The message server 20 carries out that the realization of consistency hash algorithm can be but not limited to when cluster server 10 is searched.
Further, in step S12 and step S13, when group's message that message server 20 is sent reaches the group After server 10, cluster server 10 saves group's message according to presetting message storage organization, and only saves a. Wherein, compared with the existing technology in the storage side that stores real group's message according to group members each in communication group Formula, such as when the group members for belonging to a communication group are 3000 people, then will be deposited in cluster server 10 in the prior art 3000 parts of group's message are stored up, the storage resource of cluster server 10 is greatly wasted, and the group's message used in the present embodiment is deposited Storage mode can be effectively reduced the wasting of resources in group message storing process, and storage mode is simple.
In addition, the presetting message storage organization can include but is not limited to key-value pair data structure, when described preset disappears When to cease storage organization be key-value pair data structure, which can be with application identities, group identification and described The group of message time stamp is combined into key, is value with group's message, for example, the ordered set such as key-value pair data structure can be Key: application ID _ group's ID_ message time stabs value: message structure body.Wherein, the application identities are logical for providing group The identification information of the application program of letter, the group identification are the identification information of the communication group.In the present embodiment, the application Program can be but not limited to QQ, wechat, nail nail etc..
It optionally, can when the cluster server 10 stores group's message according to presetting message storage organization Being stored directly in the preset database of therein, it is also possible to be stored in the database for communicating with connection (redis) in, the present embodiment is herein with no restrictions.
Further, group's message of group members B transmission can be checked and accepted in order to guarantee each group members in communication group A, It is realized by way of generating message identifier corresponding with each group members in the present embodiment, it is true due to not including in the message identifier Positive group's message, therefore, when the message identifier is sent to corresponding message server 20 by the cluster server 10, respectively What is stored and show in message server 20 is only message identifier, rather than really group message, therefore the present invention provides Group Communications method equally saves the storage resource of message server 20.Optionally, it when generating the message identifier, can be But it is not limited to be generated according to the member identities for including in group's message and message time stamp, such as can also be based on application identities, disappear It ceases type etc. to generate, the present embodiment is herein with no restrictions.
In addition, described in step S13 " by the corresponding message server of other group members 20 as destination server " Process may include: for each group members in other group members in the communication group, according to the member of the group members It identifies and is based on consistency hash algorithm and calculate corresponding 20 information of message server of the group members, and according to the message server 20 information determine that corresponding message server 20 is used as the destination server.
Further, since what is stored in each message server 20 is only message identifier, when other in communication group Group members are when progress group's message pulls, as shown in figure 4, the group Communications method may also include step S14 and step S15, tool Body is as follows.
Step S14 receives group's message request that the destination server is initiated based on the message identifier;
Step S15 calls group's information and sending corresponding with group's message request to the destination server, so that institute It states after destination server carries out information merging to group's message and the message identifier and shows corresponding group members.
In detail, in step S14 and step S15, it is assumed that the group members C in same communication group A needs to pull group When group's message that member B is sent, message server 20 corresponding with group members C responds group members C and is based on the message identifier The information inspection of initiation instructs, and generates group's message request according to the message identifier and information inspection instruction and be sent to institute Cluster server 10 is stated, then the cluster server 10 is when receiving group message request, feedback and group's message request Corresponding group's message gives the message server 20, which closes group's message and the message identifier Group members C is showed after and.
It is understood that if group's message is stored in the number with other communication connections by the cluster server 10 According in library, then can directly the group as described in the Database Feedback disappear after the message server 20 sends group's message request It ceases to the message server 20.
Further, in actual implementation, in order to meet the diversity and flexibility of group communication, while guaranteeing group communication Timeliness, as shown in figure 5, receiving leading to from described for any one message server 20 forwarding in the cluster server 10 When believing group's message that any group members in group are sent, the group Communications method may also include step S16- step S18, specifically such as Under.
Step S16 judges the group members whether length of group's message is greater than in the first preset value or the communication group Quantity whether be greater than the second preset value, if more than S12- step S15 being thened follow the steps, conversely, thening follow the steps S17- step S18;
Step S17 disappears for each group members in the communication group according to the member identities of the group members, the group Breath and the corresponding message time stamp of group's message generate corresponding target complex information and store.
Step S18 regard the corresponding message server 20 of the member identities of other group members as destination server, and by institute It states target complex information and is sent to corresponding destination server to show corresponding group members.
Wherein, in step s 16, when the length of group's message is greater than in the first preset value or/and the communication group When the quantity of group members is greater than the second preset value, then illustrate that the group members quantity is larger or/and group's message is excessive, then directly It connects and carries out the storage of group's message according to the quantity of the group members in communication group, distribution will will lead to storage resource waste, and communicate Therefore the problems such as inefficient, can realize group communication according to the group Communications method provided in step S12- step S15.But when described Group message length be not more than the first preset value, and the quantity of the group members in the communication group be not more than the second preset value when, Then illustrate the group members negligible amounts, and group's message content is less, it therefore, can be directly according to the number of the group members in communication group Amount carries out the storage of group's message, distribution, not will cause storage resource and wastes serious problem, and can also meet what group message was checked Therefore timeliness can carry out group communication according to the group Communications method provided in step S17- step S18.
Optionally, first preset value and second preset value can flexibly be chosen according to actual needs, such as institute State the first preset value and can be but be not limited to 128 bytes etc., second preset value can be but be not limited to 10,100 etc..
Further, include real group's message in the target complex message generated in step S17, and its quantity with communicate Group members quantity in group is identical, but this will not be repeated here about generation step the present embodiment of the target complex message.In addition, In step S18 determine destination server method in step S13 determination destination server the step of can be identical, the present embodiment This will not be repeated here.
Further, as shown in fig. 6, the embodiment of the present invention also provides a kind of group communication side applied to message server 20 Method is introduced the group Communications method below with reference to Fig. 6, specific as follows.
Step S20 receives the message identifier that the cluster server 10 is sent, which is by the group service Member identities corresponding to group's message that device 10 is sent based on other message servers 20 and message time stamp generate;
Step S21, the information inspection instruction that response group members are initiated based on the message identifier, and according to the message mark Know and information inspection instruction generates group's message request and is sent to the cluster server 10;
Step S22 receives group's message corresponding with group's message request that the cluster server 10 is fed back, and to institute State group message and the message identifier merge after show group members.
It is understood that since the group Communications method provided in above-mentioned steps S20- step S22 has and above-mentioned steps The identical technical characteristic of group Communications method provided in S11- step S18, accordingly, with respect to being provided in step S20- step S22 The detailed description of group Communications method can refer to the detailed description in step S11- step S18, details are not described herein for the present embodiment.
Further, as shown in fig. 7, being the frame structure schematic diagram of group communication device 100 provided in an embodiment of the present invention, The group communication device 100 is applied to the cluster server 10, and the group communication device 100 includes group's message reception module 110, identifier generation module 120 and mark forwarding module 130, request receiving module 140 and group's information sending module 150.
Group's message reception module 110, for receive the forwarding of any one message server 20 from the communication Group's message that any group members in group are sent;In the present embodiment, the description as described in group's message reception module 110 specifically may be used With reference to the detailed description of above-mentioned steps S11, that is, the step S11 can be executed by group's message reception module 110, thus This does not illustrate more.
The identifier generation module 120, for being stored according to presetting message storage organization to group's message, and Message identifier corresponding with this group of message is generated according to the member identities for including in group's message and message time stamp;This implementation In example, the description as described in the identifier generation module 120 specifically refers to the detailed description of above-mentioned steps S12, that is, the step Rapid S12 can be executed by identifier generation module 120, thus not illustrated more herein.
The mark forwarding module 130, for regarding the corresponding message server 20 of other group members as destination server, And the message identifier is sent to each destination server and is stored.In the present embodiment, mould is forwarded about the mark The description of block 130 specifically refers to the detailed description of above-mentioned steps S13, that is, the step S13 can be by mark forwarding module 130 execute, thus do not illustrate more herein.
The request receiving module 140 disappears for receiving the group that the destination server is initiated based on the message identifier Breath request;In the present embodiment, the description as described in the request receiving module 140 specifically refers to retouching in detail for above-mentioned steps S14 It states, that is, the step S14 can be executed by request receiving module 140, thus does not illustrate more herein.
Group's information sending module 150, for calling group's information and sending corresponding with group's message request to institute Destination server is stated, so that the destination server shows after carrying out information merging to group's message and the message identifier Corresponding group members.In the present embodiment, the description as described in group's information sending module 150 specifically refers to above-mentioned steps S15 Detailed description, that is, the step S15 can be executed by group's information sending module 150, thus do not illustrate more herein.
In conclusion group Communications method provided in an embodiment of the present invention and device, it can't be according to the quantity etc. of group members Real group's message is stored as more parts corresponding with each group members, but only storage is a, and is sent by cluster server 10 The content for being stored and being shown to other message servers 20 is also only the message identifier not comprising group's message, so as to Under the premise of guaranteeing that each group members in communication group can receive group message, storage resource wave in the prior art is effectively solved Take serious problem, substantially save storage resource, while can also reduce message storage difficulty.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show that the devices of multiple embodiments according to the present invention, method and computer program product are able to achieve Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program A part of section or code, a part of the module, section or code include that one or more is patrolled for realizing defined Collect the executable instruction of function.It should also be noted that in some implementations as replacement, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module 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, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), deposits at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic or disk. It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device. In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element Process, method, article or equipment in there is also other identical elements.
The foregoing is merely alternative embodiments of the invention, are not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of group Communications method, which is characterized in that be applied to cluster server, which can take with multiple message Business device is communicated, and the group member list for belonging to a communication group and each group members are preset in the cluster server Member identities;The group Communications method includes:
Receive group's message that any group members in the communication group of any one message server forwarding are sent;
Group's message is stored according to presetting message storage organization, and is marked according to the member for including in group's message Know and message time stamp generates message identifier corresponding with this group of message;
Using the corresponding message server of other group members as destination server, and the message identifier is sent to each mesh Mark server is stored.
2. group Communications method according to claim 1, which is characterized in that the presetting message storage organization includes key-value pair Data structure, which is combined into key with the group that application identities, group identification and the message time stab, with institute Stating group message is value, wherein the application identities are for providing the identification information of the application program of group communication, group's mark Know the identification information for the communication group.
3. group Communications method according to claim 1, which is characterized in that make the corresponding message server of other group members The step of for destination server, comprising:
For each group members in other group members in the communication group, according to the member identities of the group members and it is based on Consistency hash algorithm calculates the corresponding message server information of the group members, and is determined and corresponded to according to the message server information Message server as the destination server.
4. group Communications method according to claim 1, which is characterized in that the method also includes:
Receive group's message request that the destination server is initiated based on the message identifier;
Call group's information and sending corresponding with group's message request to the destination server, so that the destination server Corresponding group members are showed after carrying out information merging to group's message and the message identifier.
5. group Communications method according to claim 1, which is characterized in that executing according to presetting message storage organization to institute Before stating the step of group message is stored, the group Communications method further include:
Judge whether the length of group's message is greater than the first preset value or whether the quantity of the group members in the communication group is big In the second preset value;
Described in being greater than when the quantity for the group members that the length of group's message is greater than in first preset value or the communication group When the second preset value, then executes and group's message is stored according to presetting message storage organization, and disappeared according to the group The step of member identities for including in breath and message time stamp generate message identifier corresponding with this group of message.
6. group Communications method according to claim 1, which is characterized in that executing according to default storage organization to the group Before the step of message is stored, the group Communications method further include:
Judge whether the length of group's message is greater than the first preset value, and whether the quantity of the group members in the communication group is big In the second preset value;
When the length of group's message is greater than first preset value, and the quantity of the group members in the communication group be greater than it is described When the second preset value, then executes and group's message is stored according to presetting message storage organization, and disappeared according to the group The step of member identities for including in breath and message time stamp generate message identifier corresponding with this group of message.
7. group Communications method according to claim 5 or 6, which is characterized in that when the length of group's message is not more than institute When stating the quantity of the first preset value or/and the group members no more than the second preset value, the group Communications method further include:
For each group members in the communication group, according to the member identities of the group members, group's message and the group The corresponding message time stamp of message generates corresponding target complex information and stores;
Using the corresponding message server of the member identities of other group members as destination server, and the target complex information is sent out Corresponding destination server is given to show corresponding group members.
8. a kind of group Communications method, which is characterized in that be applied to message server, which can be with cluster server It is communicated, the group Communications method includes:
The message identifier that the cluster server is sent is received, which is to be based on other message by the cluster server Member identities corresponding to group's message that server is sent and message time stamp generate;
The information inspection instruction that response group members are initiated based on the message identifier, and according to the message identifier and the information Check that instruction generates group's message request and is sent to the cluster server;
Receive group's message corresponding with group's message request of cluster server feedback, and to group's message and described Message identifier shows group members after merging.
9. a kind of group communication device, which is characterized in that be applied to cluster server, which can take with multiple message Business device is communicated, and the group member list that is preset in the cluster server in a communication group and each group at The member identities of member, the group communication device include:
Group message reception module, for receive any one message server forwarding any group in the communication group at Group's message that member sends;
Identifier generation module, for being stored according to presetting message storage organization to group's message, and according to the group The member identities for including in message and message time stamp generate message identifier corresponding with this group of message;
Forwarding module is identified, for using the corresponding message server of other group members as destination server, and by the message Mark is sent to each destination server and is stored.
10. group communication device according to claim 9, which is characterized in that the group communication device further include:
Request receiving module, the group's message request initiated for receiving the destination server based on the message identifier;
Group's information sending module, for calling group's information and sending corresponding with group's message request to the destination service Device so that the destination server to group's message and the message identifier show after information merging corresponding group at Member.
CN201811574334.4A 2018-12-21 2018-12-21 Group Communications method and device Pending CN109600240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574334.4A CN109600240A (en) 2018-12-21 2018-12-21 Group Communications method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574334.4A CN109600240A (en) 2018-12-21 2018-12-21 Group Communications method and device

Publications (1)

Publication Number Publication Date
CN109600240A true CN109600240A (en) 2019-04-09

Family

ID=65964228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574334.4A Pending CN109600240A (en) 2018-12-21 2018-12-21 Group Communications method and device

Country Status (1)

Country Link
CN (1) CN109600240A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311855A (en) * 2019-06-25 2019-10-08 广州虎牙科技有限公司 User message processing method, device, electronic equipment and storage medium
CN113612676A (en) * 2021-02-01 2021-11-05 广州虎牙科技有限公司 Social group message synchronization method, device, equipment and storage medium
CN113905002A (en) * 2021-09-30 2022-01-07 北京字跳网络技术有限公司 Message pushing method, device, system and storage medium
CN113923181A (en) * 2021-09-30 2022-01-11 北京字跳网络技术有限公司 Group message processing method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161193A (en) * 2015-04-10 2016-11-23 腾讯科技(成都)有限公司 A kind of email processing method, device and system
US20170317962A1 (en) * 2015-02-13 2017-11-02 Tencent Technology (Shenzhen) Company Limited Message sending method, apparatus, and system, and server
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN108881354A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of pushed information storage method, device, server and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170317962A1 (en) * 2015-02-13 2017-11-02 Tencent Technology (Shenzhen) Company Limited Message sending method, apparatus, and system, and server
CN106161193A (en) * 2015-04-10 2016-11-23 腾讯科技(成都)有限公司 A kind of email processing method, device and system
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN108881354A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of pushed information storage method, device, server and computer storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311855A (en) * 2019-06-25 2019-10-08 广州虎牙科技有限公司 User message processing method, device, electronic equipment and storage medium
CN110311855B (en) * 2019-06-25 2022-05-31 广州虎牙科技有限公司 User message processing method and device, electronic equipment and storage medium
CN113612676A (en) * 2021-02-01 2021-11-05 广州虎牙科技有限公司 Social group message synchronization method, device, equipment and storage medium
CN113612676B (en) * 2021-02-01 2024-01-19 广州虎牙科技有限公司 Social group message synchronization method, device, equipment and storage medium
CN113905002A (en) * 2021-09-30 2022-01-07 北京字跳网络技术有限公司 Message pushing method, device, system and storage medium
CN113923181A (en) * 2021-09-30 2022-01-11 北京字跳网络技术有限公司 Group message processing method, device, system and storage medium
WO2023051572A1 (en) * 2021-09-30 2023-04-06 北京字跳网络技术有限公司 Group message processing method and apparatus, and system and storage medium
CN113923181B (en) * 2021-09-30 2023-08-22 北京字跳网络技术有限公司 Group message processing method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN109600240A (en) Group Communications method and device
Lazouski et al. Usage control in cloud systems
CN111741026A (en) Cross-chain transaction request processing method, device, equipment and storage medium
EP3920562A1 (en) Method and system for performing charging processing on network slice client, and related device
CN113517985B (en) File data processing method and device, electronic equipment and computer readable medium
US20160323226A1 (en) Email Notifications
CN112073923A (en) Communication method, device, gateway and readable storage medium compatible with multiple operators
CN112764887A (en) Construction method, processing method, device, equipment and storage medium of transaction request
CN111200606A (en) Deep learning model task processing method, system, server and storage medium
CN102932269A (en) Method and device for balancing load
CN105450997A (en) Cloud storage based video monitoring system
CN113778499B (en) Method, apparatus, device and computer readable medium for publishing services
CN113553153A (en) Service data processing method and device and micro-service architecture system
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN107426109B (en) Traffic scheduling method, VNF module and traffic scheduling server
CN110768911A (en) Efficient flow guiding method, device, equipment, system and storage medium
Zhang et al. Software defined security architecture with deep learning-based network anomaly detection module
CN111083037B (en) Method, device, medium and electronic equipment for realizing instant messaging
CN112380040B (en) Message processing method and device, electronic equipment and storage medium
CN111984616B (en) Method, device and system for updating shared file
CN108694040A (en) Calling processing method and device, communication system
CN111294553B (en) Method, device, equipment and storage medium for processing video monitoring service signaling
CN111984613A (en) Method, device and system for sharing files
CN112131095A (en) Pressure testing method and device
Atre et al. A review of mobile cloud computing

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

RJ01 Rejection of invention patent application after publication