Y
Hacker News
new
|
ask
|
show
|
jobs
by
tgb
1822 days ago
How do you make something idempotent if one of the effects is sending an email?
2 comments
yen223
1822 days ago
You can't make everything idempotent.
You should still try and make most things idempotent.
link
zentropia
1822 days ago
Side effects go to the border of the app. You keep track if for some message X you have sended the email, so you garantie that you send it once.
link
You should still try and make most things idempotent.