CN104901865B - A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number - Google Patents
A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number Download PDFInfo
- Publication number
- CN104901865B CN104901865B CN201510189758.9A CN201510189758A CN104901865B CN 104901865 B CN104901865 B CN 104901865B CN 201510189758 A CN201510189758 A CN 201510189758A CN 104901865 B CN104901865 B CN 104901865B
- Authority
- CN
- China
- Prior art keywords
- message
- queue
- monotonic sequence
- group
- instant 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.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number, the synchronous method is run in the enterprise instant communication system being made up of mobile device client and server, the server includes connection server, Message Processing center and storage device, the corresponding group member of one mobile device client, the synchronous method realizes the synchronization of the instant communication information between group member in enterprise instant communication system, including:The establishment step of group member individual's monotonic sequence queue;Group member sends the step of instant communication information;Other group members are corresponding to the step of the personal monotonic sequence queue synchronization reception instant communication information.Compared with prior art, the present invention has the advantages that availability height, fast response time.
Description
Technical field
The present invention relates to enterprise instant communication technical field, more particularly, to a kind of movement based on global monotonic sequence number
Hold instant messaging signal synchronizing method.
Background technology
Enterprise instant communication system (hereinafter referred to as enterprise IM) is a kind of network communication service for enterprise clerical workforce.
The content of communication includes word, picture, voice, video etc..
In enterprise instant communication system, the communication either word or voice of group are required for substantial amounts of instant messaging
Message is transmitted, and existing message transfer process is such:Sender of the message is by enterprise's IM clients to a group where it
Group sends chat messages, and after enterprise's IM service ends receive request, a series of state judgements are carried out to other members of the group,
The message of transmission and its additional data is asked (to send sender if message recipient is in presence in enterprise IM
Person's sign, sender's equipment state, message number etc.) message recipient is sent to, and disappear to relevant database request preservation
Content is ceased, deferred information is pulled when logging in enterprise IM so as to the other equipment of message recipient;If message recipient is in enterprise
Off-line state is in IM, then directly asks to preserve message content to relevant database so that message recipient logs in enterprise IM
When pull deferred information.
The problem of bigger be present in flow as described above.What it is due to message transmission is full dose data, when message is transmitted
Shi Feichang consumption network bandwidth, Tuo Man enterprises IM service end operational efficiency, or even cause enterprise's IM service ends to interrupt service;When connecing
The equipment of receipts person can also cause that equipment reaction is blunt, interim card when being mobile end equipment, or even can not know that its contacts human hair in time
The important information brought, so as to have a strong impact on the user experience of enterprise IM user and information security.
The content of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of availability is high, response
The fireballing mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number, the synchronous method run on by
In the enterprise instant communication system of mobile device client and server composition, the server includes connection server, message
Processing center and storage device, the corresponding group member of a mobile device client, the synchronous method realize enterprise's IMU
The synchronization of instant communication information in news system between group member, including:
The establishment step of group member individual's monotonic sequence queue;
Group member sends the step of instant communication information;
Other group members personal monotonic sequence queue synchronization corresponding to receives the step of the instant communication information
Suddenly.
The establishment step of the group member individual monotonic sequence queue performs when a group member adds group, has
Body is:
After 1a) Message Processing center obtains addition group message, the public message queue of the group in storage device is read
Maximum message number;
1b) judge personal monotonic sequence team corresponding with the group member newly added whether is preserved in storage device
Row, if so, then calling the personal monotonic sequence queue, perform step 1c), if it is not, then the group of generation and the new addition forms
The personal monotonic sequence queue of member, perform step 1c);
1c) Message Processing is centrally generated the global monotonic sequence number of the group member that newly adds relative to group;
1d) Message Processing center is by step 1a) in the maximum message number that obtains and step 1c) in the global dull sequence that generates
Row number is combined, generate personal queue data, add step 1b) obtain personal monotonic sequence queue in;
1e) storage device preserves the personal monotonic sequence queue after renewal.
The group member sends the step of instant communication information and is specially:
2a) connection server receives the instant communication information that a group member is sent by mobile device client
Afterwards, the instant communication information is forwarded to Message Processing center;
2b) Message Processing center judges whether the state of received instant communication information is normal, if so, then performing step
Rapid 2c), if it is not, then error code corresponding to generation, feeds back to mobile device client, return to step 2a by connection server);
2c) Message Processing center carries out integration sign to the instant communication information received, generates message data, is saved into
In the public message queue of storage device.
The state of the instant communication information includes message and sends state and send the mobile device status of message.
The step 2c) in, integration sign is carried out to the instant communication information received is specially:New information number is generated,
New information number is sent into the mobile device status of message, the instant communication information received combines.
Other described group members personal monotonic sequence queue synchronization corresponding to receives the instant communication information
The step of be specially:
3a) Message Processing sends the notice for receiving new information centrally through connection server to other group members;
3b) other group members send message synchronization to connection server by mobile device client and asked;
3c) message synchronization received request is forwarded to Message Processing center by connection server;
3d) whether the mobile device client of Message Processing central authentication transmission message synchronization request is normal, if so, then holding
Row step 3e), if it is not, then sending corresponding error code to mobile device client, return to step 3b);
3e) read the individual of the public message queue of group in storage device and the group member of transmission message synchronization request
Monotonic sequence queue;
3f) Message Processing center compare public message queue maximum message number and personal monotonic sequence queue in preserve
The maximum message number on the group, judge whether the former is more than the latter, if so, then perform step 3g), if it is not, then terminating
This synchronization request;
3g) new message data is sent to the shifting for sending message synchronization and asking by Message Processing center by connection server
Dynamic device clients;
3h) mobile device client shows new message data, and updates the personal monotonic sequence number of corresponding group member
Queue.
The step 3h) in, the personal monotonic sequence queue for updating corresponding group member is specially:It is global dull from increasing
Sequence number, and the maximum message number in public message queue is corresponding, store again in storage device.
The storage device is irrelevant type storage device.
Compared with prior art, the mobile terminal instant communication information synchronous method based on global monotonic sequence number of the invention is more
Efficiently, high availability, safer, specific advantage is as follows:
1) high concurrent and high availability:
Irrelevant type data storage device has more high concurrent and high availability than relevant database, to handling message count
There is innate advantage according to such mass data, high concurrent and high availability can greatly promote Information Security and response is quick
Degree;
2) quick sensing:
Due to only giving mobile terminal PUSH message arrival notice after the complete message data of Message Processing center processing, packet can be small
A lot, the presence for the perception message data that user can be more instant;
3) quick response:
Personal monotonic sequence queue is separated with message queue storage, and message center can be allowed more rapidly more stably to obtain
Data, memory space and bottleneck point are reduced, responds faster to business demand;
4) it is customized:
Message data is synchronized to the mobile end equipment of user in batches, fully taken into account mobile device client have it is broken
Piece network connection and CPU holding times, the features such as capacity of memory device is small;
5) scalability is good:
System is in design, when having taken into full account extension demand from now on, for example having increased other synchronizing traffic data demands newly,
System can accomplish completely to the compatibility of legacy version;
6) message is complete and orderly:
This synchronization mechanism can ensure:Message will not lose message because of mobile terminal network problem, message is to be bound to
Reach in order, full message stream can be synchronized between multiple equipment.
Brief description of the drawings
Fig. 1 is enterprise instant communication system structural representation corresponding to synchronous method of the present invention;
Fig. 2 creates personal monotonic sequence queue schematic flow sheet for the present invention;
Fig. 3 is message upflow schematic diagram in the present invention;
Fig. 4 is message downstream schematic flow sheet in the present invention.
Embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention
Premised on implemented, give detailed embodiment and specific operating process, but protection scope of the present invention is not limited to
Following embodiments.
As shown in figure 1, the present embodiment provides a kind of mobile terminal instant messaging signal synchronization based on global monotonic sequence number
Method, run in enterprise instant communication system as shown in Figure 1, the enterprise instant communication system includes mobile device client
4 and server, the server include connection server 3, Message Processing center 2 and storage device 1, mobile device client 4
Provided with multiple, the corresponding group member of a mobile device client.The synchronous method realizes group in enterprise instant communication system
The synchronization of instant communication information between group membership, including:The establishment step of group member individual's monotonic sequence queue;Group's composition
Member sends the step of instant communication information;And other group members personal monotonic sequence queue synchronization corresponding to receives
The step of instant communication information.
Below by taking the group chatting of 10 people as an example, specifically retouched with reference to Fig. 2, less than 3,4 pairs synchronization message controls
State:
In S101 steps, enterprise instant communication software I OS version clients are used in company personnel Jack;
In S102 steps, the invitation that Jack receives company personnel Andy adds a group Group;
In S103 steps, the event that Jack adds Group gives notice message center by other role servers;
In S104 steps, message center obtains the public message queue of Group group from storage device and determines the team
Maximum message number in row;
In S105 steps, message center is attempted to obtain Jack personal monotonic sequence queue from storage device;
In S106 steps, with reference to S105 steps, message center can differentiate whether the personal queue for obtaining Jack succeeds, such as
The unsuccessful message center of fruit can create Jack personal monotonic sequence queue;
In S107 steps, message center can be global monotonic sequence number of the Jack generations for Group group;
In S108 steps, with reference to S104 steps, Group maximum messages number that message center will can obtain in S104 steps
It is combined with the global monotonic sequence number generated in S107 steps, generates personal queue data, and the individual's list stored to Jack
In sequencing row number queue;
In S109 steps, message center can be by the Jack personal monotonic sequence queue updated by above step
Again store in irrelevant type storage device.
As shown in figure 3, Jack can send message after adding Group group to the member of other in group, it is specially:
In S201 steps, Jack just makes a call after just having added Group group with everybody, have sent " a hello
every one!" chat messages;
In S202 steps, Jack this chat messages have been sent to connection server by IOS version clients;
In S203 steps, Jack this chat messages are forwarded to message center by connection server again;
In S204 steps, after message center receives the chat messages that connection server forwarding comes, Jack can be first verified
Equipment state it is whether normal, if abnormal (such as message repeats to send, and device data is abnormal etc.) can inform connection clothes
The corresponding error code of business device (such as 101 expression message repeat to send, and 102 represent device datas exception etc.), then taken by connecting
Business device forwards to the IOS clients that Jack is used;
In S205 steps, with reference to S204 steps, if message center verification Jack data are normal, can be
Jack this chat messages generate complete message flow data, including generate new the message number, (transmission of Jack equipment state
The data of person) etc., make " hello every one!" such chat messages are labeled, so as to each role server and
Client can be handled it;
In S206 steps, with reference to S205 steps, such a piece of news data Cun Chudao that message center will can have been integrated
In public message queue of the Group group in irrelevant type storage device;
In S207 steps, with reference to S206 steps, as " hello every one that Jack is sent!" message is irrelevant
After being preserved successfully in type storage device, message center can by connection server notify Group group other group members Andy,
Elena, Allen et al., Group group someone where them have said that (any type of chat messages include word, language to sentence
Sound, picture etc. all can be notified so).
The process of following synchronous group message is described in detail using Fig. 4 to show by taking the Elena in Group group as an example,
It is identical with Elena that other members in group are connected to the Synchronization Control after the message arrival notice of message center.
In S301 steps, with reference to S207 steps, Elena mobile client receives message arrival notice;
In S302 steps, with reference to S301 steps, client can ask the chat of synchronous Group group to disappear to connection server
Breath;
In S303 steps, Elena synchronization request is forwarded to message center by connection server;
In S304 steps, message center can perform the process consistent with step S204 and carry out school to Elena client
Test;
In S305 steps, message center can obtain Group public message queue from irrelevant type storage device;
In S306 steps, message center can obtain Elena personal monotonic sequence number from irrelevant type storage device
Queue;
In S307 steps, message center can obtain the number on Group group in Elena personal monotonic sequence queue
According to obtaining the message number of monotonic sequence number and corresponding Group group;
In S308 steps, with reference to S305, S307 step, message center can contrast the message in Elena personal queue
Number and Group group's public message queue message number;
In S309 steps, with reference to S308 steps, if message center finds that the message number of Elena personal queues is less than
The maximum message number of Group public message queues, illustrate there has been new message data generation, otherwise illustrate no new message
Data generate, then terminate this synchronization request;
In S310 steps, with reference to S309 steps, if message center is determined with new message data generation, message center
" the hello every one that Jack can be sent!" this message data is sent to Elena mobile visitor by connection server
Family end;
In S311 steps, with reference to S310 steps, message data has had transmitted to Elena mobile client, message
Center can update the data on Group group in Elena people's monotonic sequence queue, can increase monotonic sequence number certainly, and will
Maximum message number is corresponding with new monotonic sequence number in Group group's public message queue, the personal monotonic sequence of storage to Elena
In number queue, then the queue stored in irrelevant type storage device again;
In S312 steps, Elena mobile client receives what message center push came by connection server
After message data, handle message data and shown in chat window, Elena will be in the group chat skylight opening of mobile terminal
See " hello every one that Jack is said!”.
Claims (7)
- A kind of 1. mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number, it is characterised in that the synchronization side Method is run in the enterprise instant communication system being made up of mobile device client and server, and the server includes connection and taken Business device, Message Processing center and storage device, the corresponding group member of a mobile device client, the synchronous method realize enterprise The synchronization of instant communication information in industry instant communicating system between group member, including:The establishment step of group member individual's monotonic sequence queue;Group member sends the step of instant communication information;Other group members are corresponding to the step of the personal monotonic sequence queue synchronization reception instant communication information;The establishment step of the group member individual monotonic sequence queue performs when a group member adds group, specifically For:After 1a) Message Processing center obtains addition group message, the public message queue of the group in storage device is read most Big message number;1b) judge personal monotonic sequence queue corresponding with the group member newly added whether is preserved in storage device, if It is then to call the personal monotonic sequence queue, performs step 1c), if it is not, then generation and of the group member of the new addition People's monotonic sequence queue, perform step 1c);1c) Message Processing is centrally generated the global monotonic sequence number of the group member that newly adds relative to group;1d) Message Processing center is by step 1a) in the maximum message number that obtains and step 1c) in the global monotonic sequence number that generates Be combined, generate personal queue data, add step 1b) obtain personal monotonic sequence queue in;1e) storage device preserves the personal monotonic sequence queue after renewal.
- 2. the mobile terminal instant messaging signal synchronizing method according to claim 1 based on global monotonic sequence number, it is special The step of sign is, the group member sends instant communication information be specially:After 2a) connection server receives the instant communication information that a group member is sent by mobile device client, The instant communication information is forwarded to Message Processing center;2b) Message Processing center judges whether the state of received instant communication information is normal, if so, then performing step 2c), if it is not, error code corresponding to then generating, feeds back to mobile device client, return to step 2a by connection server);2c) Message Processing center carries out integration sign to the instant communication information received, generates message data, is saved into storage In the public message queue of equipment.
- 3. the mobile terminal instant messaging signal synchronizing method according to claim 2 based on global monotonic sequence number, it is special Sign is that the state of the instant communication information includes message and sends state and send the mobile device status of message.
- 4. the mobile terminal instant messaging signal synchronizing method according to claim 3 based on global monotonic sequence number, it is special Sign is, the step 2c) in, the instant communication information received is carried out integrating sign be specially:New information number is generated, will New information number sends the mobile device status of message, the instant communication information received combination.
- 5. the mobile terminal instant messaging signal synchronizing method according to claim 1 based on global monotonic sequence number, it is special Sign is that other described group members personal monotonic sequence queue synchronization corresponding to receives the instant communication information Step is specially:3a) Message Processing sends the notice for receiving new information centrally through connection server to other group members;3b) other group members send message synchronization to connection server by mobile device client and asked;3c) message synchronization received request is forwarded to Message Processing center by connection server;3d) whether the mobile device client of Message Processing central authentication transmission message synchronization request is normal, if so, then performing step Rapid 3e), if it is not, then sending corresponding error code to mobile device client, return to step 3b);3e) read the public message queue of group in storage device and send the personal dull of the group member that message synchronization is asked Sequence number queue;3f) maximum message number of public message queue and the pass preserved in personal monotonic sequence queue are compared in Message Processing center In the maximum message number of the group, judge whether the former is more than the latter, if so, then performing step 3g), if it is not, then terminating this Synchronization request;3g) Message Processing center by new message data by connection server be sent to send message synchronization ask movement set Standby client;3h) mobile device client shows new message data, and updates the personal monotonic sequence queue of corresponding group member.
- 6. the mobile terminal instant messaging signal synchronizing method according to claim 5 based on global monotonic sequence number, it is special Sign is, the step 3h) in, the personal monotonic sequence queue for updating corresponding group member is specially:It is global dull from increasing Sequence number, and the maximum message number in public message queue is corresponding, store again in storage device.
- 7. according to any described mobile terminal instant messaging signal synchronization sides based on global monotonic sequence number of claim 1-6 Method, it is characterised in that the storage device is irrelevant type storage device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510189758.9A CN104901865B (en) | 2015-04-20 | 2015-04-20 | A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510189758.9A CN104901865B (en) | 2015-04-20 | 2015-04-20 | A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104901865A CN104901865A (en) | 2015-09-09 |
CN104901865B true CN104901865B (en) | 2017-11-21 |
Family
ID=54034268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510189758.9A Expired - Fee Related CN104901865B (en) | 2015-04-20 | 2015-04-20 | A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104901865B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109617949A (en) * | 2018-11-21 | 2019-04-12 | 金瓜子科技发展(北京)有限公司 | A kind of message synchronization method, apparatus, storage medium and electronic equipment |
CN111431790B (en) * | 2019-01-09 | 2022-02-08 | 腾讯科技(深圳)有限公司 | Instant messaging method, device, system and storage medium |
CN111083037B (en) * | 2019-10-22 | 2022-02-01 | 贝壳技术有限公司 | Method, device, medium and electronic equipment for realizing instant messaging |
CN116800704A (en) * | 2022-03-17 | 2023-09-22 | 腾讯科技(深圳)有限公司 | Instant messaging method, device and equipment based on group chat and readable storage medium |
CN115842691B (en) * | 2023-02-21 | 2023-05-23 | 北京友友天宇系统技术有限公司 | Message sequence assurance method, device and equipment for distributed group communication |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102136919A (en) * | 2010-09-01 | 2011-07-27 | 华为技术有限公司 | Group session realization method and device |
CN102137045A (en) * | 2011-04-26 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for implementing group information interaction on community platform |
CN102164099A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based group information interaction realization method and system |
-
2015
- 2015-04-20 CN CN201510189758.9A patent/CN104901865B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102136919A (en) * | 2010-09-01 | 2011-07-27 | 华为技术有限公司 | Group session realization method and device |
CN102137045A (en) * | 2011-04-26 | 2011-07-27 | 苏州阔地网络科技有限公司 | Method and system for implementing group information interaction on community platform |
CN102164099A (en) * | 2011-04-26 | 2011-08-24 | 苏州阔地网络科技有限公司 | Webpage-based group information interaction realization method and system |
Also Published As
Publication number | Publication date |
---|---|
CN104901865A (en) | 2015-09-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104901865B (en) | A kind of mobile terminal instant messaging signal synchronizing method based on global monotonic sequence number | |
US8930479B2 (en) | Processing cellular telephone subscription for E-mail threads | |
US10834031B2 (en) | Information exchange method, client, and apparatus | |
JP5246332B2 (en) | Enhanced messaging platform | |
US7447996B1 (en) | System for using gender analysis of names to assign avatars in instant messaging applications | |
JP4740328B2 (en) | Messenger notification system and method using sink server | |
US8849322B2 (en) | Systems and methods for sharing threaded conversations on mobile communications devices | |
US8499050B2 (en) | Method, apparatus, and system for automatically replying to mail | |
CN102347916B (en) | A kind of gateway, across community group information processing system and method | |
CN103326929B (en) | Method and device for transmitting messages | |
CN101710881A (en) | Method and system for realizing private messages in chat room | |
CN102307159A (en) | Method and apparatus for efficient resending of messages using message id | |
CN107734076A (en) | Information push method, device and storage medium | |
US20140143202A1 (en) | Regulated Texting Solution for Mobile Devices | |
CN102958107A (en) | Capability query method, communication terminal and application server | |
US20070239830A1 (en) | Method and apparatus for instant message notification and forwarding | |
CN101110789B (en) | Method for sending instant message in instant message system | |
CN105553818B (en) | A kind of system and method that electronic bulletin is realized based on XMPP protocol | |
US8171416B2 (en) | Confirmation system and method for instant messaging | |
US20090150506A1 (en) | System, method and device for implementing email notification | |
CN102255897A (en) | IM (Instant Message) system and instant communication method based on WAP (Wireless Application Protocol) technology | |
CN101137094B (en) | Electronic mail notifying method and device and system | |
CN102611639A (en) | System for sending instant message report in instant message system | |
CN109714243A (en) | A kind of group chat exchange method and device | |
US20120297004A1 (en) | messaging system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210311 Address after: Inside qingzhihua garden, 377 Century Avenue, Nantong City, Jiangsu Province, 226000 Patentee after: Nantong Aimu Network Technology Co.,Ltd. Address before: 200436 room 505, no.250, JIANGCHANG Third Road, Zhabei District, Shanghai Patentee before: SHANGHAI YUNMU NETWORK TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171121 |
|
CF01 | Termination of patent right due to non-payment of annual fee |