06Change data capture and event delivery

Debezium Inbox and Outbox

Order and stock services use embedded Debezium, Kafka, and PostgreSQL to deliver events through inbox and outbox patterns.

Event delivery inspector showing an order event passing from the outbox through Kafka to the stock inbox.
Concept interface

How it works

  • The outbox records events alongside local database updates. Embedded Debezium captures changes for delivery through Kafka.
  • The receiving inbox records processed messages so they can be recognized on redelivery.
  • The repository includes separate order and stock services and a Docker Compose setup for the supporting infrastructure.

Technology stack

Spring BootDebeziumApache KafkaPostgreSQLDocker Compose