Back home
Writings
ENGINEERING NOTES.
Short write-ups on the decisions behind my projects — design patterns, distributed systems, and the small API calls that save you later.
Jun 18, 20263 min read
A Coupon Engine That Scales: Strategy, Factory, and a Validator Chain
How I replaced a pile of if-statements with a small, testable discount subsystem in ByteBites — and why adding a new promo type is now a class, not a rewrite.
System DesignNode.jsDesign PatternsRead
Jun 11, 20262 min read
Stop Blocking on Payment Webhooks: Async Fulfillment with RabbitMQ
Chaining payment verification straight into order creation is fragile. Here's why I put a durable queue between them in ByteBites, and what it fixed.
Distributed SystemsRabbitMQBackendRead
Jun 2, 20262 min read
Serve TTS by Index, Not by Text: A Tiny API Decision That Closes a Cost Hole
PrepTalk's AI interviewer speaks out loud. The obvious endpoint would let anyone spend my TTS quota on arbitrary text. One small change fixed it.
AIAPI DesignSecurityRead