Architecture as Code · Module 1 · Foundations

Introduction to Architecture as Code

The lesson introduces Architecture as Code as the practice of describing, version-controlling and automating the entire system architecture through machine-readable code. It explains why microservice complexity is the primary driver, what the chapter criticises in traditional architecture, the three design criteria the book uses to evaluate practices, and how the different as-code practices reinforce one another in an interconnected flow.

Lesson 1 of 31Chapter 160 minutes

Read the chapterThe whitepaperThe slides

All courses / Architecture as Code / Module 1 / Chapter 1

Learning objectives

After the lesson the participant can:

Key concepts

Architecture as Code
The practice of describing, version-controlling and automating the entire system architecture through machine-readable code. It produces live, executable specifications that stay synchronised with the running estate and covers application components, integration patterns, data architecture, infrastructure and organisational processes.
Slideware syndrome
The chapter's name for architecture practised through expansive decks, static diagrams and committee reviews that rapidly drift away from operational reality.
Architectural entropy
The gradual loss of coherence between documented intent and implemented systems that accumulates when architectural artefacts go unchecked. It erodes trust and leaves teams to improvise workarounds that bypass the guardrails.
Adoptability, extensibility, productivity
The three design criteria by which the book evaluates practices and tooling: teams can adopt it without wholesale tooling upheaval, the platform can evolve with the landscape, and codification gives faster feedback and fewer approval bottlenecks.
The interconnected flow
The ecosystem in which Requirements as Code, Compliance as Code, Documentation as Code, Design as Code, coding, CI/CD, Infrastructure as Code and Management as Code reinforce and validate one another through feedback loops, rather than forming a linear process.

Interactive exercises

Do them here and get feedback at once. Choose a card and then where it belongs, or drag it.

Interactive exercise 1 · Match

The as-code practices in the flow

Match each practice in the interconnected flow to the part it plays, as the chapter describes it.

Interactive exercise 2 · Scenario

The review board that teams work around

Read the situation and choose what the chapter's reasoning leads to. Each choice gives feedback.

Teaching plan

10 minOpening round: each participant names one architecture diagram in their organisation that no longer matches reality. The teacher links the answers to slideware syndrome and architectural entropy.
15 minTeacher presents the definition and scope, the microservice driver with the survey figures the chapter cites, and FINOS CALM as an example of the direction of travel.
10 minWalk through the interconnected flow diagram and trace two feedback loops, for example infrastructure changes triggering compliance checks.
20 minExercise in pairs: the entropy inventory, followed by a short comparison of results in plenary.
5 minClose with the core claim of the book and a preview of the parts A to G.

Discussion

  1. Where in your organisation do manual governance checkpoints become bottlenecks that teams circumvent, and what happens to architectural intent when they do?
  2. The chapter includes organisational processes in the scope of Architecture as Code. What would it mean in practice to codify one of yours?
  3. Which of the three design criteria is hardest to meet in your organisation today, and why?

Written exercise

Exercise · 20 minutes

An entropy inventory of one system

Choose one system in your own organisation that you know well. List its architectural artefacts (diagrams, decks, review minutes, configuration repositories) and for each one note where it lives, when it was last updated and whether anything checks it against the running system. Mark the artefacts that show slideware syndrome. Then pick the one artefact whose drift causes the most harm and describe how it could become an executable specification that travels through the same pipeline as the application code. Judge your proposal against adoptability, extensibility and productivity.

Deliverable: A one-page table of artefacts with their drift status, and a short proposal for codifying one artefact, assessed against the three design criteria.

Self-test

Choose an answer to see whether it is right, or open the answer below each question.

  1. According to the chapter, what is the tipping point for most organisations adopting Architecture as Code?

    Show the answer

    B. The complexity created by large-scale microservice estates
    The chapter names microservice complexity as the primary driver: each additional service adds APIs, contracts and deployment topologies that outpace what static diagrams or isolated configuration repositories can keep synchronised.

  2. How does the chapter describe the specifications that Architecture as Code produces?

    Show the answer

    D. Live, executable specifications synchronised with the running estate
    The definition contrasts live, executable specifications that stay synchronised with the running estate against design artefacts that linger as aspirations.

  3. Which three design criteria shape how the book evaluates Architecture as Code practices and tooling?

    Show the answer

    A. Adoptability, extensibility and productivity
    The chapter states that adoptability, extensibility and productivity are the three design criteria, and gives each a subsection of its own.