Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
order.setUserId(event.getUserId()); order.setComment("Order Initiated"); orderRepository.save(order); } } public void onCompleteOrderEvent(CompleteOrderEvent event) { Order order = orderRepository.findByOrderId(event.getOrderId()); if(order!=null) { order.setOrderStatus(event.getOrderStatus());