Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
.orderId(event.getOrderId()) .paymentId(paymentId) .price(event.getPrice()) .userId(event.getUserId()) .build(); commandGateway.send(command); } Here the event is triggered as @StartSaga and from here a CompletePaymentCommand is created to start the next flow to save payment data. So this command