04Hotel reservation workflow
Saga Orchestration
A reservation service coordinates room availability and payment across services, with a compensation path for rejected payments.

How it works
- The reservation service orchestrates the workflow. The hotel service handles room availability and the payment service processes payment.
- A saga state machine models both successful reservations and compensation after payment failure.
- A transactional outbox and Debezium publish database changes. The repository documents end-to-end failure scenarios.
Technology stack
Java 21Spring BootApache KafkaDebeziumPostgreSQL
Related projects
05/06Infrastructure
Spring Boot Microservices Gateway
Service discovery and observability
A Spring Boot gateway routes requests to registered service instances and supports distributed tracing.
06/06Event-driven
Debezium Inbox and Outbox
Change data capture and event delivery
Order and stock services use embedded Debezium, Kafka, and PostgreSQL to deliver events through inbox and outbox patterns.
Building something similar?

