Architecture Before Code: A Lesson I Took From AEM
Without architecture guardrails, every ticket gets solved its own way. Here is why I insist on designing the system before large-scale development.
One of the biggest lessons I’m carrying into our next CMS implementation is simple:
Architecture needs to come before large-scale development.
It sounds obvious. In practice, the pressure to start building is intense, and architecture work can feel like it’s delaying “real” progress. But I’ve seen what happens when development gets ahead of design, and it’s not something I want to repeat.
How systems drift without architecture
Without clear architecture, individual developers or partners naturally make decisions based on what works for the ticket in front of them.
That’s not a criticism. It’s a reasonable way to work when you don’t have broader guidance. Each engineer solves their problem in a sensible way:
- one integration is built with one pattern,
- another integration uses a slightly different pattern,
- a component is designed one way for one team’s needs,
- a similar component is designed differently for another team’s needs.
Each of those decisions works on its own. Collectively, they become difficult to maintain. The system ends up with multiple ways to do the same thing, inconsistent conventions and hidden dependencies that only the original author understands.
Over time, that accumulation becomes technical debt. Changes get slower. Bugs get harder to trace. Onboarding new engineers takes longer because there’s no single mental model of how the system works.
Understand it before you delegate it
During our recent platform evaluation, I emphasized that our internal architect and engineering leadership need to understand and design the integration approach before implementation work is delegated to a partner.
That principle came directly from experience on our current platform. When the overall design isn’t owned internally, implementation decisions get made piece by piece, often by people who won’t be around to support them later.
Partners are valuable. They bring speed and expertise. But the organization that has to live with the system long-term needs to own its architecture. Otherwise, you end up with a platform that works but that your own team doesn’t fully understand.
What I mean by architecture
Architecture doesn’t have to mean a hundred-page document. For a CMS implementation, it means answering a set of foundational questions before development scales up:
- How are the major pieces connected? CMS, hosted applications, integrations and supporting services.
- What are the standard patterns? How we build components, call APIs, handle forms and manage configuration.
- Where does data flow? Which systems own which data, and how it moves.
- How is it deployed? Environments, pipelines and release process.
- How is it secured? Authentication, authorization and secrets management.
- How is it observed? Logging, monitoring and alerting.
- What are the boundaries? What belongs in the CMS, and what belongs elsewhere.
When those answers exist, every developer and partner can build against them. When they don’t, everyone invents their own.
Guardrails, not handcuffs
Some engineers hear “architecture first” and worry it means rigid control. That’s not the goal.
Architecture provides the guardrails. Within those guardrails, teams have plenty of freedom to solve problems creatively. What they don’t have to do is reinvent foundational decisions for every ticket, or wonder whether their approach will conflict with someone else’s.
Good guardrails actually make teams faster, because they remove an entire class of decisions from daily work.
Execution against an intentional system
Then development becomes execution against an intentional system, rather than an accumulation of independent solutions.
That’s the shift I’m looking for. A system that was designed is easier to extend, easier to support and easier to hand over than one that simply grew.
Starting with architecture can feel slower at first. But it’s dramatically faster than spending the next several years untangling decisions that were never meant to fit together.