CN104283926B - A kind of method of data synchronization, device and server - Google Patents

A kind of method of data synchronization, device and server Download PDF

Info

Publication number
CN104283926B
CN104283926B CN201310288024.7A CN201310288024A CN104283926B CN 104283926 B CN104283926 B CN 104283926B CN 201310288024 A CN201310288024 A CN 201310288024A CN 104283926 B CN104283926 B CN 104283926B
Authority
CN
China
Prior art keywords
client
communications account
associated data
information
request
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.)
Active
Application number
CN201310288024.7A
Other languages
Chinese (zh)
Other versions
CN104283926A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310288024.7A priority Critical patent/CN104283926B/en
Priority to PCT/CN2014/081865 priority patent/WO2015003628A1/en
Priority to TW103123672A priority patent/TWI535327B/en
Publication of CN104283926A publication Critical patent/CN104283926A/en
Priority to HK15102234.5A priority patent/HK1202003A1/en
Application granted granted Critical
Publication of CN104283926B publication Critical patent/CN104283926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of method of data synchronization, device and server, method therein can include: when corresponding first client of communications account is updated operation to the associated data of the communications account, obtain the more new information of the associated data;It searches that the communications account is corresponding in addition to first client, and is in the second client of connected state;By the update synchronizing information of the associated data to second client, so that more new information of second client according to the associated data, shows the updated associated data.The invention can ensure that showing the consistency of data between the corresponding each client of same communications account, the intelligence of client is promoted, the usage experience of user is promoted.

Description

