This repository is used as the example for the following articles:
- Distributed Transactions in Microservices with Kafka Streams and Spring Boot - how to implement distributed transaction based on the SAGA pattern with Spring Boot and Kafka Streams
There are three microservices: order-service - it sends Order events to the Kafka topic and orchestrates the process of a distributed transaction payment-service - it performs local transaction on the customer account basing on the Order price stock-service - it performs local transaction on the store basing on number of products in the Order
Here's the diagram with our architecture:
