Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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: 2020-10-09
TENCENT TECH (SHENZHEN) CO LTD
View PDF15 Cites 0 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 least solve the technical problem of low efficiency in data synchronization processing in the related art

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 constituted by the server 102 and the terminal 104 as shown. Such as figure 1 As shown, the server 102 is connected to the terminal 104 through a network. The above-mentioned network includes but not limited to: a wide area network, a metropolitan area network or a local area network. The terminal 104 is not limited to a PC, a mobile phone, a tablet computer, and the like. The data synchronization method in the embodiment of the present invention may be executed by the server 102, may also be executed by the terminal 104, and may also be executed jointly by the server 102 and the terminal 104. Wherein, the method for synchronizing data in the embodiment of the present invention performed by the terminal 104 may also be performed by a client...

Embodiment 2

[0073] According to an embodiment of the present invention, a data synchronization device for implementing the above data synchronization method is also provided. Figure 6 is a schematic diagram of an optional data synchronization device according to an embodiment of the present invention, such as Figure 6 As shown, the device 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 that the data of the target type of the first node be synchronized to the second node;

[0075] The first acquisition unit 64 is configured to acquire 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 device and...

Embodiment 3

[0107] According to an embodiment of the present invention, a server or a 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, memory 903, and transmission device 905 (such as the sending device in the above-mentioned embodiment), such as Figure 9 As shown, the terminal may also include an input and output device 907 .

[0109] Among them, the memory 903 can be used to store software programs and modules, such as program instructions / modules corresponding to the data synchronization method and device in the embodiment of the present invention, and the processor 901 runs the software programs and modules stored in the memory 903 to execute Various functional applications and data processing, that is, to realize the abov...

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, 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 in order to prevent data loss caused by system operation errors or system failures. Traditional data backup mainly uses built-in or external tape drives for cold backup. But this method can only prevent man-made failures such as operating 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 use 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
Patent Type & Authority Patents(China)
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products