This repository demonstrates how to use Change Data Capture (CDC) with Debezium, Kafka, and Go. Inspired by this video, thanks to Eko Kurniawan Khannedy 🎉.
- Docker
- Docker Compose
- Go
-
Clone this repository:
git clone https://github.com/carakawedhatama/go-cdc.git cd go-cdc
-
Start the services using Docker Compose:
docker-compose up -d
-
Run the Go application:
go mod tidy go run main.go
- MariaDB is set up with a sample database and table.
- Debezium captures changes from the MariaDB transaction log and sends them to Kafka.
- The Go-CDC application consumes the changes from the Kafka topic and prints them.
This project is licensed under the MIT License.