You Build It, You Run It: DevOps, SRE & Platform Teams
Job adverts say "DevOps engineer", "site reliability engineer" and "platform engineer", sometimes for the same work. The three names come from different places and stress different things. This lesson sorts them out.
"You build it, you run it"
In a 2006 interview, Amazon's CTO Werner Vogels described how Amazon's teams worked: the team that builds a service also operates it, and gets the calls when it breaks. The phrase "you build it, you run it" became the short form of the DevOps culture:
- Ownership does not end at the merge. The team watches its own dashboards and handles its own incidents.
- Pain reaches the people who can fix it. If a noisy alert wakes the developers who wrote the code, the alert or the code gets fixed quickly.
- Operations knowledge moves into the code: health checks, timeouts, retries and good logs are written from the start, because the authors will need them.
It does not mean every developer must know everything about networks and kernels. That is where specialised roles and teams come in.
Three answers to the same problem
| DevOps | Site Reliability Engineering (SRE) | Platform engineering | |
|---|---|---|---|
| Origin | a movement from about 2009 (Patrick Debois organised the first DevOpsDays, in Ghent) | Google, from 2003; described in the Site Reliability Engineering book (2016) | grew in the late 2010s from teams building internal tooling for many product teams |
| Core idea | one team shares responsibility for building and running; automate the path to production | treat operations as a software problem; manage reliability with numbers | build an internal product (a platform) that makes the right way the easy way |
| Key tools of the idea | CI/CD, IaC, shared on-call, the Three Ways | SLIs, SLOs, error budgets, a cap on manual toil, blameless postmortems | self-service portals, golden-path templates, paved roads, internal APIs |
| Typical role | DevOps engineer embedded in or supporting product teams | SRE team owning reliability for critical services | platform team serving the other teams as its customers |
A common summary from the SRE world is that SRE is one concrete way to do DevOps: DevOps says what culture to aim for, SRE gives specific practices and numbers. Platform engineering is DevOps at scale: when fifty teams each build their own pipeline and cluster setup, a platform team builds it once and offers it as a service.
The SRE number: an error budget
SRE's best-known tool is the error budget. A team agrees on a service level objective (SLO), for example "99.9% of requests succeed over 30 days". The remaining 0.1% is the budget: the amount of failure the service may have. While budget remains, the team ships freely; when it is used up, reliability work comes before new features.
minutes_in_window = 30 * 24 * 60 # a 30-day window
print("SLO allowed downtime per 30 days")
for slo in (99.0, 99.5, 99.9, 99.95, 99.99):
budget = minutes_in_window * (100 - slo) / 100
print(f"{slo:<6}% {budget:8.1f} min")
slo = 99.9
budget = minutes_in_window * (100 - slo) / 100
incidents = [("bad config push", 18), ("database failover", 12), ("expired certificate", 9)]
used = sum(minutes for _, minutes in incidents)
print(f"\nSLO {slo}%: budget {budget:.1f} min, used {used} min by {len(incidents)} incidents, "
f"{budget - used:.1f} min left ({used / budget:.0%} spent)")SLO allowed downtime per 30 days
99.0 % 432.0 min
99.5 % 216.0 min
99.9 % 43.2 min
99.95 % 21.6 min
99.99 % 4.3 min
SLO 99.9%: budget 43.2 min, used 39 min by 3 incidents, 4.2 min left (90% spent)
With 4.2 minutes left, one more small incident ends the budget: add a fourth incident of 10 minutes and run it again to see the budget go negative. Each extra "nine" cuts the budget by ten, which is why 99.99% is far more expensive to run than 99.9%. The SRE course turns this into burn-rate alerts and release policies.
Team Topologies
The book Team Topologies (Matthew Skelton and Manuel Pais, 2019) gives the vocabulary most organisations now use to place these roles. It names four team types:
| Team type | Purpose | Example |
|---|---|---|
| Stream-aligned | delivers a product or service end to end; most teams should be this kind | the team that owns linkly |
| Platform | provides internal services that stream-aligned teams use without hand-offs | CI templates, the Kubernetes platform, observability stack |
| Enabling | helps other teams learn a skill, then steps back | an SRE or security group coaching teams on SLOs |
| Complicated-subsystem | owns a part that needs rare specialist knowledge | a video codec, a payments risk engine |
A "DevOps team" that takes tickets from developers and deploys for them is the anti-pattern the movement set out to remove: it rebuilds the wall between dev and ops under a new name. A DevOps engineer's job is to make the stream-aligned team able to ship and run its service itself.
Test yourself
With a 99.9% availability SLO, how much downtime does a 30-day error budget allow?
- 4.3 minutes
- 43.2 minutes
- 7.2 hours
- 3 days
Which team type from Team Topologies offers internal self-service tooling to product teams?
- Stream-aligned
- Platform
- Enabling
- Complicated-subsystem
Why is a separate "DevOps team" that deploys other teams' code on request considered an anti-pattern?
- It is too expensive
- It recreates the hand-off wall between development and operations
- DevOps teams cannot use Kubernetes
- It is required by SRE