A kind of method of data synchronization, device and server
Technical field
The present invention relates to Internet technical fields, and in particular to data synchronization technology field more particularly to a kind of data are same One step process, device and server.
Background technique
With the development of internet technology, the case where same communications account may be implemented in multiple client while operate, example Such as: same instant messaging account can be simultaneously in cell phone client and PC(Personal Computer, personal computer) client It is logged in, and carries out information exchange using cell phone client and pc client and other instant messaging accounts.However, existing In technology, the data between the corresponding multiple client of same communications account can not synchronize in time, according to above-mentioned example: mobile phone visitor When family end is updated operation to the associated data of instant messaging account (such as: subscriber data data), pc client can not be same Step shows the associated data of updated instant messaging account, to influence the one of cell phone client and pc client display data Cause property, reduces the intelligence of client, affects the usage experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization, device and server, it is ensured that same communications account is corresponding Each client between show the consistency of data, promote the intelligence of client, promote the usage experience of user.
First aspect present invention provides a kind of method of data synchronization, it may include:
When corresponding first client of communications account is updated operation to the associated data of the communications account, obtain The more new information of the associated data;
It searches that the communications account is corresponding in addition to first client, and is in the second client of connected state;
By the update synchronizing information of the associated data to second client, so that second client is according to institute The more new information of associated data is stated, shows the updated associated data.
Second aspect of the present invention provides a kind of data synchronization unit, it may include:
Data obtaining module, for when corresponding first client of communications account to the associated data of the communications account into When row updates operation, the more new information of the associated data is obtained;
Searching module, it is corresponding in addition to first client for searching the communications account, and it is in connected state The second client;
Synchronization module, for by the update synchronizing information of the associated data to second client, so that described Two clients show the updated associated data according to the more new information of the associated data.
Third aspect present invention provides a kind of server, it may include the data synchronization unit that above-mentioned second aspect provides.
The implementation of the embodiments of the present invention has the following beneficial effects:
In the embodiment of the present invention, when associated data of corresponding first client of communications account to the communications account carries out When updating operation, the update synchronizing information of the associated data is in addition to the first client to the communications account is corresponding Second client of connected state can make second client synchronization show the updated associated data, ensure that The consistency that data are shown between one client and the second client improves the intelligence of client, to improve user Usage experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of method of data synchronization provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another method of data synchronization provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another method of data synchronization provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of data synchronization unit provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another data synchronization unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another data synchronization unit provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of searching module provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In the embodiment of the present invention, client can be terminal device, such as: PC, PAD(tablet computer), mobile phone, intelligent hand The equipment such as machine, laptop.Client may be the client modules in terminal device, such as: instant communication client, SNS(Social Networking Services, social network services) client etc..Communications account can be Instant Messenger Account, cell-phone number, email account etc. are believed, for identifying only one communication user.The corresponding client of communications account refers to logical Believe the login client of account, i.e. communications account logs on to communication system by the corresponding client of the communications account.
In the embodiment of the present invention, corresponding first client of communications account can log on to communication system institute for communications account Any one client used.Corresponding second client of communications account can log on to communication system by communications account and use At least one client in, any one client in addition to the first client.Client is in connected state, shows client Connection status is kept with data synchronization unit, the corresponding User Status of client can show as presence, stealthy shape at this time State, leave state;Client is not in connected state, may include log off state and dormant state, shows that client is same with data Step device does not keep connection status, and the corresponding User Status of client can show as off-line state at this time.Unless otherwise indicated, In subsequent embodiment of the present invention, client is illustrated by taking instant communication client as an example.
Below in conjunction with attached drawing 1- attached drawing 3, describe in detail to method of data synchronization provided in an embodiment of the present invention.
It referring to Figure 1, is a kind of flow chart of method of data synchronization provided in an embodiment of the present invention;This method may include with Lower step S101- step S103.
S101, when corresponding first client of communications account is updated operation to the associated data of the communications account When, obtain the more new information of the associated data.
The associated data of the communications account can include but is not limited to: the corresponding users personal data of the communications account With customer relationship chain data;Such as: the associated data of instant messaging account can include but is not limited to: instant communication users it is close Title, individualized signature, the users personal datas such as the mark of instant messaging group of addition and good friend's number of instant communication users According to good friend's data etc. in, instant messaging group.Same communications account can correspond to multiple client, such as: communications account A was both Cell phone client A can be corresponded to, and pc client B can be corresponded to, PAD client C can also be corresponded to.The corresponding use of communications account Family can be updated operation to the associated data of communications account in the corresponding any client of communications account, such as: communication account Number corresponding user of A can pass through cell phone client A and modify user's pet name etc..This step works as corresponding first client of communications account When end is updated operation to the associated data of the communications account, the more new information of the associated data of communications account is obtained;Its In, the more new packets of the associated data are included but are not limited to: the renewal time of the associated data, to the associated data into Row updates the action type of operation and the more new content of the associated data.
S102, searches that the communications account is corresponding in addition to first client, and the in connected state second visitor Family end.
According to the example in step S102, corresponding first client of communications account A is cell phone client A, communications account A Also correspond to pc client B and PAD client C;Wherein, pc client B is in connected state, and executes communications account before this step A logs off from PAD client C, and PAD client C is in not connected state;This step then searches the corresponding PC of communications account A Customer end B is as the second client.
S103, by the update synchronizing information of the associated data to second client, so that second client According to the more new information of the associated data, the updated associated data is shown.
In this step, after the update synchronizing information to second client of the associated data, second client End shows the updated associated data according to the more new information of the associated data, thus can guarantee the first client with The consistency of the associated data of the shown communications account between second client;According in step S101 and step S102 Example: after cell phone client A is updated operation to the associated data of communications account A, pc client B can simultaneous display more The associated data after new, to ensure that the consistency for showing data between cell phone client A and pc client B.It needs Illustrate, in this step, the more new information for being synchronized to the associated data of the second client is associated for the second client In the simultaneous display of data rather than the second client local data base more about the associated data of the communications account Newly, this is because it is disconnected state that the second client may be changed by connected state in synchronizing process, such as: communications account is second Client log off or the second client in a dormant state, etc. so that the second client can not receive completely More new information not can guarantee update integrality of the second client local data base about the associated data of the communications account.
Fig. 2 is referred to, for the flow chart of another method of data synchronization provided in an embodiment of the present invention;This method may include Following steps S201- step S211.
S201, when corresponding first client of communications account is updated operation to the associated data of the communications account When, obtain the more new information of the associated data.
The step S201 of the present embodiment can be found in the step S101 of embodiment illustrated in fig. 1, and this will not be repeated here.
S202, obtains the login list of the communications account, includes that the communications account is corresponding in the login list The identification information of at least one client.
In the present embodiment, server safeguards the login list of each communications account, each communications account using client into After row logs in, login record can be added in the login list of each communications account by server.One login record includes one The identification information and login time of a client.It include at least one corresponding client of the communications account in the login list The identification information at end;The identification information of one client is used for one client of unique identification.It, can be from server in this step The middle login list for obtaining the communications account, such as: communications account A passes through cell phone client A, pc client B and PAD respectively Client C is logged in, then this step can obtain the login list of communications account A, includes cell phone client A in the login list Identification information, the identification information of pc client B and the identification information of PAD client C.
S203 detects the communications account according to the identification information of at least one corresponding client of the communications account The state of at least one corresponding client.
In this step, it can detecte whether at least one corresponding client of the communications account keeps connecting with server State shows that the client is in connected state and otherwise shows this if a certain client and server keep connection status Client is in not connected state.According to example shown in step S202: can detect whether cell phone client A protects with server respectively Hold connection status, whether detection pc client B with server keeps connection status, and detection PAD client C whether with service Device keeps connection status;If detecting that cell phone client A and pc client B keep connection status with server, and PAD is objective Family end C is disconnected with server, then can be shown that cell phone client A and pc client B are in connected state, at PAD client C In not connected state.
S204 in addition to first client and is at least one corresponding client of the communications account The client of connected state is determined as the second client.
According to the example in step S203: the first client is cell phone client A, this step then can be true by pc client B It is set to the second client.
The step S202- step S204 of the present embodiment can be the specific refinement step of the step S102 of embodiment illustrated in fig. 1 Suddenly.
S205, by the update synchronizing information of the associated data to second client, so that second client According to the more new information of the associated data, the updated associated data is shown.
The step S205 of the present embodiment can be found in the step S103 of embodiment illustrated in fig. 1, and this will not be repeated here.
S206, when receiving the logging request that the corresponding any client of the communications account is sent, detection request is stepped on The client of record is recorded with the presence or absence of historical log;If testing result be it is yes, be transferred to step S207;Otherwise, it is transferred to step S210。
In this step, the client that detection request logs in is recorded with the presence or absence of historical log, that is, judges the communication Whether account is logged in using the client that request logs in for the first time, if there are history for the client of request login Login record, before showing this login, the client that the communications account has used request to log in carries out logged, institute Communications account is stated not to be logged in using the client that request logs in for the first time;If requesting the client logged in not There are historical log record, show this login before, the communications account from it is unused request log in the client into Row is logged, and the communications account is logged in using the client that request logs in for the first time.Such as: communications account A is used When cell phone client D is logged in, cell phone client D sends logging request, this step detects in the login list of communications account A With the presence or absence of the login record of cell phone client D, if testing result be it is yes, show before this login, communications account A It has used cell phone client D to carry out logged, has been transferred to step S207;Otherwise, before showing this login, communications account A is never It is logged using cell phone client D progress, it is transferred to step S210.
S207, historical log time client the last time that acquisition request logs in.
In this step, all of search request logs in list the client can be logged in from the communications account Historical log record therefrom obtains the last historical log time;According to example shown in step S206: this step can obtain hand The last historical log time of machine client D is 2013-2-1-11:00.
S208 searches the communications account according to historical log time client the last time that request logs in The more new information of associated data.
In this step, according to historical log time client the last time that request logs in, from the communications account Associated data all more new informations in, search renewal time be later than request log in client the last time history step on Record the more new information of time;According to example shown in step S207: this step is believed from all updates of the associated data of communications account A In breath, lookup renewal time is later than the more new information of 2013-2-1-11:00.
The more new information of the associated data of the communications account found is sent to the visitor that request logs in by S209 Family end;Later, terminate.
It is asked it should be noted that the more new information of the associated data of the communications account found is sent to by this step After the client for asking login, request the client logged in that can update local using the more new information received The associated data of communications account described in database.The step S207- step S209 of the present embodiment realizes the institute that request logs in State the incremental update process in the local data base of client about the associated data of the communications account.
S210 searches all updates letter of the associated data of the communications account and the associated data of the communications account Breath.
S211, by all of the associated data of the communications account found and the associated data of the communications account More new information is sent to the client that request logs in together.
It should be noted that this step is by the associated data of the communications account found and the communications account All more new informations of associated data are sent to after the client that request logs in, and request the client logged in can be with The newest associated data of the communications account is stored in local data base.The step S210- step S211 of the present embodiment is realized Request the full dose renewal process in the local data base of the client logged in about the associated data of the communications account.
Fig. 3 is referred to, is the flow chart of another method of data synchronization provided in an embodiment of the present invention;This method may include Following steps S301- step S310.
S301, when corresponding first client of communications account is updated operation to the associated data of the communications account When, obtain the more new information of the associated data.
S302, obtains the login list of the communications account, includes that the communications account is corresponding in the login list The identification information of at least one client.
S303 detects the communications account according to the identification information of at least one corresponding client of the communications account The state of at least one corresponding client.
S304 in addition to first client and is at least one corresponding client of the communications account The client of connected state is determined as the second client.
S305, by the update synchronizing information of the associated data to second client, so that second client According to the more new information of the associated data, the updated associated data is shown.
S306, when receiving the logging request that the corresponding any client of the communications account is sent, detection request is stepped on The client of record is recorded with the presence or absence of historical log;If testing result be it is yes, be transferred to step S307;Otherwise, it is transferred to step S310。
The step S301- step S306 of the present embodiment can be found in the step S201- step S206 of embodiment illustrated in fig. 2, This is not repeated.It should be noted that carrying information exploitation instruction and last time information exploitation in the present embodiment, in the logging request Time;Wherein, the information exploitation instruction, is used to indicate the client that request logs in and requests the range of information pulled, Such as: request pulls the corresponding users personal data of communications account, or request pulls the corresponding customer relationship chain of communications account Data, or request pull a certain good friend's data, etc. in the corresponding customer relationship chain of communications account.When the last time pulls Between, indicate that the client last time of request login obtains the time for the information for requesting to pull.
S307 searches the incidence number of the communications account according to information exploitation instruction and last time information exploitation time According to more new information.
In this step, from all more new informations of the associated data of the communications account, lookup renewal time is later than The secondary information exploitation time, and more new content is located at the more new information in the indicated range of information of information exploitation instruction;Example Such as: from all more new informations of the associated data of the communications account, lookup renewal time is later than information exploitation time last time, And more new content is the more new information of users personal data;Alternatively, all updates letter of the associated data from the communications account In breath, lookup renewal time is later than information exploitation time last time, and more new content is the more new information of customer relationship chain data, etc. Deng.
The more new information of the associated data of the communications account found is sent to the visitor that request logs in by S308 Family end;Later, terminate.
It is asked it should be noted that the more new information of the associated data of the communications account found is sent to by this step After the client for asking login, request the client logged in that can update local using the more new information received The associated data of communications account described in database.The step S307- step S308 of the present embodiment realizes the institute that request logs in State the incremental update process in the local data base of client about the associated data of the communications account.
S309 searches all updates letter of the associated data of the communications account and the associated data of the communications account Breath.
S310, by all of the associated data of the communications account found and the associated data of the communications account More new information is sent to the client that request logs in together.
The step S309- step S310 of the present embodiment can be found in the step S210- step S211 of embodiment illustrated in fig. 2, This is not repeated.
By the attached embodiment shown in Fig. 3 of attached drawing 1-, in the embodiment of the present invention, when corresponding first client of communications account When being updated operation to the associated data of the communications account, by the update synchronizing information of the associated data to the communication account Number corresponding the second client that connected state is in addition to the first client, can be such that second client synchronization shows more The associated data after new, ensure that the consistency for showing data between the first client and the second client, improves visitor The intelligence at family end, to improve the usage experience of user.
Below in conjunction with attached drawing 4- attached drawing 7, to a kind of structure progress of data synchronization unit provided in an embodiment of the present invention It is discussed in detail.It should be noted that the attached data synchronization unit shown in Fig. 7 of attached drawing 4-, for executing shown in Fig. 1-Fig. 3 of the present invention The method of embodiment, for ease of description, only parts related to embodiments of the present invention are shown, and particular technique details does not disclose , please refer to Fig. 1-of the present invention embodiment shown in Fig. 3.
Fig. 4 is referred to, is a kind of structural schematic diagram of data synchronization unit provided in an embodiment of the present invention;The device can wrap It includes: data obtaining module 101, searching module 102 and synchronization module 103.
Data obtaining module 101, for when corresponding first client of communications account is to the incidence number of the communications account When according to being updated operation, the more new information of the associated data is obtained.
The associated data of the communications account can include but is not limited to: the corresponding users personal data of the communications account With customer relationship chain data;Such as: the associated data of instant messaging account can include but is not limited to: instant communication users it is close Title, individualized signature, the users personal datas such as the mark of instant messaging group of addition and good friend's number of instant communication users According to good friend's data etc. in, instant messaging group.Same communications account can correspond to multiple client, such as: communications account A was both Cell phone client A can be corresponded to, and pc client B can be corresponded to, PAD client C can also be corresponded to.The corresponding use of communications account Family can be updated operation to the associated data of communications account in the corresponding any client of communications account, such as: communication account Number corresponding user of A can pass through cell phone client A and modify user's pet name etc..The data obtaining module 101 works as communications account When corresponding first client is updated operation to the associated data of the communications account, the associated data of communications account is obtained More new information;Wherein, the more new packets of the associated data are included but are not limited to: the renewal time of the associated data, right The associated data is updated the action type of operation and the more new content of the associated data.
Searching module 102, it is corresponding in addition to first client for searching the communications account, and in connection Second client of state.
According to the above-mentioned example of the present embodiment, corresponding first client of communications account A is cell phone client A, communicates account Number A also corresponds to pc client B and PAD client C;Wherein, pc client B is in connected state, and the searching module 102 carries out Communications account A logs off from PAD client C before lookup, and PAD client C is in not connected state;The searching module 102 are searched the corresponding pc client B of communications account A as the second client.
Synchronization module 103, for by the update synchronizing information of the associated data to second client so that described Second client shows the updated associated data according to the more new information of the associated data.
The synchronization module 103 is described by after the update synchronizing information of the associated data to second client Second client shows the updated associated data according to the more new information of the associated data, to can guarantee first The consistency of the associated data of the shown communications account between client and the second client;According to the upper of the present embodiment State example: after cell phone client A is updated operation to the associated data of communications account A, pc client B can simultaneous display more The associated data after new, to ensure that the consistency for showing data between cell phone client A and pc client B.It needs Illustrate, the synchronization module 103 be synchronized to the more new information of the associated data of the second client for the second client into Associated data in the simultaneous display of row associated data rather than the second client local data base about the communications account Update, this is because in synchronizing process the second client may by connected state change be disconnected state, such as: communications account exists Second client log off or the second client in a dormant state, etc. so that the second client can not receive It is complete about the update of the associated data of the communications account not can guarantee the second client local data base for whole more new information Property.
Fig. 5 is referred to, for the structural schematic diagram of another data synchronization unit provided in an embodiment of the present invention;The device can It include: data obtaining module 101, searching module 102 and synchronization module 103.Optionally, which may also include that the first login Detection module 104, time-obtaining module 105, first information searching module 106 and the first update module 107.Optionally, the dress It sets and may also include that third information searching module 108 and third update module 109.Wherein, data obtaining module 101, searching module 102 and the structure and function of synchronization module 103 can be found in the associated description of embodiment illustrated in fig. 4, this will not be repeated here.
First logs in detection module 104, receives stepping on for the corresponding any client transmission of the communications account for working as When record request, the client that detection request logs in is recorded with the presence or absence of historical log.
Described first logs in the client that the detection request of detection module 104 logs in records with the presence or absence of historical log, Judge whether the communications account is logged in using the client that request logs in for the first time, if request login is described Client is there are historical log record, and before showing this login, the communications account has used the client of request login End progress is logged, and the communications account is not logged in using the client that request logs in for the first time;If request is stepped on The client of record is there is no historical log record, and before showing this login, the communications account is stepped on from unused request The client progress of record is logged, and the communications account is logged in using the client that request logs in for the first time.Example Such as: when communications account A is logged in using cell phone client D, cell phone client D sends logging request, and described first logs in inspection The login record logged in list with the presence or absence of cell phone client D that module 104 detects communications account A is surveyed, if testing result Be it is yes, then show before this login, communications account A used cell phone client D carry out it is logged;Otherwise, show this Before login, communications account A carries out logged from unused cell phone client D.
Time-obtaining module 105, if acquisition request is stepped on for requesting the client logged in there are historical log record Historical log time client the last time of record.
In the present embodiment, server safeguards the login list of each communications account, each communications account using client into After row logs in, login record can be added in the login list of each communications account by server.One login record includes one The identification information and login time of a client.It include at least one corresponding client of the communications account in the login list The identification information at end;The identification information of one client is used for one client of unique identification.The time-obtaining module 105 can Therefrom to obtain from all historical logs record for logging in the client that search request logs in list of the communications account Take the last historical log time;According to the above-mentioned example of the present embodiment: the time-obtaining module 105 can obtain mobile phone visitor The last historical log time of family end D is 2013-2-1-11:00.
First information searching module 106, historical log time client the last time for being logged according to request, Search the more new information of the associated data of the communications account.
Historical log time client the last time that the first information searching module 106 is logged according to request, From all more new informations of the associated data of the communications account, lookup renewal time is later than the client that request logs in The more new information of the last historical log time;According to the above-mentioned example in the present embodiment: the first information searching module 106 from all more new informations of the associated data of communications account A, and lookup renewal time is later than the update of 2013-2-1-11:00 Information.
First update module 107, for the more new information of the associated data of the communications account found to be sent to Request the client logged in.
It should be noted that first update module 107 by the associated data of the communications account found more New information is sent to after the client that request logs in, and requests the client logged in can be using the update received Information updates the associated data of communications account described in local data base.In the present embodiment, the time-obtaining module 105, institute The setting for stating first information searching module 106 and first update module 107 realizes the client that request logs in Incremental update process in local data base about the associated data of the communications account.
Third information searching module 108, if being searched for requesting the client logged in there is no historical log record All more new informations of the associated data of the communications account and the associated data of the communications account.
Third update module 109, if for requesting the client logged in there is no historical log record, described in lookup All more new informations of the associated data of communications account and the associated data of the communications account.
It should be noted that the third update module 109 by the associated data of the communications account found and All more new informations of the associated data of the communications account are sent to after the client that request logs in, and request login The client can store the newest associated data of the communications account in local data base.The embodiment of the present invention third letter Breath searching module 108 and the third update module 109 realize closes in the local data base for requesting the client logged in In the full dose renewal process of the associated data of the communications account.
Fig. 6 is referred to, is the structural schematic diagram of another data synchronization unit provided in an embodiment of the present invention;The device can It include: data obtaining module 101, searching module 102 and synchronization module 103.Optionally, which may also include that third information Searching module 108 and third update module 109.Optionally, which may also include that the second login detection module 110, second is believed Cease searching module 111 and the second update module 112.Wherein, data obtaining module 101, searching module 102, synchronization module 103, The structure and function of third information searching module 108 and third update module 109 can be found in the phase of Fig. 4 and embodiment illustrated in fig. 5 Description is closed, this will not be repeated here.
Second logs in detection module 110, receives stepping on for the corresponding any client transmission of the communications account for working as When record request, the client that detection request logs in is recorded with the presence or absence of historical log.
Wherein, information exploitation instruction and last time information exploitation time are carried in the logging request.Wherein, the information is drawn Fetching is shown, is used to indicate the client that request logs in and requests the range of information pulled, such as: request pulls communications account Corresponding users personal data, perhaps request pulls the corresponding customer relationship chain data of communications account or request pulls communication A certain good friend's data, etc. in the corresponding customer relationship chain of account.The last time pulls the time, indicates the visitor that request logs in Family end last time obtains the time for the information for requesting to pull.
Second information searching module 111, if there are historical log records for requesting the client logged in, according to institute Information exploitation instruction and last time information exploitation time are stated, the more new information of the associated data of the communications account is searched.
The second information searching module 111 is searched from all more new informations of the associated data of the communications account Renewal time is later than information exploitation time last time, and more new content is located in the indicated range of information of information exploitation instruction More new information;Such as: from all more new informations of the associated data of the communications account, lookup renewal time is later than last time The information exploitation time, and more new content is the more new information of users personal data;Alternatively, from the associated data of the communications account All more new informations in, searching renewal time is later than information exploitation time last time, and more new content is customer relationship chain data More new information, etc..
Second update module 112, for the more new information of the associated data of the communications account found to be sent to Request the client logged in.
It should be noted that second update module 112 by the associated data of the communications account found more New information is sent to after the client that request logs in, and requests the client logged in can be using the update received Information updates the associated data of communications account described in local data base.The second information searching of the embodiment of the present invention module 111 It realizes in the local data base for the client that request logs in second update module 112 about the communications account Associated data incremental update process.
Fig. 7 is referred to, is the structural schematic diagram of searching module provided in an embodiment of the present invention;The searching module 102 can wrap It includes: list acquiring unit 1201, state detection unit 1202 and determination unit 1203.
List acquiring unit 1201 includes institute in the login list for obtaining the login list of the communications account State the identification information of at least one corresponding client of communications account.
In the present embodiment, server safeguards the login list of each communications account, each communications account using client into After row logs in, login record can be added in the login list of each communications account by server.One login record includes one The identification information and login time of a client.It include at least one corresponding client of the communications account in the login list The identification information at end;The identification information of one client is used for one client of unique identification.The list acquiring unit 1201 The login list of the communications account can be obtained from server, such as: communications account A passes through cell phone client A, PC respectively Customer end B and PAD client C are logged in, then the list acquiring unit 1201 can obtain the login list of communications account A, The identification information of identification information, pc client B in the login list comprising cell phone client A and the mark letter of PAD client C Breath.
State detection unit 1202, for the identification information according at least one corresponding client of the communications account, Detect the state of at least one corresponding client of the communications account.
The state detection unit 1202 can detecte at least one corresponding client of the communications account whether with clothes Device holding connection status of being engaged in shows that the client is in connected state if a certain client and server keep connection status, Otherwise, show that the client is in not connected state.According to the above-mentioned example of the present embodiment: cell phone client A can be detected respectively Whether with server keep connection status, detection pc client B whether with server keep connection status, and detection PAD visitor Family end C whether with server keep connection status;If detecting that cell phone client A and pc client B are kept with server Connection status, and PAD client C is disconnected with server, then can be shown that cell phone client A and pc client B are in company State is connect, PAD client C is in not connected state.
Determination unit 1203, for removing first client at least one corresponding client of the communications account Except end and the client in connected state is determined as the second client.
According to the above-mentioned example of the present embodiment: the first client is cell phone client A, and the determination unit 1203 can then incite somebody to action Pc client B is determined as the second client.
The description of the attached embodiment illustrated in fig. 7 of 4- through the above attached drawings, in the embodiment of the present invention, when communications account corresponding When one client is updated operation to the associated data of the communications account, extremely by the update synchronizing information of the associated data Corresponding the second client that connected state is in addition to the first client of the communications account, can make second client same Step shows the updated associated data, ensure that the consistency that data are shown between the first client and the second client, The intelligence of client is improved, to improve the usage experience of user.
The embodiment of the invention also discloses a kind of server, which may include a data synchronization unit, the data The structure and function of synchronizing device can be found in the description of the attached embodiment illustrated in fig. 7 of attached drawing 4-, and this will not be repeated here.It needs to illustrate It is that the server of the present embodiment can be applied in Fig. 1-method shown in Fig. 3.
Description through the foregoing embodiment, in the embodiment of the present invention, when corresponding first client of communications account is to described It is when the associated data of communications account is updated operation, the update synchronizing information of the associated data is corresponding to the communications account In addition to the first client be in connected state the second client, second client synchronization can be made to show updated The associated data ensure that the consistency for showing data between the first client and the second client, improve client Intelligence, to improve the usage experience of user.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (13)

1. a kind of method of data synchronization characterized by comprising
When corresponding first client of communications account is updated operation to the associated data of the communications account, described in acquisition The more new information of associated data;
It searches that the communications account is corresponding in addition to first client, and is in the second client of connected state;
By the update synchronizing information of the associated data to second client, so that second client is according to the pass Join the more new information of data, shows the updated associated data;
When receiving the logging request that the corresponding any client of the communications account is sent, the visitor of detection request login Family end is recorded with the presence or absence of historical log.
2. the method as described in claim 1, which is characterized in that the more new packets of the associated data include: the incidence number According to renewal time, the action type of operation and the more new content of the associated data are updated to the associated data.
3. method according to claim 2, which is characterized in that the lookup communications account is corresponding except first visitor Except the end of family, and it is in the second client of connected state, comprising:
The login list of the communications account is obtained, includes at least one corresponding visitor of the communications account in the login list The identification information at family end;
According to the identification information of at least one corresponding client of the communications account, it is corresponding at least to detect the communications account The state of one client;
By at least one corresponding client of the communications account, in addition to first client and it is in the visitor of connected state Family end is determined as the second client.
4. method according to claim 2, which is characterized in that further include:
If requesting the client logged in there are historical log record, described client the last time that acquisition request logs in is gone through History login time;
According to historical log time client the last time that request logs in, the associated data of the communications account is searched More new information;
The more new information of the associated data of the communications account found is sent to the client that request logs in.
5. method according to claim 2, which is characterized in that carry information exploitation instruction and last time letter in the logging request Breath pulls the time;The method also includes:
If requesting the client logged in, there are historical log records, according to information exploitation instruction and last time information exploitation Time searches the more new information of the associated data of the communications account;
The more new information of the associated data of the communications account found is sent to the client that request logs in.
6. method as described in claim 4 or 5, which is characterized in that further include:
If the client that request logs in does not have historical log record, associated data and the institute of the communications account are searched State all more new informations of the associated data of communications account;
By all more new informations of the associated data of the communications account found and the associated data of the communications account It is sent to the client that request logs in together.
7. a kind of data synchronization unit characterized by comprising
Data obtaining module, for being carried out more when associated data of corresponding first client of communications account to the communications account When new operation, the more new information of the associated data is obtained;
Searching module, the communications account is corresponding in addition to first client for searching, and the in connected state Two clients;
Synchronization module, for by the update synchronizing information of the associated data to second client, so that second visitor Family end shows the updated associated data according to the more new information of the associated data;
First, which logs in detection module/second, logs in detection module, receives the corresponding any client of the communications account for working as When holding the logging request sent, the client that detection request logs in is recorded with the presence or absence of historical log.
8. device as claimed in claim 7, which is characterized in that the more new packets of the associated data include: the incidence number According to renewal time, the action type of operation and the more new content of the associated data are updated to the associated data.
9. device as claimed in claim 8, which is characterized in that the searching module includes:
List acquiring unit includes the communication account in the login list for obtaining the login list of the communications account The identification information of number at least one corresponding client;
State detection unit, for the identification information according at least one corresponding client of the communications account, described in detection The state of at least one corresponding client of communications account;
Determination unit, for by least one corresponding client of the communications account, in addition to first client and Client in connected state is determined as the second client.
10. device as claimed in claim 8, which is characterized in that further include: time-obtaining module, if for requesting login There are historical log times client the last time that historical log record, acquisition request log in for the client;
First information searching module, searches institute at historical log time client the last time for logging according to request State the more new information of the associated data of communications account;
First update module is logged in for the more new information of the associated data of the communications account found to be sent to request The client.
11. device as claimed in claim 8, which is characterized in that carry information exploitation instruction and last time in the logging request The information exploitation time;Described device further include:
Second information searching module, if there are historical log records for requesting the client logged in, according to the information Instruction and information exploitation time last time are pulled, the more new information of the associated data of the communications account is searched;
Second update module is logged in for the more new information of the associated data of the communications account found to be sent to request The client.
12. device as described in claim 10 or 11, which is characterized in that further include:
Third information searching module, if being searched described logical for requesting the client logged in there is no historical log record Believe all more new informations of the associated data of account and the associated data of the communications account;
Third update module, if searching the communication account for requesting the client logged in there is no historical log record Number associated data and the communications account associated data all more new informations.
13. a kind of server, which is characterized in that including such as described in any item data synchronization units of claim 7-12.
CN201310288024.7A 2013-07-10 2013-07-10 A kind of method of data synchronization, device and server Active CN104283926B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201310288024.7A CN104283926B (en) 2013-07-10 2013-07-10 A kind of method of data synchronization, device and server
PCT/CN2014/081865 WO2015003628A1 (en) 2013-07-10 2014-07-09 Data synchronization method, apparatus, and server
TW103123672A TWI535327B (en) 2013-07-10 2014-07-09 Apparatus, server and method of data synchronization between clients of communication account
HK15102234.5A HK1202003A1 (en) 2013-07-10 2015-03-05 Data synchronization method, apparatus and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310288024.7A CN104283926B (en) 2013-07-10 2013-07-10 A kind of method of data synchronization, device and server

