Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
interface OrderRepository extends MongoRepository<Order, String> { Order findByOrderId(String orderId); } This persists the Order records into MongoDB. OrderSystemSaga package com.saga.demo.order.saga; import java.util.UUID; import org.axonframework.commandhandling.gateway.CommandGateway; import