logoalt Hacker News

renoxyesterday at 8:31 PM1 replyview on HN

> for example... don't commit DB transactions, send out emails or post transactions onto a blockchain until you know everything went through. Exceptions mean rollback, a lot of the time.

But what if you need to send emails AND record it in a DB?


Replies

lelanthranyesterday at 10:56 PM

I had the same question, actually; it is very common to perform multiple point-of-no-return IO in a workflow, so deferring all IO into a specific spot does not, in practice, bring any advantages.

show 1 reply