79172376

Date: 2024-11-09 08:28:50
Score: 0.5
Natty:
Report link

Using @Transactional for multiple database operations as single transaction is of course doable but not so much for the external API calls. You would have to implement some custom logic for that - there would have to be endpoints to undo your last actions and you would have to implement calling them manually in try-catch block. For example, if the external API call creates an item then there would also have to be an endpoint to delete an item and so on.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Akshay Tyagi