Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
.userId(command.getUserId()) .price(command.getPrice()) .build(); AggregateLifecycle.apply(event); } This aggregate creates a CompletePaymentEvent which is handled in the aggregate: @EventSourcingHandler public void on(CompletePaymentEvent event, PaymentEventHandler nh) { this.paymentId =