#Architecture
19 articles — newest first.
- 8 min read
Worker threads in Node, and the pool you actually need
CPU-bound work blocks every request, not just its own. When a worker thread is the right tool over a child process or a queue, why a pool beats spawning per task, and what the copy costs.
- 8 min read
Keeping a long-running Node process flat for twelve hours
Short-lived scripts forgive everything. A process that runs all day does not. Allocation churn, buffer reuse, the caches you forgot were caches, and reading V8 heap statistics without guessing.
- 7 min read
Polling versus events for Node background work
A setInterval that finds nothing to do is not free. When polling is the right answer anyway, how to make it cheap, and the overlap bug that turns a five-second poll into a pile-up.
- 8 min read
Caching in Node: in-process, Redis, and the cost of both
A two-layer cache is fast until one instance serves stale data forever. Bounded in-process caches, when Redis earns its hop, stampede protection, and invalidation that actually invalidates.
- 8 min read
MongoDB migrations that do not lock production
Schemaless does not mean migration-free. Versioned documents, expand-and-contract rollouts, background indexes, and backfills that can be paused halfway.
- 8 min read
Structured concurrency in Node with AbortController
Promise.all is not concurrency control. Bounding parallelism, cancelling siblings when one fails, and making sure nothing outlives the request that started it.
- 8 min read
Backpressure in Node, or why your queue ate all the memory
An unbounded queue is a memory leak with a scheduler. How Node streams signal backpressure, why pipeline beats pipe, and what to do when the producer genuinely cannot slow down.
- 10 min read
Optimistic React UIs that don't drift from the server
How I ship optimistic UI in React without state drift: versioned writes, idempotency keys, React Query/Zustand patterns, and the rollback math.
- 10 min read
Stop mixing render and domain state in React dashboards
A pragmatic split for large React 18 dashboards: keep server/domain data out of UI stores, cut re-renders and payloads with a thin serialization adapter.
- 8 min read
Zero-Account Auth: Device-Bound Identity + Capability Tokens
Build secure apps without accounts or an auth server: bind identity to device keys, mint PASETO capability tokens, and enforce DPoP for stateless, least-privilege access.
- 6 min read
Vision Over Syntax: I Design the Entire Product in My Head Before the First Commit
Syntax is solved; vision is not. How architecture-first thinking — data contracts, trust boundaries, and deliberate refusals — is the real engineering skill in the AI era, shown through shipped products.
- 7 min read
Everyone Said 'Just Go Serverless.' I Ran a Long-Lived Node Process — Here's What That Bought
A live dashboard holding thousands of open connections is the one workload serverless is worst at. Why in-process state, loop-based fan-out and real backpressure were the product decision, not a preference.
- 6 min read
The 94% Decision: One Architecture Call That Made IntegrateX Feel Instant
Persisting React Flow's UI objects nearly sank the product. Drawing a serialization boundary between view and domain cut payloads 94% — the reasoning behind the call, and how to audit your own product for it.
- 7 min read
Serialization Adapters: How I Cut Payloads by 94%
Rich UI objects make terrible database records. A Serialization Adapter I built for IntegrateX split render model from transport record and cut payloads by 94%.
- 6 min read
The AI-Native Portfolio: Landing Lead Roles by Shipping the System
A portfolio that lists 'used ChatGPT' reads junior. One that demonstrates systems architecture — RAG, agents, guardrails, latency budgets — reads like the lead they're trying to hire. Here's how to build the second one.
- 8 min read
The 10x Reality: How AI Replaced the Traditional MERN Squad
AI shifted the engineer's job from writing syntax to directing architectural flow. Why one architect with Claude now outships a traditional 10-person MERN squad.
- 7 min read
How I Run Agents Off a React Flow Canvas, Not a Diagram
On IntegrateX, the React Flow graph a PM drags is the exact spec the runtime executes — typed nodes and ports make it a debuggable agent orchestration layer.
- 7 min read
When Logs Lie: Tracing LLM Agents with OpenTelemetry
The live RAG concierge on this site ships a span per step — tokens, cost, latency in OpenTelemetry — which is how I trace LLM agents, not guess from logs.
- 6 min read
Cutting a Payload 94% With Custom Serialization Patterns
I cut a React Flow agent-graph payload 94% without losing a node — not with gzip, but by shaping a custom serialization format around the data: schema, not prose.