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

Multi-IDC distributed system data synchronization method based on SQL command level

A distributed system and data synchronization technology, applied in structured data retrieval, electronic digital data processing, database distribution/replication, etc., can solve problems such as resource waste, high technical threshold, and large software volume

Pending Publication Date: 2022-06-07
TONGFANG KNOWLEDGE NETWORK TECH CO LTD (BEIJING)
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Traditional distributed database data synchronization solutions are usually deployed in a master-slave structure, and data is synchronized from the master node to the slave node, which is one-way; it is difficult to directly apply to multi-IDC deployment in different places; and the slave node is in a cold standby state, which is a kind of huge waste
Emerging distributed database data synchronization solutions such as NewSQL and PGXC can realize cross-regional multi-IDC distributed deployment, but the software volume is large, the technical threshold is high, and the investment in migration and operation and maintenance is large.

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
  • Multi-IDC distributed system data synchronization method based on SQL command level
  • Multi-IDC distributed system data synchronization method based on SQL command level

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail below with reference to the embodiments and accompanying drawings.

[0023] like figure 1 As shown, it is the data synchronization method process of multi-IDC distributed system based on SQL command level, including:

[0024] 1) Configure the database tables that need to be synchronized and the type of addition, deletion and modification operations;

[0025] Distributed information systems typically use databases to store system data. According to the actual business, configure the databases and data tables that need to be synchronized and the types of operations that need to be synchronized (including INSERT, UPDATE, DELETE). The log flow data of the system has been partitioned after the business unitization, and online cross access has been avoided. It can be collected and summarized regularly, and incrementa...

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 multi-IDC (Internet Data Center) distributed system data synchronization method based on an SQL (Structured Query Language) command level. The multi-IDC distributed system data synchronization method comprises the following steps: configuring database tables and addition, deletion and modification operation types which need to be synchronized; generating an addition, deletion and modification SQL command of the synchronization table through a database trigger; packaging the SQL command into a synchronization task and transmitting the synchronization task to each target IDC; the target IDC receives the synchronization task and executes the received synchronization task in a corresponding database according to a time sequence generated by the task; according to the synchronization task state, trying to repeatedly execute the failed synchronization task according to a time sequence; and regularly performing consistency monitoring on the synchronous data tables of the IDCs. According to the invention, the addition, deletion and modification operations of the data table can be synchronized in a system of a plurality of IDC machine rooms under the condition of not changing the logic of a service layer, so that the final consistency of the data table level is realized; and a data synchronization solution is provided for the multi-IDC distributed system.

Description

technical field [0001] The invention relates to the technical field of distributed system data synchronization, in particular to a method for data synchronization of multiple IDC distributed systems based on SQL command level. Background technique [0002] With the development of distributed systems, especially the development of distributed database technology, the deployment of three centers in two places has become a common phenomenon, and many large factories have even entered the multi-active era of five centers in three places. However, many small and medium-sized Internet companies are hesitant when facing the deployment of multiple IDCs in information systems, mainly due to the high technical threshold and large investment. The most critical technology here is the data synchronization of multiple IDC rooms, because the upper-layer application can be deployed in a distributed manner after it is stateless, but the underlying database cannot. For example, stateful stor...

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 Applications(China)
IPC IPC(8): G06F16/27G06F11/30G06F9/48
CPCG06F16/273G06F9/4887G06F11/302
Inventor 张良单建帅邵明昳
Owner TONGFANG KNOWLEDGE NETWORK TECH CO LTD (BEIJING)
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