InterviewKata
Software architecture · Case study 03 · Governance and decisions

Spotify: Backstage and golden paths

Spotify organises engineering around autonomous teams. Autonomy brought speed, and also a fragmented ecosystem of tools where, as Spotify put it, "the only way to find out how to do something was to ask your colleague". They called it rumour-driven development. Their answer was not a rule book or an approval board but a platform: a recommended, supported way to build each kind of software (the Golden Path), and one portal where every service, its owner, its documentation and its tools can be found (Backstage). It is governance by making the right way the easy way.

1. The situation

Spotify's teams choose much of how they work. As the company grew, each engineer needed more tools and more specialist knowledge, across backend, data, mobile and machine learning, and the tooling fragmented. Finding the owner of a service, the recommended way to create a data pipeline, or the documentation for an internal library meant asking around. Spotify's post says this "might work in a startup, even a large startup", but as it grew, rumour-driven development "simply wasn't scalable".

2. What mattered

3. The options

OptionGoodBad
Mandate standard toolsConsistencyAgainst the culture of autonomy; teams with real exceptions are blocked
Leave it to teamsMaximum freedomRumour-driven development; every team pays to maintain its own variant
An opinionated, supported default, made easiest to useMost teams choose it because it's easiest; others can still leave it, knowinglyThe platform team must keep the path genuinely better than the alternatives

4. The decision

Decision: Golden Paths, delivered through a developer portal (Backstage)

Golden Path: "the opinionated and supported path to build something" (a backend
  service, a website, a data pipeline), with a step-by-step tutorial per
  discipline: backend, client, data engineering, data science, ML, web, audio.
Golden State: a list of checks that shows whether a system is on the path.
Backstage: one portal over all infrastructure tooling, services and docs:
  - software catalogue: every component and its owning team
  - templates: create a new service on the Golden Path in a few clicks
  - TechDocs: documentation written like code, next to it
  - plugins: each infrastructure tool appears in the same interface
Consequences:
  + New engineers find tools, owners and docs without asking around
  + Fewer variants, so upgrades can be automated
  - The platform must earn adoption; a neglected path gets abandoned
  - Leaving the path is allowed, so some fragmentation remains by design

5. How it works

A new engineer needs to build a backend service that reads from another team's service. Before Backstage, and with it.

6. The numbers

7. What happened

Golden Paths spread beyond backend engineering to client development, data engineering, data science, machine learning, web and audio processing. The idea was popular enough to spawn spin-off terms inside Spotify (a Paved Road, a Silver Path). Spotify open-sourced Backstage in March 2020 with a roadmap of three phases: a consistent UI for tools, a central software inventory with clear ownership, and an ecosystem of plugins. It has since grown into an open-source framework with its own conference, BackstageCon, held alongside KubeCon.

Spotify's post is clear about intent: Golden Paths are "not to limit or stifle engineers, or set standards for the sake of it", but so that teams "don't have to reinvent the wheel, have fewer decisions to make" and can spend their creativity on product problems.

8. Lessons

9. Your turn

  1. Count the rumours (10 min). List five questions new engineers ask in chat in their first month. Which could a catalogue, a template or docs answer?
  2. Write one Golden Path (15 min). The steps to create, deploy and monitor a new backend service in your organisation, as a tutorial. Where does it break?
  3. Define a Golden State (5 min). Five checks that show whether a service is on the path.
Say it in the interview
  • "How do you standardise without slowing autonomous teams?" Offer a supported default path, with templates, docs and tooling that make it the easiest option, and a catalogue of what exists and who owns it. Measure drift with checks rather than approvals, and let teams leave the path when they have a reason.

10. Check yourself

How does Spotify define a Golden Path?

It's a supported default with a tutorial, not a mandate.

How did Spotify measure the 55% decrease in onboarding time?

From the Backstage announcement, March 2020.

What was "rumour-driven development"?

A fragmented tooling ecosystem with no discoverable recommended way.

11. Sources and further reading

SourceWhy
How We Use Golden Paths to Solve Fragmentation in Our Software Ecosystem (Spotify, 2020)Rumour-driven development, Golden Paths and Golden State.
What the heck is Backstage anyway? (Spotify, 2020)What the portal unifies, and why Spotify built it.
Announcing Backstage (2020)The usage numbers, the onboarding metric and the roadmap.
Team Topologies key conceptsPlatform teams and cognitive load.