Movatterモバイル変換


[0]ホーム

URL:


CN108848024A - message synchronization method, system and device - Google Patents

message synchronization method, system and device
Download PDF

Info

Publication number
CN108848024A
CN108848024ACN201810823155.3ACN201810823155ACN108848024ACN 108848024 ACN108848024 ACN 108848024ACN 201810823155 ACN201810823155 ACN 201810823155ACN 108848024 ACN108848024 ACN 108848024A
Authority
CN
China
Prior art keywords
message
sequence number
message sequence
synchronization
sent
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
CN201810823155.3A
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.)
Shenzhen Bit Bear Technology Co Ltd
Original Assignee
Shenzhen Bit Bear 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 Shenzhen Bit Bear Technology Co LtdfiledCriticalShenzhen Bit Bear Technology Co Ltd
Priority to CN201810823155.3ApriorityCriticalpatent/CN108848024A/en
Publication of CN108848024ApublicationCriticalpatent/CN108848024A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention is suitable for message synchronization technical field, provides a kind of message synchronization method, the method includes:A, synchronization request is received, newest first message sequence number is sent to terminal side;B, terminal side is by locally-stored newest second message sequence number and the comparative analysis of first message sequence number;C, according to the comparing result of first message sequence number and second message sequence number, synchronization message content is sent.The present invention provides a kind of message synchronization system, device accordingly.Whereby, the present invention can preferably realize message synchronization.

Description

