01Event-driven order processing

Kafka Microservices with Saga

Spring Boot services coordinate orders through Kafka and trigger compensating actions when a participating service fails.

Order monitor showing a rejected payment and the compensating inventory release.
Concept interface

How it works

  • The order service publishes a new order event. Participating services process it independently and publish their results.
  • Kafka Streams joins the results. The order service publishes a rollback event if any participant reports failure.
  • A notification service consumes the final order status. Success and failure scenarios are configurable.

Technology stack

JavaSpring BootApache KafkaKafka StreamsDocker