Pidoku

Archive

This learning material is in the archive. It is not currently maintained and has not been updated with the latest information, so tool versions, prices and dates may be out of date.

Site Reliability Engineering

Keeping any production service reliable — SLOs and error budgets, alerting, on-call, incidents and postmortems, resilience patterns, capacity, safe change, disaster recovery and chaos testing.

Start with Module 1
  • 11 modules
  • 48 lessons
  • ~37h 20m

Modules

Read them in order. Each module builds on the one before.

  1. Module 1 What SRE Is Start here. These four lessons give you the vocabulary and the arithmetic the rest of the material is built on: what the job is, how reliability is turned into numbers, what "toil" is and … 4 lessons · ~2h 25m
  2. Module 2 SLOs and Error Budgets The heart of SRE. This module turns "is the service OK?" into a measured number, a target, a budget for failure and an alert that fires when the budget is in danger — and no sooner. 5 lessons · ~3h 50m
  3. Module 3 Monitoring for SRE SLOs say whether users are hurting. Monitoring also has to say where, fast enough for a person at 3 a.m. to act. This module covers the signals every service should expose, how to watch a … 3 lessons · ~2h 15m
  4. Module 4 On-call Being on call is where reliability work meets a real person at 3 a.m. This module covers how to design a rotation people can sustain, how to write runbooks that make a stranger effective, … 3 lessons · ~2h 15m
  5. Module 5 Incident Management An incident is any unplanned event that hurts users, or threatens to, badly enough that it needs a coordinated response. This module covers how to classify and staff one, how to run it and … 4 lessons · ~3h 5m
  6. Module 6 Resilience Patterns Every dependency will eventually be slow or down. This module covers the patterns that keep one failure from becoming everyone's failure: deadlines, retries with backoff and jitter, circuit … 6 lessons · ~5h 10m
  7. Module 7 Redundancy and Scale Module 6 made each service robust. This module is about the shape of the fleet: how many copies, where they run, how traffic is spread across them, how to keep one failure from touching … 6 lessons · ~5h
  8. Module 8 Change Management Most outages are caused by changes — code, configuration, feature flags, infrastructure. This module is about making change safe without making it slow: a reproducible release pipeline, … 5 lessons · ~4h 15m
  9. Module 9 Data and Disaster Recovery Stateless services can be rebuilt from code in minutes. Data cannot. This module covers how much data and time you can afford to lose (RPO and RTO), how to back up and — more importantly — … 4 lessons · ~3h 20m
  10. Module 10 Chaos and Game Days Every pattern in this material — redundancy, failover, timeouts, breakers, degraded modes, backups, runbooks — is a hypothesis until it has been tested by a real failure. This module is … 3 lessons · ~2h 15m
  11. Module 11 SRE Practice The previous modules are the techniques. This one is the practice: how a service earns SRE support through a production readiness review, how SRE teams are organised and engage with … 4 lessons · ~3h 30m

Build

Reference

About

Learn how production services are kept reliable on purpose: decide how reliable a service should be, measure it the way users feel it, get woken up only when it matters, run an incident calmly, learn from it without blame, design so failures stay small, change things safely, and prove you can recover — with a worked example and runnable Go for every idea.

Most outages are not caused by exotic bugs. They are caused by a change nobody watched, a retry that multiplied load, a certificate that expired, a backup nobody had ever restored, or an alert that fired so often everyone had learned to ignore it. Site reliability engineering (SRE) is the discipline that treats those as engineering problems with numbers, designs and code, rather than as bad luck.

This learning material is not about AI. Everything in it applies to a payments API, a web shop, a database, a queue, a mobile backend or an internal tool. (When the service is a model, the Observability and Inference Engineering materials add the GPU- and token-specific parts.)

It assumes you can read simple code and have used a terminal. It does not assume you have been on call, run an incident or used Kubernetes.

The loop SRE runs#

flowchart LR
  U[":i-users: <b>Users</b><br/><small>what they need to work</small>"] --> S[":i-gauge: <b>SLIs and SLOs</b><br/><small>how reliable, measured</small>"]
  S --> B[":i-coins: <b>Error budget</b><br/><small>how much failure is allowed</small>"]
  B -->|"budget left"| C[":i-git-branch: <b>Change safely</b><br/><small>canary, flags, rollback</small>"]
  B -->|"burning fast"| A[":pagerduty: <b>Alert and on-call</b><br/><small>page on symptoms</small>"]
  A --> I[":i-siren: <b>Incident</b><br/><small>mitigate first</small>"]
  I --> P[":i-file-text: <b>Postmortem</b><br/><small>blameless, action items</small>"]
  P --> D[":i-shield-check: <b>Design for failure</b><br/><small>timeouts, shedding, cells</small>"]
  D --> S
  C --> S
  class U neutral
  class S,B memory
  class C compute
  class A,I warn
  class P queue
  class D io

