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

Data real-time synchronization method and system

A real-time synchronization and data synchronization technology, applied in the Internet field, can solve problems such as low synchronization efficiency, complicated database relationships, and increased database coupling, and achieve the effects of timely data synchronization, simple synchronization method, and high synchronization efficiency.

Inactive Publication Date: 2019-04-05
恒峰信息技术有限公司
View PDF3 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In recent years, with the vigorous development of school campus information construction, each school is actively building its own information platform. However, due to the lack of unified planning in the early stage of information construction, many school information systems have the following problems: 1. Business system No unified data requirements have been followed, and no unified data interaction specification has been formed. Second, the way of data interaction between business systems is to directly operate database tables through database direct connection, which not only increases the coupling degree of the database, but also As a result, the amount of database access is too large and the burden is too heavy; 3. If the business system needs to access multiple other business systems, multiple data sources must be configured, which increases the difficulty of development and maintenance; 4. The relationship between databases is intricate, The synchronization of a large amount of data can only be performed at night when it is idle, and the synchronization efficiency is low and the cycle is long
In general, in the current campus information system, data synchronization between multiple homogeneous databases and heterogeneous databases has problems such as large access volume, difficult maintenance, low efficiency, and long cycle.

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 real-time synchronization method and system
  • Data real-time synchronization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] refer to figure 1 , this embodiment provides a real-time data synchronization method for realizing data synchronization between a source database and a target database. The synchronization method described in this embodiment is executed in the source database, and the method specifically includes the following steps:

[0042] S1. When a data change in the source database is detected, the data change sequence of the source database is obtained, and the data change sequence is saved in the data change log table; in the present invention, the data change includes data addition, modification and deletion;

[0043] S2. When the data change in the data change log table is detected, the change data in the data change log table is obtained and encapsulated into message queue information, and then the message queue information is sent to the message queue;

[0044] S3. Notify the target database that needs to synchronize data, so that after receiving the notification message, th...

Embodiment 2

[0057] This embodiment provides a real-time data synchronization method for realizing data synchronization between the source database and the target database. This embodiment describes how to perform data processing in the source database and the target database to implement the data synchronization method. Specifically , the method includes the following steps:

[0058] When the source database detects a data change, obtain the data change sequence of the source database, and save the data change sequence into the data change log table;

[0059] When the source database detects a data change in the data change log table, it obtains the changed data in the data change log table and encapsulates it into message queue information, and then sends the message queue information to the message queue;

[0060] The source database notifies the data synchronization module of the target database that needs to synchronize data;

[0061] After receiving the notification message, the tar...

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 real-time data synchronization method and system, and the method comprises the steps: obtaining a data change sequence of a source database when detecting that the source database has data change, and storing the data change sequence in a data change log table; When it is detected that the data change occurs in the data change log table, obtaining change data in the datachange log table, packaging the change data into message queue information, and sending the message queue information to a message queue; Informing a target database needing to synchronize data, so that after receiving the notification message, the target database reads the message queue information from the message queue and then performs data updating operation according to the message queue information; And after judging that the message queue information in the message queue is successfully sent, sending a synchronization completion message notification to the target database. The synchronization mode is simple, program development difficulty is low, synchronization efficiency is high, data synchronization can be carried out in time, the period is short, and the method can be widely applied to the software technology industry.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and system for synchronizing data in real time. Background technique [0002] In recent years, with the vigorous development of school campus information construction, each school is actively building its own information platform. However, due to the lack of unified planning in the early stage of information construction, many school information systems have the following problems: 1. Business system No unified data requirements have been followed, and no unified data interaction specification has been formed. Second, the way of data interaction between business systems is to directly operate database tables through database direct connection, which not only increases the coupling degree of the database, but also As a result, the amount of database access is too large and the burden is too heavy; 3. If the business system needs to access multiple other business syst...

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/27G06F9/54
CPCG06F9/546
Inventor 陈凯刘胜坤王栋梁刘志锋叶永丛韦建明
Owner 恒峰信息技术有限公司
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