← Back
ARTICLES
What I write
Thoughts on software development, tools, and what I pick up along the way.
-
Clean Architecture in NestJS: From Fat Module to 4 Independent Layers
How to separate domain, application, infrastructure, and interfaces from day 1 in a real ecommerce project with NestJS.
-
Integrating with MercadoLibre: Architecture to Not Depend on a Giant
148M active users, one single domain model. ML as a channel, not as the source of truth.
-
Payment State Machine: How to Model Payments That Don't Lie
FSM in the domain, atomic transactions, and complete audit trail with PaymentEventLog.
-
Ecommerce Stock: SELECT FOR UPDATE and Serializable Transactions with Prisma
How to prevent race conditions and maintain complete traceability with StockMovement.
-
JWT, Refresh Tokens and 2FA: Real Security from Day 1
Short-lived access tokens, refresh token rotation, and TOTP for a multichannel ecommerce.
-
Building contx: a Local-First CLI for Project Context Retrieval
AI tools are powerful, but developer conversations lose context surprisingly fast. After running into this problem repeatedly, I started thinking about a different approach.