CN109547510A - A kind of off-line system method of data synchronization - Google Patents

A kind of off-line system method of data synchronization Download PDF

Info

Publication number
CN109547510A
CN109547510A CN201710864512.6A CN201710864512A CN109547510A CN 109547510 A CN109547510 A CN 109547510A CN 201710864512 A CN201710864512 A CN 201710864512A CN 109547510 A CN109547510 A CN 109547510A
Authority
CN
China
Prior art keywords
data
timestamp
server
client
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710864512.6A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhenjiang Yction Software Co Ltd
Original Assignee
Zhenjiang Yction Software 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 Zhenjiang Yction Software Co Ltd filed Critical Zhenjiang Yction Software Co Ltd
Priority to CN201710864512.6A priority Critical patent/CN109547510A/en
Publication of CN109547510A publication Critical patent/CN109547510A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
    • 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/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

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

Abstract

With the development of the emerging technologies such as internet, mobile Internet, cloud computing, big data, variation takes place in the usage mode of various businesses application system.Mobile terminal using more and more, but the use of operation system data can be affected, therefore the data synchronization problems applied offline solve the technology barrier at current mobile Internet software development due to the unstability of mobile network.More common offline application technology is completed based on server-side, carries out data syn-chronization situation judgement by server-side, such technology all has larger requirement to hardware devices such as configuration, the network bandwidths of server, exists using drawback.The present invention is by a kind of off-line system method of data synchronization, by marking timestamp in interactive information of the client between server-side and client, using timestamp as whether needing synchronous Rule of judgment.In the state of client off-line, information is stored in local data base, timestamp difference is judged when restoring network, data is carried out and synchronizes, realize offline application system.

Description

A kind of off-line system method of data synchronization
Technical field
The present invention relates to a kind of method of data synchronization, especially a kind of off-line system method of data synchronization.
Background technique
With the development of the emerging technologies such as internet, mobile Internet, cloud computing, big data, various businesses application system Usage mode variation takes place.Mobile terminal using more and more, but can be influenced due to the unstability of mobile network Operation system data use, therefore the data synchronization problems applied offline are solved into current mobile Internet software development Technology barrier.
More common offline application technology is completed based on server-side, carries out data syn-chronization situation judgement by server-side, such as Network is unobstructed, and data content is pushed to client, and if network is obstructed, corresponding client is in off-line state, then is servicing Preserving sessions record in device, carry out network state poll, and when offline client restores network, data content is pushed to client End.All there is larger requirement to hardware devices such as configuration, the network bandwidths of server in such technology, exist using drawback.
The present invention passes through the friendship in client between server-side and client by a kind of off-line system method of data synchronization Mutual information marks timestamp, using timestamp as whether needing synchronous Rule of judgment.In the state of client off-line, it will believe Breath is stored in local data base, and timestamp difference is judged when restoring network, is carried out data and is synchronized, and realizes application system offline System.
Summary of the invention
It is an object of the invention to: in view of the deficiencies of the prior art, by client between server-side and client Interactive information marks timestamp, using timestamp as whether needing synchronous Rule of judgment.It, will in the state of client off-line Information is stored in local data base, and timestamp difference is judged when restoring network, is carried out data and is synchronized, and realizes application system offline System.
Whole system, need to be divided into two parts by a kind of off-line system method of data synchronization of the present invention, and one It is locally applied system, the other is service end system, two subsystems respectively further comprise following part:
Local offline engine subsystem includes following component part:
--- ephemeral data storage file: using different local data base application systems for different type of machines, realizes local number According to interim store function;
--- network state detection device: judge that current system is in off-line state or presence;
--- timestamp generator: according to requiring, the acquisition time time, label time corresponding event;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol.
Service end system includes following component part:
--- database storage module: realizing the store function of system data, has both included that logic stores, has also included physical store;
--- timestamp validator: the verification of otherness is carried out to server-side timestamp and local time stamp, is called if consistent Data simultaneous module synchronizes, otherwise unsynchronized data;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol.
User uses step are as follows:
Step 1: for all business datums in the ephemeral data storage file of client and the database storage module of server-side Server time stamp, and any business operation are marked, label timestamp is required.
Step 2: whether client network state detector is online using polling technique inquiring client terminal, if not online It is saved in local ephemeral data storage file.
Step 3: whether family end network state detection device is online using polling technique inquiring client terminal, such as online, then inquires Whether the timestamp of the timestamp validator verifying client and server-side of requesting server-side is consistent, inconsistent, calls data same Module is walked, is otherwise terminated.
Step 4: after synchronization module completion data synchronize, server-side timestamp and local time stamp are modified, guarantees timestamp Consistency.
In this way, by the invention it is possible to effectively solve operation system offline application, and ensure offline apply data peace The validity of Quan Xing and data synchronous transfer.
Specific embodiment
Embodiment one
Whole system need to be divided into two parts by a kind of off-line system method of data synchronization of the present invention, and one is this Ground application system, the other is service end system, two subsystems respectively further comprise following part:
Local offline engine subsystem includes following component part:
--- ephemeral data storage file: using different local data base application systems for different type of machines, realizes local number According to interim store function;
--- network state detection device: judge that current system is in off-line state or presence;
--- timestamp generator: according to requiring, the acquisition time time, label time corresponding event;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol.
Service end system includes following component part:
--- database storage module: realizing the store function of system data, has both included that logic stores, has also included physical store;
--- timestamp validator: the verification of otherness is carried out to server-side timestamp and local time stamp, is called if consistent Data simultaneous module synchronizes, otherwise unsynchronized data;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol.
User uses step are as follows:
Step 1: for all business datums in the ephemeral data storage file of client and the database storage module of server-side Server time stamp, and any business operation are marked, label timestamp is required.
Step 2: whether client network state detector is online using polling technique inquiring client terminal, if not online It is saved in local ephemeral data storage file.
Step 3: whether family end network state detection device is online using polling technique inquiring client terminal, such as online, then inquires Whether the timestamp of the timestamp validator verifying client and server-side of requesting server-side is consistent, inconsistent, calls data same Module is walked, is otherwise terminated.
Step 4: after synchronization module completion data synchronize, server-side timestamp and local time stamp are modified, guarantees timestamp Consistency.
In this way, by the invention it is possible to effectively solve operation system offline application, and ensure offline apply data peace The validity of Quan Xing and data synchronous transfer.
In addition to the implementation, the present invention can also have other embodiments.It is all to use equivalent substitution or equivalent transformation shape At technical solution, fall within the scope of protection required by the present invention.

