title: Express: Handling multiple rest api calls which depends on one another
body: <p>I came across this roadblock today and wasn't sure on the right way to tackle it. Let's say I have to make four calls to different rest apis.</p>
  
  <pre><code>/A, /B, /C, and /D
  </code></pre>
  
  <p>If POST /A and /B succeeds, but POST /C fails, I will not execute POST /D and I would have to DELETE /A and /B to revert my changes. Basically if one of them fail they should all fail and no changes should be made to any of the services.</p>
  
  <p>I was wondering if it was possible to solve this problem asynchronously or would I have to make each call sequentially?</p>
  
  <p>Thanks!</p>