Skip to main content

Right-Sized Architecture

There is no one-size-fits-all approach to architecture. The practices a large enterprise needs are different from the practices a startup needs, and what helps one can slow down the other.

As Gregor Hohpe puts it in The Software Architect Elevator: "Architecture isn't good or bad, it's fit or unfit for a purpose." The same applies to the architecture practice itself. The right amount of architecture depends on the business context: the actual needs of the organization, and an understanding of its business evolution trajectory.

The stages below are not maturity levels. A later stage is not "better". They describe the complexity the organization has to manage, and the kind of architectural support that matters at each point. Understanding where the organization is helps architects decide:

  • what is important right now
  • what the focus points should be
  • how the organization is likely to evolve in the future
Further reading
  • Larry Greiner, Evolution and Revolution as Organizations Grow (Harvard Business Review): organizations grow through calm phases, each ending in a crisis that forces new management practices. The signals in this article are those crises, seen from the architecture side.
  • Jeanne Ross, Peter Weill and David Robertson, Enterprise Architecture as Strategy (Harvard Business School Press, 2006): describes how companies move from business silos to standardized technology, an optimized core and business modularity. The authors call these maturity stages, but the progression closely matches the stages below.
  • Kent Beck, Explore, Then Expand, Then Extract: each phase of a product needs different practices, and applying the practices of a later phase too early slows you down.
  • Simon Wardley, On Pioneers, Settlers, Town Planners and Theft: different stages of evolution need different kinds of people and ways of working.

How to read the stages​

The order is typical, not strict. Each stage adds concerns on top of the previous ones, rather than replacing them, and stages often overlap:

  • Some concerns appear at any size. A two-person startup handling personal data needs security and GDPR compliance from day one.
  • Some depend more on age than on size. A ten-year-old mid-size company may need to decommission systems long before it needs formal domain design.
  • Some stages swap places. Many organizations draw domain boundaries before they build platform teams.

Each stage first describes what changes and why. An Architecture at this stage box then summarizes:

  • who carries the architecture, which depends on the organization more than on titles (see The Staff Engineer's Path)
  • example architecture artifacts and activities
  • signals of moving on to the next stage

Stages of complexity​

Stage 0: Built in a silo​

A piece of software is created completely from scratch, in a silo. It does not reuse anything the organization provides: it is built somehow and deployed somewhere, in its own way.

It works and it solves the problem. For a small product, delivered by a solo developer or a small company, this may be perfectly fine.

Architecture at this stage

Who carries it: the developers themselves, often a founder or the first engineer.

Artifacts and activities:

  • a README explaining how to run, build and deploy the product
  • choosing a hosting option and a few key technologies
  • architecture lives mostly in people's heads, and that is fine for now

Signals of moving on: the product has real users or paying customers, it stores other people's data, and an outage or a data loss would now really hurt.

Further reading
  • Martin Fowler, MonolithFirst: start simple, and split the system only when you understand where the boundaries are.
  • Martin Fowler, Yagni: do not build capabilities you presume you will need in the future.

Stage 1: Beyond functionality​

The focus is no longer only on the functionality provided to users. The team also starts to look at non-functional requirements: the technical characteristics of the product and the concerns that come with them.

  • Security: Is the application secure? Is the data safe?
  • Scalability: How does it behave under higher traffic?
  • Observability: Can we debug problems? Do we know when errors happen in production, and are we alerted about them?
  • Delivery: Can we deploy quickly, and redeploy fast to fix errors or deliver new requests from the product?
  • Costs: Are costs under control? Is the infrastructure efficient?
  • Operations: Can we easily onboard new users? Is it operationally heavy, or is it self-service?
  • Availability: Is it available in multiple geographical regions, close to its users, so that it stays fast and responsive wherever they are?
  • Disaster recovery: If the cloud provider goes down or the database is accidentally removed, can we restore quickly?
  • Compliance: Does it comply with regulations such as GDPR?

The list of non-functional and compliance requirements keeps growing as the product and the organization grow.

Architecture at this stage

Who carries it: the tech lead or the CTO, together with the engineering team.

Artifacts and activities:

  • a list of non-functional requirements with target values, for example availability, response times and recovery time
  • a CI/CD pipeline and infrastructure as code
  • monitoring dashboards, alerts and basic runbooks
  • tested backups and a restore procedure
  • a simple threat model and a security checklist
  • a record of personal data processing for GDPR
  • a cost budget with alerts

Signals of moving on: a second team or a second product appears, and teams start solving the same problems independently.

Further reading
  • AWS Well-Architected Framework: a structured set of questions about operational excellence, security, reliability, performance efficiency, cost optimization and sustainability. Useful as an NFR checklist even outside AWS.
  • The Twelve-Factor App: a widely used baseline for building deployable, operable services.
  • Google, Site Reliability Engineering: service level objectives, monitoring, alerting and incident response.
  • DORA: research-based metrics for software delivery performance, such as deployment frequency and time to restore service.
  • OWASP, Application Security Verification Standard: a checklist of application security requirements.

Stage 2: Reuse what works​

The product grows. More services are added around it, built by more teams. Each service addresses different business functionality for users, but they all share the same non-functional and compliance requirements.

It is inefficient for the organization if every team solves those problems from scratch. What typically happens is that the organization looks at what has already been adopted and where it makes sense to reuse it, for example:

  • the cloud provider
  • the code hosting and CI/CD solutions
  • the observability platform and the alerting setup
  • the authentication mechanism, so that users get a consistent experience
  • the email sending provider
  • the onboarding experience for users and partners, aligned across services

The goal is to deliver smarter, by reusing what the organization has already learned and proven in practice.

Architecture at this stage

Who carries it: senior or staff engineers, often informally, for example in an engineering guild or a regular tech forum.

Artifacts and activities:

  • a basic technology radar, showing which technologies, platforms and vendors are in use and recommended
  • a list of shared vendors and platforms, with owners and contacts
  • technology and vendor selection, with the reasoning written down
  • knowledge sharing between teams, such as demos, guilds and internal documentation

Signals of moving on: working across services becomes slow and frustrating. Data from different services does not fit together, and incidents are hard to trace from one service to another.

Further reading

Stage 3: Standardize how things are used​

Reusing the same platforms and vendors is not enough. Looking into the observability platform, we see that every service logs errors differently. Some services add their name to metrics and logs, some do not. Some provide a correlation ID to trace the full request chain, some do not. Some name database fields in title case, some in kebab case. The same happens with naming customer accounts or infrastructure.

That creates friction and is hard to work with day to day. People lose time figuring out what the data they have actually means.

At this stage, a basic technology radar and reuse of platforms and vendors are not enough. The organization also needs to standardize the application layer: how those platforms are used. Some solutions appear to enforce the standards, such as shared logging libraries, or central services, for example for secrets management.

Architecture at this stage

Who carries it: staff and principal engineers, or named architects, often supported by a guild or an architecture forum.

Artifacts and activities:

  • a logging standard
  • a service naming standard
  • a tagging standard for cloud infrastructure, to know which component belongs to which service and which team owns it
  • naming conventions for data, customer accounts and infrastructure
  • standards for access token management (including expiration times), encryption and secrets management
  • a formal or informal services catalog
  • a first version of the architecture metamodel: which elements exist (services, teams, components, environments) and how they relate to each other
  • shared libraries, linters and pipeline checks that enforce the standards

Signals of moving on: standards exist but are followed inconsistently, and teams spend a large share of their time on infrastructure and operational concerns instead of business functionality.

Further reading

Stage 4: Platforms for cross-cutting concerns​

Cross-cutting concerns are elevated to the platform level. As described in the Team Topologies book by Matthew Skelton and Manuel Pais, the organization may introduce platform teams responsible purely for non-functional requirements, for example:

  • infrastructure and scalability
  • security
  • CI/CD
  • data backups and recovery policies
  • the services catalog
  • API governance
  • secrets management
  • running shared infrastructure, such as Kafka clusters or databases

Platform teams provide these standardized capabilities to the teams that build functional requirements and the actual business logic (see platform mindset).

With platform-level capabilities, the metamodel becomes an important data layer that defines how the platform works. Ownership, service types, tags and dependencies are no longer just documentation: platforms use them to provision infrastructure, apply policies and route alerts.

Architecture at this stage

Who carries it: platform teams with technical product managers and platform engineers, collectively acting as an architect, together with staff and principal engineers or architects.

Artifacts and activities:

  • a platform roadmap and platform service levels
  • golden paths and service templates (see provisioning)
  • an internal developer portal built on the services catalog
  • policy as code, applied automatically based on the metamodel
  • API guidelines and API management
  • gathering feedback from the teams that use the platform, and treating them as customers

Signals of moving on: many teams depend on each other for every feature, the same business concept is modelled differently in different services, and nobody is sure which system owns which data.

Further reading

Stage 5: Formalized design​

The business grows. There are more partnerships and more use cases to support. With more customers, who have different needs, more requirements naturally flow in. Many services are now built on top of the platforms and standards, and additional domain-level coordination and more formalized design are needed.

Without it, the same customer or order is modelled differently in several services, teams wait on each other for every change, and nobody can say which system is the source of truth for which data.

Domain design is one part of it. More formal domain modeling becomes useful, using methods such as strategic Domain-Driven Design to identify bounded contexts and processes. They help shape proper service and system boundaries.

But formalized design is more than domain design. Changes also need solution designs and architecture decision records (ADRs):

  • Solution designs make sure the impact of a change on other services and teams is known before the work starts.
  • ADRs on the platform level make changes transparent. Platform capabilities typically affect everyone, so everyone should be able to see the reason behind a change.
  • ADRs on the business logic level matter too. Documented decisions give transparency and consistency, and give stakeholders a chance to review a change before it is made.
Architecture at this stage

Who carries it: solution or domain architects and principal engineers, working closely with product management.

Artifacts and activities:

  • domain modeling workshops, such as event storming
  • a context map of bounded contexts and their relationships
  • data ownership: which system is the source of truth for which data
  • API and event contracts between domains
  • solution designs, with the impact on other services and teams, and design reviews before the work starts
  • ADRs for platform-level and business logic decisions, open for stakeholders to review

Signals of moving on: some systems and vendors no longer fit the business, running costs grow, technologies reach end of life, or security findings pile up in older systems.

Further reading

Stage 6: Application lifecycle​

Some systems that were built, or some providers that were adopted, now need to be decommissioned. They are no longer used or no longer provide value. Customers and users need to be migrated out, and the system either replaced with something new or simply shut down.

There are many reasons for that:

  • the business pivoted
  • the costs are no longer justified
  • the technology needs to be updated because of security concerns, inefficiencies or poor maintainability

The organization no longer only adds more. It also needs to take care of shutting things down and optimizing the ecosystem.

This stage needs architecture-level coordination. It is no longer about shaping individual services and how they talk to each other, but about shaping the direction of the whole ecosystem. That may also mean changing platform-level capabilities: moving to more efficient or more modern solutions, or introducing new technologies into the stack.

Decisions at this stage need to be explicit and justified:

  • trade-offs are called out
  • risks are identified
  • the costs of doing are compared with the costs of not doing
  • stakeholders are aligned
  • the people who created the original system support the decommissioning initiative and understand the need for it
Architecture at this stage

Who carries it: architects or principal engineers, working with product, finance and business stakeholders.

Artifacts and activities:

  • an application portfolio with a lifecycle status for each system (for example invest, maintain, migrate or retire)
  • a target architecture and a transition roadmap
  • decommissioning and migration plans
  • cost analysis: the cost of running, of changing, and of doing nothing
  • a technical debt register
  • ADRs for each major change of direction

Signals of moving on: the organization grows into several business units, or acquires or merges with other companies, and the same business capabilities are implemented more than once.

Further reading
  • Martin Fowler, Strangler Fig Application: replace a legacy system gradually instead of in a single big-bang rewrite.
  • Ian Cartwright, Rob Horn and James Lewis, Patterns of Legacy Displacement: a catalog of patterns for moving away from legacy systems safely.
  • AWS, Migration Strategies: the "7 Rs" (retire, retain, rehost, relocate, repurchase, replatform, refactor) as a vocabulary for deciding the future of each application.
  • Martin Fowler, Technical Debt Quadrant: a simple way to talk about different kinds of technical debt.

Stage 7: Enterprise landscape​

The organization now spans several business units, product lines or even former companies. One common way to get here is a merger. For example, a private equity fund invests in several similar companies in the same industry, operating in different markets or serving different customer bases, and merges them into a single company. It then looks for efficiency: keep the revenue growing while lowering the cost of running the company, by unifying many functions, including the IT landscape.

An alternative scenario is organic growth. The company becomes big enough that different departments work on their own IT solutions independently. Because of the pace of work and the lack of time for central coordination and alignment, their landscapes diverge, creating a diversified landscape with the same problems as after a merger. A series of acquisitions leads to similar problems too.

At this stage, the organization builds an enterprise-level business capability map and identifies duplicated systems that implement the same capabilities. For each capability, it needs to decide:

  • which systems to decommission and which data to migrate
  • which systems to keep running separately
  • where to build a completely new solution
  • what to buy from vendors
  • what to build in-house as the core of the business

It also needs to solve data integration problems. Before a merger, the companies did not share data with each other. They may even have been competitors. Now everything needs to be integrated into a single landscape for financial operations, customer service and other functions.

Architecture at this stage

Who carries it: a central Enterprise Architecture team, working with domain and solution architects and with business leadership.

Artifacts and activities:

  • a business capability map, with systems mapped to capabilities
  • an application portfolio across the whole enterprise
  • build, buy or keep decisions per capability
  • a target enterprise architecture and a transition roadmap
  • an enterprise data model and master data management
  • an integration architecture for the merged landscape
  • architecture governance across business units
Further reading
  • Jeanne Ross, Peter Weill and David Robertson, Enterprise Architecture as Strategy: four operating models (diversification, coordination, replication and unification) that help decide how much a merged or diversified company should actually unify.
  • The Open Group, TOGAF: the most widely used enterprise architecture framework.
  • McKinsey, Understanding the Strategic Value of IT in M&A: why IT integration often decides whether a merger delivers its expected synergies.

Two ways to get it wrong​

Right-sized means the architecture practice matches the stage the organization is actually in. There are two ways to miss it:

  • Too much, too early. A startup that introduces enterprise architecture boards, heavy standards and a platform team for three developers spends time and money that the business needs to survive.
  • Too little, too late. An organization at Stage 5 or 6 that still works like Stage 0, with every team building its own thing, pays for it in duplication, friction, incidents and costs that keep growing.
Further reading
  • Martin Fowler, Design Stamina Hypothesis: investing in design pays off only after a certain point. Below it, skipping design is faster; above it, the lack of design slows everything down.
  • Martin Fowler, Conway's Law: systems mirror the communication structure of the organization that builds them, which is why architecture and organization grow together.

The next stage may never come​

Be cautious: the next stage may never happen. Many companies are, rightly, focused only on surviving the current stage. Preparing for a stage the organization may never reach costs time and money that the business needs now.

Right-sized architecture means solving the problems of the current stage well, being aware of what the next stage would bring, and recognizing when the organization is actually moving there.

A caveat for the AI era

In my opinion, AI-assisted development changes this trade-off. Many good practices, such as structured logging, consistent naming, automated tests or infrastructure as code, used to be postponed because they took time to set up. With AI, the cost of doing them right from the beginning is often close to the cost of not doing them at all. When that is the case, why postpone?

Technology is becoming much less of a limitation. Coordination, alignment and decision making still take time, and AI does not remove that. But once a decision is made, implementing it well from the start is cheaper than ever, and it can save a lot of pain later.

Further reading
  • Martin Fowler, Sacrificial Architecture: sometimes the right decision is to build for today and accept that the system will be replaced if the business succeeds.
  • Neal Ford, Rebecca Parsons and Patrick Kua, Building Evolutionary Architectures: how to design architecture that can change as the organization changes, guided by fitness functions.

Earlier stages may not have been done​

Do not expect that an organization at a certain stage has already solved the problems of the previous stages. It is often quite the opposite. The larger the organization, the more difficult it is to introduce standards that were already valuable for smaller organizations. Those standards are even more valuable for bigger organizations, but the cost of standardization is much higher.

Aligning a single, simple thing, such as a logging format or a naming convention, takes a day in a startup. In a larger organization it can easily take months: there are more teams, more existing systems, more stakeholders and more competing priorities.

This is where architecture work across a larger part of the organization gets challenging. Well-structured architecture reference material becomes crucial: it helps to get buy-in, and it gives enough execution clarity for multiple teams to implement a standard independently.

Further reading
  • Will Larson, Migrations: the sole scalable fix to tech debt: why organization-wide migrations are hard, and how to run them so they actually finish.
  • Titus Winters, Tom Manshreck and Hyrum Wright, Software Engineering at Google, chapter What Is Software Engineering?: how the cost of a change grows with time and scale, and why policies that work for a small codebase stop working for a large one.
  • Software Engineering at Google, chapter Large-Scale Changes: how Google applies a single change, such as a new standard, across thousands of projects, and why it needs dedicated tooling and process.
  • Hyrum's Law: with enough users, every observable behavior of a system will be depended on by somebody, which is why changing anything gets harder as the organization grows.
  • John Kotter, Leading Change: Why Transformation Efforts Fail (Harvard Business Review): why organization-wide change needs a sense of urgency, a guiding coalition and short-term wins, not only a good idea.

Right-sized architecture in the AI era​

AI cuts both ways here. AI agents make it cheaper than ever to build something new from scratch, which makes Stage 0 sprawl easier to create, even inside large organizations. At the same time, standards, the services catalog, the metamodel and platform building blocks become more valuable, because agents read them and follow them consistently on every change. See Architecture Practice with AI.