logoalt Hacker News

EGreglast Tuesday at 8:41 PM1 replyview on HN

The advantage is simple

If any of the required subtasks fail, you don’t do the side effects. You ROLLBACK.


Replies

lelanthranlast Tuesday at 9:18 PM

> If any of the required subtasks fail, you don’t do the side effects. You ROLLBACK.

I'm afraid I am still not seeing the advantage here: the subtasks that can fail are IO almost exclusively. If the email is already sent when the DB update fails, that email can't be recalled.

Other than hash/signature verification, just what sort of subtasks did you have in mind that can fail and aren't IO?

show 1 reply