The Pager Math Behind Every 'No' on Headless, Multisite, and Agents
The Proposal With Four Boxes
Last spring a regulated beverage portfolio sent us an architecture deck. Six brands, three countries, one marketing ops lead who was doing the work of four people. The deck had four boxes I would have to explain away: a headless WordPress backend, a Next.js storefront, a separate pricing microservice, and an LLM agent to write compliance-checked product copy.
Nobody had asked what was broken. The existing site was a single WooCommerce install. Category pages rendered in 4.1 seconds at p75, and every price update triggered a full cache purge that made the next ten minutes of traffic slow for everyone.
I said no to three of the four. People hear that and assume I am being conservative. I'm not. I'm counting who gets woken up at 2 a.m. Here is how I count, and where I have been wrong.
The Four Questions I Start With
I don't start with technology. I start with four questions, in this order.
- Who is the second consumer? A second front end, a mobile app, a partner feed, or an internal tool that needs the same data on a different schedule. If there isn't one, you are paying for an API to talk to yourself.
- What is the blast radius of a bad deploy? If a broken template takes down checkout, you want fewer moving parts, not more.
- Who owns this component on call? Every service boundary needs a named owner with its own deploy cadence. If the answer is "the team", the boundary is fake.
- What does half-working look like? Most architectures fail partially, not totally. The partial failure is where the money leaks.
Headless: Right Answer, Wrong Cache Model
I'd call headless the most over-prescribed pattern in our space. It is also the one I have shipped the most of, which is why I know its failure modes.
For a Fortune 500 apparel brand, a mobile app needed the same product catalog as the web store. Headless was the correct call. But we kept checkout server-rendered on WooCommerce, because the cart session and tax calculation were not worth reimplementing in JavaScript.
The flip came from invalidation. The first version used a five-minute TTL on product data. Within two weeks we had support tickets about stale prices in the app for up to eleven minutes after a promo went live. The webhook retry queue was the culprit, and the TTL was masking it.
What fixed it was keying the cache on a product version hash rather than time. Median LCP dropped from 3.8 seconds to 1.9 seconds, and stale-price reports went to zero. The lesson: headless does not remove cache problems. It moves them across a network boundary where they are harder to see.
Multisite: Where I Changed My Mind
My default is to avoid WordPress multisite. Shared database tables, network-wide plugin activation, and one bad plugin update can hit every site at once. I have cleaned up that mess more than once.
But I flipped on a chamber association with 38 member sites. Each site ran a near-identical plugin set, and they had drifted over four years. A plugin security patch took the team about six hours of manual work, and two sites were always a version behind.
We consolidated into multisite with a network-activated mu-plugin for shared functionality and per-site theme variants. The result: a full patch cycle dropped from six hours to about 40 minutes. The tradeoff was real. We accepted a shared blast radius in exchange for a single deploy path, and we wrote a staging network clone process so every change hit a copy of all 38 sites before production.
Multisite is not wrong. Drift is wrong. Know which problem you actually have.
Microservices: Keep the Monolith Until It Hurts Specifically
Our AI Tax layoff tracker is a PHP and MySQL application. It has a scraper, a classifier, and a public API. Someone pitched splitting it into three services. I said no, because the three components had the same deploy cadence, the same on-call person (me), and the same database. Splitting them would have added network failures and a service mesh to solve a problem we did not have.
I would split a service when it has a different scaling profile, a different compliance boundary, or a different release schedule. Pricing for a beverage brand, for example, changes on a legal calendar, not an engineering one. That is a real boundary. Scraping a website is not.
Agents: Draft Queues, Not Publish Buttons
The beverage portfolio's agent idea was the one that worried me most. An LLM writing product copy for 12,000 SKUs sounds efficient until you do the math on retries.
We built a version of this in the AI Showcase, which runs Laravel 11, Livewire 3, and Anthropic's API. It has a kill switch and a daily budget guardrail. The reason those exist is an early test where a retry loop on a malformed response burned through about $1,100 overnight before anyone noticed. The fix was a hard per-run token cap, a circuit breaker after three consecutive failures, and a daily budget ceiling that stops generation rather than queueing it.
For the beverage client, the agent drafts copy into an approval queue. A human compliance reviewer publishes it. Generation cost is roughly four cents per description. Copywriters recovered about 31 hours a week because they were editing instead of drafting. What I refused was letting the model publish directly to a regulated catalog.
Questions That Expose a Bad Architecture Before It Ships
When I review someone else's design, I ask these, in roughly this order:
- Name the second consumer of this API. If the answer is hypothetical, the boundary is premature.
- What is the cache key, and what event invalidates it? If the answer is "a TTL", ask what happens during a failed webhook.
- Which component can take checkout down, and who gets paged for it?
- What is the maximum dollar cost of one agent run, and what stops the next one?
- If this runs half-broken for six hours, how would we know?
Teams that answer these crisply usually ship well. Teams that struggle usually have a diagram where the architecture should be.
If you can't name the person who gets paged for a component, you don't have an architecture yet. You have a diagram.
This is the same discipline we bring to client engagements at Champlin Enterprises: start from the operational cost of each boundary, then decide whether it earns its place.