CN104753990A - Data synchronization method, device and system - Google Patents

Data synchronization method, device and system Download PDF

Info

Publication number
CN104753990A
CN104753990A CN201310741674.2A CN201310741674A CN104753990A CN 104753990 A CN104753990 A CN 104753990A CN 201310741674 A CN201310741674 A CN 201310741674A CN 104753990 A CN104753990 A CN 104753990A
Authority
CN
China
Prior art keywords
static data
data
client
response message
updated
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
CN201310741674.2A
Other languages
Chinese (zh)
Other versions
CN104753990B (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310741674.2A priority Critical patent/CN104753990B/en
Publication of CN104753990A publication Critical patent/CN104753990A/en
Application granted granted Critical
Publication of CN104753990B publication Critical patent/CN104753990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

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

Abstract

The invention discloses a data synchronization method, a device and a system, which is used for solving problems in the prior art that waste of resources of a mobile terminal is caused and that static data presented by a client cannot be ensured to realize synchronization with static data in a mobile health platform when static data is synchronized. The data synchronization method comprises the steps of receiving a dynamic data request message sent by a client; judging whether the client has static data to be updated or not; and packaging a judgment result to a dynamic data response message and sending the dynamic data response message to the client, thereby being convenient for the client to decide whether updating is carried out on stored static data or not according to the judgment result contained in the dynamic data response message.

Description

A kind of method of data synchronization, device and system
Technical field
The present invention relates to data synchronization technology field, particularly relate to a kind of method of data synchronization, device and system.
Background technology
As shown in Figure 1, Organization Chart is realized for health system mobile in prior art.Wherein, in mobile health system, mobile healthy platform is divided into three kinds to the data that user presents: user health data, userspersonal information, service configuration information.User can obtain this three kinds of information by two kinds of modes: a kind of is that the webpage utilizing fixed terminal to log in mobile healthy platform obtains, another kind utilizes the client in mobile terminal to obtain, and moves healthy platform simultaneously and also can be pushed to webpage and client by unified for these three kinds of data.Wherein, these three kinds of data have different ageing, and specifically: user health data are dynamic datas, upload to mobile healthy platform in real time by sign collecting device, mobile healthy platform presents to user more in real time; Userspersonal information and service configuration information are static datas, only make editor's change user, business configuration generation just can upgrade when changing to some extent, wherein, userspersonal information allows user to be uploaded to mobile healthy platform at webpage and the enterprising edlin of client, and service configuration information only allows user to edit on webpage and is uploaded to mobile healthy platform again.
At present, fixed terminal and mobile terminal are all by hypertext transfer protocol (Hyper Text TransferProtocol, HTTP) and mobile healthy Platform communication.Real time data synchronization can be accomplished by the communication of fixed ip address between fixed terminal and mobile healthy platform, namely when the dynamic data on mobile healthy platform and static data have renewal time, just can this renewal of real-time synchronization on webpage.
But, mobile terminal is owing to having netsurfing characteristic, fixing IP address cannot be assigned to, therefore move healthy platform and initiatively can not initiate HTTP request to mobile terminal, therefore can realize data syn-chronization to make between mobile healthy platform and mobile terminal, all initiatively being initiated HTTP request to realize by client at present.
For the static data in mobile healthy platform, because this part information has very large consistency, mobile terminal can initiate a HTTP request at set intervals in the mode of poll, to obtain static data up-to-date on mobile healthy platform, presents to user.But this mode requires that client must be resided in the terminal, this can make the resource of mobile terminal (comprising electricity, data traffic and hardware memory etc.) expend seriously.And because this mode is not real-time upgrading static data, when therefore can not ensure that user uses client each time, the static data that client presents must be the static data after mobile healthy platform upgrades.
Summary of the invention
The embodiment of the present invention provides a kind of method of data synchronization, device and system, in order to solve in prior art when synchronous static data, both can cause the wasting of resources of mobile terminal, can not ensure again that the static data that client presents realized synchronous problem with the static data in mobile healthy platform.
The embodiment of the present invention is by the following technical solutions:
A kind of method of data synchronization, comprising:
Receive the dynamic data request message that client sends;
Judge whether described client exists static data to be updated; And
Described client judged result is encapsulated in dynamic data response message, sends to described client, so that can determine that according to the described judged result comprised in described dynamic data response message the static data whether stored self upgrades.
Wherein, the customer ID of described client is comprised in described dynamic data request message;
Judge whether described client exists static data to be updated, specifically comprises:
According to the corresponding relation of the customer ID prestored and static data status indicator, determine the static data status indicator that described customer ID is corresponding;
Judge whether the static data status indicator determined characterizes static data to be updated;
When judged result be the static data status indicator determined characterize static data to be updated time, determine that described client exists static data to be updated; Otherwise, determine that described client does not exist static data to be updated.
Wherein, when judged result be the static data status indicator determined characterize static data to be updated time, described method also comprises:
According to the corresponding relation of the customer ID prestored and more fresh content, determine the more fresh content that described customer ID is corresponding; Then
Judged result is encapsulated in dynamic data response message, specifically comprises:
By judged result and the renewal content package determined in dynamic data response message.
Wherein, described more fresh content comprises:
The said module of static data to be updated, data content and data type.
A kind of method of data synchronization, comprising:
Dynamic data request message is sent to server;
Receive the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message;
When determine described judged result characterize described client there is static data to be updated time, send static data request message; And
According to the static data response message of described server feedback, the static data stored self upgrades.
Wherein, also comprise in described dynamic data response message: the more fresh content of static data to be updated; Then
When described judged result characterize described client there is static data to be updated time, send static data request message, specifically comprise:
When described judged result characterize described client there is static data to be updated time, more fresh content described in obtaining from described dynamic data response message;
Send the static data request message for the static data of more fresh content instruction described in obtaining.
A kind of server apparatus, comprising:
Dynamic data request message receiving element, for receiving the dynamic data request message that client sends;
Judging unit, for judging whether described client exists static data to be updated;
Dynamic data response message transmitting element, for the judged result of judging unit is encapsulated in dynamic data response message, described client sends to described client, so that can determine that according to the described judged result comprised in described dynamic data response message the static data whether stored self upgrades.
Wherein, the customer ID of described client is comprised in described dynamic data request message;
Described judging unit, specifically comprises:
Static data status indicator determination module, for the corresponding relation according to the customer ID prestored and static data status indicator, determines the static data status indicator that described customer ID is corresponding;
Static data status indicator judge module, to be updated for judging whether static data status indicator that static data status indicator determination module is determined characterizes static data; When judged result be the static data status indicator determined characterize static data to be updated time, determine that described client exists static data to be updated; Otherwise, determine that described client does not exist static data to be updated.
Wherein, when the judged result of static data status indicator judge module be the static data status indicator determined characterize static data to be updated time, described server apparatus also comprises:
Upgrade content determining unit, the corresponding relation of the customer ID prestored for basis and more fresh content, determines the more fresh content that described customer ID is corresponding;
Described dynamic data response message transmitting element, specifically for:
By judged result and the renewal content package determined in dynamic data response message.
A kind of client device, comprising:
Dynamic data request message transmitting element, for sending dynamic data request message to server;
Dynamic data response message receiving element, for receiving the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message;
Static data request message transmitting element, for when determine described judged result characterize described client there is static data to be updated time, send static data obtain request message;
Updating block, for the static data response message according to described server feedback, the static data stored self upgrades.
Wherein, the more fresh content of static data to be updated is also comprised in described dynamic data response message; Then
Static data request message transmitting element, specifically for:
When described judged result characterize described client there is static data to be updated time, more fresh content described in obtaining from described dynamic data response message, and send the static data request message for the more static data of fresh content instruction described in obtaining.
A kind of data synchronous system, comprises server and client side, wherein:
Described server, for receiving the dynamic data request message that client sends; Judge whether described client exists static data to be updated; And judged result is encapsulated in dynamic data response message, send to described client;
Described client, for sending dynamic data request message to server; Receive the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message; When determine described judged result characterize described client there is static data to be updated time, send static data request message; And according to the static data response message of described server feedback, the static data stored self upgrades.
The beneficial effect of the embodiment of the present invention is as follows:
In the embodiment of the present invention, client is according to the judged result that whether there is static data to be updated for characterizing this client comprised in the dynamic data response message of mobile healthy platform feedback, determine whether that the static data stored self upgrades, to ensure that the static data that the static data that user views and mobile healthy platform store can realize synchronously, compared with prior art, both the waste to mobile terminal resource had been decreased, when can ensure that again user uses client each time, the static data that client presents realizes synchronous with the static data that mobile healthy platform stores.
Accompanying drawing explanation
Fig. 1 be in prior art mobile health system realize Organization Chart;
Fig. 2 be in prior art mobile terminal for dynamic data and static data update method realize schematic diagram;
The realization flow figure of the method for data synchronization that Fig. 3 provides for the embodiment of the present invention;
The realization flow figure of the method for data synchronization that Fig. 4 provides for the embodiment of the present invention;
Fig. 5 is the architecture advances schematic diagram of client and server;
The method of data synchronization that Fig. 6 provides for the embodiment of the present invention is at the flow chart of practical application;
The structural representation of a kind of server apparatus that Fig. 7 provides for the embodiment of the present invention;
The structural representation of a kind of client device that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of data synchronous system that Fig. 9 provides for the embodiment of the present invention.
Embodiment
In order to solve in prior art when synchronous static data, both the wasting of resources of mobile terminal can have been caused, can not ensure that again the static data that client presents realizes synchronous problem with the static data in mobile healthy platform, the synchronous method of the applicant to static data of the prior art conducts in-depth research.As shown in Figure 2, for mobile terminal in prior art for dynamic data and static data update method realize schematic diagram.Wherein:
For dynamic data, adopt the mode being upgraded opportunity by user's determination data, namely when user opens client, just the acquisition of dynamic data is triggered, client initiates HTTP request to mobile healthy platform, obtains dynamic data up-to-date on mobile healthy platform, presents to user;
For static data, because this part information has very large consistency, client can initiate HTTP request at of an every day set time point, obtains static data up-to-date on mobile healthy platform, presents to user.
In addition, the static data of renewal is pushed to user by the mode that mobile healthy platform can also be pushed by note or multimedia message, such as on mobile healthy platform, connect a note or MMS gateway, by mobile communications network, the static data of renewal is sent on the mobile terminal of user with the form of note or multimedia message.
First, according to foregoing description content, mobile terminal initiates HTTP request at a set time point of every day, this necessarily requires client to keep online at this set time point of every day, this can make the resource cost of mobile terminal serious, and this mode can not ensure that the static data that client presents realizes synchronous with the static data in mobile healthy platform;
Secondly, the static data upgraded is obtained by the form of note or multimedia message, although note can send Word message, multimedia message can send multimedia messages, but because the content of note or multimedia message and length are all subject to a definite limitation, also do not meet mobile healthy platform promotes larger data demand to user, and mobile healthy platform connects note or MMS gateway, also make the more complicated underaction of structure of mobile healthy platform.
Based on above-mentioned analysis, the applicant provides a kind of method of data synchronization, device and system.In this technical scheme, client is according to the judged result that whether there is static data to be updated for characterizing this client comprised in the dynamic data response message of mobile healthy platform feedback, determine whether that the static data stored self upgrades, to ensure that the static data that the static data that user views and mobile healthy platform store can realize synchronously, compared with prior art, both the waste to mobile terminal resource had been decreased, when can ensure that again user uses client each time, the static data that client presents realizes synchronous with the static data that mobile healthy platform stores.
Below in conjunction with Figure of description, embodiments of the invention are described, should be appreciated that embodiment described herein is only for instruction and explanation of the present invention, is not limited to the present invention.And when not conflicting, the embodiment in this explanation and the feature of embodiment can be combined with each other.
Embodiments providing a kind of method of data synchronization, as shown in Figure 3, is the realization flow figure of the method, and the executive agent of the method can for the server in mobile healthy platform, and the method mainly comprises the steps:
Step 31, receives the dynamic data request message that client sends;
Step 32, judges whether this client exists static data to be updated;
Concrete, the customer ID of this client is comprised in the dynamic data request message that this client sends, after server receives this dynamic data request message, just can according to the customer ID of this client, and the corresponding relation of the customer ID prestored and static data status indicator, determine the static data status indicator that this customer ID is corresponding;
Then judging whether this static data status indicator characterizes static data to be updated, when judged result is for being, then determining that this client exists static data to be updated; Otherwise, determine that this client does not exist static data to be updated.
Further, when judged result is for being, according to the content relation of the customer ID that prestores and more fresh content, can also determine the more fresh content that this customer ID is corresponding, more fresh content can comprise the said module of static data to be updated, data content and data type.
Step 33, is encapsulated in judged result in dynamic data response message, sends to this client, so that according to the judged result comprised in this dynamic data response message, this client can determine that the static data whether stored self upgrades.
Wherein, when this client does not exist static data to be updated, then the judged result being used for characterizing this client and not existing static data to be updated is encapsulated in dynamic data response message, sends to client; When this client exists static data to be updated, then the judged result being used for characterizing this client and existing static data to be updated is encapsulated in dynamic data response message, sends to client;
Further, the more fresh content determined also can also be encapsulated in dynamic data response message, so as client can for this more fresh content go to obtain static data to be updated.
In the embodiment of the present invention, after the server of mobile healthy platform receives the dynamic data request message of client transmission, judge whether this client exists static data to be updated, and judged result is carried in the dynamic data response message of feedback, so that client can determine whether that according to the judged result comprised in dynamic data response message the static data stored self upgrades, to ensure that the static data that the static data that user views and mobile healthy platform store can realize synchronously, compared with prior art, both the waste to mobile terminal resource had been decreased, when can ensure that again user uses client each time, the static data that client presents realizes synchronous with the static data that mobile healthy platform stores.
Below with the client in mobile terminal for executive agent, be introduced the method for data synchronization that the embodiment of the present invention provides, as shown in Figure 4, be the realization flow figure of the method, the method mainly comprises the steps:
Step 41, sends dynamic data request message to server;
User checks user health data by client, and client of just setting out when opening the health data page is set up HTTP with mobile healthy platform and is connected, and initiates dynamic data request message simultaneously.
Step 42, the dynamic data response message of reception server feedback, comprises the judged result that whether there is static data to be updated for characterizing this client in this dynamic data response message;
Step 43, when client determine judged result characterize this client there is static data to be updated time, send static data obtain request message;
Wherein, when client determine judged result characterize this client there is not static data to be updated time, then terminate this HTTP and connect;
And when client determine judged result characterize this client there is static data to be updated time, more fresh content can also be obtained further from dynamic data response message, and according to this more fresh content initiate new HTTP and connect, send the static data request message for obtaining this more static data of fresh content instruction to server.
Wherein, more fresh content can comprise the said module of static data to be updated, data content and data type.
Step 44, according to the static data response message of server feedback, the static data stored self upgrades.
In the embodiment of the present invention, client is according to the judged result that whether there is static data to be updated for characterizing this client comprised in the dynamic data response message of the server feedback in mobile healthy platform, determine whether that the static data stored self upgrades, to ensure that the static data that the static data that user views and mobile healthy platform store can realize synchronously, compared with prior art, both the waste to mobile terminal resource had been decreased, when can ensure that again user uses client each time, the static data that client presents realizes synchronous with the static data that mobile healthy platform stores.
Below the method for data synchronization that the embodiment of the present invention provides is described in detail in the specific implementation process of practical application.
In order to realize the method for data synchronization that the embodiment of the present invention provides, need to improve the server (hereinafter referred to as server) of the client (hereinafter referred to as client) in mobile terminal and mobile healthy platform, as shown in Figure 5, be the architecture advances schematic diagram of client and server.Wherein, at server side, increase a static data and upgrade detector (hereinafter referred to as renewal detector), be in charge of the update status that this moves all static datas on healthy platform, detect the conversion of the static data stored in static data memory cell, and testing result is recorded in renewal detector.At client-side, increase by one and upgrade decision-making device, be responsible for resolving the dynamic data response message of server feedback, make the renewal decision-making of static data according to analysis result, to ensure that client also can obtain up-to-date static data in time when the static data in server occurs to upgrade.
On the basis of above-mentioned improved system, be described in detail the implementation procedure of the method for data synchronization that the embodiment of the present invention provides, as shown in Figure 6, the method for data synchronization provided for the embodiment of the present invention is at the flow chart of practical application.
Step 61, user checks user health data by client, and when opening the health data page, trigger clients is set up HTTP with server and is connected, and sends dynamic data request message;
Step 62, after server receives dynamic data request message, Trigger update detector, exports the judged result whether this user exists static data to be updated, and judged result is carried in dynamic data response message, feed back to client.
Wherein, data form can be prestored in renewal detector, the corresponding relation between these several persons such as user ID, update time, more fresh content and static data status indicator in this data form, can be comprised.Static data in the server occurs more under news, in database table corresponding in static data memory cell stored in more new data, the change of content in data form in Trigger update detector simultaneously.Such as, user passes through the homepage modification of fixed terminal individual human head picture or other personal information, in static data memory cell, personal information table is stored in up-to-date data, old data are replaced, upgrades this time, more fresh content upgraded and static data status indicator etc. of record in the data form of detector simultaneously.
The form upgrading the data form prestored in detector can be as shown in table 1 below.
Table 1:
Wherein, more fresh content specifies which kind of static data concrete and there occurs renewal, as shown in table 2 below, is the said module of more concrete corresponding data to be updated of fresh content, data content and data type.
Table 2:
Upgrade context number Said module Data content Data type
01 Personal information Head portrait Picture
02 Personal information Height Text
11 Active configuration Activity time Time
12 Active configuration Title Text
……
Be the user of 12345678 for user ID, when the HTTP that this user initiates Dynamic Information Requests message connects, renewal detector in server finds that static data status indicator corresponding to this user ID is 1, then static data status indicator 1 and more fresh content 01(corresponding to this user ID are comprised personal information-head portrait-picture) be encapsulated in dynamic data response message, return to client.
Step 63, after client receives dynamic data response message, Trigger update decision-making device, upgrades decision-making device and resolves dynamic data response message, and carry out decision-making according to the judged result of carrying in dynamic data response message; When judged result is 0, then there is not static data to be updated in user, performs step 67; When judged result is 1, then there is static data to be updated in user, performs step 64.
Step 64, continues to resolve dynamic data response message, obtains more fresh content, and initiates new HTTP link, to ask up-to-date static data according to more fresh content.
Step 65, server feedback static data response message;
Step 66, according to the static data response message of server feedback, the static data stored self upgrades;
Step 67, terminates this HTTP link.
The technical scheme tool proposed in the embodiment of the present invention has the following advantages:
1, the transfer of data between client and server does not need the forwarding through note or MMS gateway, has broken away from the restriction of note or multimedia message content-length, also reduces the complexity of mobile healthy platform architecture;
2, for the dynamic data that user health data are such, initiate the mode that HTTP connects when client adopts user to inquire about, ensure the real time data synchronization stored in the data that user checks and server;
3, for userspersonal information and the such static data of service configuration information, the more new management unified is carried out by server, and will more new state be carried in dynamic data response message and feed back to client, enable client carry out Data Update operation according to more new state.
4, when user triggers dynamic data retrieval, static data renewal process is triggered on backstage, and user's unaware, in turn ensure that the promptness that user's static data upgrades simultaneously.
Based on above-mentioned design, the embodiment of the present invention also provides a kind of server apparatus, as shown in Figure 7, is the structural representation of this server apparatus, comprises:
Dynamic data request message receiving element 71, for receiving the dynamic data request message that client sends;
Judging unit 72, for judging whether described client exists static data to be updated;
Dynamic data response message transmitting element 73, for the judged result of judging unit 72 is encapsulated in dynamic data response message, described client sends to described client, so that can determine that according to the described judged result comprised in described dynamic data response message the static data whether stored self upgrades.
Wherein, when comprising the customer ID of described client in described dynamic data request message, then described judging unit 72, can specifically comprise:
Static data status indicator determination module 721, for the corresponding relation according to the customer ID prestored and static data status indicator, determines the static data status indicator that described customer ID is corresponding;
Static data status indicator judge module 722, to be updated for judging whether static data status indicator that static data status indicator determination module 721 is determined characterizes static data; When judged result be the static data status indicator determined characterize static data to be updated time, determine that described client exists static data to be updated; Otherwise, determine that described client does not exist static data to be updated.
Further, when the judged result of static data status indicator judge module 722 be the static data status indicator determined characterize static data to be updated time, described server apparatus also comprises:
Upgrade content determining unit 74, the corresponding relation of the customer ID prestored for basis and more fresh content, determines the more fresh content that described customer ID is corresponding;
Described dynamic data response message transmitting element 73, specifically for:
By judged result and the renewal content package determined in dynamic data response message.
Wherein, described more fresh content can comprise:
The said module of static data to be updated, data content and data type.
Based on above-mentioned design, the embodiment of the present invention also provides a kind of client device, as shown in Figure 8, is the structural representation of this client device, comprises:
Dynamic data request message transmitting element 81, for sending dynamic data request message to server;
Dynamic data response message receiving element 82, for receiving the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message;
Static data request message transmitting element 83, for when determine described judged result characterize described client there is static data to be updated time, send static data obtain request message;
Updating block 84, for the static data response message according to described server feedback, the static data stored self upgrades.
Wherein, the more fresh content of static data to be updated is also comprised in described dynamic data response message; Then
Static data request message transmitting element 83, specifically for:
When described judged result characterize described client there is static data to be updated time, more fresh content described in obtaining from described dynamic data response message, and send the static data request message for the more static data of fresh content instruction described in obtaining.
Based on above-mentioned design, the embodiment of the present invention also provides a kind of data synchronous system, as shown in Figure 9, is the structural representation of this data synchronous system, comprises server 91 and client 92, wherein:
Described server 91, for receiving the dynamic data request message that client 92 sends; Judge whether described client 92 exists static data to be updated; And judged result is encapsulated in dynamic data response message, send to described client 92;
Described client 92, for sending dynamic data request message to server 91; Receive the dynamic data response message of described server 91 feedback; The judged result that whether there is static data to be updated for characterizing described client 92 is comprised in described dynamic data response message; When determine described judged result characterize described client 92 there is static data to be updated time, send static data request message; And according to the static data response message that described server 91 feeds back, the static data stored self upgrades.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. a method of data synchronization, is characterized in that, comprising:
Receive the dynamic data request message that client sends;
Judge whether described client exists static data to be updated; And
Described client judged result is encapsulated in dynamic data response message, sends to described client, so that can determine that according to the described judged result comprised in described dynamic data response message the static data whether stored self upgrades.
2. the method for claim 1, is characterized in that, comprises the customer ID of described client in described dynamic data request message;
Judge whether described client exists static data to be updated, specifically comprises:
According to the corresponding relation of the customer ID prestored and static data status indicator, determine the static data status indicator that described customer ID is corresponding;
Judge whether the static data status indicator determined characterizes static data to be updated;
When judged result be the static data status indicator determined characterize static data to be updated time, determine that described client exists static data to be updated; Otherwise, determine that described client does not exist static data to be updated.
3. method as claimed in claim 2, is characterized in that, when judged result be the static data status indicator determined characterize static data to be updated time, described method also comprises:
According to the corresponding relation of the customer ID prestored and more fresh content, determine the more fresh content that described customer ID is corresponding; Then
Judged result is encapsulated in dynamic data response message, specifically comprises:
By judged result and the renewal content package determined in dynamic data response message.
4. method as claimed in claim 3, it is characterized in that, described more fresh content comprises:
The said module of static data to be updated, data content and data type.
5. a method of data synchronization, is characterized in that, comprising:
Dynamic data request message is sent to server;
Receive the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message;
When determine described judged result characterize described client there is static data to be updated time, send static data request message; And
According to the static data response message of described server feedback, the static data stored self upgrades.
6. method as claimed in claim 5, is characterized in that, also comprise in described dynamic data response message: the more fresh content of static data to be updated; Then
When described judged result characterize described client there is static data to be updated time, send static data request message, specifically comprise:
When described judged result characterize described client there is static data to be updated time, more fresh content described in obtaining from described dynamic data response message;
Send the static data request message for the static data of more fresh content instruction described in obtaining.
7. a server apparatus, is characterized in that, comprising:
Dynamic data request message receiving element, for receiving the dynamic data request message that client sends;
Judging unit, for judging whether described client exists static data to be updated;
Dynamic data response message transmitting element, for the judged result of judging unit is encapsulated in dynamic data response message, described client sends to described client, so that can determine that according to the described judged result comprised in described dynamic data response message the static data whether stored self upgrades.
8. server apparatus as claimed in claim 7, is characterized in that, comprise the customer ID of described client in described dynamic data request message;
Described judging unit, specifically comprises:
Static data status indicator determination module, for the corresponding relation according to the customer ID prestored and static data status indicator, determines the static data status indicator that described customer ID is corresponding;
Static data status indicator judge module, to be updated for judging whether static data status indicator that static data status indicator determination module is determined characterizes static data; When judged result be the static data status indicator determined characterize static data to be updated time, determine that described client exists static data to be updated; Otherwise, determine that described client does not exist static data to be updated.
9. server apparatus as claimed in claim 8, is characterized in that, when the judged result of static data status indicator judge module be the static data status indicator determined characterize static data to be updated time, described server apparatus also comprises:
Upgrade content determining unit, the corresponding relation of the customer ID prestored for basis and more fresh content, determines the more fresh content that described customer ID is corresponding;
Described dynamic data response message transmitting element, specifically for:
By judged result and the renewal content package determined in dynamic data response message.
10. a client device, is characterized in that, comprising:
Dynamic data request message transmitting element, for sending dynamic data request message to server;
Dynamic data response message receiving element, for receiving the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message;
Static data request message transmitting element, for when determine described judged result characterize described client there is static data to be updated time, send static data obtain request message;
Updating block, for the static data response message according to described server feedback, the static data stored self upgrades.
11. client devices as claimed in claim 10, is characterized in that, also comprise the more fresh content of static data to be updated in described dynamic data response message; Then
Static data request message transmitting element, specifically for:
When described judged result characterize described client there is static data to be updated time, more fresh content described in obtaining from described dynamic data response message, and send the static data request message for the more static data of fresh content instruction described in obtaining.
12. 1 kinds of data synchronous systems, is characterized in that, comprise server and client side, wherein:
Described server, for receiving the dynamic data request message that client sends; Judge whether described client exists static data to be updated; And judged result is encapsulated in dynamic data response message, send to described client;
Described client, for sending dynamic data request message to server; Receive the dynamic data response message of described server feedback; The judged result that whether there is static data to be updated for characterizing described client is comprised in described dynamic data response message; When determine described judged result characterize described client there is static data to be updated time, send static data request message; And according to the static data response message of described server feedback, the static data stored self upgrades.
CN201310741674.2A 2013-12-27 2013-12-27 A kind of method of data synchronization, device and system Active CN104753990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310741674.2A CN104753990B (en) 2013-12-27 2013-12-27 A kind of method of data synchronization, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310741674.2A CN104753990B (en) 2013-12-27 2013-12-27 A kind of method of data synchronization, device and system

Publications (2)

Publication Number Publication Date
CN104753990A true CN104753990A (en) 2015-07-01
CN104753990B CN104753990B (en) 2018-11-16

Family

ID=53593087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310741674.2A Active CN104753990B (en) 2013-12-27 2013-12-27 A kind of method of data synchronization, device and system

Country Status (1)

Country Link
CN (1) CN104753990B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789552A (en) * 2016-11-24 2017-05-31 青岛海信移动通信技术股份有限公司 Good friend's head portrait update method and device of social account
CN113746912B (en) * 2021-08-30 2023-12-01 浙江中控技术股份有限公司 DCS monitoring system and method for acquiring DCS control data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852137A (en) * 2005-07-20 2006-10-25 华为技术有限公司 Method for realizing synchronization of client end data and server end data
US20070245235A1 (en) * 2006-03-31 2007-10-18 Microsoft Corporation Efficient storage of drawing objects in synchronizable electronic documents
CN102263798A (en) * 2010-05-25 2011-11-30 ***通信集团甘肃有限公司 Data synchronization method, device and system for communication systems
CN102710665A (en) * 2012-06-27 2012-10-03 深圳中兴网信科技有限公司 Mobile terminal, and data synchronization method of server and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852137A (en) * 2005-07-20 2006-10-25 华为技术有限公司 Method for realizing synchronization of client end data and server end data
US20070245235A1 (en) * 2006-03-31 2007-10-18 Microsoft Corporation Efficient storage of drawing objects in synchronizable electronic documents
CN102263798A (en) * 2010-05-25 2011-11-30 ***通信集团甘肃有限公司 Data synchronization method, device and system for communication systems
CN102710665A (en) * 2012-06-27 2012-10-03 深圳中兴网信科技有限公司 Mobile terminal, and data synchronization method of server and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789552A (en) * 2016-11-24 2017-05-31 青岛海信移动通信技术股份有限公司 Good friend's head portrait update method and device of social account
CN113746912B (en) * 2021-08-30 2023-12-01 浙江中控技术股份有限公司 DCS monitoring system and method for acquiring DCS control data

Also Published As

Publication number Publication date
CN104753990B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN102654885B (en) Mobile terminal webpage adaptation system and method
US20150237113A1 (en) Method and system for file transmission
CN111800443B (en) Data processing system and method, device and electronic equipment
CN107391664A (en) Page data processing method and system based on WEB
CN106933550B (en) Global information obtaining, processing and updating method, device and system
CN107766509B (en) Method and device for static backup of webpage
CN111338893A (en) Process log processing method and device, computer equipment and storage medium
CN110837423A (en) Method and device for automatically acquiring data of guided transport vehicle
CN103095839A (en) System and method of client data presentation
CN102026228B (en) Statistical method and equipment for communication network performance data
CN104469394A (en) Video resource acquiring method, background server, video client and system
CN109218041B (en) Request processing method and device for server system
CN107070978B (en) Method and system for cross-network proxy Web map service and proxy server
CN101895550B (en) Cache accelerating method for compatibility of dynamic and static contents of internet website
CN104753990A (en) Data synchronization method, device and system
WO2021226784A1 (en) Node configuration method and apparatus, distributed system, and computer readable medium
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
US10771578B2 (en) Webpage loading method and apparatus
US20160088076A1 (en) Method, device and system for obtaining mobile network data resources
CN102904742B (en) To method of operation and the system of executable node
CN104462235A (en) Internet of Things general event service mechanism based on Restful Web Service
CN111935316B (en) Method and device for acquiring front-end equipment catalog
CN104754042A (en) Picture releasing and uploading acceleration method and system using CDN (content distribution network)
CN105681262A (en) Interaction message allocating method and system
CN103795810A (en) Data distribution system and method and central server of data distribution system

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