Rollback option when db crash
After creating folder or uploading files into box there will be chance of occuring backend database crash or lose connection between datasource . In this case we should roll back our transaction(like revert folder creation or file upload).
1
vote
![](https://secure.gravatar.com/avatar/aa48528dbacd9005ecae3eb2d8d19dd1?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Many actions in both are idemptotent and can be safely retried. For those which are not, it is the responsibility of a client to implement transaction guarantees if required. There are common patterns for this such as the two-phase commit and SAGA pattern. If there is more information for a specific capability that is required to faciliate these, please add that to the comments.