sequenceDiagram
participant Replicator as R
participant MessageHandler as MH
participant DbTableDataLoader as DTL
participant TableComparator as TC
participant DbSyncRunner as DBS
R->>MH: SendStatus("Starting Replication...")
R->>DTL: LoadSourceAndDestinationTables(table, dbSource, dbDest, syncParams)
DTL->>DTL: Load table data from source database
DTL->>DTL: Load table data from destination database
DTL-->>R: Returns TableLoadResult (sourceTable, destTable)
R->>TC: SearchForObjectDifferences(sourceTable, destTable)
TC->>TC: Compares tables
TC-->>R: Returns list of differences
R->>DBS: ExecuteInstructions(sourceTable, destTable)
DBS->>DBS: Applies changes to destination database
DBS-->>R: Synchronization complete
R->>MH: SendStatus("Replication Complete.")