Message synchronization method, system and device
Technical field
The present invention relates to message synchronization technical field more particularly to a kind of message synchronization method, system and device.
Background technique
Instant messaging (Instant Message) is a kind of real-time communication service for allowing user to establish connection by network.With the rapid development of mobile Internet, the outburst of the various terminals such as mobile phone, tablet computer, smart television, the mode that user links upGradually tend to multiple terminals, and when user switches between multiple terminals, needs to keep the consistent experience of instant messaging application.
Currently, the message sink at different ends may be implemented in existing message push mode, it is in user while logs in handWhen generator terminal and computer end, while message can be pushed to computer, it is pushed to mobile phone terminal.But it is multiple in face of mobile InternetMiscellaneous network traffic conditions, the message for being pushed to mobile terminal can not be often sent to, and in the case where mass users scale,Storage push failed message can consume a large amount of storage resource, largely push again to also seriously consuming server resource.
In summary, the existing technology has inconveniences and defects in actual use, so it is necessary to be improved.
Summary of the invention
It, can be with the purpose of the present invention is to provide a kind of message synchronization method, system and device for above-mentioned defectBetter synchronization message.
To achieve the goals above, the present invention provides a kind of message synchronization method, the method includes:
A, synchronization request is received, newest first message sequence number is sent to terminal side;
B, terminal side is by locally-stored newest second message sequence number and the comparative analysis of first message sequence number;
C, according to the comparing result of first message sequence number and second message sequence number, synchronization message content is sent.
Message synchronization method according to the present invention, step A further include before:The generation strategy of presetting message sequence number.
Message synchronization method according to the present invention, the generation strategy of the message SN are specially:By message send orReceiving time setting incremented by successively.
Message synchronization method according to the present invention, the step C include:
If second message sequence number is less than first message sequence number, synchronous message synchronization will be needed to corresponding terminalSide.
The present invention also provides a kind of message synchronization systems, including:
Newest first message sequence number is sent to terminal side for receiving synchronization request by transmission unit;
Comparing unit, for dividing locally-stored newest second message sequence number compared with first message sequence numberAnalysis;
Synchronous processing unit, according to the comparing result of first message sequence number and second message sequence number, transmission, which synchronizes, to disappearCease content.
Message synchronization system according to the present invention further includes
Setting unit, the generation strategy for presetting message sequence number.
Message synchronization system according to the present invention, the setting unit send or receive the time by message and incremented by successively setIt sets.
Message synchronization system according to the present invention, if second message sequence number is less than first message sequence number, it is synchronous atManaging unit needs synchronous message synchronization to corresponding terminal side.
The present invention also provides a kind of synchronizing devices including system as described above.
The present invention sends newest first message sequence number after synchronization request by setting transmission unit, for receivingTo terminal side;And locally-stored newest second message sequence number is divided compared with first message sequence number by comparing unitAnalysis;Synchronous processing unit is sent in synchronization message according to the comparing result of first message sequence number and second message sequence numberHold.If second message sequence number is less than first message sequence number, synchronous message synchronization will be needed to corresponding terminal side.It borrowsThis, can better synchronization message.
Detailed description of the invention
Fig. 1 is message synchronization method flow diagram of the invention;
Fig. 2 is message synchronization system construction drawing of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, rightThe present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, andIt is not used in the restriction present invention.
Referring to Fig. 1, a kind of message synchronization system of the present invention, message when logging in multiple terminals applied to same user is sameStep mechanism, the synchronization system 100 include:
Newest first message sequence number is sent to terminal side after synchronization request for receiving by transmission unit 10.Specifically, when a certain user logs in multiple terminals by an application, due to terminal itself or communication, message difference can be generatedThe case where step.To solve this problem, a preset setting unit 40 in system 100, the generation plan for presetting message sequence numberSlightly, time setting incremented by successively specially is sent or received by message.
Comparing unit 20, for dividing locally-stored newest second message sequence number compared with first message sequence numberAnalysis.There is the latest sequence number of each message terminal side, since message SN has stringent incremental order, ifIf first message sequence number cannot be matched with second message sequence number, description messages are not carried out synchronization, and by comparing resultIt is sent to the processing of synchronous processing unit 30.
Synchronous processing unit 30 sends and synchronizes according to the comparing result of first message sequence number and second message sequence numberMessage content.Synchronous processing unit 30 can obtain corresponding according to the difference of first message sequence number and second message sequence numberThe message content of terminal side missing, and corresponding terminal side is sent it to, terminal side while update message sequence number.
Usually, if not synchronizing, second message sequence number can be less than first message sequence number, can according to this kind comparisonConveniently to obtain non-synchronizing information, and sends it to terminal and complete to synchronize.
The present invention also provides a kind of synchronizing devices including above system 100, can correspond to message server.
Referring to fig. 2, the present invention accordingly provides a kind of message synchronization method, can be real by system 100 as shown in Figure 1Existing, this method includes:
Newest first message sequence number is sent to terminal side after receiving synchronization request by step S201.Specifically, a certainWhen user logs in multiple terminals by an application, due to terminal itself or communication, the nonsynchronous feelings of message can be generatedCondition.To solve this problem, a preset setting unit 40 in system 100, for the generation strategy of presetting message sequence number, specificallyTo send or receive time setting incremented by successively by message.
Step S202, by locally-stored newest second message sequence number and the comparative analysis of first message sequence number.EventuallyThere is the latest sequence number of each message end side, since message SN has stringent incremental order, if first disappearsIf breath sequence number cannot be matched with second message sequence number, description messages are not carried out synchronization, and comparing result is sent toThe processing of synchronous processing unit 30.The comparison of the step can be realized by terminal side, can also be realized by service side.
Step S203, the comparing result of first message sequence number and second message sequence number send synchronization message content.TogetherCorresponding terminal side missing can be obtained according to the difference of first message sequence number and second message sequence number by walking processing unit 30Message content, and corresponding terminal side is sent it to, terminal side while update message sequence number.
Usually, if not synchronizing, second message sequence number can be less than first message sequence number, can according to this kind comparisonConveniently to obtain non-synchronizing information, and sends it to terminal and complete to synchronize.
In conclusion the present invention is by setting transmission unit, for receiving newest first message after synchronization requestSequence number is sent to terminal side;And by comparing unit by locally-stored newest second message sequence number and first message sequenceRow number comparative analysis;Synchronous processing unit is sent same according to the comparing result of first message sequence number and second message sequence numberWalk message content.If second message sequence number is less than first message sequence number, synchronous message synchronization will be needed to correspondingTerminal side.It whereby, can better synchronization message.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripeIt knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present inventionShape all should fall within the scope of protection of the appended claims of the present invention.

