In simple words
- SRE: site reliability engineering: running systems using software-engineering methods, with reliability measured in numbers.
- DevOps: a culture of developers and operations working together to deliver faster and more safely.
- 50% rule: SREs spend at most half their time on operations work and the rest on engineering improvements.
Big picture
Site Reliability Engineering (SRE) means treating operations as a software problem. Instead of fixing servers by hand, SREs write code and set clear numbers for how reliable a service must be. The idea started at Google in the early 2000s.
Think of a hospital. Doctors treat patients one by one. Public health teams study what makes people sick and change the system so fewer people get sick. SRE is the public health team of running software.
What SRE and DevOps share
DevOps is a set of ideas: developers and operations work together, ship small changes often, automate, and learn from failures. SRE is a concrete way to do it, with rules and numbers.
A common saying is: class SRE implements interface DevOps. DevOps says what to value. SRE says how to do it.
| Idea | DevOps | SRE |
|---|---|---|
| Break down walls between dev and ops | Yes | Yes |
| Automate repeated work | Yes | Yes, with a limit on manual work (the 50% rule) |
| Measure everything | Yes | Yes, with SLIs and SLOs |
| Accept that failures happen | Yes | Yes, with an error budget |
| Learn from incidents | Yes | Yes, with blameless postmortems |
The main SRE ideas
| Idea | In plain words |
|---|---|
| Embrace risk | 100% reliable is the wrong goal. It costs too much and slows every change. Pick a target that users actually need. |
| Service level objectives (SLOs) | A number, such as "99.9% of requests succeed", that everyone agrees on (lesson 04). |
| Error budget | The amount of unreliability the SLO allows. You can spend it on new releases (lesson 04). |
| Eliminate toil | Manual, repeated work should be automated away (lesson 02). |
| Monitoring | Know about problems before users tell you (lessons 03 and 05). |
| Incident response | Handle outages in an organized way and learn from them (lessons 06 and 07). |
| Simplicity | Every extra part is one more thing that can break. |
The 50% rule
Google's rule says an SRE should spend at most half of their time on operations work, such as tickets and on-call. The other half goes to engineering: automation, tools, and making the service sturdier.
If the operations part grows beyond half, the team pushes work back to the developers or pauses new features until things are fixed. This keeps SRE from turning into a plain support team.
A day in the life
| Time | Work |
|---|---|
| Morning | Check dashboards and any overnight pages. Hand-over from on-call. |
| Midday | Write code that automates a manual step, for example auto-scaling or a safer deploy. |
| Afternoon | Review a design with a product team: "What happens when this database is down?" |
| Weekly | Review the error budget, update runbooks, attend a postmortem review. |
| On-call week | Answer pages, run the incident process, write notes. |
Team shapes
| Shape | What it means |
|---|---|
| Embedded | An SRE sits inside a product team. |
| Central | One SRE team supports many services and sets standards. |
| Consulting | A small team reviews designs and teaches others, but does not run the service. |
| You build it, you run it | Product teams carry the pager and use SRE tools and advice. |
Lesson 16 compares these in more detail.
Example: a reliability conversation
Product manager: "Can we ship the new checkout on Friday?"SRE: "This month's error budget is 70% used, and the last two releases caused incidents."Product manager: "So no?"SRE: "Ship it behind a feature flag to 5% of users first. If errors stay low, go to 100% on Monday."The decision uses data, not opinion or fear. That is the SRE style.
Where SRE came from
In the early 2000s Google had a simple problem: more users every month, and a limited number of people to run the servers. Hiring more operators for each new service did not scale. So Google asked software engineers to run production and to automate everything they could. The result was a team with a new name and a new set of habits. In 2016 Google published the book Site Reliability Engineering, and many companies copied the ideas.
Words you will hear
| Word | Plain meaning |
|---|---|
| Service | Something users depend on, such as search, checkout or login |
| Reliability | The service works when users need it |
| Availability | The share of time (or requests) that work correctly |
| SLI | A measurement, for example "percent of requests that succeed" |
| SLO | A target for that measurement, for example 99.9% |
| SLA | A contract with users that says what happens if you miss the target |
| Error budget | How much failure the SLO allows |
| Toil | Manual, repetitive work with no lasting value |
| Postmortem | A written review after an incident, focused on learning |
How to tell if you are doing SRE
Ask these questions about your team:
- Do we have written reliability targets for our main services?
- Do we know how much error budget is left this month?
- Is manual work measured, and is it going down?
- After a bad incident, do we write down what we learned and fix the causes?
- Can engineers say "no release now" because the budget is spent, and is that respected?
If most answers are yes, you are doing SRE, whatever the team is called.
Common mistakes
- Renaming the operations team "SRE" and changing nothing else.
- Aiming for 100% uptime. Each extra nine costs far more than the last.
- Letting SREs do only tickets and on-call, with no time to engineer.
- Treating SRE as a wall: "developers write code, SRE keeps it running". Both own reliability.
- Starting with tools before agreeing on what "reliable" means.
Summary
- SRE applies software engineering to operations. DevOps is the culture, SRE is one way to do it.
- Reliability is a feature with a target (SLO), not a goal of "never fail".
- The error budget lets teams balance speed and stability with data.
- Keep manual work under about half the time, and automate the rest away.
- Next: lesson 02 looks at toil and how to remove it.
CHECK YOUR UNDERSTANDING
3 quick questions
1. What does SRE mainly do differently from a traditional operations team?
2. What is the usual limit on manual operations work for an SRE?
3. Why do SREs not aim for 100% reliability?