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:
- The idea in one minute — the whole lesson in a few sentences.
- A picture — the mechanism, with real tools drawn in where they matter. Press Expand on any diagram to open it full size.
- How it really works — the precise version: numbers, rules, configuration you can copy.
- A worked example — a realistic service, a realistic failure, the numbers worked through.
- 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.
- 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
| Module | You will be able to |
|---|---|
| Module 1 · What SRE Is | Say what SRE is and is not, do availability arithmetic, measure toil, and argue for the right amount of risk |
| Module 2 · SLOs and Error Budgets | Turn user journeys into SLIs, choose SLOs, write an error budget policy, and build multiwindow burn-rate alerts |
| Module 3 · Monitoring for SRE | Instrument golden signals, probe from outside, and design alerts that deserve to wake someone |
| Module 4 · On-call | Design 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 Management | Declare and run an incident with clear roles, communicate, write a blameless postmortem, and learn across incidents |
| Module 6 · Resilience Patterns | Use deadlines, retries with jitter, circuit breakers, rate limits and load shedding — and recognise cascading and metastable failure |
| Module 7 · Redundancy and Scale | Design redundancy and failover, balance load, contain blast radius with cells and shuffle sharding, plan capacity and load-test correctly |
| Module 8 · Change Management | Build 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 Recovery | Set 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 Days | Run a chaos experiment with a hypothesis and a stop button, inject faults in Go, and run game days and DR tests |
| Module 11 · SRE Practice | Run 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
kindorminikubefor 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.