CN107426309A - A kind of information synchronization method, apparatus and system - Google Patents

A kind of information synchronization method, apparatus and system Download PDF

Info

Publication number
CN107426309A
CN107426309A CN201710581568.0A CN201710581568A CN107426309A CN 107426309 A CN107426309 A CN 107426309A CN 201710581568 A CN201710581568 A CN 201710581568A CN 107426309 A CN107426309 A CN 107426309A
Authority
CN
China
Prior art keywords
information
client
product data
data bag
version
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
CN201710581568.0A
Other languages
Chinese (zh)
Other versions
CN107426309B (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.)
Beijing Senseshield Technology Co Ltd
Original Assignee
Beijing Senseshield Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Senseshield Technology Co Ltd filed Critical Beijing Senseshield Technology Co Ltd
Priority to CN201710581568.0A priority Critical patent/CN107426309B/en
Publication of CN107426309A publication Critical patent/CN107426309A/en
Application granted granted Critical
Publication of CN107426309B publication Critical patent/CN107426309B/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/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • 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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of information synchronization method, apparatus and system, this method includes:Cloud server updates the data storehouse version information when receiving the exploitation information changed of developer's platform transmission;The cloud server determines the presence of each client;If at least one client is online, then:The cloud server generates the product data bag for being stored in file server, upgrading products packet version information according to the exploitation information changed, and sends PUSH message to the online client;If whole clients are offline,:The cloud server continues to monitor whether to receive the exploitation information changed.The embodiment of the present invention can realize the exploitation information real-time synchronization between client and cloud server.

Description

A kind of information synchronization method, apparatus and system
Technical field
The present embodiments relate to areas of information technology, more particularly to a kind of information synchronization method, apparatus and system.
Background technology
At present, when developer is modified to the exploitation information of system or software in server end, client is opened Photos and sending messages need synchronous with the amended newest exploitation information holding of server end.
In the prior art, server end can preserve to developer in the exploitation information that server end is changed every time, but Client only needs to obtain the newest exploitation information of server end, if the frequency that developer changes exploitation information is higher, service Device end still preserves the exploitation information that developer changes every time, then can waste the resource of server end.Or server end is only protected The newest exploitation information of developer's Last modification is deposited, but client obtains newest exploitation information existence time delay Problem, if the time interval that client sends synchronizing information request is shorter, client can frequently access service Device end, add the pressure of server end;If the time interval that client sends synchronizing information request is longer, The exploitation information that client just can not upgrade in time newest, the data at client and server end can not be made to keep consistent in real time Property.
The content of the invention
The embodiment of the present invention provides a kind of information synchronization method, apparatus and system, with solve client in the prior art and The data of server end can not real-time synchronization the problem of.
In a first aspect, the embodiments of the invention provide a kind of information synchronization method, including:
Cloud server updates the data storehouse version letter when receiving the exploitation information changed of developer's platform transmission Breath, wherein, the exploitation information that the database version information is stored in the database for identifying the cloud server Version;
The cloud server determines the presence of each client;
If at least one client is online, then:The cloud server is given birth to according to the exploitation information changed Into the product data bag for being stored in file server, upgrading products packet version information, and to the online visitor Family end sends PUSH message;Wherein, the product data bag version information is used to identify the production for being stored in the file server The version of product packet;Download information of the product data bag in the file server is carried in the PUSH message, with And the database version information and/or product data bag version information after renewal;
If whole clients are offline,:The cloud server continues to monitor whether to receive the exploitation changed Information.
Further, if the cloud server receive client transmission version request message, detection described in Whether database version information matches with the product data bag version information;
If the database version information mismatches with the product data bag version information, the cloud server New product data bag is generated according to exploitation information corresponding with the database version information, by the new product data bag Send to the file server, and the renewal product data bag version information;
The cloud server sends request feedback message, the request to the client for sending the version request message Carry download information of the new product data bag in the file server in feedback message, and with the new product Database version information corresponding to packet and/or product data bag version information.
Further, the upgrading products packet version information, including:
The version that the version that product data bag version information after renewal is identified is identified with database version information It is identical.
Further, the cloud server determines the presence of each client, including:
The cloud server determines whether to receive the heartbeat packet of client transmission;
If received, the client for sending the heartbeat packet is defined as online client by the cloud server.
Second aspect, the embodiments of the invention provide a kind of information synchronization method, including:
When client is in presence, if receiving the PUSH message of cloud server transmission, pushed away described in acquisition The product data bag that message includes is sent in the download information of file server, and database version information and/or product number According to bag version information, wherein, what the database version information was stored in the database for identifying the cloud server The version of information is developed, the product data bag version information is used to identify the product data bag for being stored in the file server Version;
The client according to the product data bag file server download information, in the file server Download the product data bag;
The client replaces client local using the database version information and/or product data bag version information Version information, use the product data bag of download to replace the local product data bag of client.
Further, if the client switches to presence from off-line state, sent out to the cloud server Send version request message;
The client receives the request feedback message that the cloud server is sent according to the version request message, institute State and the download information of last word packet in the file server carried in request feedback message, and with the newest production Database version information corresponding to product packet and/or product data bag version information;
The client uses the database version information and/or product data bag version information and client local Version information is matched, and when matching inconsistent, according to the download information of the last word packet, in the file Product data bag is downloaded in server;
The client uses corresponding with the last word packet database version information and/or product number The local version information of client is replaced according to bag version information, the local product of client is replaced using the product data bag of download Packet.
Further, the client is when in presence, according to default time interval to the cloud service Device sends heartbeat packet, so that the cloud server determines the presence of the client according to the heartbeat packet.
The third aspect, the embodiment of the present invention additionally provide a kind of synchronizing information device, are configured in cloud server, bag Include:
Update module, for when receiving the exploitation information changed of developer's platform transmission, updating the data storehouse version This information, wherein, the exploitation letter that the database version information is stored in the database for identifying the cloud server The version of breath;
State determining module, for determining the presence of each client;
In wire module, for if at least one client it is online, then:The cloud server has been changed according to described Exploitation information generate product data bag for being stored in file server, upgrading products packet version information, Yi Jixiang The online client sends PUSH message;Wherein, the product data bag version information is stored in the text for mark The version of the product data bag of part server;The product data bag is carried in the PUSH message in the file server The database version information and/or product data bag version information after download information, and renewal;
Off-line module, if offline for whole clients,:The cloud server continues to monitor whether to receive The exploitation information changed.
Fourth aspect, the embodiment of the present invention additionally provide a kind of synchronizing information device, are configured in client, including:
Acquisition module, for when in presence, if receiving the PUSH message of cloud server transmission, obtaining The product data bag that the PUSH message includes is taken in the download information of file server, and database version information and/ Or product data bag version information, wherein, in database of the database version information for identifying the cloud server The version of the exploitation information stored, the product data bag version information are used to identify the production for being stored in the file server The version of product packet;
Download module, for according to the product data bag file server download information, in the file service The product data bag is downloaded in device;
Replacement module, for replacing client using the database version information and/or product data bag version information Local version information, the local product data bag of client is replaced using the product data bag of download.
5th aspect, the embodiment of the present invention additionally provide a kind of information synchronization system, including:
Cloud server, for performing the information synchronization method described in the embodiment of the present invention, according to the client be Wire state or off-line state, perform corresponding synchronizing information operation;
Client, for performing the information synchronization method described in the embodiment of the present invention, realize and opened between cloud server Photos and sending messages are synchronous;
File server, for storing product data bag.
The embodiment of the present invention can perform corresponding exploitation synchronizing information operation, make visitor according to the network state of client By the push of cloud server when family end is online, the exploitation information of renewal is obtained in real time, in client off-line, maximizes cloud The performance of server is held, saves the resource of cloud server, when client is reached the standard grade, pulls high in the clouds exploitation information in time, using pushing away The mode being combined is sent and pulled, realizes the information real-time synchronization between client and cloud server.
Brief description of the drawings
Fig. 1 is a kind of flow chart of information synchronization method in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of information synchronization method in the embodiment of the present invention two;
Fig. 3 is a kind of flow chart of information synchronization method in the embodiment of the present invention three;
Fig. 4 is a kind of flow chart of information synchronization method in the embodiment of the present invention four;
Fig. 5 is a kind of structural representation of synchronizing information device in the embodiment of the present invention five;
Fig. 6 is a kind of structural representation of synchronizing information device in the embodiment of the present invention six;
Fig. 7 is a kind of structural representation of information synchronization system in the embodiment of the present invention seven.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart for information synchronization method that the embodiment of the present invention one provides, and the present embodiment is applicable to lead to Cloud server is crossed to carry out the situation with client exploitation information real-time synchronization, this method can be by a kind of synchronizing information device To perform, the device can be realized by the way of software and/or hardware, typically be integrated in cloud server.
The method of the embodiment of the present invention one specifically includes:
S101, cloud server update the data storehouse when receiving the exploitation information changed of developer's platform transmission Version information, wherein, the exploitation that the database version information is stored in the database for identifying the cloud server The version of information.
Specifically, developer can developer's platform modifying develop information, exploitation information include developer's information and Product information, wherein, developer's information includes developer's title, developer's identity number and developer's mark etc. with opening The relevant identification information of business is sent out, product information includes product data bag corresponding to the version information and version information of product.Production Product packet can exist in the form of compressed package.After cloud server receives the exploitation information changed, high in the clouds is updated The version of the exploitation information stored in the database of server, that is, update the data storehouse version information, to complete edition upgrading.
S102, the cloud server determine the presence of each client.
Preferably, the cloud server determines the presence of each client, including:
The cloud server determines whether to receive the heartbeat packet of client transmission;
If received, the client for sending the heartbeat packet is defined as online client by the cloud server.
Specifically, cloud server can by client send heartbeat packet come determine the network state of client be Line is offline, if cloud server can receive the heartbeat packet of client transmission, it is determined that the client is in online State.If cloud server receives the heartbeat packet that the first client continuously transmits in setting time section, by the first visitor The presence mark at family end is defined as identifying online.If cloud server does not receive the second client in setting time section End sends any heartbeat packet, then is defined as identifying offline by the presence mark of the second client.Cloud server can root Identified according to the presence of each client, determine that at least one client is in presence.Wherein, setting time section can be with Specifically set according to practical situations, for example, setting time section could be arranged to 10 seconds.If cloud server receives The heartbeat packet sent to client, the then client that cloud server can determine to send heartbeat packet are in presence.
S103, if at least one client it is online, then:The cloud server is believed according to the exploitation changed Breath generation is used to being stored in the product data bag of file server, upgrading products packet version information, and to online institute State client and send PUSH message;Wherein, the product data bag version information is stored in the file server for mark Product data bag version;Lower information carrying of the product data bag in the file server is carried in the PUSH message The database version information and/or product data bag version information after breath, and renewal.
Preferably, the upgrading products packet version information, including:
The version that the version that product data bag version information after renewal is identified is identified with database version information It is identical.
Specifically, when at least one client is in presence, cloud server has been changed according to developer Develop information generation product data bag, and product data bag version information corresponding to upgrading products packet, after making renewal The version that product data bag version information is identified is identical with the version that database version information is identified, i.e. product data bag version This information and date storehouse version information is identical.Product data bag is sent to file server and stored by cloud server, and By database version information and/or product data bag version of the product data bag after the download information of file server and renewal This information pushes to online client, online client is completed client production packet and client production data The renewal operation of client release information corresponding to bag, it can keep opening in real time with cloud server when developing information modification Photos and sending messages are synchronous.Wherein, product data bag is resource locator in the download information of file server, i.e. product data bag exists Storage location in file server, enable the client to download product data bag according to the storage location of product data bag.
If S104, whole clients are offline,:The cloud server continues to monitor whether to receive what is changed Develop information.
Specifically, if cloud server is not received by any heartbeat packet, i.e. all clients are in off-line state, Then cloud server continues to monitor whether to receive the exploitation information changed:If so, perform S101;Otherwise, S104 is performed.
A kind of information synchronization method that the embodiment of the present invention one provides, phase can be performed according to the network state of client The exploitation synchronizing information operation answered, by the push of cloud server when making client online, the exploitation for obtaining renewal in real time is believed Breath, in client off-line, maximizes the performance of cloud server, saves the resource of cloud server, when client is reached the standard grade, and When pull high in the clouds exploitation information, using pushing and pulling the mode that is combined, realize between client and cloud server Information real-time synchronization.
Embodiment two
Fig. 2 is a kind of flow chart for information synchronization method that the embodiment of the present invention two provides, and the embodiment of the present invention two is with reality Apply and be optimized based on example one, specifically to cloud server when client switches to presence by off-line state Operation optimizes, as shown in Fig. 2 the embodiment of the present invention two specifically includes:
S201, cloud server update the data storehouse when receiving the exploitation information changed of developer's platform transmission Version information.
S202, cloud server determine the presence of each client, determine whether that at least one client is online: If so, perform S203;Otherwise, S204 is performed.
S203, if at least one client it is online, then:The cloud server is believed according to the exploitation changed Breath generation is used to being stored in the product data bag of file server, upgrading products packet version information, and to online institute State client and send PUSH message.
If S204, whole clients are offline,:The cloud server continues to monitor whether to receive what is changed Develop information.
If S205, the cloud server receive what client was sent when switching to presence by off-line state Version request message, then detect whether the database version information matches with the product data bag version information:If so, hold Row S206;Otherwise, S207 is performed.
Specifically, when client switches to presence from off-line state, cloud server can receive client hair The version request sent.The purpose that client sends version request is to detect the number of active client version information and cloud server It is whether consistent according to storehouse version information.If cloud server receives the version request of client transmission, data are detected first Whether storehouse version information matches with product data bag version information.
If S206, the database version information and product data bag matches version information, the cloud server Request feedback message is sent to the client for sending the version request message, the cloud clothes are carried in the request feedback message The database version information and/or product data bag version information of state-of-the-art record in business device, and corresponding product packet is in text Download information in part server.
Specifically, if database version information matches with product data bag version information, cloud server is direct Request feedback message is sent to the client for sending version request message, the database version of state-of-the-art record in Cloud Server is believed The download information of breath and/or product data bag version information and corresponding product packet in file server is sent to client End, and detect the database version information and/or product data bag version letter of active client version information and cloud server Whether breath is consistent, in the case of inconsistencies, can download newest product data in file server according to download information Bag.
If S207, the database version information mismatch with the product data bag version information, the high in the clouds Server generates new product data bag according to exploitation information corresponding with the database version information, by the new product Packet is sent to the file server, and the renewal product data bag version information.
Specifically, if database version information and product data bag version information mismatch, cloud server according to Exploitation information corresponding with database version information generates new product data bag, and product data bag is carried out using AES Encryption, and the product data bag into file server, and renewal cloud server is sent after the operation being digitally signed Version information.
S208, the cloud server send request feedback message, institute to the client for sending the version request message State in request feedback message and carry download information of the new product data bag in the file server, and with it is described new Product data bag corresponding to database version information and/or product data bag version information.
Specifically, cloud server sends request feedback message to the client for sending version request message, read new After storage location of the product data bag in file server, by storage position of the new product data bag in file server Put and database version information corresponding with new product data bag and/or product data bag version information are sent to client End, and detect the database version information and/or product data bag version letter of active client version information and cloud server Breath it is whether consistent, in the case of inconsistencies, can according to storage location of the new product data bag in file server from New product data bag is downloaded in file server, is automatically performed product number corresponding to client release information and version information According to the renewal of bag.
A kind of information synchronization method that the embodiment of the present invention two provides, when at least one client is online, passes through push Mode make client complete edition upgrading operation, it is synchronous with cloud server holding in real time, in client by off-line state When switching to presence, version request message is sent to cloud server immediately, beyond the clouds the version information of server and visitor In the case that family end version information is inconsistent, by obtaining the product data bag version information pair consistent with database version information The new product data bag download information answered, make client synchronous with cloud server holding in real time, realize client and cloud Hold the exploitation information real-time synchronization of server.
Embodiment three
A kind of flow chart for information synchronization method that Fig. 3 provides for the embodiment of the present invention three, the embodiment of the present invention more than three State and improvement is optimized based on each embodiment, the present embodiment is applicable to by client open with cloud server The situation of photos and sending messages real-time synchronization, this method can be performed by a kind of synchronizing information device, the device can use software and/ Or the mode of hardware is realized, is typically integrated in client.As shown in figure 3, the method for the embodiment of the present invention three specifically includes:
When S301, client are in presence, if receiving the PUSH message of cloud server transmission, institute is obtained State the download information of product data bag that PUSH message includes in file server, and database version information and/or production Product packet version information, wherein, the database version information is deposited in the database for identifying the cloud server The version of the exploitation information of storage, the product data bag version information are used to identify the product number for being stored in the file server According to the version of bag.
Client is when in presence, if receiving the PUSH message of cloud server transmission, described in acquisition The product data bag that PUSH message includes file server download information, and renewal after database version information And/or product data bag version information.
Preferably, the client is when in presence, according to default time interval to the cloud server Heartbeat packet is sent, so that the cloud server determines the presence of the client according to the heartbeat packet.
Specifically, client sends heartbeat packet according to interval setting time to cloud server, so that cloud server root Determine that client is in presence according to heartbeat packet.Wherein, setting interval time can set according to practical situations, For example, it could be arranged to 5 seconds.If client is in presence, the PUSH message that cloud server is sent is received, is obtained The product data bag that PUSH message includes file server download information, and renewal after database version information And/or product data bag version information.
S302, the client according to the product data bag file server download information, the file take The product data bag is downloaded in business device.
Specifically, client according to download address of the product data bag in file server under file server requests Carry product data bag corresponding to database version information.
S303, the client replace client using the database version information and/or product data bag version information Local version information is held, the local product data bag of client is replaced using the product data bag of download.
Specifically, client replaces with original client release information version corresponding to the product data bag currently downloaded This information, original client production packet is replaced with from the corresponding with database version information of file server download Product data bag.According to the push of cloud server, be automatically performed to client release information and with client release information The renewal of corresponding product data bag, realize the exploitation information real-time synchronization with cloud server.
A kind of information synchronization method that the embodiment of the present invention three provides, developer repair in the case where client is in online Change exploitation information, according to the propelling data of cloud server, client completes online real-time update, with realization and cloud service The exploitation information real-time synchronization of device.
Example IV
A kind of flow chart for information synchronization method that Fig. 4 provides for the embodiment of the present invention four, the embodiment of the present invention more than four State and improvement is optimized based on each embodiment, operation when presence is switched to by off-line state to client is carried out Further illustrate, as shown in figure 4, the method for the embodiment of the present invention four specifically includes:
When S401, client are in presence, if receiving the PUSH message of cloud server transmission, institute is obtained State the download information of product data bag that PUSH message includes in file server, and database version information and/or production Product packet version information, wherein, the database version information is deposited in the database for identifying the cloud server The version of the exploitation information of storage, the product data bag version information are used to identify the product number for being stored in the file server According to the version of bag.
S402, the client according to the product data bag file server download information, the file take The product data bag is downloaded in business device.
S403, the client replace client using the database version information and/or product data bag version information Local version information is held, the local product data bag of client is replaced using the product data bag of download.
If S404, the client switch to presence from off-line state, version is sent to the cloud server This request message.
Specifically, client after off-line state switches to presence, establishes long connection, so with cloud server first Version request message is sent to cloud server afterwards, client release information can be sent to cloud server, ask high in the clouds Whether server comparison data storehouse version information and client release information are consistent, to check that the local version information of client is No is newest.
S405, the client receive the request feedback that the cloud server is sent according to the version request message and disappeared Breath, carries the download information of last word packet in the file server in the request feedback message, and with it is described Database version information corresponding to last word packet and/or product data bag version information.
S406, the client use the database version information and/or product data bag version information and client Local version information is matched, and when matching inconsistent, according to the download information of the last word packet, in institute State download product data bag in file server.
Specifically, if the version information of client local is not newest, according to the lower information carrying of new product data bag Breath downloads new product data bag, and verifies the digital signature of new product data bag, and uses what is matched with AES Decipherment algorithm decrypts new product data bag.
S407, the client use the database version information corresponding with the last word packet and/or Product data bag version information replaces the local version information of client, and it is local to replace client using the product data bag of download Product data bag.
Specifically, original local version information is replaced with database version information and/or product data bag by client Version information, product data bag corresponding to original local version information is replaced with into the new product data bag with having downloaded, To complete to develop information real-time synchronization with cloud server after switching to presence from off-line state.
A kind of information synchronization method that the embodiment of the present invention four provides, client switch to presence from off-line state Afterwards, by way of pulling, to the version information of cloud server request cloud server storage, server storage beyond the clouds In the case that version information has updated, and client local version information does not update, client completes version information and version The real-time update of product data bag corresponding to this information, the synchronous of exploitation information is kept with cloud server.
Embodiment five
Fig. 5 is a kind of structural representation of synchronizing information device in the embodiment of the present invention five, and the device is applied to pass through Cloud server carries out the situation with client exploitation information real-time synchronization, and the device can use software and/or hardware Mode is realized, is typically integrated in cloud server.As shown in figure 5, device includes:Update module 501, state determining module 502nd, in wire module 503 and off-line module 504.
Update module 501, for when receiving the exploitation information changed of developer's platform transmission, updating the data storehouse Version information, wherein, the exploitation that the database version information is stored in the database for identifying the cloud server The version of information;
State determining module 502, for determining the presence of each client;
In wire module 503, for if at least one client it is online, then:The cloud server according to it is described The exploitation information of modification generates the product data bag for being stored in file server, upgrading products packet version information, with And send PUSH message to the online client;Wherein, the product data bag version information is stored in institute for mark State the version of the product data bag of file server;The product data bag is carried in the PUSH message in the file service The database version information and/or product data bag version information after the download information of device, and renewal;
Off-line module 504, if offline for whole clients,:The cloud server continues to monitor whether to connect Receive the exploitation information changed.
The embodiment of the present invention can perform corresponding exploitation synchronizing information operation, make visitor according to the network state of client By the push of cloud server when family end is online, the exploitation information of renewal is obtained in real time, in client off-line, maximizes cloud The performance of server is held, saves the resource of cloud server, when client is reached the standard grade, pulls high in the clouds exploitation information in time, using pushing away The mode being combined is sent and pulled, realizes the information real-time synchronization between client and cloud server.
On the basis of above-described embodiment, the device can also include:
Matching module, if the version request message for receiving client transmission, detects the database version Whether information matches with the product data bag version information;
Matching result module, if for the database version information and the product data bag version information not To match somebody with somebody, then the cloud server generates new product data bag according to exploitation information corresponding with the database version information, The new product data bag is sent to the file server, and the renewal product data bag version information;
Feedback module, for sending request feedback message, the request to the client for sending the version request message Carry download information of the new product data bag in the file server in feedback message, and with the new product Database version information corresponding to packet and/or product data bag version information.
It is described to include in wire module 503 on the basis of above-described embodiment:
Updating block, the version and database version information identified for the product data bag version information after renewal The version identified is identical.
On the basis of above-described embodiment, the state determining module 502 can include:
Heartbeat packet receiving unit, it is used to determine whether to receive the heartbeat packet of client transmission;
Presence determining unit, if for receiving the heartbeat packet, the cloud server is by described in transmission The client of heartbeat packet is defined as online client.
In the present embodiment, when developer develops information by developer's platform modifying and sends to cloud server, Cloud server updates the data storehouse version information.Cloud server is obtained by the heartbeat packet receiving unit in state determining module The heartbeat packet that client is sent, if receiving heartbeat packet, determine to send the client of heartbeat packet by online determining unit In presence.When at least one client is in presence, by wire module, the exploitation that basis has been changed first Information generates product data bag, and sends product data bag to file server, and then upgrading products packet version information, leads to Updating block is crossed, makes what the version that the product data bag version information after renewal is identified was identified with database version information Version is identical, most after sent to online client and include download address of the product data bag in file server, and update Database version information and/or the PUSH message of product data bag version information afterwards, so that client completes version and version The renewal of product data bag corresponding to this.When client is in off-line state, continue to monitor whether to receive what is changed Develop information.When client switches to presence by off-line state, the version that client is received by matching module please After seeking message, database version information is compared with product data bag version information, if both are inconsistent, according to number New product data bag is generated according to information is developed corresponding to the version information of storehouse, new product data bag is sent to file server Afterwards, product data bag version information.By feedback module, carried to the client transmission for sending version request message new Product data bag is in the download information of the file server, and database version information corresponding with new product data bag And/or the feedback message of product data bag version information, so that client is completed and cloud server exploitation information real-time synchronization.
The embodiment of the present invention five provides a kind of synchronizing information device, makes network state of the cloud server according to client Develop the renewal operation of information, using client it is online when push, client by switching to online offline when pull and mutually tie The mode of conjunction, realize the information real-time synchronization between client and cloud server.
Embodiment six
Fig. 6 is a kind of structural representation of synchronizing information device in the embodiment of the present invention six, and the device is applied to pass through Client carries out the situation with cloud server exploitation information real-time synchronization, and the device can use software and/or hardware Mode is realized, is typically integrated in client.As shown in fig. 6, device includes:Acquisition module 601, download module 602 and replace Change the mold block 603.
Acquisition module 601, for when in presence, if receiving the PUSH message of cloud server transmission, Then obtain the download information of product data bag that the PUSH message includes in file server, and database version information And/or product data bag version information, wherein, the database version information is used for the database for identifying the cloud server The version of middle stored exploitation information, the product data bag version information, which is used to identify, is stored in the file server The version of product data bag;
Download module 602, for according to the product data bag file server download information, the file take The product data bag is downloaded in business device;
Replacement module 603, for replacing client using the database version information and/or product data bag version information Local version information is held, the local product data bag of client is replaced using the product data bag of download.
The embodiment of the present invention can receive the PUSH message of cloud server, obtain in real time when client is in online The exploitation information of renewal, realize the information real-time synchronization between client and cloud server.
On the basis of above-described embodiment, the device can also include:
Version request transmitting element, if for switching to presence from off-line state, to the cloud server Send version request message;
Receiving unit, disappear for receiving the request feedback that the cloud server is sent according to the version request message Breath, carries the download information of last word packet in the file server in the request feedback message, and with it is described Database version information corresponding to last word packet and/or product data bag version information;
Download unit, for using the database version information and/or product data bag version information and client sheet The version information on ground is matched, and when matching inconsistent, according to the download information of the last word packet, described Product data bag is downloaded in file server;
Replacement unit, for using the database version information corresponding with the last word packet and/or production Product packet version information replaces the local version information of client, and client local is replaced using the product data bag of download Product data bag.
On the basis of above-described embodiment, the device can also include:
Heartbeat transmitting element, for when in presence, according to default time interval to the cloud server Heartbeat packet is sent, so that the cloud server determines the presence of the client according to the heartbeat packet.
In the present embodiment, client sends heartbeat packet to cloud server by heartbeat transmitting element according to setting time, To help cloud server to understand the current network state of client.Wherein, setting time is specifically set according to practical situations It is fixed, for example, setting time can be 20 seconds.When client is in presence, cloud service is obtained by acquisition module The PUSH message that device is sent, if database version information and/or product data bag version information and client in PUSH message Hold local version information inconsistent, then according to the product data bag that PUSH message includes file server lower information carrying Breath, downloads product data bag, by replacement module, by original client city edition using download module in file server This information replaces with database version information and/or product data bag version information, by original client Native product data Bag replaces with the product data bag of download.
When client switches to presence by off-line state, sent out by version request transmitting element to cloud server Send version request, and by receiving unit receive new product data bag that cloud server returns download address, and Corresponding with new product data bag database version information and/or product data bag version information.Client is by local version The version information that information returns with cloud server is compared, if inconsistent between the two, is downloaded by download unit New product data bag.In replacement unit, the client release information of local is replaced with into database version information and/or production Product packet version information, the product data bag of local is replaced with into new product data bag.
The embodiment of the present invention six provides a kind of synchronizing information device, and client switches to presence from off-line state When, by way of pulling, to the version information of cloud server request high in the clouds storage, the version information stored beyond the clouds and sheet In the case that ground version information is inconsistent, the real-time update of product data bag corresponding to version information and version information is completed, The synchronous of exploitation information is kept with cloud server.
Embodiment seven
Fig. 7 is a kind of structural representation of information synchronization system in the embodiment of the present invention seven, as shown in fig. 7, the system Including:Cloud server 701, client 702 and file server 703.
Cloud server 701, for performing the information synchronization method described in the embodiment of the present invention, it is according to the client Presence or off-line state, perform corresponding exploitation synchronizing information operation;
Client 702, for performing the information synchronization method described in the embodiment of the present invention, realize between cloud server Develop synchronizing information;
File server 703, for storing product data bag.
In the present embodiment, cloud server updates the data storehouse version information when receiving the exploitation information changed, visitor Family end sends heartbeat packet according to setting time to cloud server, and cloud server judges that client is online according to heartbeat packet, Otherwise it is offline.When at least one client is online, cloud server sends PUSH message to online client, wherein, PUSH message includes:Product data bag file server download information, and renewal after database version information and/or Product data bag version information, client download product data bag, and use version database according to download information from file server This information and the product data bag downloaded replace original local version information and product data bag, to realize client and high in the clouds The exploitation synchronizing information of server.
If client is under off-line state, cloud server continues to supervise after database version information is changed Survey the exploitation information for whether receiving and having changed.When client switches to presence from off-line state, to cloud server Version request message is sent, whether cloud server comparison data storehouse version information and product data bag version information are consistent, such as Fruit is inconsistent, and information is developed first according to corresponding to database version information and generates new product data bag, and is sent to file After server, upgrading products packet version information, product data bag version information is set to keep one with database version information Cause, then return to download information and database version information of the new product data bag in file server to client And/or product data bag version information.Client is carried out using the version information that cloud server returns and local version information Compare, if both are inconsistent, according to download information, server downloads new product data bag beyond the clouds, and uses newly Product data bag replaces the local original product data bag of client, and the version information returned using cloud server replaces visitor The version information at family end, can synchronously be opened with cloud server when realizing that client switchs to presence from off-line state Photos and sending messages.
A kind of information synchronization system that the embodiment of the present invention seven provides, pushing away by cloud server when making client online Send, obtain the exploitation information of renewal in real time, in client off-line, maximize the performance of cloud server, save cloud service The resource of device, when client is reached the standard grade, high in the clouds exploitation information is pulled in time, using pushing and pulling the mode that is combined, is realized Information real-time synchronization between client and cloud server.
Synchronizing information device provided in an embodiment of the present invention can perform the synchronizing information side that any embodiment of the present invention provides Method, possess the corresponding functional module of execution method and beneficial effect.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

  1. A kind of 1. information synchronization method, it is characterised in that including:
    Cloud server updates the data storehouse version information when receiving the exploitation information changed of developer's platform transmission, Wherein, the version of the exploitation information stored in database of the database version information for identifying the cloud server This;
    The cloud server determines the presence of each client;
    If at least one client is online, then:The cloud server is generated according to the exploitation information changed and used In the product data bag for being stored in file server, upgrading products packet version information, and to the online client Send PUSH message;Wherein, the product data bag version information is used to identify the product number for being stored in the file server According to the version of bag;The product data bag is carried in the PUSH message in the download information of the file server, Yi Jigeng The database version information and/or product data bag version information after new;
    If whole clients are offline,:The cloud server continues to monitor whether to receive the exploitation information changed.
  2. 2. according to the method for claim 1, it is characterised in that methods described also includes:
    If the cloud server receives the version request message of client transmission, the database version information is detected Whether matched with the product data bag version information;
    If the database version information and the product data bag version information mismatch, the cloud server according to Exploitation information corresponding with the database version information generates new product data bag, and the new product data bag is sent To the file server, and the renewal product data bag version information;
    The cloud server sends request feedback message, the request feedback to the client for sending the version request message Carry download information of the new product data bag in the file server in message, and with the new product data Database version information corresponding to bag and/or product data bag version information.
  3. 3. according to the method for claim 1, it is characterised in that the upgrading products packet version information, including:
    The version that product data bag version information after renewal is identified is identical with the version that database version information is identified.
  4. 4. method according to claim 1 or 2, it is characterised in that the cloud server determine each client Wire state, including:
    The cloud server determines whether to receive the heartbeat packet of client transmission;
    If received, the client for sending the heartbeat packet is defined as online client by the cloud server.
  5. A kind of 5. information synchronization method, it is characterised in that including:
    When client is in presence, if receiving the PUSH message of cloud server transmission, obtains the push and disappear The product data bag that breath includes is in the download information of file server, and database version information and/or product data bag Version information, wherein, the exploitation that the database version information is stored in the database for identifying the cloud server The version of information, the product data bag version information are used for the version for identifying the product data bag for being stored in the file server This;
    The client in the download information of file server, is downloaded according to the product data bag in the file server The product data bag;
    The client replaces the local version of client using the database version information and/or product data bag version information This information, the local product data bag of client is replaced using the product data bag of download.
  6. 6. according to the method for claim 5, it is characterised in that also include:
    If the client switches to presence from off-line state, send version request to the cloud server and disappear Breath;
    The client receives the request feedback message that the cloud server is sent according to the version request message, described to ask Seek the download information that last word packet in the file server is carried in feedback message, and with the last word number According to database version information corresponding to bag and/or product data bag version information;
    The client uses the database version information and/or product data bag the version information version local with client Information is matched, and when matching inconsistent, according to the download information of the last word packet, in the file service Product data bag is downloaded in device;
    The client uses corresponding with the last word packet database version information and/or product data bag Version information replaces the local version information of client, and the local product data of client are replaced using the product data bag of download Bag.
  7. 7. the method according to claim 5 or 6, it is characterised in that also include:
    The client sends heartbeat packet when in presence, according to default time interval to the cloud server, So that the cloud server determines the presence of the client according to the heartbeat packet.
  8. 8. a kind of synchronizing information device, is configured in cloud server, it is characterised in that including:
    Update module, for when receiving the exploitation information changed of developer's platform transmission, updating the data storehouse version letter Breath, wherein, the exploitation information that the database version information is stored in the database for identifying the cloud server Version;
    State determining module, for determining the presence of each client;
    In wire module, for if at least one client it is online, then:What the cloud server had been changed according to opens Photos and sending messages generate the product data bag for being stored in file server, upgrading products packet version information, and to online The client send PUSH message;Wherein, the product data bag version information is stored in the file clothes for mark The version of the product data bag of business device;Download of the product data bag in the file server is carried in the PUSH message The database version information and/or product data bag version information after information, and renewal;
    Off-line module, if offline for whole clients,:The cloud server continues to monitor whether to receive to have repaiied The exploitation information changed.
  9. 9. a kind of synchronizing information device, is configured in client, it is characterised in that including:
    Acquisition module, for when in presence, if receiving the PUSH message of cloud server transmission, obtaining institute State the download information of product data bag that PUSH message includes in file server, and database version information and/or production Product packet version information, wherein, the database version information is deposited in the database for identifying the cloud server The version of the exploitation information of storage, the product data bag version information are used to identify the product number for being stored in the file server According to the version of bag;
    Download module, for according to the product data bag file server download information, in the file server Download the product data bag;
    Replacement module, it is local for replacing client using the database version information and/or product data bag version information Version information, use the product data bag of download to replace the local product data bag of client.
  10. A kind of 10. information synchronization system, it is characterised in that including:
    Cloud server, it is in wire according to the client for performing the information synchronization method as described in claim 1-4 State or off-line state, perform corresponding synchronizing information operation;
    Client, for performing the information synchronization method as described in claim 5-7, realize to develop between cloud server and believe Breath is synchronous;
    File server, for storing product data bag.
CN201710581568.0A 2017-07-17 2017-07-17 A kind of information synchronization method, apparatus and system Active CN107426309B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710581568.0A CN107426309B (en) 2017-07-17 2017-07-17 A kind of information synchronization method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710581568.0A CN107426309B (en) 2017-07-17 2017-07-17 A kind of information synchronization method, apparatus and system

Publications (2)

Publication Number Publication Date
CN107426309A true CN107426309A (en) 2017-12-01
CN107426309B CN107426309B (en) 2019-02-01

Family

ID=60429958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710581568.0A Active CN107426309B (en) 2017-07-17 2017-07-17 A kind of information synchronization method, apparatus and system

Country Status (1)

Country Link
CN (1) CN107426309B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540452A (en) * 2018-03-15 2018-09-14 北京雷石天地电子技术有限公司 A kind of data-updating method and system
CN108897568A (en) * 2018-07-03 2018-11-27 佛山市影腾科技有限公司 A kind of client update method and device
CN109981678A (en) * 2019-04-08 2019-07-05 北京深思数盾科技股份有限公司 A kind of information synchronization method and device
CN110046167A (en) * 2019-02-18 2019-07-23 阿里巴巴集团控股有限公司 Data-updating method and system
CN110879713A (en) * 2018-09-06 2020-03-13 山东华软金盾软件股份有限公司 Android-end strong encryption plug-in hot update management method
CN110968646A (en) * 2019-12-20 2020-04-07 睿住科技有限公司 Embedded system database synchronization method, device and storage medium
CN111192374A (en) * 2020-01-02 2020-05-22 湖南映客互娱网络信息有限公司 Real-time online monitoring method and system
CN111726375A (en) * 2019-03-19 2020-09-29 北京数聚鑫云信息技术有限公司 Data synchronization method and device and computer equipment
CN112463882A (en) * 2020-11-20 2021-03-09 广东省安心加科技有限公司 Data synchronization method, cloud platform and edge terminal
CN112711446A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Method, device and system for realizing novice guiding service
CN113190190A (en) * 2021-05-25 2021-07-30 西安雷风电子科技有限公司 Printer setting modification method, device and system
CN113824757A (en) * 2020-12-23 2021-12-21 京东科技控股股份有限公司 Data acquisition method, system and computer readable storage medium
CN114285744A (en) * 2020-09-17 2022-04-05 北京金山云网络技术有限公司 Configuration information updating method, device, server and storage medium
CN114281786A (en) * 2021-12-24 2022-04-05 建信金融科技有限责任公司 File processing method and device, electronic equipment and storage medium
CN117149727A (en) * 2023-09-18 2023-12-01 上海鸿翼软件技术股份有限公司 File processing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863174A (en) * 2006-01-12 2006-11-15 华为技术有限公司 Instant message system and message processing method
CN101222451A (en) * 2008-01-28 2008-07-16 北京亿企通信息技术有限公司 Method for acquiring linkman data in instant communication instrument

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863174A (en) * 2006-01-12 2006-11-15 华为技术有限公司 Instant message system and message processing method
CN101222451A (en) * 2008-01-28 2008-07-16 北京亿企通信息技术有限公司 Method for acquiring linkman data in instant communication instrument

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108540452A (en) * 2018-03-15 2018-09-14 北京雷石天地电子技术有限公司 A kind of data-updating method and system
CN108540452B (en) * 2018-03-15 2020-07-03 北京雷石天地电子技术有限公司 Data updating method and system
CN108897568A (en) * 2018-07-03 2018-11-27 佛山市影腾科技有限公司 A kind of client update method and device
CN110879713A (en) * 2018-09-06 2020-03-13 山东华软金盾软件股份有限公司 Android-end strong encryption plug-in hot update management method
CN110879713B (en) * 2018-09-06 2023-06-20 山东华软金盾软件股份有限公司 Android terminal strong encryption plug-in thermal update management method
CN110046167A (en) * 2019-02-18 2019-07-23 阿里巴巴集团控股有限公司 Data-updating method and system
CN111726375A (en) * 2019-03-19 2020-09-29 北京数聚鑫云信息技术有限公司 Data synchronization method and device and computer equipment
CN109981678A (en) * 2019-04-08 2019-07-05 北京深思数盾科技股份有限公司 A kind of information synchronization method and device
CN110968646B (en) * 2019-12-20 2023-06-06 广东睿住智能科技有限公司 Embedded system database synchronization method, device and storage medium
CN110968646A (en) * 2019-12-20 2020-04-07 睿住科技有限公司 Embedded system database synchronization method, device and storage medium
CN111192374A (en) * 2020-01-02 2020-05-22 湖南映客互娱网络信息有限公司 Real-time online monitoring method and system
CN114285744A (en) * 2020-09-17 2022-04-05 北京金山云网络技术有限公司 Configuration information updating method, device, server and storage medium
CN112463882A (en) * 2020-11-20 2021-03-09 广东省安心加科技有限公司 Data synchronization method, cloud platform and edge terminal
CN113824757A (en) * 2020-12-23 2021-12-21 京东科技控股股份有限公司 Data acquisition method, system and computer readable storage medium
CN113824757B (en) * 2020-12-23 2024-05-21 京东科技控股股份有限公司 Data acquisition method, system and computer readable storage medium
CN112711446A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Method, device and system for realizing novice guiding service
CN112711446B (en) * 2020-12-29 2024-07-23 南京医基云医疗数据研究院有限公司 Implementation method, device and system of novice guiding service
CN113190190A (en) * 2021-05-25 2021-07-30 西安雷风电子科技有限公司 Printer setting modification method, device and system
CN113190190B (en) * 2021-05-25 2024-03-29 西安雷风电子科技有限公司 Printer setting modification method, device and system
CN114281786A (en) * 2021-12-24 2022-04-05 建信金融科技有限责任公司 File processing method and device, electronic equipment and storage medium
CN114281786B (en) * 2021-12-24 2024-08-13 建信金融科技有限责任公司 File processing method, device, electronic equipment and storage medium
CN117149727A (en) * 2023-09-18 2023-12-01 上海鸿翼软件技术股份有限公司 File processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN107426309B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN107426309B (en) A kind of information synchronization method, apparatus and system
US20170149606A1 (en) Synchronization of Configuration File of Virtual Application Distribution Chassis
CN103152398B (en) File synchronisation method and system between the file of a kind of multiple terminals
CN103037312B (en) Information push method and device
CN105515872B (en) The update method of configuration information, apparatus and system
WO2013056172A1 (en) Automatically aggregating contact information
CN102868731A (en) Method and device for software online updating and downloading acceleration
CN105162894B (en) Device identification acquisition methods and device
US20110188406A1 (en) Message Transport System Using Publication and Subscription Mechanisms
CN110502572A (en) A kind of method and server that data are synchronous
CN109522363A (en) Cloud platform synchronous method, system, equipment and storage medium based on block chain
CN104243515A (en) Method and device for processing configuration information
CN108139936A (en) The methods, devices and systems of access to the serial port from the virtual machine in the virtual application of deployment are provided
JP2014164487A (en) Server, backup system, backup method and computer program
CN103914338A (en) Terminal background application cleaning method, terminal and system
CN109783193A (en) A kind of mirror image file management method that can be multiplexed in multiple domain cloud platform
EP4050850A1 (en) Service upgrading method, device and system
US11853100B2 (en) Automated delivery of cloud native application updates using one or more user-connection gateways
CN110162334A (en) A kind of code administration method, apparatus, storage medium and computer program product
CN101895579A (en) Address book synchronization method and system
CN109462507A (en) Configure update method, device, system and electronic equipment
WO2016147073A1 (en) Method and apparatus for identifying changed mailboxes in an internet message access protocol (imap) list
CN105634721B (en) A kind of RPKI data warehouse increment synchronization method
CN108984334A (en) Method and apparatus for managing session
CN104158899A (en) Mobile terminal information pushing method, device and system based on service-oriented architecture (SOA)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100193 5th floor 510, No. 5 Building, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Patentee after: Beijing Shendun Technology Co.,Ltd.

Address before: 100193 5th floor 510, No. 5 Building, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Patentee before: BEIJING SENSESHIELD TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder