Data synchronization method and device

A data synchronization and data technology, applied in the Internet field, can solve problems such as low efficiency, and achieve the effect of improving processing efficiency and solving low efficiency

Active Publication Date: 2017-05-24
TENCENT TECH (SHENZHEN) CO LTD
View PDF15 Cites 43 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a data synchronization method and device, to at...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data synchronization method and device
  • Data synchronization method and device
  • Data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, a method embodiment of a data synchronization method is provided.

[0027] Optionally, in this embodiment, the above method can be applied to figure 1 In the hardware environment shown by the server 102 and the terminal 104. like figure 1 As shown, the server 102 is connected to the terminal 104 through a network, the network includes but is not limited to: a wide area network, a metropolitan area network or a local area network, and the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The data synchronization method in this embodiment of the present invention may be executed by the server 102 , may also be executed by the terminal 104 , or may be executed jointly by the server 102 and the terminal 104 . The method for synchronizing data in the embodiment of the present invention by the terminal 104 may also be performed by a client installed on the terminal 104 .

[0028] fig...

Embodiment 2

[0073] According to an embodiment of the present invention, a data synchronization apparatus for implementing the above data synchronization method is also provided. Image 6 is a schematic diagram of an optional data synchronization device according to an embodiment of the present invention, such as Image 6 As shown, the apparatus may include: a detection unit 62 , a first acquisition unit 64 , an execution unit 66 and a storage unit 68 .

[0074] a detection unit 62, configured to detect a synchronization operation, wherein the synchronization operation is used to request to synchronize the data of the target type of the first node to the second node;

[0075] The first obtaining unit 64 is configured to obtain a synchronization task triggered by a synchronization operation, wherein the synchronization task is used to synchronize the data of the target type stored on the slave device of the first node to the second node, and the first node includes a master. devices and mu...

Embodiment 3

[0107] According to an embodiment of the present invention, a server or terminal for implementing the above data synchronization method is also provided.

[0108] Figure 9 is a structural block diagram of a terminal according to an embodiment of the present invention, such as Figure 9 As shown, the terminal may include: one or more (only one is shown in the figure) processor 901, a memory 903, and a transmission device 905 (such as the transmission device in the above embodiment), such as Figure 9 As shown, the terminal may also include an input and output device 907 .

[0109] The memory 903 can be used to store software programs and modules, such as program instructions / modules corresponding to the data synchronization method and apparatus in the embodiment of the present invention, and the processor 901 executes the software programs and modules stored in the memory 903 by running the software programs and modules. Various functional applications and data processing ar...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data synchronization method and device. The method comprises the steps of detecting synchronization operation, wherein the synchronization operation is used for making a request for synchronizing a target type of data of a first node to a second node; obtaining a synchronization task triggered by the synchronization operation, wherein the synchronization task is used for synchronizing the target type of data stored on slave devices of the first node to the second node, and the first node comprises a master device and a plurality of slave devices on which the data on the master device is backed up; carrying out a synchronization task, reading a target message containing the target type of data from a message queue, wherein the messages cached in the message queue carry various types of data obtained from the salve devices of the first node; and storing the target type of data in the target message to the second node. According to the method and the device, the technical problem that in related technologies, the efficiency is relatively low when data synchronization processing is carried out is solved.

Description

technical field [0001] The present invention relates to the field of the Internet, and in particular, to a data synchronization method and device. Background technique [0002] Data backup is the basis of disaster recovery and data analysis. It is mainly the process of copying all or part of the data set from the hard disk or array of the application host to other storage media to prevent data loss due to system operation errors or system failures. Traditional data backup mainly uses built-in or external tape drives for cold backup. However, this method can only prevent human failures such as operational errors, and its recovery time is also very long. With the continuous development of technology and the massive increase of data, many enterprises have begun to adopt network backup. Network backup is generally realized through professional data storage management software combined with corresponding hardware and storage devices. [0003] Mysql provides a multi-master and ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L29/08
CPCH04L67/1095
Inventor 雷海林胡彬孙勇福苏强
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products