logoalt Hacker News

lelanthranlast Tuesday at 6:09 AM1 replyview on HN

>>does not, in practice, bring any advantages.

> It does.

Well, what are they?

> You queue ALL of these side effects (simply tasks whose exceptions don't rollback your own task) until the end.

Yes, but what are the advantages of doing this?

> Then you can perform them all, in parallel if you wish.

I can do that without queuing them up first.


Replies

EGreglast Tuesday at 8:41 PM

The advantage is simple

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

show 1 reply