Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
order.setComment("Successfully created order"); orderRepository.save(order); } } public void onCancelOrderEvent(CancelOrderEvent event) { Order order = orderRepository.findByOrderId(event.getOrderId()); if(order!=null) { order.setOrderStatus("Cancelled"); order.setComment("Order was cancelled due