Writing

#architecture

4 articles tagged architecture.

June 12, 2026·5 min read

Building Forge: Postgres-Orchestrated LLM Batch and Realtime Jobs Without a Queue

Forge runs LLM batch and realtime jobs across OpenAI and Anthropic with two Node daemons that share nothing but a Postgres database. No queue, no IPC, no shared worker process — the database does the coordinating. Here is how that architecture works and what I learned building it.

aillminfrastructurepostgresarchitecture

May 23, 2026·9 min read

Hexagonal DDD from Day One: Building Matcha to Be Built by Agents

Matcha is a multi-tenant WhatsApp booking platform built as a hexagonal-DDD monorepo from day one — a structure chosen so a team of agents could produce and maintain it, keep full context in one place, and depend on nothing I don't control.

architecturedddmonorepomulti-tenancyai-agents

May 22, 2026·13 min read

TDD by Construction: How the Vimbus Loop Validates Its Own Code at Scale

A validation layer wrapped around an autonomous code-generation loop: static task validation before any agent runs, split browser verification and re-grounded hexagonal rules while it runs, and a codebase audit that marks nothing done without a traced, tested path.

testingtddautomationaiarchitecture

May 19, 2026·8 min read

Ports and Adapters in NestJS: A Domain That Doesn't Know About Mongo

A deep-dive into hexagonal architecture in Matcha's NestJS backend: ports, Symbol() tokens, and one repository with two interchangeable adapters.

nestjsarchitecturehexagonalddd