- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Change Data Capture in Databases Using Apache Nifi
- Labels:
-
Apache NiFi
Created on
‎02-05-2020
01:09 AM
- last edited on
‎02-05-2020
01:33 AM
by
VidyaSargur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dears,
I have to two different databases and the data inside them are identical:
- MemSql DB
- Postgre DB Frequently data changed
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
