We have a requirement where we want to sync changes occurring in specific tables of 2 separate systems. For one of the system we are looking to use Debezium PostgreSQL source. We wanted to check for a way to stop a cyclic loop like below as the changes from CDC are synched.
SysA external change -> Debezium CDC -> SystemB notified -> CDC -> SysA (notified again) -> CDC -> SysB (notified again)....cycle
We were thinking to do the updates from the CDC in the DB using a specific DB user so that the Debezium source connector can ignore the changes done by a specific user, something like below.
SysA external change -> SystemB notified (DB updated using specif DB user DB1) -> CDC (ignore changes by DB user DB1)
Is this possible. Any other way we can achive the same? Note: Only one of the CDC will use Debezium the other DB is different so would use a different connector.