Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
command to make payment CompletePaymentCommand command = CompletePaymentCommand.builder() .orderId(event.getOrderId()) .paymentId(paymentId) .price(event.getPrice()) .userId(event.getUserId()) .build(); commandGateway.send(command); } @SagaEventHandler(associationProperty = "paymentId") private