Created on
02-05-2020
01:09 AM
- last edited on
02-05-2020
01:33 AM
by
VidyaSargur
Dears,
I have to two different databases and the data inside them are identical:
In future, I would like to sync the data between those DBs to capture the data when its changed in the main DB which is the PostgreDB and reflect that changes in the memSql DB.
Is there a way using Nifi to capture data changed in the Postgre DB and move the data changed to MemSql DB?
I look forward to hearing from you soon.
Regards,
Ahmed
Created 02-05-2020 04:34 AM
Apache Nifi does not have a generic CDC processor as such. One way you can achieve a CDC like approach is to use the QueryDatabaseTable processor. Please take a look at this article on how to use the QueryDatabaseTable processor to do an incremental fetch of new rows in the source database:
Alternatively, you use can use a vendor that specializes in CDC.
Please accept this answer as a solution if it helps you.
Steve
Created 02-05-2020 04:34 AM
Apache Nifi does not have a generic CDC processor as such. One way you can achieve a CDC like approach is to use the QueryDatabaseTable processor. Please take a look at this article on how to use the QueryDatabaseTable processor to do an incremental fetch of new rows in the source database:
Alternatively, you use can use a vendor that specializes in CDC.
Please accept this answer as a solution if it helps you.
Steve