CN108093007A - The method and system of a kind of Fast synchronization data under low-bandwidth network - Google Patents

The method and system of a kind of Fast synchronization data under low-bandwidth network Download PDF

Info

Publication number
CN108093007A
CN108093007A CN201611037877.3A CN201611037877A CN108093007A CN 108093007 A CN108093007 A CN 108093007A CN 201611037877 A CN201611037877 A CN 201611037877A CN 108093007 A CN108093007 A CN 108093007A
Authority
CN
China
Prior art keywords
data
client
simplification
server
prompt
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
CN201611037877.3A
Other languages
Chinese (zh)
Inventor
唐轶贤
李海平
朱波
曲晓园
高宝兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aspire Digital Technologies Shenzhen Co Ltd
Original Assignee
Aspire Digital Technologies 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 Aspire Digital Technologies Shenzhen Co Ltd filed Critical Aspire Digital Technologies Shenzhen Co Ltd
Priority to CN201611037877.3A priority Critical patent/CN108093007A/en
Publication of CN108093007A publication Critical patent/CN108093007A/en
Pending legal-status Critical Current

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4594Address books, i.e. directories containing contact information about correspondents

Abstract

The method and system of a kind of Fast synchronization data under low-bandwidth network, method include:Each wall scroll address book data is respectively obtained the first simplification data based on digest algorithm, and obtains the second simplification data based on the first all simplification data and digest algorithm by S1, client;S2, client simplifies data based on all first and the second simplification data are synchronous to server-side request;S3, server-side judge whether the address list of client needs to synchronize based on the second simplification data, if it is perform S4, otherwise client are notified to terminate synchronization;S4, server-side simplify first in data and database based on client is sent first and simplify data, generate and send synchronous list to client;S5, client are based on synchronous list and server synchronization address book data.The present invention simplifies the logic for needing sync check, and reduces the data for needing synchronization, can effectively reduce server load, therefore be suitble to the rapidly and efficiently execution of the synchrodata under low-bandwidth network.

Description

The method and system of a kind of Fast synchronization data under low-bandwidth network
Technical field
The present invention relates to the Fast synchronization data under mobile internet technical field more particularly to a kind of low-bandwidth network Method and system.
Background technology
It is popularized with the development of wireless Internet technologies and smart mobile phone, user's replacement mobile terminal is more and more frequent, uses Family can also hold multiple smart mobile phones simultaneously.How user replace mobile terminal after rapidly by address list synchronization to new shifting Become urgent problem in dynamic terminal.In the prior art, typically complete address list is put on one server, so Cell-phone customer terminal (Android, IOS etc.) uses polling mode afterwards, inquires server at regular intervals, checks whether there is new edition This address list if there is new address list, is then all downloaded address list and is stored on mobile phone terminal.
Due to the development of modern society, the social networks between user increase, and user has more contact persons, in addition a side Face, for the enterprise directory of enterprise customer, there is also the situations that enterprise customer's quantity is larger.User contact's quantity is big When, in low bandwidth, full dose downloads complete address list file and easily malfunctions every time.Particularly more than the user or enterprise In the case that contact person is more, multiple mobile phone terminals while request server are affected to server, influence user experience.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provides a kind of low-bandwidth network Under Fast synchronization data method and system.
The technical solution adopted by the present invention to solve the technical problems is:Construct the Fast synchronization under a kind of low-bandwidth network The method of data, including:
Local each wall scroll address book data is respectively obtained corresponding first based on digest algorithm and simplified by S1, client Data, and obtain the second simplification data based on the first all simplification data and digest algorithm;
S2, client simplifies data based on all first and the second simplification data are synchronous to server-side request;
S3, server-side simplify second preserved in data and database based on client is sent second and simplify data judgement Whether the address list of client, which needs, synchronizes, if it is, performing step S4, otherwise, notice client terminates synchronization;
S4, server-side simplify first in data and database based on client is sent first and simplify data, and generation is simultaneously Synchronous list is sent to client, the synchronization list is made of the first simplification data and each first simplification data are carried with one Show symbol binding, the prompt, which includes representing, which needs the prompting download of downloading data to accord with, represents the upload for needing to upload data carries Show that symbol and representative need to delete the deletion prompt of data;
S5, client are based on the synchronous list, with server synchronization address book data.
In the method for Fast synchronization data of the present invention, the step S1 is specifically included:
Local each wall scroll address book data is based on mapping ruler and carries out mapping to convert respectively obtaining by S11, client Map conversion data;
S12, conversion data will each be mapped based on MD5 algorithms generation MD5 digest;
S13, each MD5 digest of generation is taken its even bit obtain as described first simplify data simplification after MD5 digest;
S14, total MD5 digest obtained based on MD5 algorithms after being ranked up to the MD5 digest after all simplification, takes its idol Numerical digit obtains described second and simplifies data.
In the method for Fast synchronization data of the present invention, the mapping ruler is:It is each by what is mapped Fixed different row is recorded in address book data, if certain a data is sky, corresponding behavior is empty, need not be into Last column is recorded in the data of row mapping in xml format.
In the method for Fast synchronization data of the present invention, the step S5 includes:
If comprising prompt is deleted in S51, synchronous list, the deletion is deleted from local address book data and is carried Show the address book data corresponding to the first bound simplification data of symbol;
If according with and/or uploading prompt comprising prompting download in S52, synchronous list, client sends synchronization request To server-side;
If S53, synchronization request need downloading data, server-side is bundled with the of prompting download symbol from database acquisition One simplifies the mapping conversion data corresponding to data;
If S54, synchronization request need to upload data, server-side sets synchrolock, transmit in analysis request with tying up The mapping conversion data uploaded corresponding to the first simplification data of prompt is determined and has been written to one by one in database;
S55, server-side update the data the second of storehouse preservation and simplify data, removal synchrolock;
The mapping conversion data of S56, server-side into client return to step S53;
The mapping conversion data that S57, client parsing receive, and according to the mapping ruler, reverse Mapping converts to obtain Address book data, and address book data is preserved to locally.
In the method for Fast synchronization data of the present invention, the create-rule of the synchronization list is:Server-side ratio Simplify first in data and database compared with client is sent first and simplify data, if some first simplification in database Data are not existed in the first simplification data of client transmission, then some first simplification data are bound with prompting download symbol; If some first simplification data that client is sent are not existed in database, in the case where system is server-side mode of priority, This some first simplify data and bound with cancellation mark, in the case where system is client first pattern, then this some first simplify data With uploading prompt binding.
In the method for Fast synchronization data of the present invention, the step S3 includes:Server-side compares client hair Whether the second simplification data preserved in the second simplification data and database sent are identical, if identical, judge client Address list needs synchronize, and perform step S4, and otherwise judging the address list of client need not synchronize, and notify client Terminate synchronous.
In the method for Fast synchronization data of the present invention, the method further includes:After client application startup Timing performs step S1-S5.
The invention also discloses a kind of system of the Fast synchronization data under low-bandwidth network, including client and service End, the client include the first data reduction module, the first interactive module, and server-side includes the second interactive module, the second number According to simplified module, database;
First data reduction module, for local each wall scroll address book data to be respectively obtained pair based on digest algorithm First answered simplifies data, and obtains the second simplification data based on the first all simplification data and digest algorithm;
Second data reduction module updates number when being changed for mapping conversion data in the database based on digest algorithm Simplify data according to first in storehouse, and update the data second in storehouse based on the first all simplification data and digest algorithm and simplify Data;
First interactive module, it is same to server-side request for simplifying data and the second simplification data based on all first It walks and data is recorded based on the second interactive module synchronous communication of synchronous list and server-side;
Second interactive module, for preserved in the second simplification data and database that are sent based on the first interactive module the Two simplification data judge whether the address list of client needs to synchronize, if it is, sent based on the first interactive module First simplifies the first simplification data in data and database, generates and sends first synchronous execution of the synchronous list to client Module notifies the first interactive module to start synchronization, otherwise, the first interactive module is notified to terminate synchronization;
Wherein, the synchronous list is made of the first simplification data and each first simplification data are tied up with a prompt It is fixed, the prompt, which includes representing, needs the prompting download of downloading data accord with, represent need the upload prompt of upload data with And represent the deletion prompt for needing to delete data.
In the system of Fast synchronization data of the present invention, the first data reduction module includes:
Conversion unit is mapped, mapping turn is carried out respectively for local each wall scroll address book data to be based on mapping ruler Change obtains mapping conversion data;
MD5 digest and simplified element are based on MD5 algorithms generation MD5 digest and right for will each map conversion data Each MD5 digest of generation takes its even bit to obtain the MD5 digest after the simplification as the described first simplification data and to institute There is the MD5 digest after simplifying based on MD5 algorithms to obtain total MD5 digest after being ranked up, its even bit is taken to obtain described second Simplify data.
In the system of Fast synchronization data of the present invention, the first interactive module include delete unit, upload and under Carrier unit, reverse Mapping conversion unit, the second interactive module include:Data capture unit and database updating block, the clothes Business end further includes synchrolock module;
Unit is deleted, when deleting prompt for being included in synchronous list, institute is deleted from local address book data State the address book data deleted corresponding to the first simplification data bound in prompt;
Upload and download unit when according with for including prompting download in synchronous list and/or upload prompt, are sent together Step is asked to server-side;
For needing downloading data in synchronization request, prompting download symbol is bundled with from database acquisition for data capture unit First simplify mapping conversion data corresponding to data, and it is single that the mapping conversion data of acquisition is back to reverse Mapping conversion Member;
Database update unit, for when synchronization request needs to upload data, triggering synchrolock module to set synchrolock Afterwards, what is transmitted in analysis request maps conversion with being bundled with the address book data uploaded corresponding to the first simplification data of prompt Data are simultaneously written in database one by one, and trigger the second simplification data that the second data reduction module updates the data storehouse preservation, Synchrolock module removal synchrolock is triggered again;
Reverse Mapping conversion unit for parsing the mapping conversion data received, and according to the mapping ruler, inversely reflects It penetrates conversion and obtains address book data, and preserve address book data to locally.
Implement the method and system of the Fast synchronization data under the low-bandwidth network of the present invention, have below beneficial to effect Fruit:The present invention is simplified the batch data in wall scroll address book data to obtain the first simplification data of wall scroll, and is based on The first all simplification data and digest algorithm obtain the second simplification data, and server-side is simplified based on second preserved in database Data can determine whether the address list of client needs to synchronize, and simplify the logic for needing sync check, reduce same walk out of Error rate;And when synchronous, accorded with by prompting download, upload prompt and delete prompt notice client need upload, under The data for carrying and deleting in the case where reduction needs synchrodata, can effectively reduce server load, therefore be suitble to low strap The rapidly and efficiently execution of synchrodata under broad network.
Description of the drawings
Below in conjunction with accompanying drawings and embodiments, the invention will be further described, in attached drawing:
Fig. 1 is the flow chart of the method for the Fast synchronization data of the present invention;
Fig. 2 is the flow chart of step S1 in Fig. 1;
Fig. 3 is the flow chart of step S5 in Fig. 1;
Fig. 4 is the structure diagram of the system of the Fast synchronization data of the present invention.
Specific embodiment
In order to which the technical features, objects and effects to the present invention are more clearly understood, now compare attached drawing and be described in detail The specific embodiment of the present invention.
With reference to figure 1, the method for the Fast synchronization data under low-bandwidth network of the invention includes:
Local each wall scroll address book data is respectively obtained corresponding first based on digest algorithm and simplified by S1, client Data, and obtain the second simplification data based on the first all simplification data and digest algorithm;
S2, client simplifies data based on all first and the second simplification data are synchronous to server-side request;
S3, server-side simplify second preserved in data and database based on client is sent second and simplify data judgement Whether the address list of client, which needs, synchronizes, if it is, performing step S4, otherwise, notice client terminates synchronization;
S4, server-side simplify first in data and database based on client is sent first and simplify data, and generation is simultaneously Synchronous list is sent to client, the synchronization list is made of the first simplification data and each first simplification data are carried with one Show symbol binding, the prompt, which includes representing, which needs the prompting download of downloading data to accord with, represents the upload for needing to upload data carries Show that symbol and representative need to delete the deletion prompt of data;
S5, client are based on the synchronous list, with server synchronization address book data.
Preferably, after application starts, self-timing performs step S1-S5 at common customer ends, to realize client and clothes The real-time synchronization of the data at business end.
It describes in detail below to each step.
On step S1:
Step S1 mainly carries out data reduction, and with reference to figure 2, step S1 is specifically included:
Local each wall scroll address book data is based on mapping ruler and carries out mapping to convert respectively obtaining by S11, client Map conversion data.
Since wall scroll address book data entry is numerous, be not suitable for quickly transmitting under low-bandwidth network, therefore need to be to communication Record data carry out mapping conversion, so as to simplify the data that needs transmit.Such as, in mobile phone terminal in the original address book data of wall scroll Hold such as the following table 1:
Table 1
Wherein, the mapping ruler is:Each address book data mapped is recorded fixed different Row, if certain a data is sky, corresponding behavior is empty, and the data that need not be mapped are recorded most in xml format A line afterwards.Such as:Name record is to order 1, and order 2 is recorded in phone number, and addresses of items of mail is recorded order 3, therefore analogizes, Then obtain mapping conversion data such as the following table 2:
Table 2
1:Zhang San
2:13812345678
3:zhangsan@china.com
4:010-12345678
5:12345678
6:18812345678
0.291666667
0.333333333
0.375
0:<ICQ>129891</ICQ><MSN>zhangsan@china.com</MSN>
To be compared by the front and rear data of mapping conversion and can see, the form of address book data is simplified after conversion, Data are effectively reduced simultaneously.
If be directly compared in request synchronous phase by conversion data is mapped, the data volume transmitted is needed still to compare It is larger, be not suitable for quickly transmitting under low-bandwidth network, it is therefore desirable to further be simplified.
S12, conversion data will each be mapped based on MD5 algorithms generation MD5 digest;
It is understood that digest algorithm is not limited to MD5 algorithms, can also be other digest algorithms, the present invention with It is described in detail exemplified by MD5.
It is as follows that text data in table 2 using MD5 algorithms can be obtained into MD5 digest:
9e107d9d372bb6826bd81d3542a419d6
The length of MD5 is 32, and if there is 500 data need synchronization, then length is 32*500=16000, and about 16K is big It is small, it is seen that data volume is further simplified after this step.
S13, each MD5 digest of generation is taken its even bit obtain as described first simplify data simplification after MD5 digest;
This step continues to simplify MD5, on the basis of the MD5 digest obtained in step S12, takes what its even position obtained First simplification data are as follows:
e0dd7b62b8d52496
As it can be seen that the length after simplifying is reduced to 16, reducing 1 half, 500 data lengths than original MD5 only needs 8K big It is small.
S14, total MD5 digest obtained based on MD5 algorithms after being ranked up to the MD5 digest after all simplification, takes its idol Numerical digit obtains described second and simplifies data.
Since when asking synchronous, it is identical that most situations, which need synchronous data, if every time by 500 Data compare one by one, it will seriously affect server performance.The present invention first carries out logic judgment and sees whether need to carry out together therefore Step.
It is assumed that by step S13,500 first obtained simplification data such as the following table 3:
Table 3
The data of table 3 are ranked up, such as according to number priority in alphanumeric arrangement, the data such as table 4 after being sorted:
Table 4
1234567890aaaaaa
1234567890bbbbbb
aaaaaa1234567890
bbbbbb1234567890
e0dd7b62b8d52496
……
It is that obtain the second simplification data as follows to be further converted into MD5 data and take its even number the data in table 4:
e698d289f2af8663
On step S2:
It is handled by simplifying for step S1, it is necessary to which the data of transmission include when asking synchronous in step S2:All first Simplify data and second and simplify data.Here two data compared to original address book data for, data volume greatly subtracts It is small.
Preferably, it is necessary to which the data of transmission can also include quantity namely the first letter of address book data when request is synchronous Change the quantity of data.
On step S3:
In the step, server-side compares the second of client transmission and simplifies the second simplification number preserved in data and database According to whether identical (server-side storage is mapping conversion data, and based on same principle, has carried out MD5 and has simplified to obtain the One simplify data and second simplify data, and in the database data change when update accordingly it is corresponding first simplify data Simplify data with second), if identical, judge that the address list needs of client synchronize, perform step S4, otherwise judge The address list of client need not synchronize, and notice client terminates synchronization.
Since the second simplification data are only the number of one 16, when being compared, server-side only needs to compare first the Two simplify data and quantity (if including quantity in step S2), you can judge whether to need synchronization, this makes it possible to Greatly simplify the logic of sync check.
On step S4:
S4 is entered step, that is, illustrates that needs synchronize.500 datas are used into cover type in order to avoid milli is random Synchronous, server-side simplifies first in data and database based on client is sent first and simplifies data, generation in the step And synchronous list is sent to client.
Synchronous list, which is only set out, needs the data that are updated, is made of the first simplification data and each first letter Change data to bind with a prompt, the prompt, which includes representing, to be needed the prompting download of downloading data to accord with, represent on needs It passes the upload prompt of data and represents the deletion prompt for needing to delete data.
Binding mode can directly will be prompted to the front that symbol binding is placed on the first simplification data, and prompting download symbol can select With character "+", character " * " can be selected by uploading prompt, and character "-" can be selected by deleting prompt.
It is understood that can also be other binding modes, if can with first simplify data it is correspondings illustrate this first Simplify the update mode of the address book data corresponding to data, be not limited herein.Similarly, the specific choice of prompt Can be not above-mentioned symbol with sets itself.As long as three kinds of prompts can be distinguished.
Wherein, there are both of which when synchronous:Server-side mode of priority and client first pattern.Server-side mode of priority It mostly occurs under enterprise directory situation (certain individual address can also allow user to choose whether to be subject to server-side), client End mode of priority is happened under individual address pattern.
It is described synchronization list create-rule be:Server-side compares in the first simplification data and database of client transmission First simplify data, if in database some first simplification data do not exist in client transmission first simplify data In, then some first simplification data are bound with prompting download symbol;If some first simplification data that client is sent are not deposited In database, then in the case where system is server-side mode of priority, which binds with cancellation mark, in system For under client first pattern, then some first simplification data are with uploading prompt binding.
For example, the comparison one by one for simplifying data by first, obtains synchronous list as shown in table 5 below (assuming that synchronous mould Formula is client first pattern):
Table 5
+1234567890aaaaaa
+1234567890bbbbbb
*aaaaaa1234567890
*bbbbb1234567890
……
On step S5:
Step S5 is to be synchronized according to above-mentioned synchronous list, and with reference to figure 3, step S5 is specifically included:
If comprising prompt is deleted in S51, synchronous list, the deletion is deleted from local address book data and is carried Show the address book data corresponding to the first bound simplification data of symbol;
If according with and/or uploading prompt comprising prompting download in S52, synchronous list, client sends synchronization request To server-side;
If S53, synchronization request need downloading data, server-side is bundled with the of prompting download symbol from database acquisition One simplifies the mapping conversion data corresponding to data;
If S54, synchronization request need to upload data, server-side sets synchrolock, transmit in analysis request with tying up The mapping conversion data uploaded corresponding to the first simplification data of prompt is determined and has been written to one by one in database;
Set synchrolock that can ensure that the same time only services end data there are one client in update.The rule of synchrolock It is as follows:First, synchrolock is preserved in memory, so as to improve performance;Second is that synchrolock having time stale demand, such as 1 point Clock ensures to automatically terminate locking under abnormal conditions.
S55, server-side update the data the second of storehouse preservation and simplify data, removal synchrolock;
The mapping conversion data of S56, server-side into client return to step S53;
The mapping conversion data that S57, client parsing receive, and according to the mapping ruler, reverse Mapping converts to obtain Address book data, and address book data is preserved to locally.
Wherein, reverse Mapping conversion may be referred to step S11, and the data of 2 structure of table are converted to the data of 1 structure of table, Details are not described herein again.
Corresponding to the above method, the invention also discloses a kind of system of the Fast synchronization data under low-bandwidth network, ginsengs Fig. 4 is examined, system includes client and server-side, and the client includes the first data reduction module, the first interactive module, service End includes the second interactive module, the second data reduction module, database;
First data reduction module, for local each wall scroll address book data to be respectively obtained pair based on digest algorithm First answered simplifies data, and obtains the second simplification data based on the first all simplification data and digest algorithm;
Second data reduction module updates number when being changed for mapping conversion data in the database based on digest algorithm Simplify data according to first in storehouse, and update the data second in storehouse based on the first all simplification data and digest algorithm and simplify Data;
First interactive module, it is same to server-side request for simplifying data and the second simplification data based on all first It walks and data is recorded based on the second interactive module synchronous communication of synchronous list and server-side;
Second interactive module, for preserved in the second simplification data and database that are sent based on the first interactive module the Two simplification data judge whether the address list of client needs to synchronize, if it is, sent based on the first interactive module First simplifies the first simplification data in data and database, generates and sends first synchronous execution of the synchronous list to client Module notifies the first interactive module to start synchronization, otherwise, the first interactive module is notified to terminate synchronization;
Wherein, the synchronous list is made of the first simplification data and each first simplification data are tied up with a prompt It is fixed, the prompt, which includes representing, needs the prompting download of downloading data accord with, represent need the upload prompt of upload data with And represent the deletion prompt for needing to delete data.
Wherein, the first data reduction module includes:
Conversion unit is mapped, mapping turn is carried out respectively for local each wall scroll address book data to be based on mapping ruler Change obtains mapping conversion data;
MD5 digest and simplified element are based on MD5 algorithms generation MD5 digest and right for will each map conversion data Each MD5 digest of generation takes its even bit to obtain the MD5 digest after the simplification as the described first simplification data and to institute There is the MD5 digest after simplifying based on MD5 algorithms to obtain total MD5 digest after being ranked up, its even bit is taken to obtain described second Simplify data.
Wherein, the mapping ruler is:Each address book data mapped is recorded fixed different Row, if certain a data is sky, corresponding behavior is empty, and the data that need not be mapped are recorded most in xml format A line afterwards.
Wherein, the first interactive module includes deleting unit, upload and download unit, reverse Mapping conversion unit, and second hands over Mutual module includes:Data capture unit and database updating block, the server-side further include synchrolock module;
Unit is deleted, when deleting prompt for being included in synchronous list, institute is deleted from local address book data State the address book data deleted corresponding to the first simplification data bound in prompt;
Upload and download unit when according with for including prompting download in synchronous list and/or upload prompt, are sent together Step is asked to server-side;
For needing downloading data in synchronization request, prompting download symbol is bundled with from database acquisition for data capture unit First simplify mapping conversion data corresponding to data, and it is single that the mapping conversion data of acquisition is back to reverse Mapping conversion Member;
Database update unit, for when synchronization request needs to upload data, triggering synchrolock module to set synchrolock Afterwards, what is transmitted in analysis request maps conversion with being bundled with the address book data uploaded corresponding to the first simplification data of prompt Data are simultaneously written in database one by one, and trigger the second simplification data that the second data reduction module updates the data storehouse preservation, Synchrolock module removal synchrolock is triggered again;
Reverse Mapping conversion unit for parsing the mapping conversion data received, and according to the mapping ruler, inversely reflects It penetrates conversion and obtains address book data, and preserve address book data to locally.
In conclusion the present invention is simplified the batch data in wall scroll address book data to obtain the first simplification of wall scroll Data, and the second simplification data are obtained based on the first all simplification data and digest algorithm, server-side is based in database The the second simplification data preserved can determine whether the address list of client needs to synchronize, and simplification needs patrolling for sync check Volume, reduce synchronous error rate;And when synchronous, accorded with by prompting download, upload prompt and delete prompt notify client End needs the data for uploading, downloading and deleting, and in the case where reduction needs synchrodata, can effectively reduce server and bear It carries, therefore is suitble to the rapidly and efficiently execution of the synchrodata under low-bandwidth network.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form, these are belonged within the protection of the present invention.

Claims (10)

1. a kind of method of the Fast synchronization data under low-bandwidth network, which is characterized in that including:
Local each wall scroll address book data is respectively obtained corresponding first based on digest algorithm and simplifies number by S1, client According to, and obtain the second simplification data based on the first all simplification data and digest algorithm;
S2, client simplifies data based on all first and the second simplification data are synchronous to server-side request;
S3, server-side simplify the second simplification data preserved in data and database based on client is sent second and judge client Whether the address list at end, which needs, synchronizes, if it is, performing step S4, otherwise, notice client terminates synchronization;
S4, server-side simplify first in data and database based on client is sent first and simplify data, generate and send Synchronous list is to client, and the synchronization list is made of the first simplification data and each first simplifies data and a prompt Binding, the prompt, which includes representing, to be needed the prompting download of downloading data to accord with, represents the upload prompt for needing to upload data And represent the deletion prompt for needing to delete data;
S5, client are based on the synchronous list, with server synchronization address book data.
2. the method for Fast synchronization data according to claim 1, which is characterized in that the step S1 is specifically included:
Local each wall scroll address book data is based on mapping ruler and carries out mapping to convert respectively being mapped by S11, client Conversion data;
S12, conversion data will each be mapped based on MD5 algorithms generation MD5 digest;
S13, the MD5 that its even bit is taken to obtain after the simplification as the described first simplification data to each MD5 digest of generation are plucked It will;
S14, total MD5 digest obtained based on MD5 algorithms after being ranked up to the MD5 digest after all simplification, takes its even bit It obtains described second and simplifies data.
3. the method for Fast synchronization data according to claim 2, which is characterized in that the mapping ruler is:It will need Fixed different row is recorded in each address book data mapped, if certain a data is sky, corresponding behavior Last column is recorded in the data that need not be mapped by sky in xml format.
4. the method for Fast synchronization data according to claim 2, which is characterized in that the step S5 includes:
If the deletion prompt is deleted from local address book data in S51, synchronous list comprising prompt is deleted Bound first simplifies the address book data corresponding to data;
If prompting download is included in S52, synchronous list accords with and/or upload prompt, client sends synchronization request to clothes Business end;
If S53, synchronization request need downloading data, server-side is bundled with the first letter of prompting download symbol from database acquisition Change the mapping conversion data corresponding to data;
If S54, synchronization request need to upload data, server-side sets synchrolock, transmit in analysis request with being bundled with It uploads the mapping conversion data corresponding to the first simplification data of prompt and is written to one by one in database;
S55, server-side update the data the second of storehouse preservation and simplify data, removal synchrolock;
The mapping conversion data of S56, server-side into client return to step S53;
The mapping conversion data that S57, client parsing receive, and according to the mapping ruler, reverse Mapping, which converts, to be communicated Data are recorded, and preserve address book data to locally.
5. the method for Fast synchronization data according to claim 1, which is characterized in that the create-rule of the synchronization list For:Server-side compares the first simplification data in the first simplification data and database of client transmission, if in database Some first simplification data does not exist in the first of client transmission and simplifies in data, then some first simplification data are with downloading Prompt is bound;It is server-side in system if some first simplification data that client is sent are not existed in database Under mode of priority, this some first simplify data and bound with cancellation mark, in the case where system is client first pattern, then this some the One simplifies data with uploading prompt binding.
6. the method for Fast synchronization data according to claim 1, which is characterized in that the step S3 includes:Server-side Compare client transmission second simplification data and database in preserve second simplify data it is whether identical, if identical, Judge that the address list needs of client synchronize, perform step S4, otherwise judging the address list of client need not carry out together Step, notice client terminate synchronization.
7. the method for Fast synchronization data according to claim 1, which is characterized in that the method further includes:In client End application periodically performs step S1-S5 after starting.
8. the system of the Fast synchronization data under a kind of low-bandwidth network, which is characterized in that described including client and server-side Client includes the first data reduction module, the first interactive module, and server-side includes the second interactive module, the second data reduction mould Block, database;
First data reduction module, it is corresponding for local each wall scroll address book data to be respectively obtained based on digest algorithm First simplifies data, and obtains the second simplification data based on the first all simplification data and digest algorithm;
Second data reduction module updates the data storehouse when being changed for mapping conversion data in the database based on digest algorithm In first simplify data, and update the data second in storehouse based on all first simplification data and digest algorithm and simplify number According to;
First interactive module, for synchronous to server-side request based on the first all simplification data and the second simplification data, with And data are recorded based on the second interactive module synchronous communication of synchronous list and server-side;
Second interactive module, second for being sent based on the first interactive module simplifies the preserved in data and database second letter Change data and judge whether the address list of client needs to synchronize, if it is, sent based on the first interactive module first First simplified in data and database simplifies data, generates and sends synchronous list to the first synchronous execution mould of client Block notifies the first interactive module to start synchronization, otherwise, the first interactive module is notified to terminate synchronization;
Wherein, the synchronous list is made of the first simplification data and each first simplifies data and a prompt binding, institute State prompt needs the prompting download of downloading data to accord with, represents the upload prompt for needing to upload data and representative including representative Need the deletion prompt of deletion data.
9. the system of Fast synchronization data according to claim 8, which is characterized in that the first data reduction module bag It includes:
Conversion unit is mapped, carries out mapping respectively converting for local each wall scroll address book data to be based on mapping ruler To mapping conversion data;
MD5 digest and simplified element are based on MD5 algorithms generation MD5 digest and to generation for will each map conversion data Each MD5 digest take its even bit obtain as described first simplify data simplification after MD5 digest and to all letters MD5 digest after change based on MD5 algorithms obtains total MD5 digest after being ranked up, its even bit is taken to obtain described second and is simplified Data.
10. the system of Fast synchronization data according to claim 8, which is characterized in that the first interactive module includes deleting Unit, upload and download unit, reverse Mapping conversion unit, the second interactive module include:Data capture unit and database are more New unit, the server-side further include synchrolock module;
Unit is deleted, when deleting prompt for being included in synchronous list, is deleted from local address book data described in deletion Except first bound in prompt simplifies the address book data corresponding to data;
Upload and download unit when according with for including prompting download in synchronous list and/or upload prompt, synchronously please be sent It asks to server-side;
For needing downloading data in synchronization request, the of prompting download symbol is bundled with from database acquisition for data capture unit One simplifies the mapping conversion data corresponding to data, and the mapping conversion data of acquisition is back to reverse Mapping conversion unit;
Database update unit, for when synchronization request needs to upload data, after triggering synchrolock module sets synchrolock, solving What is transmitted in analysis request maps conversion data with being bundled with the address book data uploaded corresponding to the first simplification data of prompt And be written to one by one in database, and trigger the second data reduction module and update the data the second simplification data of storehouse preservation, then touch Send out synchrolock module removal synchrolock;
Reverse Mapping conversion unit, for parsing the mapping conversion data received, and according to the mapping ruler, reverse Mapping turns Change obtains address book data, and preserves address book data to locally.
CN201611037877.3A 2016-11-23 2016-11-23 The method and system of a kind of Fast synchronization data under low-bandwidth network Pending CN108093007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611037877.3A CN108093007A (en) 2016-11-23 2016-11-23 The method and system of a kind of Fast synchronization data under low-bandwidth network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611037877.3A CN108093007A (en) 2016-11-23 2016-11-23 The method and system of a kind of Fast synchronization data under low-bandwidth network

Publications (1)

Publication Number Publication Date
CN108093007A true CN108093007A (en) 2018-05-29

Family

ID=62170007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611037877.3A Pending CN108093007A (en) 2016-11-23 2016-11-23 The method and system of a kind of Fast synchronization data under low-bandwidth network

Country Status (1)

Country Link
CN (1) CN108093007A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117076574A (en) * 2023-10-16 2023-11-17 北京持安科技有限公司 Method and device capable of arranging multiple data sources for synchronous aggregation of data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102577A (en) * 2006-07-07 2008-01-09 中兴通讯股份有限公司 Incremental synchronization method for data in tables of frontground and background database of wireless communication base station system
CN102325167A (en) * 2011-07-21 2012-01-18 杭州微元科技有限公司 Verifying method for network file transmission
KR101512462B1 (en) * 2013-12-24 2015-04-16 한국인터넷진흥원 Method for analyzing update of malicious code on analysis sytem of malicious code based on culture
CN105095300A (en) * 2014-05-16 2015-11-25 阿里巴巴集团控股有限公司 Method and system for database backup
CN105988890A (en) * 2015-01-29 2016-10-05 阿里巴巴集团控股有限公司 Information backup method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102577A (en) * 2006-07-07 2008-01-09 中兴通讯股份有限公司 Incremental synchronization method for data in tables of frontground and background database of wireless communication base station system
CN102325167A (en) * 2011-07-21 2012-01-18 杭州微元科技有限公司 Verifying method for network file transmission
KR101512462B1 (en) * 2013-12-24 2015-04-16 한국인터넷진흥원 Method for analyzing update of malicious code on analysis sytem of malicious code based on culture
CN105095300A (en) * 2014-05-16 2015-11-25 阿里巴巴集团控股有限公司 Method and system for database backup
CN105988890A (en) * 2015-01-29 2016-10-05 阿里巴巴集团控股有限公司 Information backup method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117076574A (en) * 2023-10-16 2023-11-17 北京持安科技有限公司 Method and device capable of arranging multiple data sources for synchronous aggregation of data
CN117076574B (en) * 2023-10-16 2024-01-23 北京持安科技有限公司 Method and device capable of arranging multiple data sources for synchronous aggregation of data

Similar Documents

Publication Publication Date Title
CN102420843B (en) A kind of compression and decompression method, Apparatus and system based on cloud compression link
CN104023083B (en) The method and device of log collection cluster load balance
CN102082818B (en) Method and system for storing and managing graphical data and structured data based on cloud storage
CN101080056B (en) A management method and system of network browser collection folder of mobile terminal
CN1729468B (en) Data synchronization
US20090006529A1 (en) Client side based data synchronization and storage
CN101330657B (en) Address list system and implementing method thereof
CN102882985A (en) File sharing method based on cloud storage
CN101009516A (en) A method and system for data synchronization
CN101426052A (en) Backup and importing method for address book and short message of mobile terminal
CN105120074A (en) Information burn-after-reading method and information burn-after-reading device
CN102185917A (en) Method and system for adaptation between server and mobile terminal, and server adaptation device
CN103825945B (en) A kind of burst storage method and user terminal
CN101256572B (en) Method for operating XML document as well as XDMS
CN103036861A (en) Relationship match method, system, server-side and client-side of contacts in address book
CN104035943A (en) Data storage method and corresponding server
CN108093007A (en) The method and system of a kind of Fast synchronization data under low-bandwidth network
CN102523297A (en) Method for rapidly and permanently storing information of mobile handheld device
CN102638419A (en) Method, client and system for transferring instant messaging message data
CN102594874A (en) Synchronization processing method and device
CN101834896A (en) Method for linking whether information by address list of mobile communication terminal and mobile communication terminal
CN103825922B (en) A kind of data-updating method and web server
CN105610701B (en) A kind of method, apparatus and system of instant messaging
CN107172109A (en) Conversed based on IMS and show method, storage device and the mobile terminal of head portrait
CN101610225B (en) Method, system and device for synchronous processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529