Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
Order collections need to be rollbacked. Payment Collection: Payment is set to cancelled Order Collection: Order was also rollbacked to Cancelled If you notice you will see that the orderId of both these records in the different Order and Payment collections are the same, signifying it is the