Data synchronization method and device
A data synchronization and data technology, applied in the field of data processing, can solve problems such as adverse impact of service nodes, errors in business processing, and inability to obtain business data in time, so as to avoid data processing problems.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0066] Next, the data synchronization method provided by the embodiment of the present application will be described in detail with reference to the accompanying drawings.
[0067] see figure 2 , figure 2 A flow chart of a data synchronization method is shown, the method includes:
[0068] S201. Obtain a synchronization request of a service node.
[0069] According to its own data processing requirements, the service node needs to obtain the latest data required to realize its functions in the system. Therefore, the service node can send a synchronization request to the MQ BROKER 102 to obtain the required synchronization data from the MQ BROKER 102. At this point, it can be considered that MQ BROKER 102 enters the data recovery state.
[0070] S202. Obtain a snapshot copy generated according to the data set to be synchronized from the key-value database by using the identifier.
[0071] The MQ BROKER 102 needs to specify the set of data to be synchronized that should be...
Embodiment 2
[0100] Based on the data synchronization method provided in the first embodiment, this embodiment provides a data synchronization device. Figure 4 A structural diagram of a data synchronization device provided in this embodiment, the data synchronization device 400 includes a first acquisition unit 401, a second acquisition unit 402, a modification unit 403 and a synchronization unit 404:
[0101] The first acquiring unit 401 is configured to acquire a synchronization request of a service node, where the synchronization request includes an identifier of a data set to be synchronized;
[0102] The second obtaining unit 402 is configured to obtain a snapshot copy generated according to the data set to be synchronized from the key-value database through the identification, and the key information corresponding to the data in the snapshot copy is set with a version number, wherein, The version number of a key information is used to identify the update information of the data corr...
Embodiment 3
[0116] refer to Figure 5 , Figure 5 It is a schematic diagram of the hardware structure of a device for data synchronization provided in the embodiment of the present application. The device 500 includes a memory 501, a receiver 502, and a transmitter 503, and is connected to the memory 501, the receiver 502, and the transmitter 503, respectively. The processor 504 connected to the transmitter 503, the memory 501 is used to store a set of program instructions, and the processor 504 is used to call the program instructions stored in the memory 501 to perform the following operations:
[0117] Triggering the receiver 502 to obtain a synchronization request from the service node, where the synchronization request includes an identifier of the data set to be synchronized;
[0118] The snapshot copy generated according to the data set to be synchronized is obtained from the key-value database through the identification, and the key information corresponding to the data in the sn...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com