Team topologies and you build it, you run it

Intermediate · 11 min

Shape teams around the flow of change: four team types, three ways of interacting, cognitive load as the limit, and why the team that builds a service runs it.

Before thisDevOps, SRE and platform engineeringFlow, feedback and continuous learning

IT Revolution · 33 min · from 7:50

Team topologies and you build it, you run it

The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.

Taught by IT RevolutionReport a problem with this video
Not started
Set this lesson's status

What you'll learn

  • Conway's law says systems end up shaped like the communication structure of the organisation that builds them, so team design is architecture design.
  • Team Topologies names four team types: stream-aligned teams own a flow of change end to end, and platform, enabling and complicated-subsystem teams exist to reduce their load.
  • Teams interact in three modes: collaboration, X-as-a-service and facilitating. Each is right for a phase, and collaboration everywhere is a sign of unclear boundaries.
  • A team's cognitive load is the real limit on how much software it can own well. Split responsibilities when the load is too high, not when the codebase is big.
  • You build it, you run it means the team that writes a service carries its pager, which puts the cost of operational shortcuts on the people who can fix them.

Organisations ship their org chart

In 1968 Melvin Conway observed that organisations design systems that copy their own communication structure. Four teams building a compiler get a four-pass compiler. Today this is called Conway’s law, and it cuts both ways. If you have a frontend team, a backend team and a database team, every feature needs all three to coordinate, and the architecture hardens into three layers with handoffs between them.

That matters for DevOps because handoffs are where flow dies. Each one is a queue. If you want changes to move fast, you need teams that can take a change from idea to production on their own. The inverse Conway manoeuvre is to design teams around the architecture you want, and let the software follow.

The limit is cognitive load

How much can one team own? Not “as many services as it has engineers”, and not “the whole monolith”. Matthew Skelton and Manuel Pais, who wrote Team Topologies (2019), argue the real limit is cognitive load: how much a team has to hold in its head to work safely. A team juggling its product code, plus Kubernetes, plus Terraform, plus three databases, plus its own CI scripts, is overloaded even if the codebase is small.

Communication load grows quickly too. One-to-one paths between people grow as n(n-1)/2, which I printed for a few team sizes:

  3 people ->     3 one-to-one paths
  5 people ->    10 one-to-one paths
  8 people ->    28 one-to-one paths
 12 people ->    66 one-to-one paths
 20 people ->   190 one-to-one paths
 50 people ->  1225 one-to-one paths

That is one reason teams of five to nine people are the common recommendation.

Four team types

Team Topologies proposes four kinds of team.

  • Stream-aligned. Owns a flow of change for one part of the business, such as checkout or search, end to end: build, test, release, run. This is the default. Most teams should be this type.
  • Platform. Builds self-service internal products that stream-aligned teams consume, such as the deploy pipeline or the observability stack. Its job is to reduce other teams’ cognitive load. This is the platform engineering idea from the last lesson.
  • Enabling. Specialists, for example in testing or security, who help stream-aligned teams pick up a skill and then move on. They coach rather than do the work.
  • Complicated subsystem. Owns a part that needs rare expertise, such as a video codec or a pricing engine, so stream-aligned teams don’t have to.

Three ways to interact

How teams work together matters as much as what they own. The book names three modes.

  • Collaboration: two teams work closely for a period, typically to discover where a boundary should sit. It is expensive and should be temporary.
  • X-as-a-service: one team consumes another’s offering through a clear interface, with little day-to-day talk. Most platform use should look like this.
  • Facilitating: one team, usually enabling, helps another learn.

If every pair of teams is in permanent collaboration, the boundaries are wrong.

You build it, you run it

The phrase comes from Werner Vogels, Amazon’s CTO, in a 2006 interview: the team that builds a service also operates it. In Team Topologies terms, the stream-aligned team carries the pager for what it ships.

The argument is about feedback. If a separate ops team is woken at 3 a.m. by a memory leak, the developers who wrote it learn about it in a ticket a week later, if at all. If the developers are paged, they fix the leak, add the missing log line and tune the noisy alert, because they are the ones losing sleep. The cost of operational shortcuts lands on the people who can remove them.

It only works with support. Developers need a platform that makes deploying, monitoring and rolling back easy, an on-call load that is survivable, and time to fix what the pager teaches them.

Worked example: checking ownership

A practical first step is a service catalogue that says who owns what. I wrote a small one in YAML:

services:
  - name: checkout-api
    team: payments
    team_type: stream-aligned
    oncall: payments-primary
    runbook: https://wiki.example.com/runbooks/checkout-api
  - name: legacy-reports
    team: ops
    team_type: none
    oncall: null

and a short Python check that every service has an owning team of a known type, an on-call rota and a runbook. Run over four services, it printed:

checkout-api    payments   OK
search          discovery  missing: runbook
ci-runners      platform   OK
legacy-reports  ops        missing: oncall, runbook, team_type
exit=1

The nonzero exit means it can run in CI. legacy-reports is the classic case: thrown over the wall years ago and owned by nobody who knows it. That is where the next long incident will come from.

About the video

The embed is a 10½-minute clip from Matthew Skelton and Manuel Pais’s DevOps Enterprise Summit London 2019 talk, “Monoliths vs Microservices is Missing the Point—Start with Team Cognitive Load”, posted by IT Revolution, their publisher. By its chapter titles, the clip runs from “Socio-technical approach” through “Team ownership”, “Techniques for success” and “Team topologies” to “Interaction modes”. The case studies afterwards are left out. It is the authors explaining their own model. I had no transcript, so this is from the title, description and chapters. English was judged from the same metadata. It does not focus on “you build it, you run it”, so Dave Farley’s video on that is first under deeper.

Where this fits

That closes the culture and organisation group. Next is the first practice that every DevOps team relies on: continuous integration as a practice.

Check yourself

  1. 01What is a stream-aligned team?

    A team aligned to one flow of change, such as a product area or user journey, that can build, test, release and run its part without waiting on other teams. It is the default team type, and the others exist to support it.

  2. 02Why does 'you build it, you run it' tend to improve reliability?

    Developers who are woken by their own alerts feel the cost of missing logs, noisy alerts and risky deploys. They have both the motive and the knowledge to fix those problems.

  3. 03Two teams have been in close collaboration mode for nine months. What does Team Topologies suggest?

    Collaboration is meant to be temporary, for discovering a boundary. After that long, the boundary should be clear enough to move to X-as-a-service, where one team consumes the other's well-defined offering.

  4. 04Every service in the catalogue has an owning team except one, owned by 'ops' with no on-call rota. Why is that a problem?

    When it breaks, nobody is clearly responsible and nobody who knows the code is paged. Unowned services are where incidents last longest, so each one needs an owning team and a rota.

Go deeper

Notes

Private to you

Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark