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.