CN102377820A - User session synchronization device and user session synchronization method - Google Patents

User session synchronization device and user session synchronization method Download PDF

Info

Publication number
CN102377820A
CN102377820A CN2011103139756A CN201110313975A CN102377820A CN 102377820 A CN102377820 A CN 102377820A CN 2011103139756 A CN2011103139756 A CN 2011103139756A CN 201110313975 A CN201110313975 A CN 201110313975A CN 102377820 A CN102377820 A CN 102377820A
Authority
CN
China
Prior art keywords
user
connection
memory
processor
date
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
CN2011103139756A
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.)
Suzhou Codyy Network Technology Co Ltd
Original Assignee
Suzhou Codyy Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Codyy Network Technology Co Ltd filed Critical Suzhou Codyy Network Technology Co Ltd
Priority to CN2011103139756A priority Critical patent/CN102377820A/en
Publication of CN102377820A publication Critical patent/CN102377820A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a user session synchronization device and a user session synchronization method. The device comprises a data transceiver, a processor and a memory. The data transceiver is connected with the processor, and the memory is connected with the data transceiver and the processor. After user session synchronization operation is triggered, the memory sequentially obtains the newest connection lists of different regions from the data transceiver according to the priorities of the regions, and obtains the connection-and-user correspondence lists of the corresponding regions from the processor, and according to the priorities of the regions, the memory sequentially synchronizes and updates the connection-and-user correspondence list of each region in the processor by sequentially comparing the newest connection list and the connection-and-user correspondence list of each region.

Description

