Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
orderRepository.findByOrderId(event.getOrderId()); if(order==null) { order = new Order(); order.setOrderId(event.getOrderId()); order.setOrderStatus(event.getOrderStatus()); order.setPrice(event.getPrice()); order.setProductId(event.getProductId()); order.setQuantity(event.getQuantity());