I am currently working on the use case where there is an existing API which is being called from the client side. Now, I need to update the resources in multiple services. How do I make sure that the operation is atomic.
By atomic, I mean, If request to first service fails for some reason, and request to the second service is successful that means second service updated the resource/s at it's end, then how do we ensure that whole operation is executed not the partial one.