A kind of user conversation synchronizer and method
Technical field
The invention belongs to network communication field, relate in particular to a kind of user conversation synchronizer and method.
Background technology
At present, in the instant messaging process,, be easy to generate the connection data and the skimble-scamble situation of user data of operation, thereby cause overstocking a large amount of redundant datas, cause business logic processing to make mistakes because network environment is complicated.So, reduce the treatment effeciency of service logic, and influenced user experience, what is more, can cause system crash.
In addition, in traditional distributed user session synchronizing process, do not have to consider the new user data that produces, cause these loss of datas easily, thereby influence user experience.
Summary of the invention
The present invention provides a kind of user conversation synchronizer and method, to address the above problem.
The present invention provides a kind of user conversation synchronizer, comprises data collector, processor and memory.Data collector connection processing device, memory connects data collector and processor.After user conversation simultaneous operation is triggered; Memory obtains the up-to-date connection tabulation of zones of different successively from data collector according to the priority in zone; And obtain connection and user's corresponding lists of corresponding region from processor; Memory passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, successively interior each regional connection of update processing device synchronously and user's corresponding lists.
The present invention also provides a kind of user conversation method for synchronous.Said method may further comprise the steps: trigger user conversation simultaneous operation; Memory obtains zones of different successively according to the priority in zone from data collector up-to-date connection tabulation, and obtain connection and user's corresponding lists of corresponding region from processor; Memory passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, successively interior each regional connection of update processing device synchronously and user's corresponding lists.
Compared to prior art; According to user conversation synchronizer provided by the invention and method; Memory passes through successively the relatively up-to-date connection tabulation in each zone and connection and user's corresponding lists of the corresponding region in the processor according to the priority in zone, connection and user's corresponding lists in the synchronous successively update processing device.So, realized in the data collector connection and the user data in the processor synchronously, avoided overstocking of redundant data, and improved user's Experience Degree.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
The sketch map of the user conversation synchronizer that provides for preferred embodiment according to the present invention shown in Figure 1;
The flow chart of the user conversation method for synchronous that provides for preferred embodiment according to the present invention shown in Figure 2.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
The sketch map of the user conversation synchronizer that provides for preferred embodiment according to the present invention shown in Figure 1.As shown in Figure 1, the user conversation synchronizer that preferred embodiment of the present invention provides comprises data collector 10, processor 12 and memory 14..Wherein, data collector 10 receives the link information of zones of different, connection and user's corresponding lists of processor 12 storage zoness of different.Yet the present invention is not limited thereto.In other embodiment, the number of data collector and processor can be a plurality of, and the number with the zone is corresponding respectively.Particularly, a plurality of data collectors receive the link information of zones of different respectively, and different processors is stored connection and user's corresponding lists of zones of different respectively.In addition, a plurality of data collectors (corresponding to zones of different) and a processor also can be set, a data transceiver and a plurality of processor (corresponding to zones of different) perhaps are set.
In present embodiment, data collector 10 connection processing devices 12, memory 14 connects data collector 10 and processor 12.After user conversation simultaneous operation is triggered; Memory 14 obtains the up-to-date connection tabulation of zones of different successively from data collector 10 according to the priority in zone; And obtain connection and user's corresponding lists of corresponding region from processor 12; Memory 14 passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, connection and user's corresponding lists in the synchronous successively update processing device 12.In addition, when in the memory 14 synchronous update processing devices 12 when each regional connection and user's corresponding lists, memory 14 upgrades the user lists of storage inside synchronously.
The flow chart of the user conversation method for synchronous that provides for preferred embodiment according to the present invention shown in Figure 2.As shown in Figure 2, the user conversation method for synchronous that preferred embodiment of the present invention provides comprises step 101~103.Be elaborated below in conjunction with Fig. 1 and Fig. 2.
In step 101, trigger user conversation simultaneous operation.In this, the mode that triggers user conversation simultaneous operation is an example with the timing triggering mode.Particularly, the user conversation synchronizer that present embodiment provides also comprises timer, and timer connected storage 14 is used for regularly triggering user conversation simultaneous operation.Time point through the timer setting regularly starts user conversation simultaneous operation.Yet the present invention is not limited thereto.In other embodiment, the mode that triggers user conversation simultaneous operation also can be the command triggers mode, promptly controls the execution of user conversation simultaneous operation through operational order.
In step 102, memory 14 obtains zones of different successively according to the priority in zone from data collector 10 up-to-date connection tabulation, and obtain connection and user's corresponding lists of corresponding region from processor 12.Particularly, the link information of data collector 10 receptions can be distinguished according to the zone.For example, the link information of data collector 10 receptions comprises the link information of Beijing area, the link information in area, Shanghai and the link information of Suzhou District.And the zone has priority orders.For example, the priority in zone is followed successively by Beijing area, area, Shanghai, Suzhou District from high to low.In this, the link information of zones of different receives by data collector 10.Yet the present invention is not limited thereto.In other embodiment, when a plurality of data collector was set, the link information of zones of different can be received by different data collectors.
In present embodiment, the priority in zone is dynamic change.Particularly, the priority orders in zone can relatively obtain according to priority parameters, and priority parameters can be confirmed according to the connection type of zones of different again.For example, connect, revise connection when link information comprises inquiry, deletion connects and increase when connecting each regional priority argument F=m * inquiry linking number+n * modification linking number+p * deletion linking number+q * increase linking number.Wherein, m, n, p and q can be provided with for the weight that is provided with of different connections as required.So, according to the number that inquiry connects, modification connects, deletion connects and increases connection in each zone, can calculate different regional priority argument constantly.Simultaneously, confirm the priority (for example, priority argument is big more, and the priority level of corresponding region is high more) in zone according to the big I of priority argument.Because each regional link information is in the state of dynamic change, therefore, when different time trigger user conversation simultaneous operation, the priority orders in zone also can change.
In present embodiment, being followed successively by Beijing area, area, Shanghai, Suzhou District from high to low with the priority in zone is that example describes.After user conversation simultaneous operation was triggered, memory 14 obtained the up-to-date connection tabulation of Beijing area, area, Shanghai and Suzhou District current time from data collector 10 successively.Wherein, in the user conversation synchronizing process, memory 14 will be stored in the buffering area from the link information that data collector 10 receives.Simultaneously, memory 14 obtains before connection and user's corresponding lists of storage from processor 12.In this, connection is an one-to-one relationship with the user.
Then, in step 103, memory 14 passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, each regional connection and user's corresponding lists in the synchronous successively update processing device 12.Particularly,, after the data processing of a period of time, there are differences being connected of storage in the connection meeting that data collector 10 receives and the processor 12, overstock mass of redundancy data in the processor 12 thereby cause with user's corresponding data because network environment is complicated.In this, memory 14 can be with up-to-date connection and user data synchronization to processor 12 through relatively obtaining connection and user's corresponding lists in up-to-date connection tabulation and the processor 12 from data collector 10.So, realize the synchronous of data collector 10 and processor 12 internal informations.
Particularly, in present embodiment, being followed successively by Beijing area, area, Shanghai, Suzhou District from high to low with the priority in zone is that example describes.Memory 14 upgrades the information of Beijing area earlier synchronously, upgrades the regional information in Shanghai synchronously again, upgrades the information of Suzhou District at last synchronously.Below synchronous renewal process through Beijing area information be that example describes.Memory 14 is up-to-date connection tabulation and connection and user's corresponding lists of Beijing area relatively.If the pairing user of connection in the up-to-date connection tabulation of Beijing area is not present in connection and the user's corresponding lists; Then memory 14 notification processors 12 add said user and the corresponding connection that is connected to the Beijing area and user's corresponding lists; If connect with user's corresponding lists in have not with the up-to-date corresponding user of connection who is connected in tabulating then said user in the connection of memory 14 notification processors 12 deletion Beijing areas and the user's corresponding lists and corresponding connection.
For example, if the up-to-date connection tabulation of Beijing area comprises connect a, connect b, connect c and connect e, memory 14 is as shown in table 1 below from connection and user's corresponding lists of the Beijing area that processor 12 obtains.
Connect The user
Connect a User A
Connect b User B
Connect c User C
Connect d User D
Hence one can see that, has the user corresponding with being connected e in above-mentioned connection and the user's corresponding lists, and therefore, memory 14 notification processors 12 add connection e and reach and the corresponding user (for example, user E) of connection e.In addition, the user D in above-mentioned connection and the user's corresponding lists and be connected d and in the up-to-date connection tabulation of Beijing area, do not occur, therefore, 12 deletions of memory 14 notification processors connect d and user D.
In another preferred embodiment; Memory 14 is through up-to-date connection tabulation of comparing the Beijing area and connection and the user's corresponding lists of obtaining; Obtain up-to-date connection and user's corresponding lists of Beijing area; And up-to-date connection and user's corresponding lists transferred to processor 12, processor 12 upgrades according to the up-to-date connection and the user's corresponding lists that receive synchronously.
For example; If the up-to-date connection tabulation of the Beijing area that memory 14 obtains comprises connect a, connect b, connect c and connect e; Memory 14 from processor 12 obtain before connection and the user's corresponding lists of Beijing area of storage as above shown in the table 1, it is as shown in table 2 below that then memory 14 obtains up-to-date connection and user's corresponding lists of Beijing area.
Connect The user
Connect a User A
Connect b User B
Connect c User C
Connect e User E
In this, up-to-date connection and user's corresponding lists that memory 14 will obtain are transferred to processor 12, and processor 12 upgrades its canned data according to last table 2.In addition, the information synchronization of area, Shanghai and Suzhou District is upgraded has identical processing procedure, so repeat no more in this.
In addition, in present embodiment, when the up-to-date connections in synchronous each zone of memory 14 with user's corresponding data during to processor 12, memory 14 is the user list of renewal storage inside synchronously also.For example, connection and user's corresponding lists of the Beijing area that memory 14 renewals obtain are as shown in table 2, and then memory 14 can upgrade the user list (that is, user list comprises user A~C and user E) of storage inside.The information of area, Shanghai and Suzhou District also has same treatment.So, realize the synchronous of processor 12 and memory 14 interior user profile.
In sum; Preferred embodiment provides according to the present invention user conversation synchronizer and method; Memory passes through successively the relatively up-to-date connection tabulation in each zone and connection and user's corresponding lists of the corresponding region in the processor according to the priority in zone, connection and user's corresponding lists in the synchronous successively update processing device.So, realized in the data collector connection and the user data in the processor synchronously, avoided overstocking of redundant data, and improved user's Experience Degree.In addition, be stored in the link information of upgrading in the user conversation synchronizing process in the buffering area of memory, and after user conversation simultaneous operation finishes, carry out transmission process, so, avoided losing of data in the user conversation synchronizing process, improved data stability.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a user conversation synchronizer is characterized in that, comprises data collector, processor and memory, and said data collector connects said processor, and said memory connects said data collector and said processor,
After user conversation simultaneous operation is triggered; Said memory obtains the up-to-date connection tabulation of zones of different successively from said data collector according to the priority in zone; And obtain connection and user's corresponding lists of corresponding region from said processor; Said memory passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, upgrades interior each the regional connection of said processor and user's corresponding lists successively synchronously.
2. user conversation synchronizer according to claim 1; It is characterized in that; Said memory is up-to-date connection tabulation and said connection and user's corresponding lists in each zone relatively; If the pairing user of connection in the up-to-date connection tabulation is not present in said connection and the user's corresponding lists; Then said memory notifies said processor to add said user and corresponding connection thereof, if exist not with the up-to-date corresponding user of connection who is connected in the tabulation in said connection and the user's corresponding lists, then said memory notifies said processor to delete the connection of said user and correspondence thereof.
3. user conversation synchronizer according to claim 1; It is characterized in that; Said memory is up-to-date connection tabulation and said connection and user's corresponding lists in each zone relatively; Obtain up-to-date connection and user's corresponding lists, and said up-to-date connection and user's corresponding lists are transferred to said processor, said processor upgrades according to the up-to-date connection and the user's corresponding lists that receive synchronously.
4. user conversation synchronizer according to claim 1 is characterized in that, when said memory upgrades synchronously in the said processor each regional connection and user's corresponding lists, also upgrades the user list of storage inside synchronously.
5. user conversation synchronizer according to claim 1 is characterized in that, also comprises timer, and said timer connects said memory, is used for regularly triggering user conversation simultaneous operation.
6. a user conversation method for synchronous is characterized in that, may further comprise the steps:
Trigger user conversation simultaneous operation;
Memory obtains zones of different successively according to the priority in zone from data collector up-to-date connection tabulation, and obtain connection and user's corresponding lists of corresponding region from processor;
Said memory passes through successively relatively up-to-date connection tabulation and connection and user's corresponding lists in each zone according to the priority in zone, upgrades interior each the regional connection of said processor and user's corresponding lists successively synchronously.
7. user conversation method for synchronous according to claim 6 is characterized in that, when said memory upgraded synchronously in the said processor each regional connection and user's corresponding lists, said memory upgraded the user list of storage inside synchronously.
8. user conversation method for synchronous according to claim 6 is characterized in that, the mode that triggers user conversation simultaneous operation comprises command triggers mode and timing triggering mode.
9. user conversation method for synchronous according to claim 6; It is characterized in that; Said memory is up-to-date connection tabulation and said connection and user's corresponding lists in each zone relatively; If the pairing user of connection in the up-to-date connection tabulation is not present in said connection and the user's corresponding lists; Then said memory notifies said processor to add said user and corresponding connection thereof, if exist not with the up-to-date corresponding user of connection who is connected in the tabulation in said connection and the user's corresponding lists, then said memory notifies said processor to delete the connection of said user and correspondence thereof.
10. user conversation method for synchronous according to claim 6; It is characterized in that; Said memory is up-to-date connection tabulation and said connection and user's corresponding lists in each zone relatively; Obtain up-to-date connection and user's corresponding lists, and said up-to-date connection and user's corresponding lists are transferred to said processor, said processor upgrades according to the up-to-date connection and the user's corresponding lists that receive synchronously.
CN2011103139756A 2011-10-17 2011-10-17 User session synchronization device and user session synchronization method Pending CN102377820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103139756A CN102377820A (en) 2011-10-17 2011-10-17 User session synchronization device and user session synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103139756A CN102377820A (en) 2011-10-17 2011-10-17 User session synchronization device and user session synchronization method

Publications (1)

Publication Number Publication Date
CN102377820A true CN102377820A (en) 2012-03-14

Family

ID=45795771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103139756A Pending CN102377820A (en) 2011-10-17 2011-10-17 User session synchronization device and user session synchronization method

Country Status (1)

Country Link
CN (1) CN102377820A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162988A (en) * 2006-10-11 2008-04-16 中兴通讯股份有限公司 Data synchronization method of implementing uninterrupted service using main standby data section
CN101808137A (en) * 2010-03-29 2010-08-18 成都市华为赛门铁克科技有限公司 Data transmission method, device and system
CN102347915A (en) * 2011-09-27 2012-02-08 苏州阔地网络科技有限公司 User session synchronization equipment and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162988A (en) * 2006-10-11 2008-04-16 中兴通讯股份有限公司 Data synchronization method of implementing uninterrupted service using main standby data section
CN101808137A (en) * 2010-03-29 2010-08-18 成都市华为赛门铁克科技有限公司 Data transmission method, device and system
CN102347915A (en) * 2011-09-27 2012-02-08 苏州阔地网络科技有限公司 User session synchronization equipment and method

Similar Documents

Publication Publication Date Title
CN102088489B (en) Distributed data synchronizing system and method
CN107231400B (en) Data synchronization method and device
CN102202271A (en) Method, system and device for sharing schedule information of multiple mobile terminals
CN104199666A (en) Dynamic configuration method and device for application program
CN110516005A (en) A kind of distributed data base Fast synchronization system and method
JP6465937B1 (en) Distribution apparatus and distribution method
CN101673205B (en) Interface board upgrading method and system
CN101369923B (en) Method for improving cluster web service performance by using distributed hash table
CN104902444A (en) Dynamic restructuring method and system for cluster system
CN104468163A (en) Method and device for disaster tolerant network construction, and disaster tolerant network
CN102186163B (en) Data synchronizing method of multi-account address book of smart phone
CN108605300A (en) A kind of method and apparatus that NAN equipment sends sync beacon message
CN102149185B (en) Method and device for maintaining synchronous set
CN112867134B (en) Time delay configuration management system, method and base station
CN101159896B (en) Individual mobile terminal data packet downloading method
US9767023B2 (en) Method of controlling data writing to persistent storage device
CN102347915A (en) User session synchronization equipment and method
CN101631282B (en) Method for realizing dynamic advertisement
CN102377820A (en) User session synchronization device and user session synchronization method
CN102325020A (en) User session synchronization equipment and method in instant communication
CN102387194A (en) Device and method for synchronizing user session
CN102368751A (en) User session synchronization device and method thereof
CN102291332A (en) Synchronization equipment and method for realizing user session in instant communication
CN102291330A (en) Equipment and method for realizing user session synchronization during instant communication
CN102291331A (en) Equipment and method for realizing user session synchronization during instant communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120314