Publications (2)

Publication Number Publication Date
CN104283926A CN104283926A (en) 2015-01-14
CN104283926B true CN104283926B (en) 2019-01-29

Family

ID=52258402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310288024.7A Active CN104283926B (en) 2013-07-10 2013-07-10 A kind of method of data synchronization, device and server

Country Status (4)

Country Link
CN (1) CN104283926B (en)
HK (1) HK1202003A1 (en)
TW (1) TWI535327B (en)
WO (1) WO2015003628A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874316A (en) * 2015-12-14 2017-06-20 广州爱九游信息技术有限公司 A kind of methods of exhibiting of user's combined data, device and server
CN106411692A (en) * 2016-06-29 2017-02-15 宁波市由乐讯通讯科技有限公司 Improved method and system enabling information synchronization between mobile end and server end
CN106487911A (en) * 2016-10-25 2017-03-08 广东欧珀移动通信有限公司 A kind of method of data synchronization, device and system
CN106503221A (en) * 2016-10-28 2017-03-15 福建中金在线信息科技有限公司 A kind of data analysis processing method and device
CN106411718B (en) * 2016-11-04 2020-02-21 宇龙计算机通信科技(深圳)有限公司 Data synchronization method and device based on instant messaging application
CN108023940B (en) * 2017-11-20 2020-01-14 Oppo广东移动通信有限公司 Information updating method, device, server and readable storage medium
CN108075965A (en) * 2017-12-13 2018-05-25 北京小米移动软件有限公司 Message treatment method and device, electronic equipment and computer readable storage medium
CN110224924B (en) * 2019-05-21 2021-04-09 腾讯科技(深圳)有限公司 State updating method and device, storage medium and electronic device
CN112311840A (en) * 2019-08-30 2021-02-02 北京字节跳动网络技术有限公司 Multi-terminal data synchronization method, device, equipment and medium
CN110990361A (en) * 2019-12-05 2020-04-10 河南知途游道信息科技有限公司 Method and system for recording notes for others by user
CN111491210A (en) * 2020-03-25 2020-08-04 西安万像电子科技有限公司 Data processing method, device and system
CN114710509B (en) * 2022-04-14 2023-03-24 北京思必拓科技有限责任公司 Application data synchronization method, device, terminal and storage medium
CN115118735B (en) * 2022-06-08 2023-12-01 腾讯科技(深圳)有限公司 Data synchronization method, group management method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257375A (en) * 2006-12-31 2008-09-03 华为技术有限公司 Method and device for realizing multi-terminal message synchronization
CN101340274A (en) * 2008-08-21 2009-01-07 北京搜狗科技发展有限公司 Data synchronizing method and apparatus
TW200925989A (en) * 2007-12-04 2009-06-16 Inventec Corp Method to synchronize personalized information and execute personalized environment
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136519A1 (en) * 2004-12-17 2006-06-22 Anurag Batta System and method for user database synchronization
CN102130845B (en) * 2010-01-19 2016-09-28 中兴通讯股份有限公司 The sending method of return receipt report and processing system
CN103327037B (en) * 2012-03-20 2017-09-29 中兴通讯股份有限公司 Method of data synchronization and device
CN103546435A (en) * 2012-07-13 2014-01-29 中兴通讯股份有限公司 Data synchronizing method and server
CN103685361B (en) * 2012-09-06 2017-03-22 中国移动通信集团公司 Data synchronization method and system, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257375A (en) * 2006-12-31 2008-09-03 华为技术有限公司 Method and device for realizing multi-terminal message synchronization
TW200925989A (en) * 2007-12-04 2009-06-16 Inventec Corp Method to synchronize personalized information and execute personalized environment
CN101340274A (en) * 2008-08-21 2009-01-07 北京搜狗科技发展有限公司 Data synchronizing method and apparatus
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system

