CN101192229A - Data synchronization method and system - Google Patents

Data synchronization method and system Download PDF

Info

Publication number
CN101192229A
CN101192229A CNA2006101610062A CN200610161006A CN101192229A CN 101192229 A CN101192229 A CN 101192229A CN A2006101610062 A CNA2006101610062 A CN A2006101610062A CN 200610161006 A CN200610161006 A CN 200610161006A CN 101192229 A CN101192229 A CN 101192229A
Authority
CN
China
Prior art keywords
data
time
predetermined amount
interval
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.)
Granted
Application number
CNA2006101610062A
Other languages
Chinese (zh)
Other versions
CN101192229B (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.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN2006101610062A priority Critical patent/CN101192229B/en
Publication of CN101192229A publication Critical patent/CN101192229A/en
Priority to HK08111008.9A priority patent/HK1117611A1/en
Application granted granted Critical
Publication of CN101192229B publication Critical patent/CN101192229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a synchronous data method and a system thereof, which solves the problems that in the prior art, a data server has big pressure on data query and has low efficiency on data processing; the method comprises that: the data of preset time period before the current time is queried form the data server periodically; the queried data is compared with the data corresponding to the local time period; according to the comparative result, the local data are processed correspondingly. The method of the invention is adopted to lighten the working pressure of data query by the data server, achieves the immediate processing of the synchronous data and improves the degree of satisfaction of customers.

Description

A kind of method and system of synchrodata
Technical field
The present invention relates to communication and computer realm, particularly a kind of method and system of synchrodata.
Background technology
Along with developing rapidly of network technology, infotech, ecommerce and telecommunication service, complexity between system of systems and the business also strengthens thereupon, for solving complicated service management and problems of operation, all made up the business management system of a cover core as many enterprises such as telecommunications, finance, with the service resources of management enterprise inside, high efficient and flexible ground, the professional advantage of maximized performance; Existing business management system generally adopts data and service set processing mode, and functions such as data query, monitoring are provided; Client is not provided for the time to the data server deal with data in the existing business system when the data server data query, therefore may exist data server in the process of deal with data, receive the request of these data of inquiry, this moment, data server can not provide these data, therefore client can't be obtained the data of inquiry, thereby may cause losing of data; Need inquire about and with its output all data of corresponding service during the data server data query, therefore the pressure of data server data query is bigger, and, if makeing mistakes synchronously of one of them business datum, client then can not receive the foundation that these data are not inquired about these data yet, therefore need manual file in download that data and the local data that data server inquires compared by handwork, check out the data of losing or makeing mistakes handling accordingly, thereby the workload of this data processing can cause the problem that work efficiency is low and user satisfaction reduces greatly.
Summary of the invention
The invention provides a kind of method and system of synchrodata, the lower problem of efficient of and deal with data big in order to the pressure that solves data server data query in the prior art.
The invention provides following technical scheme:
A kind of method of synchrodata comprises step:
Regularly inquire about the current time data of predetermined amount of time before to data server;
The data that inquire are compared with the data of local corresponding time period; And
According to comparative result local data is carried out respective handling.
The termination of described predetermined amount of time has the time interval constantly and between the described current time.
The described time interval is less than or equal to the duration of described predetermined amount of time.
Described predetermined amount of time is determined at interval according to timing, and the duration of described predetermined amount of time is greater than or equal to described timing at interval.
When there are not the data of corresponding time period in this locality, preserve the data that inquire in this locality.
When the key message of the data of local corresponding time period is inconsistent with the key message of the data that inquire, local data is carried out consequential amendment.
A kind of client comprises:
Be used to be provided with timing at interval and the unit of the predetermined amount of time of data query;
Be used for inquiring about the current time unit of the data of predetermined amount of time before to data server at interval according to described timing;
Be used for the unit that the data that will inquire and the data of local corresponding time period compare;
Be used for local data being carried out the unit of respective handling according to comparative result.
Described client sets interval constantly and between the described current time in the termination of described predetermined amount of time.
Described client is determined described predetermined amount of time at interval according to timing, and the duration of described predetermined amount of time is greater than or equal to described timing at interval.
A kind of system of synchrodata comprises:
Client is used for the regularly data of predetermined amount of time before data server inquiry current time, and the data that inquire are compared with the data of local corresponding time period, and according to comparative result local data is carried out respective handling;
Data server is used for returning to described client according to the query requests of described client at the database data query and with the data that inquire.
Described client comprises:
Be used to be provided with timing at interval and the unit of the predetermined amount of time of data query;
Be used for inquiring about the current time unit of the data of predetermined amount of time before to data server at interval according to described timing;
Be used for the unit that the data that will inquire and the data of local corresponding time period compare;
Be used for local data being carried out the unit of respective handling according to comparative result.
Beneficial effect of the present invention is as follows:
Client has alleviated the working pressure of remote data server regularly to data server data query on a time period among the present invention; The method that client is carried out data query and processing is simple, has reduced the complexity of work, has improved work efficiency; In addition,, can effectively cover the whole day data in synchronization, guarantee the accurate reception of data by rational timing being set at interval; The present invention has effectively realized data in synchronization inquiry in real time and has handled in real time, client compares with the data of local corresponding time period according to Query Result and according to the corresponding adjustment of carrying out user service data of comparative result, has improved the service quality of system and user's satisfaction.
Description of drawings
Fig. 1 is the system architecture synoptic diagram of a kind of synchrodata in the embodiment of the invention;
Fig. 2 is the main realization flow figure of synchrodata in the embodiment of the invention;
Fig. 3 is the principle schematic of inquiry synchrodata in the embodiment of the invention;
Fig. 4 is the realization flow figure of data interaction between transaction system and the transaction processing system in the embodiment of the invention.
Embodiment
In the present embodiment a kind of system architecture of synchrodata as shown in Figure 1, this system comprises:
Client 10 is used for the regularly data of predetermined amount of time before data server inquiry current time, and the data that inquire are compared with the data of local corresponding time period, and according to comparative result local data is carried out respective handling.
Data server 11 is used for returning to described client according to the query requests of described client at the database data query and with the data that inquire.
Wherein, client 10 comprises:
Unit 100 is set, is used to be provided with timing at interval and the time period that data query is set, and when timing arrives, sends driving message to transmitting element; Described timer time at interval according to the processing power setting of the data server of its realization data sync; The time period of described data query determines at interval that according to described timer time can effectively inquire about the whole day data in order to satisfy, described timer time is greater than or equal to the time period of described data query at interval; In addition, for the effective processing that guarantees data in the data server and the stability of data storage, with the current time of data query be set a time interval constantly in the termination of time period of data query, the time period that this time interval is less than or equal to data query can all inquire to guarantee the whole day data.
Transmitting element 101 is used for when timing arrives the request message of the data of predetermined amount of time before data server sends the inquiry current time.
Receiving element 102 is used to receive described data server data in synchronization and receives the data that inquire that described data server returns.
Storage unit 103 is used to store described data server data in synchronization.
Comparing unit 104, the data that are used for described receiving element is received compare with the data of the corresponding time period of described storage unit.
Processing unit 105 is used for according to comparative result local data being handled accordingly; When there are not the data of corresponding time period in this locality, preserve the data that inquire in this locality; When the key message of the data of local corresponding time period is inequality with the key message that inquires, local data is carried out consequential amendment; When described key message is consistent, can local data not dealt with, perhaps other information of local data are revised according to actual business requirement; The key message of described data is determined after being consulted by client and data server, can is service order number or user's name etc.
Described data server 11 comprises:
Receiving element 110 is used to receive the client request message of data query on a time period;
Database 111 is used to store data in synchronization;
Query unit 112 is used for inquiring about corresponding data according to described request message at described database;
Transmitting element 113 is used for returning with the client synchrodata and to client the data that inquire.
As shown in Figure 2, the main realization flow of synchrodata is as follows in the present embodiment:
The data of step 200, timing predetermined amount of time before data server inquiry current time.
Step 201, the data that the inquire data with the local corresponding time period are compared.
Step 202, local data is carried out respective handling according to comparative result.
As shown in Figure 3, suppose that the A point is a current time, the duration of predetermined amount of time BC is set to 15 minutes, the termination moment B point of predetermined amount of time BC and the time interval between the current time A point are set to 5 minutes, client is in A point data in synchronization between data server query time section BC, if timing is set to 5 minutes, then 5 minutes the moment is inquired about data in synchronization within before the A point 15 minutes after the A point, this shows, the data of twice inquiry have overlapping, promptly the data query within before the B point 10 minutes twice, such inquiry mode can guarantee that client can be handled local data as early as possible when data in synchronization between client and the data server is lost or made mistakes.
Below with in the process of exchange on the net, to be example describe the implementation procedure of synchrodata in the present embodiment data exchange process between user, transaction system and the business management system, wherein, transaction system is for providing the service interaction platform between the user and between user and the business management system, the user submits service order (as buying commodity), user that the transaction system management is relevant with this service order and the business processing data between a plurality of business management system to transaction system; Business management system is used to handle transaction system to its every service order that provides (as payment transaction order and logistics business order etc.), and to the synchronous deal with data of each service order of transaction system; Synchrodata can guarantee that the user passes through transaction system inquiry in real time and the relevant business processing situation of submitting to (as the payment situation, commodity shipment situation etc.) of service order between transaction system and the business management system; As shown in Figure 4, flow process is as follows:
Step 400, user submit service order to transaction system.
Step 401, transaction system send to the corresponding service management system with the service order that the user submits to.
Step 402, user finish professional payment to business management system.
Step 403, business management system are handled this payment transaction.
Step 404, business management system and transaction system are finished the synchronous of this business datum.
Step 405, transaction system at the fixed time at interval on a time period to the business management system query traffic data.
Step 406, business management system send to transaction system with the data of inquiry.
Step 407, transaction system compare the data of local corresponding time period and the data of inquiry, and handle local data immediately when both are inconsistent.
When the data of transaction system in the time period of current time inquiry do not exist in this locality, the data that inquire are kept at this locality; The data that inquire when transaction system exist in this locality, and the key message of the key message of the data that inquire and local data is when inequality, according to the Data Update local data that inquires, otherwise, local data is not done any processing; Described key message is consulted to determine by transaction system and business management system, can is service order number or user's name or professional payment etc.
Technical solution of the present invention is applicable to the implementation procedure of synchrodata and asynchronous data, and client is regularly pressed the period data query to data server, has realized the inquiry of business datum effectively, has alleviated the inquiry pressure of data server; And by to the comparison of data query and local data service data loss whether to occur in the specified data synchronous/asynchronous process or to make mistakes, thereby can immediately carry out respective handling to the data of this locality according to result relatively, improve the instant processing of synchrodata effectively, further improved user's satisfaction.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1. the method for a synchrodata is characterized in that, comprises step:
Regularly inquire about the current time data of predetermined amount of time before to data server;
The data that inquire are compared with the data of local corresponding time period; And
According to comparative result local data is carried out respective handling.
2. the method for claim 1 is characterized in that, the termination of described predetermined amount of time has the time interval constantly and between the described current time.
3. method as claimed in claim 2 is characterized in that the described time interval is less than or equal to the duration of described predetermined amount of time.
4. as each described method of claim 1 to 3, it is characterized in that described predetermined amount of time is determined at interval according to timing, and the duration of described predetermined amount of time is greater than or equal to described timing at interval.
5. the method for claim 1 is characterized in that, when there are not the data of corresponding time period in this locality, preserves the data that inquire in this locality.
6. the method for claim 1 is characterized in that, when the key message of the data of local corresponding time period is inconsistent with the key message of the data that inquire, local data is carried out consequential amendment.
7. a client is characterized in that, comprising:
Be used to be provided with timing at interval and the unit of the predetermined amount of time of data query;
Be used for inquiring about the current time unit of the data of predetermined amount of time before to data server at interval according to described timing;
Be used for the unit that the data that will inquire and the data of local corresponding time period compare;
Be used for local data being carried out the unit of respective handling according to comparative result.
8. client as claimed in claim 7 is characterized in that, described client sets interval constantly and between the described current time in the termination of described predetermined amount of time.
9. client as claimed in claim 7 is characterized in that, described client is determined described predetermined amount of time at interval according to timing, and the duration of described predetermined amount of time is greater than or equal to described timing at interval.
10. the system of a synchrodata is characterized in that, comprising:
Client is used for the regularly data of predetermined amount of time before data server inquiry current time, and the data that inquire are compared with the data of local corresponding time period, and according to comparative result local data is carried out respective handling;
Data server is used for returning to described client according to the query requests of described client at the database data query and with the data that inquire.
11. system as claimed in claim 10 is characterized in that, described client comprises:
Be used to be provided with timing at interval and the unit of the time period of data query;
Be used for unit according to described timing interval data of the time period of setting before data server inquiry current time;
Be used for the unit that the data that will inquire and the data of local corresponding time period compare;
Be used for local data being carried out the unit of respective handling according to comparative result.
CN2006101610062A 2006-12-01 2006-12-01 Data synchronization method and system Active CN101192229B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006101610062A CN101192229B (en) 2006-12-01 2006-12-01 Data synchronization method and system
HK08111008.9A HK1117611A1 (en) 2006-12-01 2008-10-02 Method and system for synchronising data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101610062A CN101192229B (en) 2006-12-01 2006-12-01 Data synchronization method and system

Publications (2)

Publication Number Publication Date
CN101192229A true CN101192229A (en) 2008-06-04
CN101192229B CN101192229B (en) 2010-09-22

Family

ID=39487224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101610062A Active CN101192229B (en) 2006-12-01 2006-12-01 Data synchronization method and system

Country Status (2)

Country Link
CN (1) CN101192229B (en)
HK (1) HK1117611A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077070A (en) * 2012-12-31 2013-05-01 无锡城市云计算中心有限公司 Cloud computing management system and management method for cloud computing systems
CN105187296A (en) * 2015-08-11 2015-12-23 广州华多网络科技有限公司 Studio authority acquisition method and system
CN105471948A (en) * 2014-09-05 2016-04-06 阿里巴巴集团控股有限公司 Method and device for synchronizing service data between systems
CN106407165A (en) * 2016-07-21 2017-02-15 平安科技(深圳)有限公司 Numerical value transfer record checking method and apparatus
CN106844372A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of logistics information querying method and device
CN106970921A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 A kind of data migration method and device
CN107885884A (en) * 2017-12-01 2018-04-06 深圳市天下房仓科技有限公司 A kind of hotel's method of data synchronization, system and storage medium
CN108039958A (en) * 2017-11-17 2018-05-15 深圳前海微众银行股份有限公司 Data error detection method, apparatus and computer-readable recording medium
CN114650285A (en) * 2022-03-21 2022-06-21 重庆市规划和自然资源信息中心 Method for carrying out multi-dimensional full-factor monitoring on real estate registration service

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1330328A (en) * 2000-06-16 2002-01-09 东芝株式会社 Information repeater and storage medium
JP4170742B2 (en) * 2002-11-29 2008-10-22 株式会社エヌ・ティ・ティ・ドコモ Download system, communication terminal, server, download method
CN1277209C (en) * 2002-12-05 2006-09-27 纬创资通股份有限公司 Hard disk data controlling method
CN1852137A (en) * 2005-07-20 2006-10-25 华为技术有限公司 Method for realizing synchronization of client end data and server end data
CN1852309A (en) * 2005-11-16 2006-10-25 华为技术有限公司 Data synchronizing processing method and its client end

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077070B (en) * 2012-12-31 2017-04-26 无锡城市云计算中心有限公司 Cloud computing management system and management method for cloud computing systems
CN103077070A (en) * 2012-12-31 2013-05-01 无锡城市云计算中心有限公司 Cloud computing management system and management method for cloud computing systems
CN105471948A (en) * 2014-09-05 2016-04-06 阿里巴巴集团控股有限公司 Method and device for synchronizing service data between systems
CN105471948B (en) * 2014-09-05 2019-02-19 阿里巴巴集团控股有限公司 The method and device of inter-system synchronization business datum
CN105187296B (en) * 2015-08-11 2018-05-25 广州华多网络科技有限公司 Direct broadcasting room authority acquiring method and system
CN105187296A (en) * 2015-08-11 2015-12-23 广州华多网络科技有限公司 Studio authority acquisition method and system
CN106844372A (en) * 2015-12-04 2017-06-13 阿里巴巴集团控股有限公司 A kind of logistics information querying method and device
CN106970921A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 A kind of data migration method and device
CN106407165A (en) * 2016-07-21 2017-02-15 平安科技(深圳)有限公司 Numerical value transfer record checking method and apparatus
CN108039958A (en) * 2017-11-17 2018-05-15 深圳前海微众银行股份有限公司 Data error detection method, apparatus and computer-readable recording medium
CN107885884A (en) * 2017-12-01 2018-04-06 深圳市天下房仓科技有限公司 A kind of hotel's method of data synchronization, system and storage medium
CN114650285A (en) * 2022-03-21 2022-06-21 重庆市规划和自然资源信息中心 Method for carrying out multi-dimensional full-factor monitoring on real estate registration service
CN114650285B (en) * 2022-03-21 2024-04-26 重庆市规划和自然资源信息中心 Method for multi-dimensional full-factor monitoring of real estate registration business

Also Published As

Publication number Publication date
HK1117611A1 (en) 2009-01-16
CN101192229B (en) 2010-09-22

Similar Documents

Publication Publication Date Title
CN101192229B (en) Data synchronization method and system
CN101064630B (en) Data synchronization method and system
CN101227379B (en) Method and system for implementation of data synchronization
CN102687144A (en) Managing queries
CN105096183A (en) Task-triggered public bicycle self-scheduling method and system based on Internet of Things
CN101610173B (en) Method and network management server for implementing data collocation on multi-network elements
CN101789009A (en) Method for processing business data, device and system
CN105096122A (en) Fragmented transaction matching method and fragmented transaction matching device
CN107463710A (en) The order production process typing inquiry system applied based on wechat barcode scanning and public number
CN101673217B (en) Method for realizing remote program call and system thereof
CN109241099A (en) A kind of data query method and terminal device
CN107528894A (en) A kind of storage system Real time data acquisition method and platform
CN100452704C (en) Method and method for issuing blog articles
CN103490983A (en) Enterprise mail system and mail migration executing method thereof
CN110389817A (en) Dispatching method, device and the computer program product of cloudy system
CN102970209A (en) E-mail state updating method, device and system
CN110473088B (en) Block chain-based band type data processing method and system
CN103220636A (en) Terminal application client registration method and system and device
CN103458000A (en) Terminal data synchronizing system and method
CN103036989A (en) Socket server and socket service method
CN111935737A (en) Network slice management system and method for realizing network slice life cycle management
US20210182789A1 (en) Determination of business coverage area
CN106407452A (en) Method and device for server data access
CN109426947B (en) Enterprise information interaction system based on tree-shaped virtual node network
CN101771904B (en) Method and system for carrying out service maintenance in smart optical network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1117611

Country of ref document: HK

C14 Grant of patent or utility model
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1117611

Country of ref document: HK

TR01 Transfer of patent right

Effective date of registration: 20191211

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: Georgetown, Grand Cayman, British Cayman Islands

Patentee before: Alibaba Group Holding Co., Ltd.

TR01 Transfer of patent right