Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
.userId(command.getUserId()) .build(); AggregateLifecycle.apply(event); } @EventSourcingHandler public void on(CompletePaymentEvent event, PaymentEventHandler nh) { this.paymentId = event.getPaymentId(); nh.onCompletePaymentEvent(event); } @EventSourcingHandler public void on(CancelPaymentEvent