Claims (9)

CN201810823155.3A2018-07-252018-07-25message synchronization method, system and devicePendingCN108848024A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810823155.3ACN108848024A (en)2018-07-252018-07-25message synchronization method, system and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810823155.3ACN108848024A (en)2018-07-252018-07-25message synchronization method, system and device

Publications (1)

Publication NumberPublication Date
CN108848024Atrue CN108848024A (en)2018-11-20

Family

ID=64192145

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810823155.3APendingCN108848024A (en)2018-07-252018-07-25message synchronization method, system and device

Country Status (1)

CountryLink
CN (1)CN108848024A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113965580A (en)*2020-06-292022-01-21北京字节跳动网络技术有限公司 Method and apparatus for synchronizing messages

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080270629A1 (en)*2007-04-272008-10-30Yahoo! Inc.Data snychronization and device handling using sequence numbers
CN102571990A (en)*2012-03-162012-07-11北京彩云荣光软件有限公司E-mail synchronization method and system for mobile terminal
CN104168335A (en)*2014-09-022014-11-26东软熙康健康科技有限公司Data synchronization method and device
CN104618498A (en)*2015-02-132015-05-13深圳市创梦天地科技有限公司Data resource synchronizing method and server
CN106453639A (en)*2016-11-252017-02-22深圳市小满科技有限公司Message synchronization method and message synchronization device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20080270629A1 (en)*2007-04-272008-10-30Yahoo! Inc.Data snychronization and device handling using sequence numbers
CN102571990A (en)*2012-03-162012-07-11北京彩云荣光软件有限公司E-mail synchronization method and system for mobile terminal
CN104168335A (en)*2014-09-022014-11-26东软熙康健康科技有限公司Data synchronization method and device
CN104618498A (en)*2015-02-132015-05-13深圳市创梦天地科技有限公司Data resource synchronizing method and server
CN106453639A (en)*2016-11-252017-02-22深圳市小满科技有限公司Message synchronization method and message synchronization device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113965580A (en)*2020-06-292022-01-21北京字节跳动网络技术有限公司 Method and apparatus for synchronizing messages

Similar Documents

PublicationPublication DateTitle
CN107295080B (en) Data storage method and server applied to distributed server cluster
CN107919971B (en)Method, apparatus and system for audio/video communication connection disaster tolerance
JP5430744B2 (en) System and method for real-time performance and load statistics of a communication system
CN103442042B (en)Incremental data synchronization method and system
CN103354560B (en)Method and system for data decomposition and synchronization
CN111901341B (en)State synchronization method and device
CN104954492A (en)Instant messaging method, distribution server, user terminals and instant messaging system
CN112839067B (en)Data synchronization method and device
CN110753005A (en)Speed limiting method, device and system, electronic equipment and computer readable storage medium
WO2024006633A1 (en)Distributed unit timing synchronization
PH12020551765A1 (en)Methods and systems for booking resources and access management of booked resources
CN109962967A (en)The method of data synchronization subscribed to based on increment
CN104954101A (en)Multi-terminal data synchronization method based on ACK synchronization
CN108848024A (en)message synchronization method, system and device
EP3573418A3 (en)Method of establishing ultra-reliable transmission and user equipment and server using the same
CN108718274A (en)A kind of anti-loss method of instant communication information
CN111343220A (en)Transponder, distributed file transmission method, system, medium and electronic equipment
CN108307416A (en)A kind of internet-of-things terminal management method
CN110585724B (en)Method and device for updating form data in game client
US12200645B2 (en)Distributed unit timing synchronization
CN113872994A (en)Organization architecture synchronization method, device, computer equipment and storage medium
CN117014422A (en)Data processing method, device, computer equipment and storage medium
US20250267605A1 (en)Method and apparatus for processing clock skew, computer-readable medium, and electronic device
CN110995605B (en)Message synchronization method, system and communication equipment
CN111866194B (en)Cloud remote cooperative office data protection system and method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20181120

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp