In a spring batch project I have to implement multiple operations in a writer: call two different APIs and update a local database. The point is: if one of these operations fails I need to restart from the failed one, without repeating the previous.
Should I implement my own custom logic to track what has been done or not or is there anything that spring batch provides out of the box?
I'm aware that if I split these operations in separated steps Spring Batch already provides restartability, but I don't want to create thousands of 'single operations' steps.