Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tgb
· 5y ago · 0 comments
How do you make something idempotent if one of the effects is sending an email?
Comments
[–]
yen223
5y ago
You can't make everything idempotent.
You should still try and make most things idempotent.
[–]
zentropia
5y 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.