CODEX👨💻
51 posts

CODEX👨💻
@VictorBuildsApp
Full-stack software engineer love building products that solve problems

Day 10🚀 Continued working on our hackathon project. I encountered a lot of obstacles today, but nevertheless we keep pushing 🔥



Become a Full Stack Dev in 365 Days 👩🏽💻 Jan — HTML + CSS Feb — More CSS March — JavaScript Basics April — Deep Dive into JavaScript May — React.js June — Python Basics July — Django August — Databases + APIs September — Full Stack Projects October — Advanced Projects + Deployment Nov — Freelance Work Dec — Full-time Job



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.




















