Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
Shipping Command CompleteShipCommand command = CompleteShipCommand.builder() .orderId(event.getOrderId()) .shipmentId(shipmentId) .paymentId(event.getPaymentId()) .userId(event.getUserId()) .build(); commandGateway.send(command); } } If there is no error, a new CompleteShipCommand is trigged, which