~/blog/tag/architecture
Architecture
Thoughts on system design, API architecture and scalable solutions.
What I write about here
Most posts under this tag share a thesis. The bottleneck on AI productivity is almost never the model. It is the system the model sits inside.
A coding agent that can write a function is useful. A coding agent that can write a function and push it to production without anyone reviewing it is a security incident waiting to happen. A pipeline with no integration tests turns every AI commit into a coin flip. None of that is the model's fault, and none of it is solved by upgrading to the next one.
So the architecture work I write about is the work around the agent. How wide the blast radius is when something goes wrong, where the boundary between intent and execution sits, what you put between a model's confident output and your actual production database.
The Laravel post is one practical pattern. The Gemini integration is another. The database deletion story is what happens when those boundaries are too thin.
If you came here looking for clean diagrams of microservices, you are in the wrong place. I write about architecture as containment, mostly. What the system protects you from, and what it cannot.
// Best entry points
- Putting AI to work in your Laravel backend
How to actually integrate AI into a real backend without it turning into a footgun. Concrete patterns, not principles.
- The day Claude deleted my production database
What happens when the boundary between agent and production is thinner than you thought. Read this before you give an agent shell access.
- The AI is not your friend: how I secured Gemini on this site
The pattern I use to add AI to a public site without it becoming a backdoor. Architecture as containment, in one example.
The off-switch was never yours
Fable 5 did not crash. It was recalled. A US export directive pulled Anthropic's top model worldwide on June 12, for every customer at once, and no amount of retries or fallbacks would have saved you.
read →The ceiling is made of concrete
Every rate limit, signup pause, and pricing shift of the last six months has one root cause. Not greed. Not unsustainable burn rates. Physics.
Your 10x developer is gated by a 0.1x pipeline
AI made code cheap. Nobody upgraded the pipeline that turns code into shipped value. Now the bottleneck is eating your senior engineers alive.
The day Claude deleted my production database
AI coding assistants are incredibly powerful until they decide to "fix" a corruption by wiping your database. A cautionary tale about backups and why dev boxes need them too.
Putting AI to work in your Laravel backend
Laravel now has real tools for AI integration. Here's how to move beyond naive API calls and build structured, testable AI features with Prism and the official Laravel AI SDK.
The AI is not your friend: how I secured Gemini on this site
Most 'AI integrations' are just a chat box and a prayer. Here is how I built a secure, contextual, and bilingual assistant using Gemini 3.1 Flash Lite.
From blind generation to an AI team: how to take back control with agents
Stop treating AI as a single author. Give it roles, let them argue, and you'll ship better software before you've written a single line of code.
The bureaucracy of bots: why we are checking the checker
Deploying an AI to double-check the work of another AI produces better results. But we are unwittingly recreating the slow, complex corporate bureaucracy we tried to escape.
The lava layer: why AI code is slowly petrifying your codebase
We’re building faster than ever, but at what cost? Exploring the invisible accumulation of code that no one truly understands and why your application is turning into impenetrable rock.
The magic of tries and DFS: how I made Glyphfall lightning fast
How a Trie and Depth-First Search with pruning turned a sluggish word finder into a blazing fast game engine for Glyphfall.