Every box is a module. The loop matters more than any box: the SLO decides when to page, the page starts an incident, the incident produces a postmortem, the postmortem changes the design, and the error budget decides how fast you are allowed to change things in the meantime.

How this learning material works#

Every lesson has the same shape:

  1. The idea in one minute — the whole lesson in a few sentences.
  2. A picture — the mechanism, with real tools drawn in where they matter. Press Expand on any diagram to open it full size.
  3. How it really works — the precise version: numbers, rules, configuration you can copy.
  4. A worked example — a realistic service, a realistic failure, the numbers worked through.
  5. Code — a complete Go program, standard library only. Most run offline and print the result the lesson talks about; the few that serve or call HTTP say so.
  6. Remember this, Try it and Check yourself.

Three rules run through every lesson:

  • Reliability is a feature with a cost. More nines are never free; the right target is the lowest one users would not notice.
  • Measure what users feel. A green dashboard while customers cannot pay is a failed dashboard.
  • Mitigate first, understand second, blame never.

The modules#

flowchart LR
  M1["1 · What SRE is"] --> M2["2 · SLOs and<br/>error budgets"] --> M3["3 · Monitoring<br/>for SRE"]
  M3 --> M4["4 · On-call"] --> M5["5 · Incident<br/>management"]
  M5 --> M6["6 · Resilience<br/>patterns"] --> M7["7 · Redundancy<br/>and scale"]
  M7 --> M8["8 · Change<br/>management"] --> M9["9 · Data and<br/>disaster recovery"]
  M9 --> M10["10 · Chaos and<br/>game days"] --> M11["11 · SRE practice"]
  class M1 neutral
  class M2,M3 memory
  class M4,M5 warn
  class M6,M7 io
  class M8 compute
  class M9,M10 queue
  class M11 neutral
ModuleYou will be able to
Module 1 · What SRE IsSay what SRE is and is not, do availability arithmetic, measure toil, and argue for the right amount of risk
Module 2 · SLOs and Error BudgetsTurn user journeys into SLIs, choose SLOs, write an error budget policy, and build multiwindow burn-rate alerts
Module 3 · Monitoring for SREInstrument golden signals, probe from outside, and design alerts that deserve to wake someone
Module 4 · On-callDesign a humane rotation, write runbooks, and handle the first five minutes of a page on a Linux host or a Kubernetes service
Module 5 · Incident ManagementDeclare and run an incident with clear roles, communicate, write a blameless postmortem, and learn across incidents
Module 6 · Resilience PatternsUse deadlines, retries with jitter, circuit breakers, rate limits and load shedding — and recognise cascading and metastable failure
Module 7 · Redundancy and ScaleDesign redundancy and failover, balance load, contain blast radius with cells and shuffle sharding, plan capacity and load-test correctly
Module 8 · Change ManagementBuild a release pipeline, run canaries with automated analysis, roll out config and flags safely, and run services well on Kubernetes
Module 9 · Data and Disaster RecoverySet RPO and RTO, back up and prove restores, pick a DR strategy, keep databases reliable, and find the dependencies nobody listed
Module 10 · Chaos and Game DaysRun a chaos experiment with a hypothesis and a stop button, inject faults in Go, and run game days and DR tests
Module 11 · SRE PracticeRun a production readiness review, choose an SRE engagement model, take a service from zero to SRE-supported, and pass the SRE interview

Three reference pages sit beside the modules: the Glossary, Projects that prove each group of modules end to end, and The Best of the Internet — the short list of books, papers and guides worth reading.

How it connects to the other learning materials#

  • What to measure and how the telemetry pipeline works: Observability. This material uses metrics, logs and traces; that one explains how they are built, stored and queried.
  • The language the code is written in, and how Go’s runtime behaves under load: Golang.
  • How a whole system is drawn before it is run: AI System Design (its building-blocks module applies to any system).

What you need#

  • Go 1.22 or newer and a terminal. Every program uses only the standard library.
  • Optional: Docker and kind or minikube for the Kubernetes exercises, and a Linux machine or VM for the host-debugging exercises.
  • No cloud account is needed.

A promise about names and numbers#

The method in this material — SLOs, error budgets, blameless postmortems, the resilience patterns — has been stable for a decade and will not change. Tool versions and project statuses were checked on 24 October 2026 (for example Kubernetes 1.36 and Prometheus 3.x), and lessons that name tools list their sources. Where a number is a rule of thumb rather than a law, the lesson says so and says where it came from.

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in