This invention discloses a
data synchronization method, apparatus, device, storage medium, and
computer program product. The method, applied to a master node, includes: responding to a data object write request and generating a
metadata sequence containing index information of each
data segment; constructing a replication
control flow based on this sequence to describe
transmission order constraints and completion conditions; sending the
metadata sequence to slave nodes; sending the corresponding data segments while satisfying the order constraints; and sending a synchronization completion flag when the transmission status meets the completion conditions. This invention combines the
metadata sequence with the replication
control flow, transforming the traditional content-based driving approach into a unified scheduling control based on metadata. Through pre-planning the
transmission order and a judgment mechanism, it achieves structured control of the synchronization process, eliminating the need for overall
processing of complete objects, significantly improving the execution efficiency and
controllability of
data synchronization, and reducing the uncertainty of handling complex objects.