Skip to content

Insights / Technical architecture

Your architecture shouldn’t live in people’s heads

Most organisations can’t say with confidence how their systems fit together. The knowledge is scattered, the diagrams are out of date and the sources are lost. This is how we tackled it with architecture as code.

Published
Author
Topic
Technical architecture
Reading time
6 minute read
Technology
LikeC4 / Architecture as code / Git / Starlake EAP

The problem

Nobody has the whole picture.

Ask how a business service actually works, end to end, and you’ll usually get a meeting rather than an answer.

The documentation exists, in a fashion. Some of it is on a wiki that stopped being updated two reorganisations ago. Some is in slide decks from a business case. Some is in a solution design signed off for a project that has since changed direction. The rest is in people’s heads, and those people are busy, moving roles or about to leave.

Diagrams make it worse, not better. Someone draws the integration landscape for a steering group. A month later an engineer needs the same systems at a different level of detail, can’t find the source file, and starts again from a screenshot. A security review needs the data flows, so a third version appears. Each one is a snapshot, drawn by hand, and each starts to drift from reality the day it’s finished.

The cost isn’t the time spent drawing. It’s the decisions made on a picture that was wrong, the impact nobody saw, and the weeks spent rediscovering what the organisation already knew.

Why the tools fall short

Boxes and lines aren’t a model.

General-purpose diagramming tools are good at drawing. That’s the problem.

A box on a diagram is just a shape with a label. It doesn’t know that the same system appears on twelve other diagrams, or that it was renamed last quarter. There is no shared model underneath, so every view is maintained separately and consistency depends on someone remembering to update all of them. Nobody does.

The usual answer is an enterprise architecture product. These do hold a model, but they tend to ask for a lot before they give anything back: licences, a metamodel workshop, a repository populated up front and specialists to keep it running. Months pass before anyone outside the architecture team sees value. And when they do, the model sits behind closed doors, in a proprietary format, readable by the few people with a seat.

So the engineers who know how things really work never touch it, and the model quietly diverges from the systems it describes. It’s the same drift problem, just more expensive.

There is a deeper gap too. Most EA tooling and documentation serves one level well and the others badly. Capability maps and portfolio views stop at the application list. Solution designs cover one project and are archived when it ends. Technical diagrams live with the delivery teams and never connect back up. In a digital transformation, that is exactly where it hurts: the strategy is set at the top, the change happens at the bottom, and nothing traces one to the other.

Starting small with LikeC4

One model. Many views.

What we were after was architecture treated like any other engineering artefact: plain text, in version control, reviewed before it changed.

We reviewed several approaches and settled on LikeC4, an open-source architecture-as-code language. Elements and relationships were described once, in the model, and diagrams were views generated from it. The same system could be shown at context level for a steering group and at component level for an engineer, and both stayed in step because they came from the same source.

A model this small was enough to get going. Both views are generated from it.
specification {
  element system
  element container
}

model {
  booking = system 'Booking' {
    api = container 'Booking API'
    db = container 'Bookings database'
    api -> db 'reads and writes'
  }
  payments = system 'Payments'
  booking.api -> payments 'takes payment'
}

views {
  view index {
    include *
  }
  view bookingDetail of booking {
    include *
  }
}

That mattered most: we could start with one file. We modelled the service everyone argued about, or the systems in scope for a single programme, and put it in Git next to the code. When something changed, the change went through a pull request like any other, with a history of who changed what and why.

The model grew because people used it, not because someone funded a big-bang population exercise. Each iteration added detail where a real question needed answering. Nothing was lost, and nobody had to redraw anything.

How we used it

We liked it so much we built a platform on it.

We set out to find methods and tooling that worked at every level, from business and enterprise architecture, through solution architecture, down to technical architecture that development teams would actually use.

That meant one model with different views for different people, not a separate artefact for each audience. A capability should lead to the applications that support it, the solutions changing them and the components inside. LikeC4 gave us the foundation, because its views are cuts through a single model rather than drawings in their own right.

On a large digital transformation project, we kept the target architecture in version-controlled LikeC4 models. Engineers reviewed changes to it in the same way as code, and programme leadership used the views generated from it. Everyone worked from the same record of the intended architecture, rather than whichever diagram they’d last been sent.

The questions that ultimately led to Starlake EAP surfaced on a different project. Who owns this application? What depends on it? When does its technology fall out of support? What would this proposal actually change? Those answers need portfolio data, lifecycle dates, decisions and scenarios connected to the model, and a way for people who will never open a text editor to explore it.

Integration hub
Component diagram showing the services and data stores inside an integration hub.

One view drawn from a Starlake EAP model: the services and data stores inside an integration hub, and the teams and systems that depend on it. Change the model and every view that includes the hub changes with it.

So we built Starlake EAP, a commercial platform on top of LikeC4. The platform adds the portfolio, impact analysis, roadmaps, governance and dashboards around the model, and changes are reviewed before they reach the published model.

We made sure the core model stayed in native LikeC4, as plain text in a Git repository the business owns and controls. The business can build the model and view its diagrams with the open-source LikeC4 tools, without Starlake EAP. If it moves on from the platform, the core model goes with it.

The lesson we took from all of this had less to do with any particular tool. Starting with the smallest model that answered a real question, keeping it where engineers already worked and letting it grow from use made the difference. LikeC4 suited the problems we faced. Other organisations will weigh it against other tools, and that choice should be theirs.

About the author

Jamie Brown

Founder & Lead Consultant, Starlake Technology

Jamie has over 18 years' experience implementing impactful technology solutions in medium and large organisations. After starting out as a software developer, Jamie has led both small teams and multiple teams. Board-level experience, broad knowledge and an enjoyment of complex problems round out that experience.

Connect on LinkedIn
Back to insights

Get in touch

Tell us what you’re
working on.

An ageing system, a platform that isn’t pulling its weight, or a decision you’d like a second opinion on. We’re happy to talk it through.

Email us hello@starlake.co.uk