So I have a node server making calls to a SOAP server. All are asynchronous as one would expect. The node server will get a list of commands to run, each will translate to one async call. The rule is start running the commands until the list is complete or one leads to an error, i.e. a command that fails. In the case of the failure, need to rollback all the succeeded commands, really identical to a SQL transaction. The commands will have to be rolled back, in the reverse order, to ensure system integrity.
Up to now, I did not have the rollback feature. So far I was using async.series with a callback for each of my commands. My commands are very analogous to SQL commands, to help picture what I need to do. Any simple ways to implement the rollback? Thanks -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.