/Blog
Writing
Engineering write-ups on backend architecture, payments, reliability, and building on the edge.
RSSA slow provider hung our Workers
An upstream call with no deadline kept Worker invocations alive for ~31 seconds and collided with the database's own timeout. The fix is two ideas: bound every call, and retry only what is safe to repeat.
ReadA payment was approved, but the merchant was never told
A sub-second race between a cron job and a browser request quietly lost a payment notification. Here is how it happened, and the one-line idea that fixed it.
ReadBuilding a multi-tenant retail POS backend to scale on the edge
How I structured a retail point-of-sale backend on Cloudflare Workers to handle many tenants and spiky traffic while staying maintainable, using an unopinionated framework, a modular monolith, and two databases split by responsibility.
ReadA resumable CSV inventory pipeline with medallion architecture on Cloudflare
How I moved tens of thousands of retail inventory rows from a CSV into a Postgres catalog reliably, using a Bronze/Silver/Gold pipeline built from Cloudflare Workflows, Queues, Durable Objects, R2, and D1.
Read