← All posts

Tag

Architecture

13 posts

Dapr Workflow vs Temporal Under Chaos: Deploys, Crashes and Double Charges
DaprTemporalJavaReliabilityArchitecture

Dapr Workflow vs Temporal Under Chaos: Deploys, Crashes and Double Charges

One order saga on Dapr 1.19 and Temporal 1.32, broken mid-charge with Toxiproxy and Docker: a rolling deploy charged twice on Dapr and once on Temporal, a hang charged three times on Temporal. 24 tests, the fixes that held, and where the latency really goes.

November 20, 202626 min read
Read post
What Is Process Orchestration? A Definition You Can Test, on Camunda 8 and Temporal
ArchitectureJavaCamundaTemporalReliability

What Is Process Orchestration? A Definition You Can Test, on Camunda 8 and Temporal

Process orchestration explained and tested: one order process as plain code, RabbitMQ events, Camunda 8 and Temporal, with workers and engines killed on purpose. What an engine gives you, and what it does not: exactly-once, a safe start, or good retries by default.

November 4, 202619 min read
Read post
Architecture Decision Records in Java: Writing Them, Enforcing Them, and What an Agent Does With Them
ArchitectureJavaArchUnitAgentsEvaluation

Architecture Decision Records in Java: Writing Them, Enforcing Them, and What an Agent Does With Them

A tutorial on architecture decision records with ArchUnit on Java 25, and a $1.60 experiment: without records a coding agent broke team decisions in 23 of 30 episodes, with them in 1 of 90. Rules alone caught all but the one they could not express.

November 2, 202626 min read
Read post
The Boundary in Laravel: FormRequest Is Not a DTO
PHPLaravelArchitecturePerformance

The Boundary in Laravel: FormRequest Is Not a DTO

Laravel already enforces two of the five boundary rules and breaks the other three. Deptrac covers the layers, five reflection checks cover what it cannot see, and the measured price is not the mappers — it is the validators that hit the database.

October 21, 202618 min read
Read post
DTO-First: The Boundary Decides What the Domain Sees
PHPSymfonyArchitecturePerformance

DTO-First: The Boundary Decides What the Domain Sees

DTO-first is advice until something enforces it. Five boundary rules, each checked by a gate that fails the build — and the measured price of the doctrine: the mappers cost half a microsecond, and one validator constraint costs more than all the others together.

October 20, 202621 min read
Read post
ETag: The Concurrency Guard Hiding in a Cache Header
HTTPArchitectureReliability

ETag: The Concurrency Guard Hiding in a Cache Header

ETag is a cache validator on reads and a concurrency guard on writes — the specification requires different comparison rules for each. Built end to end in PHP and Go, and proven with two real writers racing for one resource.

September 30, 202622 min read
Read post
Dapr: A Portable API Over Non-Portable Guarantees
DaprArchitectureReliability

Dapr: A Portable API Over Non-Portable Guarantees

Dapr's building blocks are portable; the guarantees underneath them are not. The same requests against two stores Dapr calls Stable — one failure is refused, the other is silent. With a runnable demo.

September 29, 202615 min read
Read post
Four Failure Shapes From Public Postmortems
AIArchitectureReliability

Four Failure Shapes From Public Postmortems

Seven published incidents, two predating LLMs, collapse into four shapes: the label became the goal, the gate never held, validation stayed inside, and the recovery was never tested.

September 29, 202613 min read
Read post
Where I Deliberately Don't Use AI
AILLMArchitecture

Where I Deliberately Don't Use AI

AI can do more than I let it do. A practitioner's boundary list — the places I deliberately don't use it, the two questions that draw the line, and where I have already changed my mind.

September 29, 202613 min read
Read post
Event Sourcing in Production Laravel: Snapshots, Schema Evolution, and Read-Model Rebuilds
LaravelEvent SourcingArchitecture

Event Sourcing in Production Laravel: Snapshots, Schema Evolution, and Read-Model Rebuilds

Three production concerns that look like separate problems and are not. A working Laravel 13 skeleton with version-aware serializers, snapshot invalidation, and idempotent projection replay — all backed by tests.

September 1, 202623 min read
Read post
When to Reach for an Agent, and When to Ship the Workflow
AIArchitectureAgents

When to Reach for an Agent, and When to Ship the Workflow

An LLM agent is a commitment, not a category. Here's the decision framework, the failure modes, the three-layer reliability model, and the hybrid architecture that actually works in production.

August 28, 202617 min read
Read post
Inbox Pattern: Stop Double-Processing Messages in Distributed Systems
ArchitecturePatternsReliabilityMessaging

Inbox Pattern: Stop Double-Processing Messages in Distributed Systems

When your consumer crashes after processing but before acknowledging, the broker redelivers — and your system processes the same message twice. The Inbox pattern is the answer to safe, idempotent message consumption.

June 23, 202610 min read
Read post
Outbox Pattern: How to Stop Losing Messages in Distributed Systems
ArchitecturePatternsReliability

Outbox Pattern: How to Stop Losing Messages in Distributed Systems

When your database transaction commits but the message never reaches the queue, the Outbox pattern is the answer. A practical guide to reliable event publishing without dual-writes.

June 16, 20265 min read
Read post