Bernard Sarfo Twumasi

7.9K posts

Bernard Sarfo Twumasi banner
Bernard Sarfo Twumasi

Bernard Sarfo Twumasi

@devsarfo

Senior Fullstack Developer at Admincontrol AS

Drammen, Norge Katılım Nisan 2011
2K Takip Edilen2.6K Takipçiler
One Random Person
One Random Person@nigeriabarcafan·
@A_kinola02 Uefa Conference League Use your head na. No need, I just remember say you be Chelsea fan. Head no dey
English
3
0
0
2K
Bernard Sarfo Twumasi
Bernard Sarfo Twumasi@devsarfo·
"The fix: if the email fails, delete the user and their invitation" That’s not a fix, that’s punishing the user for your infrastructure failing. No production system should delete an account just because a welcome email couldn’t be sent. Retry the email. Queue it. Notify the user. But forcing them to re-register because your mail server hiccupped is terrible UX.
DevDanny👨‍💻@dannyclassi_c

Your registration endpoint shouldn’t leave orphaned users in the database when the welcome email fails to send. The problem: user creation lives in PostgreSQL. Email sending lives in an external service. You can’t wrap both in a single database transaction. The fix: if the email fails, delete the user and their invitation. This is the SAGA pattern. When a multi-system operation fails partway through, you compensate by undoing the completed steps. Built this today in Go with Resend for email delivery and PostgreSQL transactions for the rollback.

English
2
2
14
2.2K
blackBoy
blackBoy@Auxtine_·
@backyard_dj In other words Melanie says ɛnfa 🤣🤣🤣🤣🤣
Indonesia
1
0
0
270
Beno SarkCess
Beno SarkCess@_benopaonyx1·
@backyard_dj 😂🤣🤣🤣🤣🤣🤣😂🤣🤣😂🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣
QME
1
0
3
271
Bernard Sarfo Twumasi
Bernard Sarfo Twumasi@devsarfo·
@n_manu06 We don't even want to know. That's his own infrastructure problem to deal with 😹😹😹 But to make me the user to go through that stress de3 lol 😹
English
0
0
0
54