Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Portfolio Projects · Build It Yourself · about 11 min to read

Play it as a journeyTutor comes with a plan

P8: A service on a paved road

S2 - Build a Load Balancer
S2 - Build a Load Balancer · Open board

Requests arrive at one front door and are spread over several copies of a server. The service in this lesson runs as three such copies, and every setting below decides what happens when one copy is slow, sick or being replaced.

Spotify wrote in August 2020 about a problem its freedom had caused. Each team chose its own tools, so the company ended up with what the post calls fragmentation. Spotify’s answer was a Golden Path, one supported route for each kind of work. The post says the first one, for backend engineers, began about six years earlier as a Hack Week project (Spotify Engineering, August 2020).

A portfolio service can hide the same gaps: no health check, no limits, no way back from a bad release. This lesson builds one service with none hidden.

By the end you will be able to put one service on a paved road: infrastructure written as code, a Kubernetes manifest with the safety settings filled in, numbers the service reports about itself, and a release that can be undone. You will also have a check that a stranger can run to see all four.

The history (optional)

The Spotify post is “How We Use Golden Paths to Solve Fragmentation in Our Software Ecosystem”. Build a paved road: golden paths and DORA tells the full story. Nothing later depends on it.

Before you start. P1: A site and a tool, shipped showed that a link a stranger can open is worth more than a claim. A repo a stranger can judge in two minutes gave you the two-minute README. Terraform for a team: modules, state and environments gave you modules and a shared state, so infrastructure is a folder in git. The services on the box: systemd, journald and first triage gave you the first commands for a sick service. Shipping without fear: rolling, blue-green, canary and flags gave you rolling updates, canaries and rollback. Instrument and ask: OpenTelemetry, PromQL and dashboards gave you counters and the question “what is the error rate”.

Lesson 15 of 19 in Portfolio Projects

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • A paved road is one set of defaults that every service starts with
  • Layer one: infrastructure as code, so the place the service runs is in git
  • Layer two: the manifest carries the safety settings
  • Layer three: a script checks that the road was followed
  • Layer four: the autoscaler and the alarm use the numbers the service reports
  • Layer five: the release uses the alarm to decide
  • The service and the check, in full
  • The autoscaler, run
  • How the layers fit
  • Edge cases and trade-offs

Terms it explains: paved road, manifest, readiness probe, resource request, PodDisruptionBudget, Common mistakes, active vs passive, health check, reverse proxy, round-robin.

Review Portfolio Projects