Skip to content

Kafka, Debezium, Zookeeper, Kafkadrop, PostgreSQL Integrations with Docker, Spring Boot 3 and Java 21

Notifications You must be signed in to change notification settings

musabbozkurt/kafka-debezium-service

Repository files navigation

Prerequisites

  • Docker should be installed
  • Java 21 should be installed --> export JAVA_HOME=$(/usr/libexec/java_home -v 21)

docker-compose contains the followings


How to start the application

  • First way
  • Second way
    • Run docker-compose up -d command to start the services (OPTIONAL)
    • Run mvn clean install or mvn clean package
    • Run mvn spring-boot:run or ./mvnw spring-boot:run
  • Third way

Check and Test REST APIs via Swagger and Actuator


How to test Debezium

  • Connect to PostgreSQL with the provided connection details above

  • Run the following query to make sure there are records

    select *
    from inventory.customers;
    
  • Run the following script to update a record

    UPDATE inventory.customers
    SET email = 'sally.thomas.updated@acme.com'
    WHERE id = 1001;
    
  • Check Orders Inventory Customers Topic to make sure message is published


Reference Documentation

For further reference, please consider the following sections:


About

Kafka, Debezium, Zookeeper, Kafkadrop, PostgreSQL Integrations with Docker, Spring Boot 3 and Java 21

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published