Also Published As

Publication number Publication date
WO2015003628A1 (en) 2015-01-15
TW201503741A (en) 2015-01-16
HK1202003A1 (en) 2015-09-11
CN104283926A (en) 2015-01-14
TWI535327B (en) 2016-05-21

Similar Documents

Publication Publication Date Title
CN104283926B (en) A kind of method of data synchronization, device and server
US9473427B2 (en) Method and system for delivering reminder information
CN103401763B (en) Method and device for receiving group message and method and device for processing group message
US9953465B2 (en) Methods and systems for creating online unified contact and communication management (CM) platform
AU2014348821B2 (en) Location-based software updates
CN115004673B (en) Message pushing method, device, electronic equipment and computer readable medium
CN103605798B (en) A kind of method for directly operating high in the clouds storage file
EP2783501A1 (en) Contact information synchronization system and method
CN104811366B (en) A kind of loaming method and device of network communication message
CN101207580B (en) System and method for adding and deleting linkman synchronously by instant communication platform and business platform
US20160043983A1 (en) Techniques for intelligent messaging for message syncing
CN104283765B (en) A kind of message display method, device and terminal device
CN104333501B (en) Contact list display method and device
CN102368746A (en) Picture information promotion method and apparatus thereof
CN105100832A (en) Multimedia resource pushing method and device
CN104796322B (en) A kind of message treatment method and its equipment
CN102769640B (en) The update method of user profile, server and system
CN103109273B (en) Method and apparatus for managing data
US9621494B2 (en) Generating instant messaging contacts for customer relationship management systems
CN108055199A (en) Support the mobile method for pushing and system that deferred information preserves
CN103188322A (en) Digital content schedule synchronizing method, digital content providing method and terminal equipment
CN102404242A (en) User information updating device, electric equipment and user information updating method
CN103036861A (en) Relationship match method, system, server-side and client-side of contacts in address book
CN104243533B (en) The method that data sharing and data syn-chronization are carried out in LAN
CN104298416B (en) The generation method and device of message are automatically replied in instant messaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1202003

Country of ref document: HK

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant