CN105991744A - Method and equipment used for synchronizing user application data - Google Patents

Method and equipment used for synchronizing user application data Download PDF

Info

Publication number
CN105991744A
CN105991744A CN201510095073.8A CN201510095073A CN105991744A CN 105991744 A CN105991744 A CN 105991744A CN 201510095073 A CN201510095073 A CN 201510095073A CN 105991744 A CN105991744 A CN 105991744A
Authority
CN
China
Prior art keywords
data
user
status information
information
equipment
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.)
Granted
Application number
CN201510095073.8A
Other languages
Chinese (zh)
Other versions
CN105991744B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510095073.8A priority Critical patent/CN105991744B/en
Publication of CN105991744A publication Critical patent/CN105991744A/en
Application granted granted Critical
Publication of CN105991744B publication Critical patent/CN105991744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention aims to provide a method and equipment used for synchronizing user application data. The method comprises the steps of: detecting whether a trigger condition for synchronizing user application data is satisfied; acquiring first status information of the corresponding user application data in corresponding user equipment when the trigger condition is satisfied; and performing synchronization-related operation on the user application data according to the first status information and second status information of the user application data in network equipment. Compared with the prior art, the method and the equipment initiate the synchronization operation of the data by setting the trigger condition at the network equipment side. Thus, the method and the equipment can realize corresponding data updating at the user equipment side timely when data of the network equipment side changes through judgment of the trigger condition, and can filter out scenarios without the need of data synchronization through the trigger condition, thereby reducing communication traffic, avoiding unnecessary waste of resources and improving the efficiency of actual data synchronization.

Description

Apply the method and apparatus of data for synchronizing user
Technical field
The application relates to computer realm, applies the technology of data particularly for synchronization user.
Background technology
In the prior art, data syn-chronization is typically first by having the equipment end that synchronization needs, such as visitor Family end, to data updating device end, such as service end, sends data synchronization request, if service end Versions of data has renewal then to carry out data syn-chronization compared to the versions of data of client, otherwise does not then carry out Data syn-chronization.In such cases, the synchronization onwards of data starts from the synchronization request of client, services terminal number According to change can not in time seamless update arrive client, moreover, if server does not exists More new data, then the data synchronization request that client is initiated will cannot get returning renewal, and then bring The waste of resource.
Content of the invention
The purpose of the application is to provide the method and apparatus applying data for synchronizing user.
An aspect according to the application, provides one and applies data network equipment end synchronization user Method, wherein, described method includes:
Detect whether to meet the trigger condition that synchronization user applies data;
When meeting described trigger condition, obtain corresponding user and apply data first in relative user equipment Status information;
According to described first status information, and described user applies data the second shape in the network device State information, applies data to perform synchronization associative operation to described user.
According to the another aspect of the application, additionally provide one and apply number user equipment end synchronization user According to method, wherein, the method includes:
Receive the status query request applying data with regard to acquisition user that map network equipment sends;
Obtain the first status information that described user applies data in described user equipment;
Send described first status information to the described network equipment;
Described user is applied data perform synchronization associative operation, wherein, described synchronization associative operation with Described first status information and described user apply the second state letter in the described network equipment for the data Manner of breathing adapts to.
According to the another further aspect of the application, additionally provide and a kind of apply for synchronizing user the network of data to set Standby, wherein, the described network equipment includes:
First device, for detecting whether meet the trigger condition that synchronization user applies data;
Second device, for when meeting described trigger condition, obtains corresponding user and applies data to application The first status information in the equipment of family;
3rd device, is used for according to described first status information, and described user applies data at network The second status information in equipment, applies data to perform synchronization associative operation to described user.
According to the another aspect of the application, additionally provide a kind of user applying data for synchronizing user Equipment, wherein, described user equipment includes:
8th device, for receiving the state applying data with regard to acquisition user that map network equipment sends Inquiry request;
9th device, for obtaining the first state letter that described user applies data in described user equipment Breath;
Tenth device, for sending described first status information to the described network equipment;
11st device, for applying data to perform synchronization associative operation to described user, wherein, described Synchronization associative operation and described first status information and described user apply data in the described network equipment Second status information adapts.
According to the another aspect of the application, additionally provide the system applying data for synchronizing user, its In, described system includes:
According to the application on the one hand provide a kind of for synchronize user apply data the network equipment and A kind of user equipment applying data for synchronizing user that on the other hand the application provides.
Compared with prior art, the application is by arranging, at network equipment end, the synchronization that user applies data Trigger condition, when meeting described trigger condition, described user equipment receives map network equipment and sends out The status query request applying data with regard to acquisition user sent, and by the first shape in described user equipment State information sends to the described network equipment, and based on described first status information, and described user applies number According to the second status information in the network device, data are applied to perform synchronization associative operation to described user. Here, the application is by the judgement of described trigger condition, on the one hand, when network equipment end data changes, Can realize that the corresponding data of described user equipment end update in time, on the other hand can also pass through described Trigger condition, filter out the scene not needing data syn-chronization, decrease communication flows, it is to avoid unnecessary The wasting of resources, improve real data synchronization efficiency.Further, the application is by applying user The mode that the version information of data and content identification information combine is as the judgement mark of data synchronization updating Standard, applies the version information of data compared to the single user that uses, can judge user more accurately The user of equipment end applies the status information of data, and then can distinguish different situations, to user equipment end User apply data to take neatly not update, full dose updates, incremental update or only update user equipment The user of end applies multiple data syn-chronization modes such as the version information of data.
Brief description
By reading the detailed description being made non-limiting example made with reference to the following drawings, this Shen Other features, objects and advantages please will become more apparent upon:
Fig. 1 illustrates and applies the network of data to set according to a kind of of one aspect of the application for synchronizing user Standby equipment schematic diagram;
Fig. 2 illustrates the network applying data for synchronizing user according to one preferred embodiment of the application Equipment and the system schematic of user equipment;
Fig. 3 illustrates and applies number according to one in terms of another for the application network equipment end synchronization user According to method flow diagram;
Fig. 4 illustrates the one according to one preferred embodiment of the application at network equipment end and user equipment End synchronization user applies the method flow diagram of data.
In accompanying drawing, same or analogous reference represents same or analogous parts.
Detailed description of the invention
Below in conjunction with the accompanying drawings the application is described in further detail.
In the typical configuration of the application one, terminal, the equipment of service network and trusted party all include One or more processors (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or the form such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium includes that removable media permanent and non-permanent, removable and non-is permissible Any method or technology are realized that information stores.Information can be computer-readable instruction, data knot Structure, the module of program or other data.The example of the storage medium of computer includes, but are not limited to phase Become internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electricity Erasable Programmable Read Only Memory EPROM (EEPROM), fast flash memory bank or other memory techniques, read-only Compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or any other non-transmission medium, Can be used for the information that storage can be accessed by a computing device.Define according to herein, computer-readable Medium does not include non-temporary computer readable media (transitory media), as modulation data-signal and Carrier wave.
Fig. 1 illustrates and applies the network of data to set according to a kind of of one aspect of the application for synchronizing user Standby equipment schematic diagram.Wherein, the described network equipment 1 includes first device the 11st, the second device 12 With the 3rd device 13.
Wherein, first device 11 detects whether to meet the trigger condition that synchronization user applies data;The Two devices 12, when meeting described trigger condition, obtains corresponding user and applies data in relative user equipment In the first status information;3rd device 13 is according to described first status information, and described user Application data the second status information in the network device, applies data to perform locking phase to described user Close operation.
Specifically, the first device 11 of the described network equipment 1 detects whether to meet synchronization user's application The trigger condition of data.Described user apply the synchronization of data include applying up-to-date user data from One equipment push to another equipment data refresh mode.Here, preferably, described synchronization User data can include API (application programming interface) data, and, it is preferable that described Synchronization, including the described network equipment 1 and described user equipment 2 (shown in Fig. 2) two ends are based on length The data-pushing of downlink and uplink that the mode connecting completes, here, the described network equipment 1 include but It is not limited to server, described user equipment 2 including but not limited to client.The application is for described use The simultaneously operating of family application data has preset trigger condition, by the first of the described network equipment 1 Device detects user to be synchronized and applies whether data meet described trigger condition.If meeting described Trigger condition, can tentatively judge have synchronization to use between the described network equipment 1 and described user equipment 2 Necessity of family application data, and promote data syn-chronization operation further, for example ask described user equipment 2 upload the current state information that corresponding user applies data;If being unsatisfactory for described trigger condition, Then can directly judge for described user apply data do not need to carry out the described network equipment 1 with described Data syn-chronization operation between user equipment 2.Here, the detection of described trigger condition can be based on The synchronizing cycle pre-setting in the described network equipment 1 starts, and for example, joins in corresponding synchronization Center time point or the periodic quantity of synchronization, as once a day, one hour one inferior, and then, often When entering the time point needing synchronization, i.e. data are applied to carry out trigger condition inspection described synchronization user Survey.Described trigger condition is also based on more newly arriving of the corresponding incremental data of the described network equipment 1 and opens Dynamic, for example, the described network equipment 1 obtains the incremental data that certain corresponding user applies data, as Obtain described incremental data from other application service ends, then now just start synchronization user and apply data The detection of trigger condition.The detection of described trigger condition can be combined with certain user equipment 2 described Corresponding user asks, and starts the detection of described trigger condition by way of parenthesis, for example, when a user is led to Cross described user equipment 2 and send the request that corresponding data is read in a request, when the described network equipment 1 While receiving this request of data, start described synchronization user i.e. simultaneously and apply the triggering bar of data The detection operation of part.
Here, those skilled in the art will be understood that above-mentioned determination detect whether meet synchronization user should Being only for example by the Starting mode of the trigger condition of data, other are existing or that be likely to occur from now on opens Other modes moving the detection of described trigger condition are such as applicable to the present invention, also should be included in the present invention and protect It within protecting scope, and is incorporated herein with way of reference at this.
Here, those skilled in the art will be understood that the described user of above-mentioned determination applies data to be only and lifts Example, other data messages of other forms that are existing or that be likely to occur from now on are such as applicable to this Bright, it within also should being included in scope, and is incorporated herein with way of reference at this.
Then, the second device 12 of the described network equipment 1 is when meeting described trigger condition, obtains Corresponding user applies the first status information in relative user equipment for the data.When by first device 11 When detecting that described synchronization user applies data to meet the corresponding trigger condition of simultaneously operating, further, Second device 12 of the described network equipment 1 can start described network based on described testing result and set Standby synchronization associative operation between 1 and described user equipment 2, the particularly described network equipment 1 obtains Described user applies the first status information in described user equipment 2 for the data.Here, the application is led to Cross described first status information and differentiate the information that the described user at described user equipment 2 applies data State.The described user that described first status information includes but is not limited to user equipment end applies data pair The user profile answered, facility information, user apply the letters such as the version information of data, content identification information Some species in breath.As a example by user applies data to be preferably API data, when target API data Meet corresponding trigger condition by described detection, then now described second device 12 needs from described The first status information that user equipment obtains can include the version information of described API data;Or institute State the content identification information of API data, such as the cryptographic Hash etc. of API data;Meanwhile, described first shape State information can also include the user profile of corresponding request user, mesh as corresponding in described user equipment The account information of mark user;Described first status information can also include that described user equipment is corresponding and set Standby information, PC end, mobile phone, panel computer in this way, or other can connect network, and The equipment of data interaction can be carried out, here, same user profile logs on different devices, then Can corresponding different facility information;Described first status information can also include API key message, excellent Selection of land, API key message can include API name, API version and API querying condition, by institute State API key message and can uniquely indicate an API.
Then, the 3rd device 13 of the described network equipment 1 is according to described first status information, and Described user applies data the second status information in the network device, applies data to hold described user Row synchronization associative operation.Here, described first status information is described in presently described user equipment 2 User applies the information state of data, and described user applies data the second state in the network device Information is that the described user of storage recorded in the described network equipment 1 applies the last state of data to believe Breath.Here, described second status information can obtain in certain historical juncture, for example, at T1 The network equipment 1 described in moment obtains, from certain application server, the up-to-date shape that targeted customer applies data State information, in the T2 moment, based on the synchronizing cycle pre-setting, enters into described needs synchronization Time cycle or timing node, and detect meet described trigger condition, further, set at described network When carrying out, in the 3rd device 13 of standby 1, the comparison that user applies data, a side is from now user Corresponding first status information of user equipment 2 that equipment 2 pushes, the opposing party is exactly the described network equipment Described user recorded in 1 applies the second status information of data, network described in the i.e. above-mentioned T1 moment Equipment 1 obtains, from certain application server, the latest state information that targeted customer applies data.Here, Described second status information can also is that the described use recorded in the described network equipment 1 of acquisition in real time The latest state information of family application data, for example, at T3 sometime, the network equipment 1 should from other Obtain the latest state information that targeted customer applies data by service end, now, based on described network Equipment 1 obtains the detection that this operation of incremental data starts trigger condition, and obtain described user should Meet described trigger condition by data, then further, at the 3rd device 13 of the described network equipment 1 In when carrying out the comparison that user applies data, a side is that the user pushing from now user equipment 2 sets Standby 2 corresponding first status informations, the opposing party is exactly the described use recorded in the described network equipment 1 The second status information of data is applied at family, and described in the i.e. above-mentioned T3 moment, the network equipment 1 is applied from certain Server obtains the latest state information that targeted customer applies data.
Here, the described user that described second status information includes but is not limited to user equipment end applies number Apply the version information of data, content identification information according to corresponding user profile, facility information, user Etc. the some species in information.Further, the particular content of described second status information and described first shape State information is corresponding.Now, described user applies the execution of the synchronization associative operation of data, needs base Apply the knot comparing between corresponding first status information of data and the second status information in described user Really make.As a example by user applies data to be preferably API data, pre-set described API data Corresponding first status information and the second status information all divide table to include the version information of API data, API Data content identification information, user profile, facility information and API key message.Here, pass through Can uniquely indicate API key message, described user profile and the described facility information of an API, The first corresponding status information and the second status information can be mated, i.e. now, it is preferable that described User profile in first status information and the second status information, facility information and API key message One_to_one corresponding is identical, further, to API in described first status information and the second status information respectively The version information of data or API data content identification information or the version of API data is believed simultaneously Breath and API data content identification information, carry out correspondence respectively and compare, and based on institute's result of the comparison pair Described user applies data to perform synchronization associative operation.Here, described user applies the corresponding synchronization of data The user of user equipment 2 is including but not limited to applied data to take not update by associative operation, full dose more Newly, incremental update or only update the user of user equipment 2 apply multiple data such as version information of data with One in step mode.For example, when judging to carry out described full dose renewal or incremental update, described net Corresponding user is applied the incremental data of data or full dose data distributing to corresponding use by network equipment 1 Family equipment 2, thus synchronized update described user equipment 2 corresponding user applies data.
Moreover it is preferred that apply data for the user being obtained, the described network equipment 1 can be with base Apply the configuration information of data in its corresponding user, to described second status information, and corresponding mesh Mark user applies data to carry out screening system in advance.Apply data to be preferably API data with user to be Example, the corresponding configuration center of the described network equipment 1, described configuration center includes middleware device, Described configuration center have recorded the information of corresponding all API in the described network equipment 1, when described net When network equipment 1 obtains the incremental data of certain API data, can be primarily based in described configuration center The information of all API of record judges, whether the corresponding API of described incremental data is described network One of API that equipment 1 is comprised, if so, then proceeds follow-up operation, as by institute API The incremental data of data is updated to described second status information as described latest state information, and carries out Subsequent synchronisation associative operation, if it is not, then illustrate that the application of described API does not exist and described network Among the system that equipment 1 and corresponding user equipment 2 thereof are formed, now then return error result.
Here, the application is by arranging, at the network equipment 1, the synchronization trigger condition that user applies data, When meeting described trigger condition, the automatic acquisition from described user equipment 2 of the described network equipment 1 is worked as Front described user applies data corresponding first status information in described user equipment 2, and progressive one Step compares with the second status information of current record in the described network equipment 1, based on described comparison Result perform the synchronization associative operation that corresponding user applies data.With in prior art, described clothes Business end can only could be initiated the process of data syn-chronization based on the data synchronization request of described client and be compared, The application is by pre-setting trigger condition detection in the network device 1, on the one hand at described network When equipment 1 obtains up-to-date incremental data, the corresponding number of described user equipment 2 can be realized in time According to synchronization, on the other hand can be filtered out actually do not need data syn-chronization by described trigger condition Scene, decreases communication flows, it is to avoid the unnecessary wasting of resources, improves real data synchronization Efficiency.
Preferably, in the described network equipment 1, described first status information or described second state letter Breath includes that described user applies version information and the content identification information of data.
Specifically, described user applies the first status information of data or described second status information permissible Include that described user applies version information and the content identification information of data simultaneously.Described user applies number According to version information be used for identify whether the version of data in data synchronization process exists change, for example The version information of the corresponding API data of Tn time API is set as Vn, if in the Tm time, and this API The version information of corresponding API data is that Vm, Vm and Vn are different, then illustrate that described API is corresponding The version information of API data there occurs change, again because, generally, the version of API data The change of information derives from corresponding API data change, so now can substantially judge described There is change in API data, but, in actual applications, in fact it could happen that but version number is identical actual Upper corresponding compared API data content situation about differing, this kind is it may be the case that by institute Situation of makeing mistakes version number's record of API data relatively etc. causes.Described user applies the content of data Identification information, can include that described user applies the corresponding cryptographic Hash of the content of data or digest value, its Effect is the content information of a data of uniquely tagged, in can identifying data in data synchronization process Whether change together.In the application, it is preferable that apply the version of data in combination with described user Information and content identification information, complete described user and apply the judgement of data syn-chronization mode to select.Phase Applying the version information of data than in the single user that uses, the application can judge to use more accurately The user of family equipment end applies the status information of data, for example, for the version information of described API data Identical situation, still can be based on the difference of the content identification information of described API data, it is judged that The needs of data syn-chronization.And then, the application can distinguish different situations, should to the user of user equipment end With data take not update, full dose updates, incremental update or only update the user of user equipment end and apply number According to multiple data syn-chronization mode such as version information.
It is highly preferred that the 3rd device 13 of the described network equipment 1 is for when described first state letter Version information in breath and content identification information and the version information in described second status information and interior When appearance identification information all differs, described user is applied the corresponding increasing with described trigger condition in data Amount updates synchronizing information to described user equipment.
Specifically, the first status information in described user equipment 2 for the data is applied according to described user, And described user applies data the second status information in the network device 1, it is preferable that described The two is compared by the network equipment 1, now, described first shape body information and the second status information In described user profile, described facility information or described API key message one_to_one corresponding identical, when Version information in described first status information and content identification information with in described second status information Version information and content identification information when correspondence differs respectively, described first status information pair is described In the described user equipment 2 answered, user applies data and the described second corresponding described network of status information User in equipment 1 applies data asynchronous, now, and the second state described in the described network equipment 1 The corresponding user of information applies data as up-to-date data message, that portion that can be only changed Incremental update information is divided to be issued to described user equipment 2 from the described network equipment 1.And then, described User equipment 2 completes the renewal that corresponding user applies data.
It is highly preferred that the 3rd device 13 of the described network equipment 1 is additionally operable to when described first state Version information in information is identical with the version information in described second status information, but described first shape When content identification information in state information is different from the content identification information in described second status information, Described user applies data full dose be synchronized to described user equipment, and updates described first status information In version information.
Specifically, the first status information in described user equipment 2 for the data is applied according to described user, And described user applies data the second status information in the network device 1, it is preferable that described The two is compared by the network equipment 1, now, described first shape body information and the second status information In described user profile, described facility information or described API key message one_to_one corresponding identical, when Version information in Shi Suoshu the first status information and the version information phase in described second status information Meanwhile, user in the corresponding described user equipment 2 of described first status information can not be judged immediately Application data and the user in the described second corresponding described network equipment 1 of status information apply the data to be For identical data, if the content identification information in now described first status information and described second shape Content identification information in state information is different, then illustrate that described user applies the actual content of data not Same, now illustrate that the corresponding user of presently described user equipment 2 applies the version information of data to occur in that Entanglement, now needs the second corresponding user of status information described in the described network equipment 1 is applied number It according to as up-to-date data message, is pushed to full dose described user equipment 2, sets simultaneously for user The user of standby 2 records applies the version information of data to be updated.
Additionally, apply the first status information in described user equipment 2 for the data according to described user, And described user applies data the second status information in the network device 1, also can corresponding other can The concrete situation of the data syn-chronization of energy.For example, if the version information in described first status information and Content identification information is right respectively with the version information in described second status information and content identification information When answering identical, then may determine that the corresponding user of presently described user equipment 2 applies data to be described In the network equipment 1, the up-to-date corresponding user of record applies data.And for example, if described first state Content identification information in information is identical with the content identification information in described second status information, but institute The version information stated in the first status information differs with the version information in described second status information, Illustrate the user of described user equipment 2 apply data actually with record in the described network equipment 1 Up-to-date identical for applying data, simply on user equipment 2 record corresponding version information wrong, Now need only to be updated to the version information on described user equipment 2 with in the described network equipment 1 Corresponding version information is unanimously.If answering additionally, described user equipment 2 does not exist described user With the corresponding version information of data and content identification information, illustrate that this is data syn-chronization operation first, then Need to apply data full dose to be pushed to described user equipment 2 corresponding user in the described network equipment 1 In.
Here, the application by applying version information and the content identification information knot of data by described user Use altogether, apply for described user the method for synchronization of data more precisely to be divided, Avoid in the single false judgment using user to apply the version information of data to be likely to result in, enter one Step, when specifically needing to carry out data renewal, has had full dose to update the differentiation with incremental update, Update compared to dull full dose, more flexibly, it is also possible to reduce communication traffic, reduce cost consumption.
Fig. 2 illustrates the network applying data for synchronizing user according to one preferred embodiment of the application Equipment and the system schematic of user equipment.Wherein, described system includes the described network equipment 1 and uses Family equipment 2, the described network equipment 1 includes first device the 21st, the second device 22 and the 3rd device 23, Wherein said second device 22 includes first module 221 and second unit 222;Described user equipment 2 Including the 8th device the 24th, the 9th device the 25th, the tenth device the 26 and the 11st device 27.
Wherein, first device 21 detects whether to meet the trigger condition that synchronization user applies data;The In two devices 22, first module 221, when meeting described trigger condition, is sent out to relative user equipment Sending the status query request applying data with regard to the corresponding user of acquisition, second unit 222 receives described use Family equipment applies data in described user equipment based on the described user that status query request returns First status information;3rd device 23 is according to described first status information, and described user application Data the second status information in the network device, applies data to perform the related behaviour of synchronization to described user Make;8th device 24 receives the state applying data with regard to acquisition user that map network equipment sends Inquiry request;9th device 25 obtains described user and applies data first in described user equipment Status information;Tenth device 26 sends described first status information to the described network equipment;Tenth Described user is applied data to perform synchronization associative operation by one device 27, and wherein, described synchronization is related Operation applies data second in the described network equipment with described first status information and described user Status information adapts.Here, the first device 21 of the described network equipment 1 and the 3rd device 23 with In Fig. 1, the content of first device 11 family the 3rd device 13 of the network equipment 1 is identical or essentially identical, It therefore do not repeat them here, and is incorporated herein in the way of application.
Specifically, in the second device 22 of the described network equipment 1, described first module 221 is worked as When meeting described trigger condition, send to relative user equipment and apply data with regard to the corresponding user of acquisition Status query request.As a example by user applies data to be preferably API data, the shape of described API data State inquiry request includes the described user profile corresponding to API data of required inquiry, described equipment Information, described API key message etc., be accurately positioned the described user equipment 2 of coupling with this type of information In the object of described status query request.Corresponding, the 8th device 24 of described user equipment 2 Receive the described status query request applying data with regard to acquisition user that map network equipment 1 sends. Then, the 9th device 25 of described user equipment 2 obtains described user and applies data described user The first status information in equipment.Described user equipment 2 corresponding storage device has and described shape The corresponding user of state inquiry request applies the first status information of data.When described user equipment 2 receives Apply the status poll of data to the described network equipment 1 to the described user that described user equipment 2 sends After request, then based on the corresponding described user profile of described status query request, described facility information, The information such as described API key message read current institute from described user equipment 2 corresponding storage device State user and apply the first status information in described user equipment 2 for the data.Then, described user sets Tenth device 26 of standby 2 sends described first status information obtaining to the described network equipment 1.? This, as a example by user applies data to be preferably API data, based on described first status information, user Equipment 2 is by the current version information with the corresponding API data of described API data and API data content Identification information uploads to the described network equipment 1, synchronized push also include user profile, facility information, With identification informations such as API key messages.Now, corresponding, the second of the described network equipment 1 is single Unit 222 have received described first status information that described user equipment 2 pushes.Further, described The network equipment 1, in combination with described first status information obtaining, and described user applies data The second status information in the network device, between the described network equipment 1 and described user equipment 2, Preferably, the 3rd device 23 and the described user equipment 2 the corresponding tenth at the described network equipment 1 Between one device 27, data are applied to perform synchronization associative operation to described user.
Here, the network equipment 1 described herein cooperates with described user equipment 2, as based on The user that the described network equipment 1 sends applies the status query request of data to return described user equipment 2 In the first status information, and for example receive the synchronization user that described user equipment 2 issues and apply data etc., Thus favorably accomplished user described in system and applied the automatic synchronization of data to operate, it is achieved that in time Data syn-chronization needs, and decreases the communication traffic in real data synchronization, it is to avoid unnecessary resource Waste, improves the efficiency of real data synchronization.
Preferably, described user equipment 2 also includes the tenth two devices (not shown), the 13rd device (not shown) and the 14th device (not shown).Wherein, described tenth two devices is to described network Equipment 1 sends with regard to the data acquisition applying other application data of the user that data are related to described user Request;Described 13rd device receives the described network equipment 1 and is returned based on described data acquisition request Described user other application data;Described 14th other application data of the device described user of storage with For other application corresponding of user's offline access.
Specifically, be obtained and stored in described user equipment 2 based on it corresponding for described user equipment 2 Storage device in described user apply data, can further to the corresponding network equipment 1, or Other arbitrary network equipment end comprising corresponding intended application send other request of data, complete other Application operating.As a example by user applies data to be preferably API data, when described user equipment 2 base Have updated API number in described user equipment 2 in have received from the synchrodata that the network equipment 1 issues According to rear, according to the actual needs, described tenth two devices can be by user related for described API data Other application corresponding request of data of data are sent to the equipment at described application place, as described in be sent to The network equipment 1, or the arbitrary equipment at other intended application places, provide based on described application apparatus API data processor, corresponding processing is carried out to described API data.
Further, other application numbers of the described user after described 13rd device receives described processing According to for example, based on the request of the corresponding user accesses data of described user equipment 2, as a certain in browsed Info web, the info web finally being obtained returns, and by the 13rd dress of described user equipment 2 Put reception.
Further, described 14th device is for other application numbers of the described user after processing According to for example, accessing the result data information that obtains of related application by described API data, as described The info web obtaining, it may be preferred to ground is stored, for example, be stored in described user equipment 2 In corresponding storage device.Now, even if without under network or vulnerable network state, it is also possible to based on The request of described user, direct offline access calls have stored in described user equipment 2 described Other application data of user, thus smoothly complete described data acquisition request, and in prior art, visitor The data of request are not typically stored by family end, but based on each request, described client Send full dose request of data to corresponding service end, so in off-line case, it is impossible to browse corresponding The webpage being not switched on.And in the application, can be by the described user of storage in described user equipment 2 Other application data, for other application corresponding of user's offline access, need not be limited to described without network Or the state of vulnerable network, thus optimize Consumer's Experience.It is highly preferred that part can also be accessed frequency Other apply data buffer storages in described user equipment 2 to spend higher user, as user equipment 2 is corresponding Storage device in, thus accelerate the speed of digital independent, optimize Consumer's Experience further.
Preferably, the described network equipment 1 also includes the 4th device (not shown) and the 5th device (not Illustrate), wherein, described 4th device receive that described user equipment 2 sends with regard to described user The data acquisition request of application data other application data of related user;Described 5th device is based on institute State data acquisition request and obtain other application data of described user, and by other application data of described user It is back to described user equipment 2.
Specifically, here, described 4th device and the 5th device fill with the part of described user equipment 2 Putting matches carries out operation execution.In the tenth two devices of above-mentioned user equipment 2, described user sets The standby 2 described users being obtained and stored in described user equipment 2 corresponding storage device based on it apply Data, other application in the described network equipment 1 can send application request, described net further Network equipment 1 will receive this and described user by described 4th device and apply the related user of data The data acquisition request of other application data.As a example by user applies data to be preferably API data, use Family equipment 2, based on the corresponding API data being stored, sends needs to the described network equipment 1 and calls This api interface accesses the request of some related datas, for example, to browse the request of corresponding info web, Described 4th device is i.e. used for receiving this data acquisition request from user equipment 2 of described acquisition, Further, by calling in the described network equipment 1 the corresponding API data with described data acquisition request The API data processor matching, is processed to described data acquisition request, and obtains processing knot Really, for example, it is thus achieved that ask the corresponding information browsing webpage, the i.e. corresponding described user of this result Other apply data, and by by described 5th device of the described network equipment 1, return to described use Family equipment 2.
Preferably, in the described network equipment 1, described trigger condition includes described first status information Different from described second status information at the Mirror Info of the described network equipment;Wherein, described network sets Standby 1 also includes the 6th device (not shown) and the 7th device (not shown);Additionally, described user sets Standby 2 also include the 15th device (not shown) and the 16th device (not shown).Wherein, user 15th device of equipment 2, after described synchronization associative operation is finished, updates described first state Information;Described first status information after 16th device of user equipment 2 will update sends extremely described The network equipment 1;Corresponding, the 6th device of the network equipment 1 receives described user equipment and sends more Described first status information after Xin;Further, the 7th device is according to described first state after renewal Mirror Info described in information updating.
Specifically, in this application, if described user applies data to meet described trigger condition, permissible Preliminary judge to have between the described network equipment 1 and described user equipment 2 synchronize that user applies data must Want, and promote data syn-chronization operation further, if being unsatisfactory for described trigger condition, then can be direct Judge to apply data not need to carry out the described network equipment 1 and described user equipment 2 for described user Between data syn-chronization operation.Here, described trigger condition includes described first status information described The Mirror Info of the network equipment 1 is different from described second status information.The mirror image of the described network equipment 1 Information is corresponding with history first status information of described user equipment 2, meanwhile, whenever described user Equipment 2 updated after described first status information when uploading to the described network equipment 1, Jiu Huiji Corresponding Mirror Info in the described first state information updating once described network equipment being uploaded. For example, it is possible to set up corresponding Mirror Info table in the described network equipment 1 to store corresponding mirror image Information.As a example by user applies data to be preferably API data, the Mirror Info of the described network equipment 1 The including but not limited to version information of described API data, API data content identification information, Yong Huxin Breath, facility information and API key message.Create further, it is also possible to comprise each Mirror Info Time with modification.Preferably, described user is all preferably applied by the detection of trigger condition each time The Mirror Info of the corresponding up-to-date described network equipment 1 of data compares with described second status information Relatively, wherein when version information and the API data content identification information of both corresponding described API data When all identical, the history in the user equipment 2 corresponding to Mirror Info of the described network equipment 1 is described Current with the described network equipment 1 user of first status information applies the second status information of data Unanimously, current first status information in described user equipment 2 and described network can i.e. necessarily be released The current user of equipment 1 applies the second status information accordance of data, again can based on described status information Apply data with unique corresponding described user, so at this point it is possible to inferring, the network equipment 1 and user Targeted customer in equipment 2 applies data to keep consistent, it is not necessary to synchronization;Otherwise, when both When the version information of corresponding described API data or API data content identification information are different, institute is described State history the first status information in the user equipment 2 corresponding to the Mirror Info of the network equipment 1 and institute Stating the current user of the network equipment 1 applies the second status information of data inconsistent, it is judged that described triggering Condition, to meet, now needs to obtain further current first status information of described user equipment 2, Complete the related operation of follow-up data syn-chronization.
Here, the acquisition of the mirror image data of the described network equipment 1 and renewal include setting based on described network Standby cooperating between 1 and described user equipment 2 completes.Wherein, specifically, described network Equipment 1 applies corresponding described first status information of data and described second state based on described user The comparing result of information, obtains the executive mode of corresponding synchronization associative operation.For example, appearance is worked as Needing to carry out described user to described user equipment 2 applies the full dose of data to update, incremental update, or Be only need to update corresponding user in described user equipment 2 apply in the version information of data situation In a kind of when, by the 5th device of described user equipment 2, it is right to complete at described user equipment 2 After the synchronization associative operation answered, e.g., update full dose, the described user of incremental update applies data to deposit After storage is in described user equipment 2 corresponding storage device, and then updates described user and apply data pair The first status information answered, wherein, described user profile, facility information and API key message etc. One category information is usually and keeps consistent before updating, and the version information of described API data or API Data content identification information is applied the change of data to exist based on user to change significantly.Further, The first status information after described renewal is set by the 16th device of described user equipment 2 from described user Standby 2 are pushed to the described network equipment 1.Corresponding, in the described network equipment 1, described Six devices receive the renewal that described user equipment sends after described first status information;Further, institute State Mirror Info described in described first state information updating after updating for the 7th device.Work as the next one In the moment, carry out targeted customer when applying the corresponding trigger condition of data to detect, it is possible to based on described more Volume Mirror Info after Xin and next moment corresponding second status information judge.
Here, those skilled in the art will be understood that trigger condition described above includes described first state Information is only for example the Mirror Info of the described network equipment is different from described second status information, other Trigger condition that is existing or that be likely to occur from now on is such as applicable to the present invention, also should be included in the present invention It within protection domain, and is incorporated herein with way of reference at this.
Fig. 3 illustrates according to a kind of for synchronizing the method that user applies data in terms of another of the application Flow chart.
Wherein, in step S31, detect whether to meet the trigger condition that synchronization user applies data; In step s 32, when meeting described trigger condition, obtain corresponding user and apply data corresponding user The first status information in equipment;In step S33, according to described first status information, Yi Jisuo State user and apply data the second status information in the network device, apply data to perform described user Synchronization associative operation.
Specifically, in step S31, the described network equipment 1 detects whether to meet synchronization user's application The trigger condition of data.Described user apply the synchronization of data include applying up-to-date user data from One equipment push to another equipment data refresh mode.Here, preferably, described synchronization User data can include API (application programming interface) data, and, it is preferable that described Synchronization, including the described network equipment 1 and described user equipment 2 (shown in Fig. 2) two ends are based on length The data-pushing of downlink and uplink that the mode connecting completes, here, the described network equipment 1 include but It is not limited to server, described user equipment 2 including but not limited to client.The application is for described use The simultaneously operating of family application data has preset trigger condition, is detected by the described network equipment 1 User to be synchronized applies whether data meet described trigger condition.If meeting described trigger condition, Can tentatively judge between the described network equipment 1 and described user equipment 2, have synchronization user to apply data Necessity, and further promote data syn-chronization operation, for example ask described user equipment 2 to upload correspondence User apply the current state information of data;If being unsatisfactory for described trigger condition, then can be direct Judge to apply data not need to carry out the described network equipment 1 and described user equipment 2 for described user Between data syn-chronization operation.Here, the detection of described trigger condition can be based on described network The synchronizing cycle pre-setting in equipment 1 starts, and for example, joins in corresponding synchronization and centers together The time point of step or periodic quantity, as once a day, one hour one inferior, and then, need whenever entering During the time point synchronizing, i.e. data are applied to carry out trigger condition detection described synchronization user.Described tactile Clockwork spring part is also based on the startup of more newly arriving of the corresponding incremental data of the described network equipment 1, for example, The described network equipment 1 obtains the incremental data that certain corresponding user applies data, as from other application Service end obtains described incremental data, then now just start the trigger condition that synchronization user applies data Detection.The detection of described trigger condition can be combined with the described corresponding user of certain user equipment 2 Request, starts the detection of described trigger condition, for example by way of parenthesis, when a user passes through described user Equipment 2 sends the request that corresponding data is read in a request, when the described network equipment 1 receives this While request of data, start the detection behaviour that described synchronization user applies the trigger condition of data i.e. simultaneously Make.
Here, those skilled in the art will be understood that above-mentioned determination detect whether meet synchronization user should Being only for example by the Starting mode of the trigger condition of data, other are existing or that be likely to occur from now on opens Other modes moving the detection of described trigger condition are such as applicable to the present invention, also should be included in the present invention and protect It within protecting scope, and is incorporated herein with way of reference at this.
Here, those skilled in the art will be understood that the described user of above-mentioned determination applies data to be only and lifts Example, other data messages of other forms that are existing or that be likely to occur from now on are such as applicable to this Bright, it within also should being included in scope, and is incorporated herein with way of reference at this.
Then, in step s 32, the described network equipment 1 is when meeting described trigger condition, obtains Corresponding user applies the first status information in relative user equipment for the data.In step S31, inspection Measure described synchronization user when applying data to meet the corresponding trigger condition of simultaneously operating, further, In step S32, the described network equipment 1 can start the described network equipment based on described testing result Synchronization associative operation between 1 and described user equipment 2, the particularly described network equipment 1 obtains institute State user and apply the first status information in described user equipment 2 for the data.Here, the application passes through Described first status information differentiates the information shape that the described user at described user equipment 2 applies data State.The described user that described first status information includes but is not limited to user equipment end applies data corresponding User profile, facility information, user apply the information such as the version information of data, content identification information In some species.As a example by user applies data to be preferably API data, when target API data leads to Cross described detection and meet corresponding trigger condition, then now in step s 32, need from described user The first status information that equipment obtains can include the version information of described API data;Or it is described The content identification information of API data, such as the cryptographic Hash etc. of API data;Meanwhile, described first state Information can also include the user profile of corresponding request user, target as corresponding in described user equipment The account information of user;Described first status information can also include the corresponding equipment of described user equipment Information, in this way PC end, mobile phone, panel computer, or other can connect network, and can To carry out the equipment of data interaction, here, same user profile logs on different devices, then may be used Corresponding different facility information;Described first status information can also include API key message, preferably Ground, API key message can include API name, API version and API querying condition, by described API key message can uniquely indicate an API.
Then, in step S33, the described network equipment 1 according to described first status information, and Described user applies data the second status information in the network device, applies data to hold described user Row synchronization associative operation.Here, described first status information is described in presently described user equipment 2 User applies the information state of data, and described user applies data the second state in the network device Information is that the described user of storage recorded in the described network equipment 1 applies the last state of data to believe Breath.Here, described second status information can obtain in certain historical juncture, for example, at T1 The network equipment 1 described in moment obtains, from certain application server, the up-to-date shape that targeted customer applies data State information, in the T2 moment, based on the synchronizing cycle pre-setting, enters into described needs synchronization Time cycle or timing node, and detect meet described trigger condition, further, in step S33 When carrying out the comparison that user applies data, a side is the user equipment pushing from now user equipment 2 2 corresponding first status informations, the opposing party is exactly the described user recorded in the described network equipment 1 Applying the second status information of data, the network equipment 1 described in the i.e. above-mentioned T1 moment is from certain application clothes Business device obtains the latest state information that targeted customer applies data.Here, described second status information Can also is that the described user recorded in the described network equipment 1 of acquisition in real time applies the up-to-date of data Status information, for example, at T3 sometime, the network equipment 1 obtains mesh from other application service ends Mark user applies the latest state information of data, now, obtains increment number based on the described network equipment 1 Start the detection of trigger condition according to this operation, and obtain described user and apply data to meet described touching Clockwork spring part, then, further, when carrying out the comparison that user applies data in step S33, a side comes Corresponding first status information of user equipment 2 pushing from now user equipment 2, the opposing party is exactly institute State the described user recorded in the network equipment 1 and apply the second status information of data, i.e. above-mentioned T3 The network equipment 1 described in moment obtains, from certain application server, the up-to-date shape that targeted customer applies data State information.
Here, the described user that described second status information includes but is not limited to user equipment end applies number Apply the version information of data, content identification information according to corresponding user profile, facility information, user Etc. the some species in information.Further, the particular content of described second status information and described first shape State information is corresponding.Now, described user applies the execution of the synchronization associative operation of data, needs base Apply the knot comparing between corresponding first status information of data and the second status information in described user Really make.As a example by user applies data to be preferably API data, pre-set described API data Corresponding first status information and the second status information all divide table to include the version information of API data, API Data content identification information, user profile, facility information and API key message.Here, pass through Can uniquely indicate API key message, described user profile and the described facility information of an API, The first corresponding status information and the second status information can be mated, i.e. now, it is preferable that described User profile in first status information and the second status information, facility information and API key message One_to_one corresponding is identical, further, to API in described first status information and the second status information respectively The version information of data or API data content identification information or the version of API data is believed simultaneously Breath and API data content identification information, carry out correspondence respectively and compare, and based on institute's result of the comparison pair Described user applies data to perform synchronization associative operation.Here, described user applies the corresponding synchronization of data The user of user equipment 2 is including but not limited to applied data to take not update by associative operation, full dose more Newly, incremental update or only update the user of user equipment 2 apply multiple data such as version information of data with One in step mode.For example, when judging to carry out described full dose renewal or incremental update, described net Corresponding user is applied the incremental data of data or full dose data distributing to corresponding use by network equipment 1 Family equipment 2, thus synchronized update described user equipment 2 corresponding user applies data.
Moreover it is preferred that apply data for the user being obtained, the described network equipment 1 can be with base Apply the configuration information of data in its corresponding user, to described second status information, and corresponding mesh Mark user applies data to carry out screening system in advance.Apply data to be preferably API data with user to be Example, the corresponding configuration center of the described network equipment 1, described configuration center includes middleware device, Described configuration center have recorded the information of corresponding all API in the described network equipment 1, when described net When network equipment 1 obtains the incremental data of certain API data, can be primarily based in described configuration center The information of all API of record judges, whether the corresponding API of described incremental data is described network One of API that equipment 1 is comprised, if so, then proceeds follow-up operation, as by institute API The incremental data of data is updated to described second status information as described latest state information, and carries out Subsequent synchronisation associative operation, if it is not, then illustrate that the application of described API does not exist and described network Among the system that equipment 1 and corresponding user equipment 2 thereof are formed, now then return error result.
Here, the application is by arranging, at the network equipment 1, the synchronization trigger condition that user applies data, When meeting described trigger condition, the automatic acquisition from described user equipment 2 of the described network equipment 1 is worked as Front described user applies data corresponding first status information in described user equipment 2, and progressive one Step compares with the second status information of current record in the described network equipment 1, based on described comparison Result perform the synchronization associative operation that corresponding user applies data.With in prior art, described clothes Business end can only could be initiated the process of data syn-chronization based on the data synchronization request of described client and be compared, The application is by pre-setting trigger condition detection in the network device 1, on the one hand at described network When equipment 1 obtains up-to-date incremental data, the corresponding number of described user equipment 2 can be realized in time According to synchronization, on the other hand can be filtered out actually do not need data syn-chronization by described trigger condition Scene, decreases communication flows, it is to avoid the unnecessary wasting of resources, improves real data synchronization Efficiency.
Preferably, in the described network equipment 1, described first status information or described second state letter Breath includes that described user applies version information and the content identification information of data.
Specifically, described user applies the first status information of data or described second status information permissible Include that described user applies version information and the content identification information of data simultaneously.Described user applies number According to version information be used for identify whether the version of data in data synchronization process exists change, for example The version information of the corresponding API data of Tn time API is set as Vn, if in the Tm time, and this API The version information of corresponding API data is that Vm, Vm and Vn are different, then illustrate that described API is corresponding The version information of API data there occurs change, again because, generally, the version of API data The change of information derives from corresponding API data change, so now can substantially judge described There is change in API data, but, in actual applications, in fact it could happen that but version number is identical actual Upper corresponding compared API data content situation about differing, this kind is it may be the case that by institute Situation of makeing mistakes version number's record of API data relatively etc. causes.Described user applies the content of data Identification information, can include that described user applies the corresponding cryptographic Hash of the content of data or digest value, its Effect is the content information of a data of uniquely tagged, in can identifying data in data synchronization process Whether change together.In the application, it is preferable that apply the version of data in combination with described user Information and content identification information, complete described user and apply the judgement of data syn-chronization mode to select.Phase Applying the version information of data than in the single user that uses, the application can judge to use more accurately The user of family equipment end applies the status information of data, for example, for the version information of described API data Identical situation, still can be based on the difference of the content identification information of described API data, it is judged that The needs of data syn-chronization.And then, the application can distinguish different situations, should to the user of user equipment end With data take not update, full dose updates, incremental update or only update the user of user equipment end and apply number According to multiple data syn-chronization mode such as version information.
It is highly preferred that in step S33, the described network equipment 1 is for when described first state letter Version information in breath and content identification information and the version information in described second status information and interior When appearance identification information all differs, described user is applied the corresponding increasing with described trigger condition in data Amount updates synchronizing information to described user equipment.
Specifically, the first status information in described user equipment 2 for the data is applied according to described user, And described user applies data the second status information in the network device 1, it is preferable that described The two is compared by the network equipment 1, now, described first shape body information and the second status information In described user profile, described facility information or described API key message one_to_one corresponding identical, when Version information in described first status information and content identification information with in described second status information Version information and content identification information when correspondence differs respectively, described first status information pair is described In the described user equipment 2 answered, user applies data and the described second corresponding described network of status information User in equipment 1 applies data asynchronous, now, and the second state described in the described network equipment 1 The corresponding user of information applies data as up-to-date data message, that portion that can be only changed Incremental update information is divided to be issued to described user equipment 2 from the described network equipment 1.And then, described User equipment 2 completes the renewal that corresponding user applies data.
It is highly preferred that in step S33, the described network equipment 1 is additionally operable to when described first state Version information in information is identical with the version information in described second status information, but described first shape When content identification information in state information is different from the content identification information in described second status information, Described user applies data full dose be synchronized to described user equipment, and updates described first status information In version information.
Specifically, the first status information in described user equipment 2 for the data is applied according to described user, And described user applies data the second status information in the network device 1, it is preferable that described The two is compared by the network equipment 1, now, described first shape body information and the second status information In described user profile, described facility information or described API key message one_to_one corresponding identical, when Version information in Shi Suoshu the first status information and the version information phase in described second status information Meanwhile, user in the corresponding described user equipment 2 of described first status information can not be judged immediately Application data and the user in the described second corresponding described network equipment 1 of status information apply the data to be For identical data, if the content identification information in now described first status information and described second shape Content identification information in state information is different, then illustrate that described user applies the actual content of data not Same, now illustrate that the corresponding user of presently described user equipment 2 applies the version information of data to occur in that Entanglement, now needs the second corresponding user of status information described in the described network equipment 1 is applied number It according to as up-to-date data message, is pushed to full dose described user equipment 2, sets simultaneously for user The user of standby 2 records applies the version information of data to be updated.
Additionally, apply the first status information in described user equipment 2 for the data according to described user, And described user applies data the second status information in the network device 1, also can corresponding other can The concrete situation of the data syn-chronization of energy.For example, if the version information in described first status information and Content identification information is right respectively with the version information in described second status information and content identification information When answering identical, then may determine that the corresponding user of presently described user equipment 2 applies data to be described In the network equipment 1, the up-to-date corresponding user of record applies data.And for example, if described first state Content identification information in information is identical with the content identification information in described second status information, but institute The version information stated in the first status information differs with the version information in described second status information, Illustrate the user of described user equipment 2 apply data actually with record in the described network equipment 1 Up-to-date identical for applying data, simply on user equipment 2 record corresponding version information wrong, Now need only to be updated to the version information on described user equipment 2 with in the described network equipment 1 Corresponding version information is unanimously.If answering additionally, described user equipment 2 does not exist described user With the corresponding version information of data and content identification information, illustrate that this is data syn-chronization operation first, then Need to apply data full dose to be pushed to described user equipment 2 corresponding user in the described network equipment 1 In.
Here, the application by applying version information and the content identification information knot of data by described user Use altogether, apply for described user the method for synchronization of data more precisely to be divided, Avoid in the single false judgment using user to apply the version information of data to be likely to result in, enter one Step, when specifically needing to carry out data renewal, has had full dose to update the differentiation with incremental update, Update compared to dull full dose, more flexibly, it is also possible to reduce communication traffic, reduce cost consumption.
Fig. 4 illustrates the one according to one preferred embodiment of the application at network equipment end and user equipment End synchronization user applies the method flow diagram of data.
Wherein, in step S401, the described network equipment 1 detects whether to meet synchronization user's application The trigger condition of data;In step S402, when meeting described trigger condition, the described network equipment 1 Send the status query request applying data with regard to the corresponding user of acquisition to relative user equipment 2;In step In rapid S403, described user equipment 2 obtains described user and applies data in described user equipment 2 The first status information;In step s 404, described first status information is sent by user equipment 2 To the described network equipment 1;In step S405, according to described first status information, and described use Data the second status information in the network device is applied at family, applies data to perform synchronization described user Associative operation.Here, described step S401 is identical with the content of step S31 described in Fig. 3 or base This is identical, therefore does not repeats them here, and is incorporated herein in the way of application.
Specifically, in step S402, when meeting described trigger condition, the described network equipment 1 to Relative user equipment 2 sends the status query request applying data with regard to the corresponding user of acquisition.With user As a example by application data are preferably API data, required for the status query request of described API data includes The crucial letter of the described user profile corresponding to API data of inquiry, described facility information, described API Breath etc., the described status query request being accurately positioned in the described user equipment 2 of coupling with this type of information Object.
Then, in step S403, described user equipment 2 obtains described user and applies data in institute State the first status information in user equipment 2.Described user equipment 2 corresponding storage device has Corresponding user applies the first status information of data with described status query request.When described user sets Standby 2 receive the described user that the described network equipment 1 sends to described user equipment 2 applies data After status query request, then based on the corresponding described user profile of described status query request, described set The standby information such as information, described API key message is read from described user equipment 2 corresponding storage device Take presently described user and apply the first status information in described user equipment 2 for the data.
Then, in step s 404, described first status information is sent extremely described by user equipment 2 The network equipment 1.Here, as a example by user applies data to be preferably API data, based on described first Status information, user equipment 2 is by the current and corresponding API data of described API data version information Upload to the described network equipment 1 with API data content identification information, synchronized push also include user The identification informations such as information, facility information and API key message.
Then, in step S405, according to described first status information, and described user application Data the second status information in the network device, applies data to perform the related behaviour of synchronization to described user Make.At the described network equipment 1, in combination with described first status information obtaining, and described use Data the second status information in the network device is applied at family, compares, based on result of the comparison choosing Select corresponding data syn-chronization mode, in the described network equipment 1 with user equipment 2, perform institute further State user and apply the synchronization associative operation of data.
Here, the network equipment 1 described herein cooperates with described user equipment 2, as based on The user that the described network equipment 1 sends applies the status query request of data to return described user equipment 2 In the first status information, and for example receive the synchronization user that described user equipment 2 issues and apply data etc., Thus favorably accomplished user described in system and applied the automatic synchronization of data to operate, it is achieved that in time Data syn-chronization needs, and decreases the communication traffic in real data synchronization, it is to avoid unnecessary resource Waste, improves the efficiency of real data synchronization.
Preferably, the described method applying data user equipment end synchronization user, also includes step S406 (not shown), step S407 (not shown) and step S408 (not shown), wherein, in step In S406, described user equipment 2 sends to the described network equipment 1 and applies data with regard to described user The data acquisition request of other application data of related user;In step S 407, described user sets Standby 2 receive the described user that the described network equipment 1 returned based on described data acquisition request, and other should Use data;In step S 407, described user equipment 2 store described user other application data with For other application corresponding of user's offline access.
Specifically, be obtained and stored in described user equipment 2 based on it corresponding for described user equipment 2 Storage device in described user apply data, can further to the corresponding network equipment 1, or Other network equipment ends send other request of data, complete other application operating.With user's application As a example by data are preferably API data, when described user equipment 2 is based on have received from the network equipment 1 The synchrodata issuing have updated in described user equipment 2 after API data, according to the actual needs, In step S406, described user equipment 2 can other be answered by user related for described API data It is sent to the equipment at described application place by the corresponding request of data of data, such as the described network equipment 1, Or any appliance at other intended application places, based at the API data that described application apparatus provides Reason device, carries out corresponding processing to described API data.Further, in step S 407, Described user equipment 2 receive described processing after described user other application data, for example, base In described user equipment 2 corresponding user request, call certain api interface and access some related datas, As browsed a certain info web, the final info web obtaining, i.e. access phase by described API data Close the result data information that application obtains.Further, in step S408, described user equipment 2 For other application data of the described user after processing, for example, accessed by described API data The result data information that related application obtains, it may be preferred to ground is stored, for example, be stored in institute State in user equipment 2 corresponding storage device, now, even if without under network or vulnerable network state, Also can be based on the request of described user, direct offline access is called and is had stored in described user equipment Other application data of described user in 2, thus smoothly complete described data acquisition request, and existing In technology, the data of request are not typically stored by client, but based on each request, Described client sends full dose request of data to corresponding service end, so in off-line case, it is impossible to Browse the corresponding webpage being not switched on.And in the application, can be by storage in described user equipment 2 Described user other application data for user's offline access corresponding other application, need not be limited to Described without network or the application scenarios of vulnerable network, thus optimize Consumer's Experience.It is highly preferred that also may be used So that by user higher for part visiting frequency, other apply data buffer storages in described user equipment 2, as In user equipment 2 corresponding storage device, thus accelerate the speed of digital independent, optimize further and use Family is experienced.
Preferably, the described method applying data network equipment end synchronization user, also includes step S409 (not shown) and step S410 (not shown), wherein, in step S409, described net Network equipment 1 receive described user equipment 2 send apply the related user of data with regard to described user The data acquisition request of other application data;In step S410, the described network equipment 1 is based on institute State data acquisition request and obtain other application data of described user, and by other application data of described user It is back to described user equipment 2.
Specifically, in above-mentioned steps S406, described user equipment 2 is obtained and stored in based on it Described user in described user equipment 2 corresponding storage device applies data, can be further to described Other application in the network equipment 1 send application request, and the described network equipment 1 receives this and described User applies the data acquisition request of other application data of the user that data are related.Apply data with user Being preferably as a example by API data, user equipment 2 is based on the corresponding API data being stored, to described The network equipment 1 sends needs to call the request that this api interface accesses some related datas, for example clear Looking at the request of corresponding info web, in step S409, the described network equipment 1 is i.e. used for receiving This data acquisition request from user equipment 2 of described acquisition, further, by calling described net The API data process that in network equipment 1, corresponding API data matches with described data acquisition request Device, processes to described data acquisition request, and obtains result, for example, it is thus achieved that it is right to ask The information browsing webpage answered, other application data of the i.e. corresponding described user of this result, and will be In step S410, other application data of described user are returned to described user equipment 2.
It is preferably based on the described method applying data network equipment end synchronization user, at described net In network equipment 1, described trigger condition includes the mirror image at the described network equipment for described first status information Information is different from described second status information;Wherein, described in the synchronization user's application of network equipment end The method of data also includes step S411 (not shown) and step S412 (not shown), additionally, institute State and apply the method for data also to include step S413 (not shown) and step user equipment end synchronization user Rapid S414 (not shown).Wherein, in step S413, described user equipment 2 is at described locking phase After pass operation is finished, update described first status information;In step S414, described user Described first status information after equipment 2 will update sends to the described network equipment 2;Corresponding, In step S411, the described network equipment 1 receives after the renewal that described user equipment sends described the One status information;Further, in step S412, the described network equipment 1 is according to the institute after renewal State Mirror Info described in the first state information updating.
Specifically, in this application, if described user applies data to meet described trigger condition, permissible Preliminary judge to have between the described network equipment 1 and described user equipment 2 synchronize that user applies data must Want, and promote data syn-chronization operation further, if being unsatisfactory for described trigger condition, then can be direct Judge to apply data not need to carry out the described network equipment 1 and described user equipment 2 for described user Between data syn-chronization operation.Here, described trigger condition includes described first status information described The Mirror Info of the network equipment 1 is different from described second status information.The mirror image of the described network equipment 1 Information is corresponding with history first status information of described user equipment 2, meanwhile, whenever described user Equipment 2 updated after described first status information when uploading to the described network equipment 1, Jiu Huiji Corresponding Mirror Info in the described first state information updating once described network equipment being uploaded. For example, it is possible to set up corresponding Mirror Info table in the described network equipment 1 to store corresponding mirror image Information.As a example by user applies data to be preferably API data, the Mirror Info of the described network equipment 1 The including but not limited to version information of described API data, API data content identification information, Yong Huxin Breath, facility information and API key message.Create further, it is also possible to comprise each Mirror Info Time with modification.Preferably, described user is all preferably applied by the detection of trigger condition each time The Mirror Info of the corresponding up-to-date described network equipment 1 of data compares with described second status information Relatively, wherein when version information and the API data content identification information of both corresponding described API data When all identical, the history in the user equipment 2 corresponding to Mirror Info of the described network equipment 1 is described Current with the described network equipment 1 user of first status information applies the second status information of data Unanimously, current first status information in described user equipment 2 and described network can i.e. necessarily be released The current user of equipment 1 applies the second status information accordance of data, again can based on described status information Apply data with unique corresponding described user, so at this point it is possible to inferring, the network equipment 1 and user Targeted customer in equipment 2 applies data to keep consistent, it is not necessary to synchronization;Otherwise, when both When the version information of corresponding described API data or API data content identification information are different, institute is described State history the first status information in the user equipment 2 corresponding to the Mirror Info of the network equipment 1 and institute Stating the current user of the network equipment 1 applies the second status information of data inconsistent, it is judged that described triggering Condition, to meet, now needs to obtain further current first status information of described user equipment 2, Complete the related operation of follow-up data syn-chronization.
Additionally, the acquisition of the mirror image data of the described network equipment 1 and renewal include setting based on described network Standby cooperating between 1 and described user equipment 2 completes.Wherein, specifically, described network Equipment 1 applies corresponding described first status information of data and described second state based on described user The comparing result of information, obtains the executive mode of corresponding synchronization associative operation.For example, appearance is worked as Needing to carry out described user to described user equipment 2 applies the full dose of data to update, incremental update, or Be only need to update corresponding user in described user equipment 2 apply in the version information of data situation In a kind of when, described user equipment 2 complete corresponding synchronization associative operation after, e.g., by full dose Update, described user's application data store of incremental update fills in the corresponding storage of described user equipment 2 After putting, and then update described user and apply corresponding first status information of data, wherein, described use One category informations such as family information, facility information and API key message keep consistent before being usually and updating , and the version information of described API data or API data content identification information apply number based on user According to change can exist and change significantly.Further, in step S414, described user equipment 2 The first status information after described renewal is pushed to the described network equipment from described user equipment 2 1.Corresponding, in step S411, the described network equipment 1 receives what described user equipment sent Described first status information after renewal;Further, in step S412, the described network equipment 1 Mirror Info described in described first state information updating after updating.When the next moment, carry out When targeted customer applies the corresponding trigger condition of data to detect, it is possible to based on the frontal mirror after described renewal As information and next moment corresponding second status information judge.
Here, those skilled in the art will be understood that trigger condition described above includes described first state Information is only for example the Mirror Info of the described network equipment is different from described second status information, other Trigger condition that is existing or that be likely to occur from now on is such as applicable to the present invention, also should be included in the present invention It within protection domain, and is incorporated herein with way of reference at this.
It is obvious to a person skilled in the art that the application is not limited to the thin of above-mentioned one exemplary embodiment Joint, and in the case of without departing substantially from spirit herein or essential characteristic, can concrete with other Form realizes the application.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary , and be nonrestrictive, scope of the present application is limited by claims rather than described above Fixed, it is intended that all changes falling in the implication of equivalency and scope of claim are included In the application.Any reference in claim should be considered as limiting involved right to want Ask.Furthermore, it is to be understood that " an including " word is not excluded for other unit or step, odd number is not excluded for plural number. In device claim, multiple unit or the device of statement also can be passed through soft by a unit or device Part or hardware realize.The first, the second grade word is used for representing title, and is not offered as any spy Fixed order.

Claims (20)

1. the method applying data network equipment end synchronization user, wherein, described method includes:
Detect whether to meet the trigger condition that synchronization user applies data;
When meeting described trigger condition, obtain that corresponding user applies data in relative user equipment the One status information;
According to described first status information, and described user applies data second in the network device Status information, applies data to perform synchronization associative operation to described user.
2. method according to claim 1, wherein, described first status information or described second Status information includes that described user applies version information and the content identification information of data.
3. method according to claim 2, wherein, described according to described first status information, And described user applies data the second status information in the network device, number is applied to described user Include according to performing synchronization associative operation:
When the version information in described first status information and content identification information and described second state When version information in information and content identification information all differ, described user is applied in data with Described trigger condition corresponding incremental update synchronizing information is to described user equipment.
4. method according to claim 3, wherein, described according to described first status information, And described user applies data the second status information in the network device, number is applied to described user Also include according to performing synchronization associative operation:
When the version letter in the version information in described first status information with described second status information Manner of breathing is with but in the content identification information in described first status information and described second status information When content identification information is different, described user apply data full dose be synchronized to described user equipment, and Update the version information in described first status information.
5. method according to any one of claim 1 to 4, wherein, described described when meeting Trigger condition, obtains corresponding user and applies the first status information bag in relative user equipment for the data Include:
When meeting described trigger condition, send to relative user equipment and apply number with regard to the corresponding user of acquisition According to status query request;
Receiving described user equipment applies data in institute based on the described user that status query request returns State the first status information in user equipment.
6. method according to claim 5, wherein, described method also includes:
Receive described user equipment send with regard to described user apply the user that data are related other The data acquisition request of application data;
Obtain other application data of described user based on described data acquisition request, and by described user its He applies data to be back to described user equipment.
7. the method according to claim 5 or 6, wherein, described trigger condition includes described One status information is different from described second status information at the Mirror Info of the described network equipment;
Wherein, described method also includes:
Receive described first status information after the renewal that described user equipment sends;
Mirror Info described in described first state information updating after updating.
8. the method applying data user equipment end synchronization user, wherein, described method includes:
Receive the status query request applying data with regard to acquisition user that map network equipment sends;
Obtain the first status information that described user applies data in described user equipment;
Send described first status information to the described network equipment;
Described user is applied data perform synchronization associative operation, wherein, described synchronization associative operation with Described first status information and described user apply the second state letter in the described network equipment for the data Manner of breathing adapts to.
9. method according to claim 8, wherein, described method also includes:
Send to the described network equipment and apply other application of the user that data are related with regard to described user The data acquisition request of data;
Other should to receive the described user that the described network equipment returned based on described data acquisition request Use data;
Store other application data of described user for other application corresponding of user's offline access.
10. method according to claim 8 or claim 9, wherein, described method also includes:
After described synchronization associative operation is finished, update described first status information;
Described first status information after updating sends to the described network equipment.
11. 1 kinds are used for synchronizing the network equipment that user applies data, and wherein, the described network equipment includes:
First device, for detecting whether meet the trigger condition that synchronization user applies data;
Second device, for when meeting described trigger condition, obtains corresponding user and applies data in correspondence The first status information in user equipment;
3rd device, is used for according to described first status information, and described user applies data at net The second status information in network equipment, applies data to perform synchronization associative operation to described user.
12. network equipments according to claim 11, wherein, described first status information or institute State the second status information and include that described user applies version information and the content identification information of data.
13. network equipments according to claim 12, wherein, described 3rd device is used for:
When the version information in described first status information and content identification information and described second state When version information in information and content identification information all differ, described user is applied in data with Described trigger condition corresponding incremental update synchronizing information is to described user equipment.
14. network equipments according to claim 13, wherein, described 3rd device is additionally operable to:
When the version letter in the version information in described first status information with described second status information Manner of breathing is with but in the content identification information in described first status information and described second status information When content identification information is different, described user apply data full dose be synchronized to described user equipment, and Update the version information in described first status information.
15. network equipments according to according to any one of claim 11 to 14, wherein, described Two devices includes:
First module, for when meeting described trigger condition, sending with regard to acquisition to relative user equipment Corresponding user applies the status query request of data;
Second unit, for receiving the described user that described user equipment returns based on status query request Application the first status information in described user equipment for the data.
16. network equipments according to claim 15, wherein, the described network equipment also includes:
4th device, for receive described user equipment send apply data phase with regard to described user The data acquisition request of other application data of the user closed;
5th device, for obtaining other application data of described user based on described data acquisition request, And other application data of described user are back to described user equipment.
17. network equipments according to claim 15 or 16, wherein, described trigger condition bag Include described first status information the described network equipment Mirror Info and described second status information not With;
Wherein, the described network equipment also includes:
6th device, believes for described first state after receiving the renewal that described user equipment sends Breath;
7th device, for Mirror Info described in described first state information updating after updating.
18. 1 kinds for synchronizing the user equipment that user applies data, wherein, described user equipment bag Include:
8th device, for receiving the shape applying data with regard to acquisition user that map network equipment sends State inquiry request;
9th device, for obtaining the first state that described user applies data in described user equipment Information;
Tenth device, for sending described first status information to the described network equipment;
11st device, for applying data to perform synchronization associative operation, wherein, institute to described user Stating synchronization associative operation applies data to set at described network with described first status information and described user The second status information in Bei adapts.
19. user equipmenies according to claim 18, wherein, described user equipment also includes:
Tenth two devices, applies data related for sending to the described network equipment with regard to described user User other application data data acquisition request;
13rd device, for receiving what the described network equipment was returned based on described data acquisition request Other application data of described user;
14th device, is used for storing other application data of described user corresponding for user's offline access Other application.
20. user equipmenies according to claim 18 or 19, wherein, described user equipment is also Including:
15th device, for, after described synchronization associative operation is finished, updating described first shape State information;
16th device, sets to described network for the described first status information transmission after updating Standby.
CN201510095073.8A 2015-03-03 2015-03-03 Method and apparatus for synchronizing user application data Active CN105991744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510095073.8A CN105991744B (en) 2015-03-03 2015-03-03 Method and apparatus for synchronizing user application data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510095073.8A CN105991744B (en) 2015-03-03 2015-03-03 Method and apparatus for synchronizing user application data

Publications (2)

Publication Number Publication Date
CN105991744A true CN105991744A (en) 2016-10-05
CN105991744B CN105991744B (en) 2019-12-17

Family

ID=57039426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510095073.8A Active CN105991744B (en) 2015-03-03 2015-03-03 Method and apparatus for synchronizing user application data

Country Status (1)

Country Link
CN (1) CN105991744B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093002A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Based on the synchronous method and device of the information to be synchronized that data mode determines
CN109408522A (en) * 2018-09-28 2019-03-01 阿里巴巴集团控股有限公司 A kind of update method and device of user characteristic data
CN112685501A (en) * 2020-12-30 2021-04-20 杭州雾联科技有限公司 Data synchronization method, device and system for center node and edge node
CN113783937A (en) * 2021-08-16 2021-12-10 珠海格力电器股份有限公司 Synchronization method and device of equipment state information and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322431A (en) * 1999-05-13 2000-11-24 Nippon Telegr & Teleph Corp <Ntt> Contents id impartation system
CN101572599A (en) * 2008-09-04 2009-11-04 华为技术有限公司 Method, device and system for timing execution of synchronization
US20100114818A1 (en) * 2008-10-13 2010-05-06 Sap Ag Method and system for managing and modifying time dependent data structures
CN102546779A (en) * 2011-12-27 2012-07-04 Tcl集团股份有限公司 Synchronized method and device of application data across devices
CN103581231A (en) * 2012-07-25 2014-02-12 腾讯科技(北京)有限公司 UGC primary standby data synchronization method and system thereof
CN103825918A (en) * 2012-11-16 2014-05-28 腾讯科技(深圳)有限公司 Data synchronization method, terminal equipment, server and data synchronization system
CN105592118A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method, system and server for synchronizing user application data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000322431A (en) * 1999-05-13 2000-11-24 Nippon Telegr & Teleph Corp <Ntt> Contents id impartation system
CN101572599A (en) * 2008-09-04 2009-11-04 华为技术有限公司 Method, device and system for timing execution of synchronization
US20100114818A1 (en) * 2008-10-13 2010-05-06 Sap Ag Method and system for managing and modifying time dependent data structures
CN102546779A (en) * 2011-12-27 2012-07-04 Tcl集团股份有限公司 Synchronized method and device of application data across devices
CN103581231A (en) * 2012-07-25 2014-02-12 腾讯科技(北京)有限公司 UGC primary standby data synchronization method and system thereof
CN103825918A (en) * 2012-11-16 2014-05-28 腾讯科技(深圳)有限公司 Data synchronization method, terminal equipment, server and data synchronization system
CN105592118A (en) * 2014-10-23 2016-05-18 阿里巴巴集团控股有限公司 Method, system and server for synchronizing user application data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108093002A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Based on the synchronous method and device of the information to be synchronized that data mode determines
CN108093002B (en) * 2016-11-21 2020-09-25 腾讯科技(深圳)有限公司 Synchronization method and device of information to be synchronized based on data state determination
CN109408522A (en) * 2018-09-28 2019-03-01 阿里巴巴集团控股有限公司 A kind of update method and device of user characteristic data
CN112685501A (en) * 2020-12-30 2021-04-20 杭州雾联科技有限公司 Data synchronization method, device and system for center node and edge node
CN113783937A (en) * 2021-08-16 2021-12-10 珠海格力电器股份有限公司 Synchronization method and device of equipment state information and computer readable storage medium

Also Published As

Publication number Publication date
CN105991744B (en) 2019-12-17

Similar Documents

Publication Publication Date Title
CN108228814B (en) Data synchronization method and device
CN108449405A (en) Event-prompting method, device, computer equipment and storage medium
CN109062489B (en) Message processing method, message processing device, storage medium and electronic device
CN104811366B (en) A kind of loaming method and device of network communication message
CN111756621A (en) Method and device for managing data of group users and maintaining instant messaging group
WO2015101320A1 (en) Account number generation method, terminal and background server
US9471896B2 (en) Memo synchronization system, mobile system, and method for synchronizing memo data
CN104104717A (en) Inputting channel data statistical method and device
CN109542635A (en) Configuration information update method, apparatus, computer equipment and storage medium
CN105991744A (en) Method and equipment used for synchronizing user application data
US10282120B2 (en) Method, apparatus and system for inserting disk
CN106302099B (en) Session processing method and device in instant messaging
CN109981569B (en) Network system access method, device, computer equipment and readable storage medium
CN109783258A (en) A kind of message treatment method, device and server
CN106775983A (en) A kind of application scenarios changing method, system and mobile terminal
CN104765792B (en) A kind of method, apparatus and system of dimension data storage
CN106155925A (en) A kind of method and device obtaining data
CN105915636B (en) A kind of synchronous method and device of contact information
CN105847320A (en) Resource obtaining method and device
CN106341449B (en) Method of data synchronization and device
CN105827780B (en) A kind of incoming display method and device
CN111935260B (en) Account synchronization method and device, electronic equipment and storage medium
CN113626449A (en) Data storage method, data query method and related equipment
CN106469166B (en) A kind of information processing method and device
CN109213955B (en) Data processing method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant