CN106453541A - Data synchronization method, server and data synchronization system - Google Patents

Data synchronization method, server and data synchronization system Download PDF

Info

Publication number
CN106453541A
CN106453541A CN201610870770.0A CN201610870770A CN106453541A CN 106453541 A CN106453541 A CN 106453541A CN 201610870770 A CN201610870770 A CN 201610870770A CN 106453541 A CN106453541 A CN 106453541A
Authority
CN
China
Prior art keywords
data
attendance recorder
server
attendance
confirmation
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
CN201610870770.0A
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.)
Xiamen Central Intelligent Information Technology Co., Ltd.
Original Assignee
Xiamen Zhongkong Biological Recognition Information 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 Xiamen Zhongkong Biological Recognition Information Technology Co Ltd filed Critical Xiamen Zhongkong Biological Recognition Information Technology Co Ltd
Priority to CN201610870770.0A priority Critical patent/CN106453541A/en
Publication of CN106453541A publication Critical patent/CN106453541A/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

Abstract

The embodiment of the invention discloses a data synchronization method, which is used for achieving data synchronization between a first attendance machine and a second attendance machine. The method comprises the following steps: when data of the first attendance machine is updated, a server receives updated data sent by the first attendance machine; the server updates the updated data to a cloud database; and the sever determines data to be synchronized according to the updated data, so that the online second attendance machine acquires the data to be synchronized from the server, and the data synchronization between the first attendance machine and the second attendance machine is achieved.

Description

A kind of method of data syn-chronization, server and data synchronous system
Technical field
The present invention relates to the communications field, more particularly, to a kind of method of data syn-chronization, server and data synchronous system.
Background technology
Work attendance management system is the management system of the attendance record equicorrelated case on and off duty of a set of management company personnel.It is Attendance software and the product of work attendance combination of hardware, generally Human Resource Department (human resource software, HR) portion Door uses, and the employee attendance grasping and managing enterprise is dynamic, is most basic management in business administration.
Now, general company all can carry out work attendance statistics every month to before pay out wages.Traditional attendance recorder data derives/leads The method entering has:1. derived by USB flash disk or import;2. attendance recorder connects computer, by computer by network or serial ports etc. Software is derived or is imported;3. company sets up a server, and when there being data to update on equipment, active upload is to server;When Artificially import other loom whenever necessary again.
There is problems with traditional derivation of attendance recorder data or the method for importing:1. need human intervention, efficiency is low; 2. the data sharing of equipment room, poor real;3. it is difficult to extend, the data sharing between suitable small scale equipment.If 4. server It is in LAN with attendance recorder.Then need the address accessing for server application public network, or use third-party server Platform, can increase expense.
Content of the invention
Embodiments provide a kind of method of data syn-chronization, server and data synchronous system, for when the When the data of one attendance recorder occurs to update, the data of renewal can be synchronized to the second attendance recorder.
Embodiment of the present invention first aspect provides a kind of synchronous method it is characterised in that the method is applied to data together Step system, this data synchronous system includes server, the first attendance recorder and the second attendance recorder, and the method can include:When this When the data of one attendance recorder occurs to update, this server receives updating the data of this first attendance recorder transmission;This server should Update the data renewal in cloud database;This server updates the data according to this and determines data to be synchronized, so that online The second attendance recorder obtain this data to be synchronized from this server, realize the data of this second attendance recorder and this first attendance recorder Synchronous.
In embodiments of the present invention, for when the data of the first attendance recorder occurs to update, the data of renewal can be synchronized to Second attendance recorder, realizes renewal and the synchronization of attendance data.
Optionally, in some embodiments of the invention,
This updates the data and can include operation mark, and this is updated the data renewal in cloud database by this server, bag Include:This server carries out increasing, changes or deletion action to the data of this cloud database according to this operation mark.
Optionally, in some embodiments of the invention, the method can also include:
This server receives the first confirmation of this second attendance recorder transmission, this first confirmation be used for confirming this Two attendance recorders and this first attendance recorder data syn-chronization success;
This server deletes this data to be synchronized.
Optionally, in some embodiments of the invention, the method can also include:
If this server is in preset threshold value duration, do not receive the confirmation that the 3rd attendance recorder sends, then this server Record the 3rd attendance recorder not synchronous information, and delete this data to be synchronized, the 3rd attendance recorder is currently not online Second attendance recorder;
When the 3rd attendance recorder shows online, this server according to the not synchronous information of the 3rd attendance recorder, to this Three attendance recorders send initialization information, and this initialization information is used for indicating that the 3rd attendance recorder empties local data, re-synchronization The data of this cloud database;
This server receives the second confirmation that the 3rd attendance recorder sends, this second confirmation be used for confirming this Three attendance recorders and this cloud database data syn-chronization success.
Embodiment of the present invention second aspect provide a kind of server, this server application in data synchronous system, this data Synchronization system includes server, the first attendance recorder and the second attendance recorder, and this server can include:
Receiver module, for when the data of this first attendance recorder occurs to update, receiving this first attendance recorder and sending more New data;
Update module, updates the data renewal in cloud database for receive this receiver module;
First determining module, determines data to be synchronized for updating the data according to this, so that the second online work attendance Machine obtains this data to be synchronized from this server, realizes the data syn-chronization of this second attendance recorder and this first attendance recorder.
Optionally, in some embodiments of the invention, this updates the data and can include operation mark,
This update module, specifically for carrying out to the data of this cloud database increasing according to this operation mark, change or Deletion action.
Optionally, in some embodiments of the invention, this server can also include:
This receiver module, is additionally operable to receive the first confirmation of this second attendance recorder transmission, this first confirmation is used In this second attendance recorder of confirmation and this first attendance recorder data syn-chronization success;
Removing module, for deleting this data to be synchronized.
Optionally, in some embodiments of the invention, this server can also include:
Logging modle, if for this server in preset threshold value duration, does not receive the confirmation letter that the 3rd attendance recorder sends Breath, then this logging modle record the 3rd attendance recorder not synchronous information, and delete this data to be synchronized, the 3rd attendance recorder For the second currently not online attendance recorder;
Sending module, for when the 3rd attendance recorder shows online, this sending module is not same according to the 3rd attendance recorder The information of step, sends initialization information to the 3rd attendance recorder, and this initialization information is used for indicating that the 3rd attendance recorder empties this Ground data, the data of this cloud database of re-synchronization;
This receiver module, is additionally operable to receive the second confirmation that the 3rd attendance recorder sends, this second confirmation is used In confirmation the 3rd attendance recorder and this cloud database data syn-chronization success.
The embodiment of the present invention third aspect provides a kind of data synchronous system, and this data synchronous system can include:Service Device, the first attendance recorder and the second attendance recorder;
This first attendance recorder is used for, when data occurs to update, sending to this server and updating the data;
This server is used for receiving updating the data of this first attendance recorder transmission;This is updated the data renewal to high in the clouds data In storehouse;Updated the data according to this and determine data to be synchronized, so that the second online attendance recorder obtains this from this server and treats Synchronous data, realizes the data syn-chronization of this second attendance recorder and this first attendance recorder.
Optionally, in some embodiments of the invention, this updates the data and can include operation mark,
This server is specifically for being increased, being changed or being deleted to the data of this cloud database according to this operation mark Operation.
Optionally, in some embodiments of the invention,
When this second attendance recorder is used for online, obtain this data to be synchronized from this server;Send to this server First confirmation, this first confirmation is used for confirming this second attendance recorder and this first attendance recorder data syn-chronization success;
This server is used for receiving the first confirmation of this second attendance recorder transmission, and this first confirmation is used for confirming This second attendance recorder and this first attendance recorder data syn-chronization success;Delete this data to be synchronized.
Optionally, in some embodiments of the invention,
If this server is additionally operable to this server in preset threshold value duration, do not receive the confirmation letter that the 3rd attendance recorder sends Breath, then this server record the 3rd attendance recorder not synchronous information, and delete this data to be synchronized, the 3rd attendance recorder is Current the second not online attendance recorder;When the 3rd attendance recorder shows online, this server is not same according to the 3rd attendance recorder The information of step, sends initialization information to the 3rd attendance recorder, and this initialization information is used for indicating that the 3rd attendance recorder empties this Ground data, the data of this cloud database of re-synchronization;This server receives the second confirmation that the 3rd attendance recorder sends, This second confirmation is used for confirming the 3rd attendance recorder and this cloud database data syn-chronization success.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In embodiments of the present invention, when the first attendance recorder has data to update, can first upload onto the server, server is first right The data of the renewal cloud database answered, then determine data to be synchronized, so that the second online attendance recorder obtains from server Take described data to be synchronized, realize the second attendance recorder and the data syn-chronization of the first attendance recorder.
Brief description
In order to be illustrated more clearly that embodiment of the present invention technical scheme, below will be to institute in embodiment and description of the prior art Need use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some enforcement Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also obtain according to these accompanying drawings Obtain other accompanying drawings.
The structural representation of the data synchronous system for providing in the embodiment of the present invention for the Fig. 1;
Fig. 2 is the RabbitMQ communication structure schematic diagram providing in the embodiment of the present invention;
The schematic flow sheet of the Storm work for providing in the embodiment of the present invention for the Fig. 3;
The schematic flow sheet of the Supervisor work for providing in the embodiment of the present invention for the Fig. 4;
One schematic diagram of the embodiment of the method for providing in the embodiment of the present invention for the Fig. 5;
One schematic diagram of the server example for providing in the embodiment of the present invention for the Fig. 6;
Another schematic diagram of the server example for providing in the embodiment of the present invention for the Fig. 7;
Another schematic diagram of the server example for providing in the embodiment of the present invention for the Fig. 8;
One schematic diagram of the server data synchronization system for providing in the embodiment of the present invention for the Fig. 9.
Specific embodiment
Embodiments provide a kind of method of data synchronization, server and data synchronous system, for working as first When the data of attendance recorder occurs to update, renewal data can be synchronized to the second attendance recorder.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention it is clear that described embodiment is only The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of not making creative work, all should belong to the model of present invention protection Enclose.
In the prior art, each company is substantially all and carries out attendance record, the work attendance of general attendance recorder using attendance recorder Derivation/the importing of data be need artificial carried out by USB flash disk or be connected on computer, or, company sets up a service Device, when there being data to update on equipment, active upload to server, artificially import other attendance recorder letter when required again Breath.Thus cause and need artificially to interfere in data syn-chronization, efficiency is low;And during the data sharing of equipment room, real-time Also poor.
In technical solution of the present invention, be applied to data synchronous system, described data synchronous system include server, first Attendance recorder and the second attendance recorder, each attendance recorder and server establish a connection.Refer to shown in Fig. 1, be that the present invention is real Apply the system architecture diagram of example.When the attendance data of the first attendance recorder occurs to update, the first attendance recorder will update the data to service Device sends, and database also does after corresponding data updates server beyond the clouds, then determines data to be synchronized, i.e. high in the clouds data Storehouse update data, when the second attendance recorder is online, from described server obtain synchrodata realize described second attendance recorder with The data syn-chronization of described first attendance recorder.It should be noted that the first attendance recorder here is not to refer in particular to some attendance recorder, can To be one or multiple, the second attendance recorder is also likewise, can be one or multiple.Wherein, in Fig. 1 Second attendance recorder of shown dotted line can be considered not online attendance recorder, examines not online second in the following content of the present invention Diligent machine is named to illustrate with the 3rd attendance recorder.
Below brief description once is first done to used correlation technique in technical solution of the present invention.Need explanation It is to be not limited solely to correlation technique provided below in technical solution of the present invention, other suitable technical solution of the present invention Technology be equally applicable.
1st, message queue (RabbitMQ)
RabbitMQ is a communication middleware based on message queue.The use of the mechanism that message queue is communicated is different The communication mode of step, communication unit is a message.Need not keep between the sender of message and recipient directly connecting (ratio As TCP/IP connects).After message is sent by sender, message can first reach a buffer queue.If now sender Go offline, recipient still can receive message.This queue is first in first out, when recipient is online, can be by message Priority order of arrival reads message from queue and processes.
The basic communication structure of RabbitMQ is as shown in Figure 2.Each recipient has a message caching on the server Queue, a key Key (Key between queue can be identical) is bound in each queue.Switch (Exchange) is responsible for from transmission Side receives message and is transmitted to corresponding queue.
2nd, Storm distributive type calculates
Storm has two kinds of mode of operations:Local mode and distribution pattern.In local mode, Storm operates in one completely In the process of computer, simulate each working node with thread.In distribution pattern, Storm operates in a computer cluster In.
Storm is a kind of real-time distributive type Computational frame.Storm framework has two kinds of nodes:Nimbus and Worker.Refer to shown in Fig. 3, be the schematic flow sheet of Storm.Nimbus is control node, has in a Storm cluster And only one, whether responsible distribution task and monitor task fail.Worker is working node, executes specific business and patrols Volume.Each Worker is equipped with a Supervisor and several task process.Supervisor is responsible for accepting Nimbus dividing Joining of task, starts and stops to one's name managerial role process.Cooperation between Nimbus and Supervisor is passed through Distributed Services Zookeeper of increasing income of Apache coordinate.
Supervisor managerial role process operates on two kinds of assemblies:Spout and Bolt.Refer to shown in Fig. 4, be The schematic flow sheet of Supervisor management.Spout is the source of data flow, from data source (can be certain queue or its It) read data, it is packaged into Tuple (unit of communication between task node) one by one and issue Bolt.Bolt extracts from Tuple Go out the data of this node logical needs, after having processed, continuation is bundled to Tuple data and passes to next node.
Below the embodiment of the method in the embodiment of the present invention is illustrated, as shown in figure 5, data in the embodiment of the present invention One embodiment of synchronous method, including:
501st, when the data of the first attendance recorder occurs to update, server receives updating the data of the first attendance recorder transmission;
In embodiments of the present invention, when the data of the first attendance recorder occurs to update, this server can receive the first work attendance What machine sent updates the data.In data synchronous system, when the information or employee newly registering an employee on attendance recorder is checked card When, or, when changing employee's data or attendance information on webpage or on mobile phone, these are updated the data transmission by attendance recorder To in server, actually it is sent to the RabbitMQ in Cloud Server.
It should be noted that due to the limited capacity of attendance recorder, in order to avoid updating the data excessively frequently network transmission, Can first be saved in by set grammer in the table of an operation operation_log in updating the data on attendance recorder, attendance recorder Keeper have the account number of a login Cloud Server, after attendance recorder is logged in corresponding account, attendance recorder will with corresponding Company and affiliated area (if there are the other words in dividing regions) pass through equipment Serial Number (SN, Serial number) and set up contact.When When attendance recorder is online, can by set interval (such as 10 seconds) run-down operation_log table, if there are updating the data, Just read out and transmit entitled device_to_cloud, type is in the Exchange of Direct.Entitled device_ The Exchange of to_cloud has bound a queue, updates the data and is all forwarded in this queue.Entitled RabbitMQ in Storm Spout can read message from this queue, be sent to Business Processing topology in Bolt.It should be noted that switch Type and name are not construed as limiting.
502nd, server will update the data renewal in cloud database;
In embodiments of the present invention, server updates the data renewal in cloud database according to receive.Specifically, Update the data and may include operation mark, that is, server the data of cloud database is carried out increase according to operation mark, change or Deletion action.Operation mark indicates that the renewal operation of cloud database other operations such as is specifically to increase, changes or deletes, specifically It is not construed as limiting.
It should be understood that operation mark here can be an operational order, indicate the data to cloud database for the server Operated accordingly or other forms explanation.This operation mark can also include the mutual of specific attendance recorder Networking protocol address (Internet Protocol, IP), the data of instruction specifically which the first attendance recorder updates.
503rd, the server data to be synchronized according to updating the data determination, so that the second online attendance recorder is from server Obtain data to be synchronized, realize the second attendance recorder and the data syn-chronization of the first attendance recorder;
In embodiments of the present invention, the server data to be synchronized according to updating the data determination, so that online second Attendance recorder obtains data to be synchronized from server, realizes the second attendance recorder and the data syn-chronization of the first attendance recorder.
It should be noted that when cloud database updates the data, monitor can be operated in trigger data storehouse, inquire all phases Close attendance recorder SN information, cloud database update the data and attendance recorder SN is encapsulated as data to be synchronized, be sent to cloud In the RabbitMQ of client database, in the receiving queue of the entitled SN_sync binding with the second attendance recorder, so when second examines Data can be synchronized in time when diligent machine is online.
504th, server receives the first confirmation that the second attendance recorder sends, and the first confirmation is used for confirming that second examines Diligent machine and the success of the first attendance recorder data syn-chronization;
In embodiments of the present invention, after the data syn-chronization success of the second attendance recorder, send the first confirmation to server Information, server receive second attendance recorder send the first confirmation, the first confirmation be used for confirm the second attendance recorder with First attendance recorder data syn-chronization success.
505th, server deletes data to be synchronized.
In embodiments of the present invention, after server receives the first confirmation that the second attendance recorder sends, determine second The data of attendance recorder deletes data to be synchronized with the first attendance recorder data syn-chronization success, server.
It should be noted that step 504, step 505 are optional step.Used work in embodiments of the present invention The name of table, the name of switch, the name of queue is all the example lifted.In actual applications it is also possible to make other lives Name.
In embodiments of the present invention, when the first attendance recorder has data to update, will update the data and send to server, service Device receives and updates the data, and updates the data of cloud database simultaneously, then determines data to be synchronized, so that online second examines Diligent machine obtains data to be synchronized from server, realizes the second attendance recorder and the data syn-chronization of the first attendance recorder.Make full use of The advantage of RabbitMQ and Storm, provides real-time attendance data to collect and synchronization for biological identification intelligent office cloud platform;Portion Administration, on Cloud Server, facilitates the extension of data;Large-scale Time Attendance Device management can be supported, and enterprise accesses cloud platform Can use, convenient management.
Optionally, in some embodiments of the invention,
If server is in preset threshold value duration, do not receive the confirmation that the 3rd attendance recorder sends, then server record 3rd attendance recorder not synchronous information, and delete data to be synchronized, the 3rd attendance recorder is the second currently not online attendance recorder;
When the 3rd attendance recorder shows online, server according to the not synchronous information of the 3rd attendance recorder, to the 3rd attendance recorder Send initialization information, initialization information is used for instruction the 3rd attendance recorder and empties local data, re-synchronization cloud database Data;
Server receives the second confirmation that the 3rd attendance recorder sends, and the second confirmation is used for confirming the 3rd attendance recorder With the success of cloud database data syn-chronization.
If it should be noted that having attendance recorder to go offline in the second attendance recorder, the receiving queue of attendance recorder is provided with super When the time, after exceeding certain time, in receiving queue, data to be synchronized will be cleared.If at this moment attendance recorder connects cloud again Server, server can send a state attendance machine, do not keep synchronous with server, need to reinitialize, at this moment Attendance recorder, by the data is activation in operation_log table to server, then empties the data re-synchronization high in the clouds of the machine Data.In initialization procedure, the additions and deletions without reference to data change operation, operate monitor thus without trigger data, The data that last Bolt business of the service topology of Storm is responsible for issuing server is packaged into RabbitMQ and is sent to and sets The entitled SN_config queue of standby binding.If the time of going offline is not above the time-out time of queue, can be by mentioned above Method synchronizes.
Below the server in the embodiment of the present invention is illustrated, as shown in fig. 6, the service in the embodiment of the present invention Device, including:
Receiver module 601, for when the data of the first attendance recorder occurs to update, receiving the renewal that the first attendance recorder sends Data;
Update module 602, updates the data renewal in cloud database for receive receiver module;
First determining module 603, for the data to be synchronized according to updating the data determination, so that the second online work attendance Machine obtains data to be synchronized from server, realizes the second attendance recorder and the data syn-chronization of the first attendance recorder.
Optionally, in some embodiments of the invention, update the data including operation mark,
Update module 602, specifically for being increased, being changed or being deleted to the data of cloud database according to operation mark Operation.
Optionally, in some embodiments of the invention, as shown in fig. 7, server also includes:
Receiver module 601, is additionally operable to receive the first confirmation that the second attendance recorder sends, the first confirmation is used for really Recognize the second attendance recorder and the success of the first attendance recorder data syn-chronization;
Removing module 604, for deleting data to be synchronized.
Optionally, in some embodiments of the invention, as shown in figure 8, server also includes:
Logging modle 605, if for server in preset threshold value duration, does not receive the confirmation letter that the 3rd attendance recorder sends Breath, then logging modle record the 3rd attendance recorder not synchronous information, and delete data to be synchronized, the 3rd attendance recorder is currently not The second online attendance recorder;
Sending module 606, for when the 3rd attendance recorder shows online, sending module is according to the 3rd attendance recorder synchronous Information, sends initialization information to the 3rd attendance recorder, and initialization information is used for instruction the 3rd attendance recorder and empties local data, again The data of synchronous cloud database;
Receiver module 601, is additionally operable to receive the second confirmation that the 3rd attendance recorder sends, the second confirmation is used for really Recognize the 3rd attendance recorder and the success of cloud database data syn-chronization.
As shown in figure 9, a kind of data synchronous system providing for the present invention, including:Server 901, the first attendance recorder 902 With the second attendance recorder 903, wherein, in the Organization Chart shown in Fig. 9, the second attendance recorder of dotted line instruction is exactly mentioned by the present invention The 3rd attendance recorder;
First attendance recorder 902 is used for, when data occurs to update, sending to server and updating the data;
Server 901 is used for receiving updating the data of the first attendance recorder transmission;Renewal will be updated the data and arrive cloud database In;Determine data to be synchronized according to updating the data, so that the second online attendance recorder 903 is to be synchronized from server acquisition Data, realizes the second attendance recorder and the data syn-chronization of the first attendance recorder.
Optionally, in some embodiments of the invention, update the data including operation mark,
Server 901 is specifically for being increased to the data of cloud database according to operation mark, being changed or deleted behaviour Make.
Optionally, in some embodiments of the invention,
When second attendance recorder 903 is used for online, obtain data to be synchronized from server;Send first to server true Recognize information, the first confirmation is used for confirming the second attendance recorder and the success of the first attendance recorder data syn-chronization;
Server 901 is used for receiving the first confirmation that the second attendance recorder sends, and the first confirmation is used for confirmation the Two attendance recorders and the success of the first attendance recorder data syn-chronization;Delete data to be synchronized.
Optionally, in some embodiments of the invention,
If server 901 is additionally operable to server in preset threshold value duration, do not receive the confirmation letter that the 3rd attendance recorder sends Breath, then server record the 3rd attendance recorder not synchronous information, and delete data to be synchronized, the 3rd attendance recorder is currently not exist Second attendance recorder of line;When the 3rd attendance recorder shows online, server according to the not synchronous information of the 3rd attendance recorder, to the 3rd Attendance recorder sends initialization information, and initialization information is used for instruction the 3rd attendance recorder and empties local data, re-synchronization high in the clouds number Data according to storehouse;Server receives the second confirmation that the 3rd attendance recorder sends, and the second confirmation is used for confirming that the 3rd examines Diligent machine and the success of cloud database data syn-chronization.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, is used for saving as above-mentioned Fig. 5, Fig. 6, Fig. 7 or Fig. 8 Computer software instructions used by described server, it comprises for executing the program designed by said method embodiment.Logical Cross the program of execution storage, it is possible to achieve the data syn-chronization of the first attendance recorder and the second attendance recorder.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed system in several embodiments provided herein, apparatus and method are permissible Realize by another way.For example, device embodiment described above is only schematically, for example, described unit Divide, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or The coupling each other discussing or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs 's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be personal computer, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front State embodiment the present invention has been described in detail, it will be understood by those within the art that:It still can be to front State the technical scheme described in each embodiment to modify, or equivalent is carried out to wherein some technical characteristics;And these Modification or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a kind of method of data syn-chronization is it is characterised in that methods described is applied to data synchronous system, described data syn-chronization system System includes server, the first attendance recorder and the second attendance recorder, and methods described includes:
When the data of described first attendance recorder occurs to update, described server receives the renewal number that described first attendance recorder sends According to;
Described server updates the data renewal in cloud database by described;
Described server determines data to be synchronized according to described updating the data, so that the second online attendance recorder is from described clothes Business device obtains described data to be synchronized, realizes the data syn-chronization of described second attendance recorder and described first attendance recorder.
2. method according to claim 1 is it is characterised in that described update the data including operation mark, described server Update the data renewal by described in cloud database, including:
Described server carries out increasing, changes or deletion action to the data of described cloud database according to described operation mark.
3. method according to claim 1 is it is characterised in that methods described also includes:
Described server receives the first confirmation that described second attendance recorder sends, and described first confirmation is used for confirming institute State the second attendance recorder and described first attendance recorder data syn-chronization success;
Described server deletes described data to be synchronized.
4. method according to claim 3 is it is characterised in that methods described also includes:
If described server is in preset threshold value duration, do not receive the confirmation that the 3rd attendance recorder sends, then described server Record described 3rd attendance recorder not synchronous information, and delete described data to be synchronized, described 3rd attendance recorder is currently not The second online attendance recorder;
When described 3rd attendance recorder shows online, described server according to the not synchronous information of described 3rd attendance recorder, to institute State the 3rd attendance recorder and send initialization information, described initialization information is used for indicating that described 3rd attendance recorder empties local data, The data of cloud database described in re-synchronization;
Described server receives the second confirmation that described 3rd attendance recorder sends, and described second confirmation is used for confirming institute State the 3rd attendance recorder and described cloud database data syn-chronization success.
5. it is characterised in that described server application is in data synchronous system, described data synchronous system includes a kind of server Server, the first attendance recorder and the second attendance recorder, described server includes:
Receiver module, for when the data of described first attendance recorder occurs to update, receiving described first attendance recorder and sending more New data;
Update module, updates the data renewal in cloud database for receive described receiver module;
First determining module, for data to be synchronized is determined according to described updating the data, so that the second online attendance recorder Obtain described data to be synchronized from described server, realize described second attendance recorder same with the data of described first attendance recorder Step.
6. server according to claim 5 is it is characterised in that described update the data including operation mark,
Described update module, specifically for carrying out increasing, changing to the data of described cloud database according to described operation mark Or deletion action.
7. server according to claim 5 is it is characterised in that described server also includes:
Described receiver module, is additionally operable to receive the first confirmation that described second attendance recorder sends, described first confirmation For confirming described second attendance recorder and described first attendance recorder data syn-chronization success;
Removing module, for deleting described data to be synchronized.
8. server according to claim 7 is it is characterised in that described server also includes:
Logging modle, if for described server in preset threshold value duration, does not receive the confirmation that the 3rd attendance recorder sends, The then not synchronous information of the 3rd attendance recorder described in described logging modle record, and delete described data to be synchronized, the described 3rd Attendance recorder is the second currently not online attendance recorder;
Sending module, for when described 3rd attendance recorder shows online, described sending module is according to described 3rd attendance recorder not Synchronous information, sends initialization information to described 3rd attendance recorder, described initialization information is used for indicating described 3rd work attendance Machine empties local data, the data of cloud database described in re-synchronization;
Described receiver module, is additionally operable to receive the second confirmation that described 3rd attendance recorder sends, described second confirmation For confirming described 3rd attendance recorder and described cloud database data syn-chronization success.
9. a kind of data synchronous system is it is characterised in that described data synchronous system includes:Server, the first attendance recorder and Two attendance recorders;
Described first attendance recorder is used for, when data occurs to update, sending to described server and updating the data;
Described server is used for receiving updating the data of described first attendance recorder transmission;Update the data renewal by described to high in the clouds number According in storehouse;Data to be synchronized is determined according to described updating the data, so that the second online attendance recorder obtains from described server Take described data to be synchronized, realize the data syn-chronization of described second attendance recorder and described first attendance recorder.
10. data synchronous system according to claim 9 is it is characterised in that described update the data including operation mark,
Described server is specifically for being increased, being changed or being deleted to the data of described cloud database according to described operation mark Division operation.
11. data synchronous systems according to claim 9 it is characterised in that
When described second attendance recorder is used for online, obtain described data to be synchronized from described server;To described server Send the first confirmation, described first confirmation is used for confirming that described second attendance recorder is same with described first attendance recorder data Walk successfully;
Described server is used for receiving the first confirmation that described second attendance recorder sends, and described first confirmation is used for really Recognize described second attendance recorder and described first attendance recorder data syn-chronization success;Delete described data to be synchronized.
12. data synchronous systems according to claim 11 it is characterised in that
If described server is additionally operable to described server in preset threshold value duration, do not receive the confirmation letter that the 3rd attendance recorder sends Breath, then the not synchronous information of the 3rd attendance recorder described in described server record, and delete described data to be synchronized, the described 3rd Attendance recorder is the second currently not online attendance recorder;When described 3rd attendance recorder shows online, described server is according to described 3rd attendance recorder not synchronous information, sends initialization information to described 3rd attendance recorder, described initialization information is used for indicating Described 3rd attendance recorder empties local data, the data of cloud database described in re-synchronization;Described server receives described the The second confirmation that three attendance recorders send, described second confirmation is used for confirming described 3rd attendance recorder and described high in the clouds number According to the synchronous success of database data.
CN201610870770.0A 2016-09-30 2016-09-30 Data synchronization method, server and data synchronization system Pending CN106453541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610870770.0A CN106453541A (en) 2016-09-30 2016-09-30 Data synchronization method, server and data synchronization system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610870770.0A CN106453541A (en) 2016-09-30 2016-09-30 Data synchronization method, server and data synchronization system

Publications (1)

Publication Number Publication Date
CN106453541A true CN106453541A (en) 2017-02-22

Family

ID=58171984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610870770.0A Pending CN106453541A (en) 2016-09-30 2016-09-30 Data synchronization method, server and data synchronization system

Country Status (1)

Country Link
CN (1) CN106453541A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222521A (en) * 2017-04-28 2017-09-29 厦门中控智慧信息技术有限公司 Personal information automatic synchronous method and device
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A kind of method of data synchronization and mobile terminal
CN108200117A (en) * 2017-12-04 2018-06-22 中国船舶重工集团公司第七〇九研究所 Intelligent hand-held terminal data synchronous system and method
CN110381139A (en) * 2019-07-19 2019-10-25 福建龙净环保股份有限公司 A kind of remote data acquisition method and apparatus Internet-based
CN110597898A (en) * 2019-09-18 2019-12-20 山东浪潮通软信息科技有限公司 Middleware method and device for attendance machine card punching data integration
CN110992504A (en) * 2019-12-10 2020-04-10 泸州北方化学工业有限公司 Card swiping and attendance checking integrated machine system
CN111698329A (en) * 2020-06-13 2020-09-22 北京京投亿雅捷交通科技有限公司 Station server communication method and system
CN114489863A (en) * 2022-02-16 2022-05-13 平安普惠企业管理有限公司 System parameter configuration method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750501A (en) * 2005-11-03 2006-03-22 中国移动通信集团公司 Method for data sharing
CN101707785A (en) * 2009-10-31 2010-05-12 青岛海信移动通信技术股份有限公司 Data synchronization method for mobile communication terminal
CN102202271A (en) * 2011-05-16 2011-09-28 中兴通讯股份有限公司 Method, system and device for sharing schedule information of multiple mobile terminals
CN103188321A (en) * 2011-12-30 2013-07-03 上海博泰悦臻电子设备制造有限公司 Information synchronizing method and system based on cloud server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750501A (en) * 2005-11-03 2006-03-22 中国移动通信集团公司 Method for data sharing
CN101707785A (en) * 2009-10-31 2010-05-12 青岛海信移动通信技术股份有限公司 Data synchronization method for mobile communication terminal
CN102202271A (en) * 2011-05-16 2011-09-28 中兴通讯股份有限公司 Method, system and device for sharing schedule information of multiple mobile terminals
CN103188321A (en) * 2011-12-30 2013-07-03 上海博泰悦臻电子设备制造有限公司 Information synchronizing method and system based on cloud server

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222521A (en) * 2017-04-28 2017-09-29 厦门中控智慧信息技术有限公司 Personal information automatic synchronous method and device
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A kind of method of data synchronization and mobile terminal
CN108200117A (en) * 2017-12-04 2018-06-22 中国船舶重工集团公司第七〇九研究所 Intelligent hand-held terminal data synchronous system and method
CN108200117B (en) * 2017-12-04 2021-03-30 中国船舶重工集团公司第七一九研究所 Intelligent handheld terminal data synchronization system and method
CN110381139A (en) * 2019-07-19 2019-10-25 福建龙净环保股份有限公司 A kind of remote data acquisition method and apparatus Internet-based
CN110381139B (en) * 2019-07-19 2022-05-27 福建龙净环保股份有限公司 Remote data acquisition method and device based on Internet
CN110597898A (en) * 2019-09-18 2019-12-20 山东浪潮通软信息科技有限公司 Middleware method and device for attendance machine card punching data integration
CN110992504A (en) * 2019-12-10 2020-04-10 泸州北方化学工业有限公司 Card swiping and attendance checking integrated machine system
CN111698329A (en) * 2020-06-13 2020-09-22 北京京投亿雅捷交通科技有限公司 Station server communication method and system
CN114489863A (en) * 2022-02-16 2022-05-13 平安普惠企业管理有限公司 System parameter configuration method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106453541A (en) Data synchronization method, server and data synchronization system
CN110445856B (en) Internet of things communication assembly management and control system and method supporting multi-protocol access
CN110535965A (en) A kind of data processing method and device, storage medium
CN104468397B (en) The method and apparatus that a kind of live migration of virtual machine forwards not packet loss
CN105607954A (en) Stateful container online migration method and apparatus
CN112565415B (en) Cross-region resource management system and method based on cloud edge cooperation
CN103546343B (en) The network traffics methods of exhibiting of network traffic analysis system and system
CN112925646A (en) Electric power data edge calculation system and calculation method
CN107479514B (en) A kind of industry big data process control data acquisition and Transmission system and implementation method
CN109905286A (en) A kind of method and system of monitoring device operating status
CN103248512A (en) Method and system for generating topological structure of application layer in communication network
CN106713391A (en) Session information sharing method and sharing system
CN104468408A (en) Method for adjusting dynamically service bandwidth and control center server
CN108989399A (en) A kind of cluster common data querying method, system, device and readable storage medium storing program for executing
CN109922151A (en) A kind of data sharing method between micro services
CN108924007A (en) The big data acquisition of communication operation information and storage system and method
CN104956629A (en) Software-defined network event distribution method, control device, and processor
CN103916424A (en) Application program heartbeat packet control method, communication terminal and communication network
CN105117280A (en) Virtual machine migration device and method
CN104270432B (en) Based on drilling well industry Real-time Data Service system and data interactive method
CN100413248C (en) Improved method and system for carrying out charging based on flow
CN106971272A (en) Synchronous system and method is operated between a kind of dispatching automation main preparation system
CN202385116U (en) Distributed operation and maintenance data acquisition device
CN205071038U (en) Energy saving optimization device
CN114363164A (en) Cloud network service arrangement control method and system, storage medium and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170823

Address after: 361008, Xiamen three software park, Fujian Province, 8 North Street, room 2001

Applicant after: Xiamen Central Intelligent Information Technology Co., Ltd.

Address before: 361000 Fujian province Xiamen software park two sunrise Road No. 32 403 unit 02 District

Applicant before: XIAMEN ZHONGKONG BIOLOGICAL RECOGNITION INFORMATION TECHNOLOGY CO., LTD.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170222