SRE practice

Toil budgets, on-call design, capacity planning, production readiness reviews. The discipline layer that turns ops work into engineering.

About 29 min read3-question knowledge check

The mental model

A hospital does not aim for zero deaths. That sounds shocking until you think about it: a hospital that refused any procedure with risk would perform no surgery at all. Instead it sets explicit standards, measures outcomes, and spends its improvement effort where the data says lives are lost — not where the loudest doctor says.

SRE is that discipline applied to production systems. The founding move is refusing the two comfortable extremes:

  • "Never go down" is unaffordable. Every added nine costs roughly an order of magnitude more, and past a point users cannot perceive it because their own wifi is less reliable than your service.
  • "Ship fast, worry later" burns the trust you need to keep shipping.

So SRE picks a number — the SLO — and treats the gap between that number and 100% as a budget you are allowed to spend. 99.9% monthly availability means about 43 minutes of allowed badness per month. If you have spent 5 minutes, ship the risky migration. If you have spent 43, stop feature work and fix reliability. The argument between product and ops becomes arithmetic.

The second founding idea is toil. Toil is work that is manual, repetitive, automatable, tactical, and scales linearly with your service — restarting a stuck job, resizing a disk by hand, copying a report every Monday. It is not "boring work"; it is work that grows with success and eventually consumes the whole team. Google's classic rule caps toil at 50% of an SRE's time, and treats exceeding it as a load-shedding trigger, not a personal failing.

The one-line version: SRE is what happens when you ask a software engineer to do operations, and they refuse to do it by hand twice.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision