francisoliverlee commented on issue #2497:
URL: https://github.com/apache/rocketmq/issues/2497#issuecomment-742256611
@djkdeveloper
save first, then notice es, that's a good idea. i would close the issue,
feel free to reopen it if you still have any question
try logic code like this
```java
ProductInfo productInfo = save(productVO);//success: return product object
with uniq id, fail: return null
if(productInfo!=null){
sendMQToES(productInfo);// not transactional msg would be ok
}else{
return "save product fail";
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]