I have a question about the best practice in Angular $http-posts. In fact I collect an array with data I want to post later to my Spring Data REST-db.
But to make this, I have to iterate over the $http-post to permit all data.
Now my worry about this way is, what happens, if the db aborts the post in the middle of process, so the table-data will be inconsistent?
Years ago, as I worked in VBA, the solution for this problem was a rollback, so the whole data won't be permitted after problems in a transaction.
But how to handle this in angular?
Thanks for answers!
If I understand your question correctly, you shouldn't be worried about the rollback from the client (angular) side.
If the operation will fail the rollback should be performed on the server side.
The client side will only receive the error response notifying the operation has failed.