DEV Community

Mehmet TURAÇ
Mehmet TURAÇ

Posted on

Scale Wars #6 — Spotify: The Squad Model and the Power of Golden Paths

Year: 2012–2023 · Crisis: "Everyone's trying to do everything"


The Problem: Developer Experience (DevEx) Collapse

As Spotify grew, developers' lives got harder:

  • Standing up a new microservice took 2 weeks
  • Every team had to build its own CI/CD pipeline
  • Every team found its own solution for monitoring, logging, alerting
  • Onboarding a new developer took months

The result: Developers spent more time building infrastructure than writing code.

Architectural Decision 1: The Squad Model (2012)

In 2012, Spotify introduced its famous Squad Model. It was an organizational architecture:

┌──────────────────────────────────────────────────────────┐
│                       SPOTIFY                            │
├──────────────────────────────────────────────────────────┤
│                                                          │
│  Tribe 1: Music Experience     Tribe 2: Platform         │
│  ┌─────┐ ┌─────┐ ┌─────┐      ┌─────┐ ┌─────┐          │
│  │Squad│ │Squad│ │Squad│      │Squad│ │Squad│          │
│  │  A  │ │  B  │ │  C  │      │  D  │ │  E  │          │
│  └─────┘ └─────┘ └─────┘      └─────┘ └─────┘          │
│                                                          │
│  Each Squad: 6-12 people, autonomous, responsible for    │
│  one product feature (e.g., "Playlist Creation Squad")   │
│                                                          │
└──────────────────────────────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode

Squad Model Principles:

  1. Autonomy: Each squad makes its own decisions (technology, process, releases)
  2. Mission: Each squad has a clear mission (e.g., "Build the world's best playlist experience")
  3. Cross-functional: Each squad has developers, designers, product owners, QA
  4. Mini-startup: Each squad operates like a small startup

Architectural Decision 2: Platform Engineering and Golden Paths (2018+)

But the Squad Model had a problem: every squad was building its own infrastructure. 100 squads, 100 different CI/CD pipelines, 100 different monitoring solutions...

Starting in 2018, Spotify shifted to a Platform Engineering approach. At the heart of this approach was the concept of Golden Paths.

What Is a Golden Path?

A Golden Path is the recommended, supported, and easiest way for a developer to get something done. It's delivered through Spotify's internal platform, Backstage (now open source).

┌─────────────────────────────────────────────────────────┐
│               BACKSTAGE (Spotify Platform)              │
├─────────────────────────────────────────────────────────┤
│                                                         │
│  🎯 "Create a new microservice"                         │
│     │                                                   │
│     ▼                                                   │
│  ┌──────────────────────────────────────────┐          │
│  │ Golden Path: Java + Spring Boot          │          │
│  │                                          │          │
│  │ ✓ Standard CI/CD pipeline (automatic)    │          │
│  │ ✓ Kubernetes deployment (automatic)      │          │
│  │ ✓ Monitoring & alerting (automatic)      │          │
│  │ ✓ Logging (automatic)                    │          │
│  │ ✓ Security scanning (automatic)          │          │
│  │ ✓ Service catalog registration (auto)    │          │
│  │                                          │          │
│  │ Time: 5 minutes (previously 2 weeks)     │          │
│  └──────────────────────────────────────────┘          │
│                                                         │
│  ⚠️  "I want to choose a different path"                │
│     │                                                   │
│     ▼                                                   │
│  Do it yourself. No support. No docs.                  │
│  But you're free.                                      │
│                                                         │
└─────────────────────────────────────────────────────────┘
Enter fullscreen mode Exit fullscreen mode

The Power of Golden Paths:

  • Not mandatory: Squads can choose different technology
  • But recommended: If you choose the Golden Path, all infrastructure is automatic
  • 80/20 rule: 80% of squads use the Golden Path, 20% customize

Backstage: The Developer Portal

Spotify developed Backstage, a developer portal (open-sourced in 2020, now a CNCF project). Backstage provides the entire company's:

  • Service Catalog: All microservices, their owners, documentation
  • TechDocs: Each service's documentation (auto-generated from Markdown)
  • Templates: Templates for creating new services, APIs, data pipelines
  • Plugins: Jira, GitHub, Jenkins, Kubernetes integrations
# Backstage service descriptor (catalog-info.yaml)
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: playlist-service
  description: "Manages user playlists"
  annotations:
    github.com/project-slug: spotify/playlist-service
    backstage.io/techdocs-ref: dir:.
spec:
  type: service
  lifecycle: production
  owner: playlist-squad
  system: music-experience
  providesApis:
    - playlist-api
  dependsOn:
    - user-service
    - track-service
    - recommendation-engine
Enter fullscreen mode Exit fullscreen mode

The Internal Developer Platform (IDP) Philosophy

Spotify's approach pioneered what the industry now calls the Internal Developer Platform (IDP):

"The platform team's customers are the developers."

The platform team builds products that make other developers' lives easier. These products are:

  • Self-service: Developers get things done without filing tickets to the platform team
  • Golden Paths: Optimized workflows for the most common tasks
  • Documented: Everything is written down; no "ask person X"
  • Measurable: Platform usage metrics are tracked (DORA metrics)

Spotify's "Guild" System

For cross-squad knowledge sharing, Spotify established the Guild system:

  • Backend Guild: A community where all backend developers meet and share best practices
  • Frontend Guild: All frontend developers
  • DevOps Guild: All DevOps engineers
  • Data Engineering Guild: All data engineers

Guilds are voluntary and informal. But they're a cornerstone of Spotify's engineering culture.

Trade-offs

Gains:

  • Developer Velocity: New service creation went from 2 weeks to 5 minutes
  • Onboarding: A new developer can deploy to production on their first day
  • Standards: 80% of services use the same infrastructure → operational simplicity
  • Freedom: Any squad that wants to can choose a different technology

Costs:

  • Heavy platform team investment: Building a portal like Backstage takes years
  • Golden Path maintenance: Recommended paths need to be constantly kept up to date
  • Vendor lock-in risk: Dependency on Golden Paths can make technology changes harder
  • Cultural shift: The platform team needs to think "customer-first"

🛠️ Takeaways

Happy developers directly impact product quality — invest in DevEx. Saying "this is the easiest path" is far more effective than "you must use this"; Golden Paths do exactly that. Every large company eventually has to build a platform team — Platform Engineering isn't the future, it's the present. Check out Backstage, which Spotify open-sourced — it's becoming the industry standard for developer portals. And finally: even Spotify evolved its Squad Model over time. Don't copy it blindly; adapt it to your own organization.


Next up — the series finale: What we learned from all 6 giants and how to apply it. 🏆

Top comments (0)