Debezium, a platform commonly used for CDC.
Change Data Capture (CDC) is a technique and a design pattern. We often use it to replicate data between databases in real-time.
(this spring boot application is connected to materialized) after following the steps below, you can start the application. and query materialized views with spring data jpa or we can create a sink (kafka) and consume the data.
- clone project from github and go to the project folder.
- run docker-compose.yml -d up.
- setup postgresql debezium connector (run config_Debez_postgresql.cmd) and kafka to materialize is connected automatically
- take a look at the http://localhost:8081/subjects (topics)
- uncomment the mzcli service and run docker-compose run mzcli
- create source in materialize ( you can check create_source.sql file )
- Create Materialize view