Claims (2)

1. a kind of off-line system method of data synchronization, it is characterised in that: whole system need to be divided into two parts, one is this Ground application system, the other is service end system, two subsystems respectively further comprise following part:
Locally offline engine subsystem includes
--- ephemeral data storage file: using different local data base application systems for different type of machines, realizes local number According to interim store function;
--- network state detection device: judge that current system is in off-line state or presence;
--- timestamp generator: according to requiring, the acquisition time time, label time corresponding event;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol;
Service end system includes
--- database storage module: realizing the store function of system data, has both included that logic stores, has also included physical store;
--- timestamp validator: the verification of otherness is carried out to server-side timestamp and local time stamp, is called if consistent Data simultaneous module synchronizes, otherwise unsynchronized data;
--- data simultaneous module: complete local data with service end data it is synchronous, support bi-directional synchronization, that is, upload data and Downloading data, while the logic including data when synchronous rectifys wrong function;
--- transmitted data on network function transmission module: is realized based on http protocol.
2. a kind of off-line system method of data synchronization according to claim 1, it is further characterized in that: user uses step are as follows:
Step 1 is all business datums in the ephemeral data storage file of client and the database storage module of server-side Server time stamp, and any business operation are marked, label timestamp is required;
Step 2, whether client network state detector is online using polling technique inquiring client terminal, saves if not online Into local ephemeral data storage file;
Step 3, whether family end network state detection device is online using polling technique inquiring client terminal, such as online, then inquiry request Whether the timestamp validator verifying client of server-side and the timestamp of server-side are consistent, inconsistent, call the synchronous mould of data Otherwise block terminates;
Step 4 modifies server-side timestamp and local time stamp, guarantees the one of timestamp after synchronization module completion data synchronize Cause property.
CN201710864512.6A 2017-09-22 2017-09-22 A kind of off-line system method of data synchronization Pending CN109547510A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710864512.6A CN109547510A (en) 2017-09-22 2017-09-22 A kind of off-line system method of data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710864512.6A CN109547510A (en) 2017-09-22 2017-09-22 A kind of off-line system method of data synchronization

Publications (1)

Publication Number Publication Date
CN109547510A true CN109547510A (en) 2019-03-29

Family

ID=65830442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710864512.6A Pending CN109547510A (en) 2017-09-22 2017-09-22 A kind of off-line system method of data synchronization

Country Status (1)

Country Link
CN (1) CN109547510A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666303A (en) * 2020-05-29 2020-09-15 傲网信息科技(厦门)有限公司 Online and offline document processing system and method
CN112350990A (en) * 2020-09-21 2021-02-09 上海伊邦医药信息科技股份有限公司 Off-line data synchronization method for third-party internet retail cashier system
CN112702427A (en) * 2020-12-23 2021-04-23 武汉湖江科技有限公司 Industrial internet data synchronization system
CN112786188A (en) * 2021-02-05 2021-05-11 北京致医健康信息技术有限公司 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
CN113327098A (en) * 2021-06-15 2021-08-31 镇江高等职业技术学校 Multi-terminal cooperative operation intelligent information management platform
CN113840002A (en) * 2021-09-24 2021-12-24 深圳市智莱科技股份有限公司 Information processing method, system, equipment and medium for locker under weak network environment
CN113873079A (en) * 2021-10-08 2021-12-31 浙江百应科技有限公司 Call record supplementary transmission method and device based on working mobile phone APP and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075864A (en) * 2007-07-16 2007-11-21 腾讯科技(深圳)有限公司 Method for synchronizing and processing data, customer terminal equipment and servo
CN102456009A (en) * 2010-10-21 2012-05-16 镇江金软计算机科技有限责任公司 Off-line engine system based on software as a service (SaaS) mode
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp
US20150371188A1 (en) * 2004-06-29 2015-12-24 United Parcel Service Of America, Inc. Data synchronization for offline processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150371188A1 (en) * 2004-06-29 2015-12-24 United Parcel Service Of America, Inc. Data synchronization for offline processing
CN101075864A (en) * 2007-07-16 2007-11-21 腾讯科技(深圳)有限公司 Method for synchronizing and processing data, customer terminal equipment and servo
CN102456009A (en) * 2010-10-21 2012-05-16 镇江金软计算机科技有限责任公司 Off-line engine system based on software as a service (SaaS) mode
CN102857529A (en) * 2011-06-30 2013-01-02 镇江雅迅软件有限责任公司 Offline application system based on timestamp

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666303A (en) * 2020-05-29 2020-09-15 傲网信息科技(厦门)有限公司 Online and offline document processing system and method
CN112350990A (en) * 2020-09-21 2021-02-09 上海伊邦医药信息科技股份有限公司 Off-line data synchronization method for third-party internet retail cashier system
CN112350990B (en) * 2020-09-21 2023-09-12 上海伊邦医药信息科技股份有限公司 Method for synchronizing offline data of third-party internet retail cashing system
CN112702427A (en) * 2020-12-23 2021-04-23 武汉湖江科技有限公司 Industrial internet data synchronization system
CN112786188A (en) * 2021-02-05 2021-05-11 北京致医健康信息技术有限公司 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
CN113327098A (en) * 2021-06-15 2021-08-31 镇江高等职业技术学校 Multi-terminal cooperative operation intelligent information management platform
CN113840002A (en) * 2021-09-24 2021-12-24 深圳市智莱科技股份有限公司 Information processing method, system, equipment and medium for locker under weak network environment
CN113873079A (en) * 2021-10-08 2021-12-31 浙江百应科技有限公司 Call record supplementary transmission method and device based on working mobile phone APP and electronic equipment

Similar Documents

Publication Publication Date Title
CN109547510A (en) A kind of off-line system method of data synchronization
CN106209948B (en) A kind of data push method and device
CN103139200B (en) A kind of method of Web service single-sign-on
CN102857529A (en) Offline application system based on timestamp
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN105208058A (en) Information exchange system based on web session sharing
CN104539434A (en) Electronic seal system and electronic seal method based on time stamp and GPS location
CN104754009A (en) Service acquisition and invocation method, device, client-side and server
CN106230540A (en) NTP message method of reseptance and sending method in high precision
CN104243508A (en) Server, client side and file synchronization method
CN106790563A (en) Distributed memory system and method
CN109714392A (en) Across the computer room method of data synchronization of one kind and device
CN105515708A (en) FC network based clock synchronization precision testing device and method
CN103763380B (en) A kind of method and system of synchronous demonstrating data
CN104320447B (en) A kind of middle-size and small-size cloud storage method of data synchronization and computer-readable medium, system
CN102611724A (en) Server notice data synchronization and synchronization server migration method, system and device
CN105719414A (en) POS terminal invoicing method and device, and invoicing server terminal
CN105302486A (en) Virtual offline desktop block device storage synchronization method
CN101136747B (en) Information checking system and method
CN103957189A (en) Application program interaction method and device
CN105721274B (en) The fusion method and device of one kind of multiple instant messagings
CN107168642B (en) Data storage method and system
CN102263672A (en) Institute of electrical and electronic engineers (IEEE) 1588 link detection method, system and IEEE 1588 link device
CN103685333A (en) Data synchronization method, terminal equipment, register server and web page server
CN106713464B (en) service management method and device of enterprise service bus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190329

WD01 Invention patent application deemed withdrawn after publication