A data synchronization method and apparatus

By generating and sending change operation messages carrying version information in a distributed system, and using a change operation queue to synchronize local replicas, the problem of poor real-time performance in multi-replica synchronization is solved, achieving real-time consistency between local replicas and the database, and improving the system's synchronization efficiency and reliability.

CN112084258BActive Publication Date: 2026-06-26TENCENT CLOUD COMPUTING (BEIJING) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT CLOUD COMPUTING (BEIJING) CO LTD
Filing Date
2020-08-18
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In existing technologies, the real-time performance of multi-replica synchronization in distributed systems is poor and the efficiency is low, and it cannot guarantee that updates to data in the storage layer can be synchronized to replicas in all service instances in real time.

Method used

The data management terminal generates change operation messages carrying version information and sends them to the corresponding service instances in real time. The service instances use the change operation queue to synchronize local replicas to ensure consistency among multiple replicas.

Benefits of technology

It enables more real-time and effective synchronization of multiple replicas, ensuring consistency between local replicas and data objects in the database, and improving the reliability and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112084258B_ABST
    Figure CN112084258B_ABST
Patent Text Reader

Abstract

The application discloses a data synchronization method and device. The method comprises the following steps: receiving a data object update request, wherein the data object update request carries a target data object identifier and update information; determining a target data object in a database according to the target data object identifier, and updating content information and version information of the target data object based on the update information; generating a change operation message for indicating the target data object based on the update information and the updated version information; sending the change operation message to a corresponding service instance, so that the corresponding service instance stores the change operation message in a change operation queue, and synchronizes a local copy based on the change operation queue. Thus, more real-time and effective synchronization of multiple copies can be realized, and consistency between the local copy and data objects in the database can be better ensured.
Need to check novelty before this filing date? Find Prior Art