Priority-based two-way synchronization method and priority-based two-way synchronization system
A technology of priority and synchronization operation, applied in the direction of program synchronization, file system, file system type, etc., can solve problems such as slowing down the speed of synchronization and affecting the performance of real-time synchronization system.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045]In an actual application scenario, deploy a source-end data synchronization system on the source-end database, deploy a destination-end data synchronization system on the destination-end database, and set a first task queue, a second task queue, and a first execution thread and a plurality of second execution threads, wherein the first task queue is used to store operations with a first priority, the second task queue is used to store operations with a second priority, and the first execution thread uses For processing operations of a first priority, the second execution thread is used for processing operations of a second priority, wherein the first priority is higher than the second priority.
[0046] Based on the aforementioned synchronization environment, this embodiment provides a priority-based two-way synchronization method, see figure 1 , the two-way synchronization method includes the steps of:
[0047] Step 101: Obtain the operation to be synchronized from the...
Embodiment 2
[0072] In this embodiment, the synchronization process of the second execution thread is described based on the foregoing embodiment 1:
[0073] In the actual application scenario, submitting the transaction table is used to register transaction information, mainly to prevent data synchronization failures (synchronization program exceptions, database service exceptions, operating system exceptions, or hardware failures) from inconsistency after recovery, for example, When the synchronization service finishes committing the transaction on the destination database, the commit command is successfully sent to the database service but the synchronization service has not received the execution result returned by the database service, and the synchronization service crashes abnormally. Since the synchronization service and the database are two independent entities, Although the synchronization service is abnormal, the database may still successfully submit the submission command sent ...
Embodiment 3
[0092] see Figure 4 , Figure 4 It is a schematic structural diagram of a synchronization system provided by an embodiment of the present invention. The synchronization system in this embodiment includes one or more processors 41 and a memory 42 . in, Figure 4 A processor 41 is taken as an example.
[0093] Processor 41 and memory 42 can be connected by bus or other means, Figure 4 Take connection via bus as an example.
[0094] The memory 42, as a non-volatile computer-readable storage medium based on a two-way synchronization method, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, the methods of the above-mentioned embodiments and the corresponding Program instructions. The processor 41 executes various functional applications and data processing by running non-volatile software programs, instructions and modules stored in the memory 42 to implement the methods of the foregoing embodiments.
[0095] Wherei...
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