Video in progress

The platform team has to create a "golden path" (a ready-made template and infrastructure) for new services. What do you put in it, and how do you get teams onto it without forcing them?

A golden path is a ready road to ship a new service to prod in one day: a template repo, CI/CD, observability, security and a runbook, all wired up by default. It must not be a mandate but the easiest road: teams choose it for its convenience, and going off it is possible, but at its own price.

📖 Answer

The problem usually looks like this: 40 services, each with logs in a different format, metrics under different names, some with no graceful shutdown, three still on Java 11. During every incident you first have to learn "how is this service set up".

What a golden path contains for a Java/Spring organization:

  • A service template (a Backstage Software Template or a simple generator): Spring Boot, Java 21, Buildpacks or a ready Dockerfile, health and readiness, graceful shutdown, structured logging, OpenTelemetry tracing, Micrometer metrics with standard names.
  • An internal starter and BOM: library versions in one place, so a security patch reaches every service with one version change.
  • CI/CD: build, test, image scanning, SBOM, deploy (a shared Helm chart), canary, with no configuration.
  • Default dashboards and alerts: the moment a service is created, a RED dashboard and an SLO template appear.
  • Getting secrets, a DB and a Kafka topic is self-service, with no tickets.
  • Docs: how to deploy, how to roll back, an on-call runbook template.

How to get it adopted:

  1. Not force, but competition. Through the golden path a service is in prod in 1 day, on its own path in 3 weeks. That difference alone convinces people.
  2. Build it together with pilot teams. A template built in an office misses real needs.
  3. A migration path for existing services: not everything at once, starting with the most expensive pains (for example, logging and tracing).
  4. The list of mandatory rules is separate and short: "every service must have a health endpoint, tracing and a named owner". The rest is a recommendation.
  5. Measure it: the time to get a new service to prod, the share of services on the golden path, incident recovery time on them.

There are risks too. If a template is generated once and forgotten, within a year every service goes its own way again. So the shared parts should be versioned dependencies (a starter, a BOM, a shared chart), not copied code, so updates arrive with a single version change. But don't add business logic or heavy dependencies to the starter, otherwise it turns into that same "common" library problem.

The platform is a product. Its users are internal teams, and you should work with them like a product team: requests, feedback, a roadmap.