01 / 16 · Foundations
What DevOps is
Why development and operations pull against each other, the path from commit to production as a value stream, the three ways, the DORA delivery metrics as of 2025, why small batches lower risk, and how SRE and platform engineering relate.
On this page 8
The courses on operating systems and on Python end with a program that works on one machine: it starts as a process, reads files, talks over sockets and passes its tests. That program is not yet a service. Someone has to build it the same way every time, ship it to machines they do not log in to, keep it running while thousands of people use it, notice when it breaks, and change it again the next day without breaking it. This course is about that path, from a commit to a reliable service. This first note asks what goes wrong when the path is split between two groups of people, how to describe and measure it as a whole, and why changing software in small pieces is safer than changing it in large ones.
Conventions. Commands in this course were run in October 2026 on an Apple M1 under macOS 26 with /bin/bash 3.2.57, the BSD versions of the text tools, Git 2.47.0 and CPython 3.14.7, and the output shown is what they printed. Lines that start with the prompt $ are typed into a shell; the prompt is not part of the command, and long output is trimmed, with the cut marked .... Where Linux, with bash 5 and the GNU tools, behaves differently, the note says so. Examples that need a cluster or a cloud account were not run; their notes say so and describe the expected behaviour instead of showing output. Fast-moving facts are dated.
Baseline: throw it over the wall#
In the traditional arrangement two groups share one system and are measured on opposite things. Developers are rewarded for delivering features, so they want to change the system often. Operations staff are rewarded for keeping it up, and since most outages follow a change, they want to change it rarely. Each group’s goal is reasonable, and together they produce a standoff.
The standoff is resolved with process. Developers finish a quarter’s worth of features and hand over a release, with a document describing how to install it. Operations schedules it for a change window, a few hours on a Saturday night. A change advisory board reviews the risk first. Testers get a copy on a staging machine for a week before that. Each handoff is a request waiting in someone else’s queue.
The arrangement breaks in three ways at once.
- Knowledge is split. The people who wrote the code never see it fail in production, and the people who see it fail do not know the code. A bug report crosses the wall, and its context does not.
- Changes arrive in large batches. Because each release is expensive, releases are rare, and each one carries months of work. A large release is hard to test, hard to diagnose when it fails, and hard to roll back.
- Most of the time is spent waiting. A change that took an hour to write can take weeks to reach users, almost all of it in queues between the groups.
The name DevOps comes from the attempt to tear the wall down. In June 2009 John Allspaw and Paul Hammond described at the Velocity conference how development and operations at Flickr cooperated to deploy more than ten times a day, and in October 2009 Patrick Debois organized the first DevOpsDays in Ghent. The word has since come to mean a set of practices, a culture and, often, a job title; this course uses it for the practices.
The value stream from commit to production#
The first step out of the standoff is to look at the path of a change as one system. Lean manufacturing calls such a path a value stream: every step from a request to its delivery, with the time each step takes and the time the work waits before it. For software the stream that matters most runs from a commit to the moment the change runs in production. Its length is the lead time for changes.
Each step of the stream has two times. Process time is the time someone or something works on the change. Wait time is the time the change sits in a queue: for a reviewer, for a free test machine, for the next release, for an approval meeting. Lead time is the sum of both over all steps, and flow efficiency is the share of it that is work:
The value stream of one change: work and queues
- The change waits 18 hours for a reviewer, and the review takes half an hour.
- Continuous integration waits half an hour for a free machine and runs for 18 minutes.
- Releases leave once a week, so the change waits 96 hours for the release train, then spends 2 hours in testing on a staging machine.
- The change board meets weekly: 48 hours of waiting, 12 minutes of approval.
- The next change window is 2 hours away, and the deployment itself takes half an hour.
- In all, 168 hours pass between the commit and production, and 3.5 of them are work.
Worked example. The stages in the figure work for hours and wait for hours. The lead time is hours, exactly a week, and the flow efficiency is . Making CI twice as fast saves 9 minutes of the week. Releasing every day instead of every week removes most of the 96 hours. The figure is made up, but the shape is typical: in a stream with handoffs, the queues dominate.
How much work is in flight: Little’s law#
How many changes are somewhere between commit and production at a given moment? Let changes enter the stream at a rate of per day, and let each spend days in it. Count the work in progress, , at every instant over a long period of days, and add up over the period: the total is the area under the curve of against time. The same area can be counted change by change: about changes passed through, and each contributed days to it. So, when the system is stable (changes leave as fast as they arrive, on average),
This is Little’s law (Little, 1961). It holds whatever the distribution of arrivals and of times in the system. With 10 commits a day and a lead time of 7 days, changes are in flight: written, but not yet in front of users, and each of them a possible cause of the next failure. Halving the lead time halves the inventory. Read the other way, : a team that limits the work in progress shortens the lead time without working any faster. Why queues grow so fast as a stage gets busier is a question of queueing theory, which the resilience note takes up.
The three ways: flow, feedback, learning#
The DevOps Handbook (Kim, Humble, Debois, Willis and Forsgren, 2021) groups the practices into three principles, which it calls the three ways. They are a useful map of the whole course.
- Flow, from development to operations to the customer. Make work visible, keep batches small, limit work in progress, build the path once and automate it, and remove handoffs. Builds, containers and CI/CD, the second section of the course, are the machinery of flow.
- Feedback, from operations back to development. Find a problem where it is made, not three handoffs later: automated tests on every commit, telemetry from production, alerts that reach the people who wrote the code, and peer review of every change. The reliability section is about feedback.
- Continual learning and experimentation. Treat every failure as information about the system, not as somebody’s fault. Write postmortems without blame, rehearse failures on purpose, and reserve time for improving the daily work itself. The incidents note ends the course there.
A shorter summary that is often quoted is CALMS: culture, automation, lean, measurement and sharing. Tools come second in both lists. A team that installs a CI server but still releases quarterly through a change board has the tool and not the flow.
How delivery is measured: the DORA metrics#
Flow needs a measure, or every team will claim it has it. Since 2014 the research program now called DORA, DevOps Research and Assessment, run by Google Cloud, has surveyed thousands of practitioners every year and asked how fast and how safely they deliver. Forsgren, Humble and Kim summarized the first four years in Accelerate (2018). Its measurement of software delivery rested on four metrics, often called the four keys:
- Deployment frequency: how often the team deploys to production.
- Lead time for changes: how long from a commit to that commit running in production.
- Change failure rate: the share of deployments that cause a failure needing immediate remedy, such as a rollback or a hotfix.
- Time to restore service: how long it takes to recover from such a failure.
The first two measure throughput, the last two stability. The central finding is that they do not trade off against each other: the teams that deploy most often and fastest also fail least and recover fastest. Speed and safety come from the same practices, small changes, automation and fast feedback, and a team that slows down to be safe usually becomes neither.
What changed in 2023–2025#
The metrics have been refined, and since they are quoted everywhere, it is worth knowing which version a number belongs to (as of October 2026; DORA, history of the metrics):
- 2023. Time to restore service was renamed failed deployment recovery time and redefined to cover only failures caused by a change to production, not every outage (a power cut is not a delivery failure).
- 2024. The Accelerate State of DevOps Report 2024 added a fifth metric, deployment rework rate: the share of deployments that are unplanned and triggered by an incident in production, that is, unplanned work to fix bugs. It also regrouped the five into throughput (deployment frequency, change lead time, failed deployment recovery time) and instability (change fail rate, rework rate); recovery time, a stability measure in Accelerate, now sits with the speed metrics. That report still sorted respondents into four clusters, from elite to low; elite teams deployed on demand with lead times under a day and a change fail rate of about 5%, low ones monthly or less often with 40%. The clusters were not a strict ladder: the medium cluster had a lower change fail rate (10%) than the high one (20%).
- 2025. The report was renamed State of AI-assisted Software Development (published 24 September 2025, nearly 5,000 respondents). Instead of four performance levels based on delivery metrics alone, it describes seven team profiles found by cluster analysis over delivery throughput and instability together with measures of well-being, such as burnout and friction, and of product outcomes. They range from “foundational challenges”, teams stuck firefighting, to “harmonious high-achievers”. DORA’s guide to the metrics, updated in January 2026, lists the five metrics above.
A number such as “elite teams restore service in under an hour” therefore needs its year. The idea behind all versions is the same: measure the whole stream, both its speed and its stability, at the level of a team and a service.
Worked example. The Example section at the end of this note computes the five metrics from two exports of a deployment pipeline: 19 deployments in 10 working days and the 53 commits they carried. It finds a deployment frequency of 1.9 per working day, a median change lead time of 14.5 hours (90th percentile 27.1 hours), a change fail rate of 2 in 19, 10.5%, a median recovery time of 78 minutes over the two failures, and a rework rate of 2 in 19: both failures were fixed by an unplanned hotfix deployment.
Three cautions apply to any such dashboard. Definitions must be fixed first: what counts as a deployment, as a failure, as restored. The metrics describe a team’s system, not individuals, and comparing developers by them rewards gaming. And a metric that becomes a target stops measuring (Goodhart’s law): deployment frequency rises quickly if empty deployments count.
Why small batches lower risk#
Every practice above pushes toward smaller batches: fewer changes per deployment, more deployments. Why is that safer, when each deployment is a chance to break something? A small probability model answers it.
Let a deployment carry changes, and let each change be faulty, independently of the others, with the same probability . The deployment fails if at least one change is faulty.
-
A change is good with probability . By independence, all are good with probability .
-
So the deployment fails with probability
where the bound follows from Bernoulli’s inequality, , and is close when is small.
-
The number of faulty changes in the batch is binomial with parameters and (discrete distributions), with mean . Over 100 changes, are faulty on average when , however they are batched. Batching does not create faults; it changes what each fault costs.
-
A good change is rolled back with its batch when any of the other changes is faulty, which happens with probability .
-
When a batch fails, the culprit must be found. If exactly one change is faulty, a binary search over the batch (deploy or test the first half, then the half of the half that fails) needs rounds; Git automates this search, as the Git note shows. Given a failure, though, the expected number of faulty changes is , which grows with , and two interacting faults break the assumption of the search.
The chance that a deployment fails grows with the batch
Worked example. Take , one change in twenty faulty.
| Changes per deployment | Good change rolled back | Faulty changes, given a failure | Rounds of bisection | |
|---|---|---|---|---|
| 1 | 5.0% | 0 | 1 | 0 |
| 10 | 40.1% | 37.0% | 1.25 | 4 |
| 20 | 64.2% | 62.3% | 1.56 | 5 |
| 50 | 92.3% | 91.9% | 2.71 | 6 |
With one change per deployment, a failure points straight at its cause, and the other 95% of changes are never held back. With 20 changes per deployment, nearly two deployments in three fail, every failed deployment rolls back about 18 good changes, and finding the faulty ones takes at least five more rounds of testing. With 50, almost every deployment fails.
The model leaves out effects that make large batches worse still. The author of a change made three weeks ago has forgotten its details. A diff of fifty changes cannot be reviewed as carefully as a diff of one. And faults interact: two changes that are each correct can be wrong together, which no amount of testing them separately finds. Small batches are not free either: each deployment has a fixed cost, which is why the second section of the course is about making deployments cheap and automatic, so that is affordable.
DevOps, SRE and platform engineering#
Two neighbouring ideas answer the same problem from other directions.
Site reliability engineering (SRE) began at Google in 2003, when Ben Treynor Sloss asked software engineers to run production (Beyer et al., 2016). An SRE team writes software to do operations work, caps the manual, repetitive part of the job (toil) at half of its time, and makes reliability a measured quantity: a service has a service level objective, such as 99.9% of requests succeeding over 30 days, and the room left by the objective, the error budget, decides how fast it may change. When the budget is spent, releases slow down; while it lasts, they need no one’s permission. The Site Reliability Workbook describes the relation with a programmer’s joke, class SRE implements interface DevOps: DevOps states principles, and SRE is one concrete way to practise them, with its own job role (Beyer et al., 2018). The SLO note develops the error budget.
Platform engineering answers a problem that DevOps itself created. If every team owns its whole path to production, every team must know containers, CI, Kubernetes, cloud networking, monitoring and security, which is too much for one team building a product. A platform team builds an internal developer platform: a self-service product, used by the other teams, that provides paved paths, the “golden paths”, for the common cases, such as creating a service with CI, deployment and dashboards already wired. The platform is treated as a product with users, not as a queue of requests, otherwise it rebuilds the wall (CNCF, 2023; Skelton and Pais, 2019).
The plan of the course#
The course has five sections. Each note explains a mechanism, shows it on a small real example of commands or configuration, and ends with what goes wrong.
- Foundations. This note, then the two tools that every pipeline is made of: the shell and text tools, the language in which steps are glued together, and Git, the history from which every build starts. The shell note builds on processes,
forkandexec, file descriptors and pipes from the operating-systems course; the Git note on files and hashing. - Build and Ship. Builds and dependencies as a graph, container images built on the namespaces, cgroups and layered file systems of the containers note, continuous integration, which runs the tests of the Python course on every commit, and continuous delivery and deployment, with strategies for rolling a change out and back.
- Infrastructure. Networking for services: DNS, TLS, proxies and load balancers on top of the networking and sockets notes; infrastructure as code; and cloud building blocks.
- Orchestration. Kubernetes as controllers that reconcile the state you declare with the state that exists, and Kubernetes in practice.
- Reliability. Observability with logs, metrics and traces; SLOs, error budgets and alerting; resilience and capacity: timeouts, retries, overload and queues; and incidents and operational security.
The Python course matters throughout: its environments and lockfiles are the first step of a reproducible build, and most automation beyond a few lines of shell is written in Python. After this course, the Machine Learning in production course applies the same path to models: data and models are versioned like code, training runs are builds, and a model is deployed, monitored and rolled back like any other service, with the extra failure that it can degrade without any change at all when the data drifts.
What changed#
| The wall (baseline) | DevOps | |
|---|---|---|
| Who runs the software | a separate operations team | the team that builds it, with a platform under it |
| Size of a release | months of changes | one change or a few |
| Lead time for changes | weeks to months, mostly queues | hours to a day |
| How risk is controlled | approval boards and change windows | small batches, automated tests, fast rollback |
| Feedback from production | bug reports across the wall | telemetry and alerts to the authors |
| After a failure | find who is to blame | blameless postmortem, fix the system |
| How delivery is measured | uptime for one group, features for the other | throughput and instability of the whole stream |
Limitations#
- DevOps is not a tool or a title. Hiring “DevOps engineers” to run the pipeline for the developers recreates the wall with a new name.
- The probability model is a sketch. Faults are neither independent nor equally likely: a schema migration is riskier than a typo fix, and two changes can fail only together. The direction of the conclusion holds; the exact numbers do not.
- DORA findings are correlations from surveys. Respondents report their own metrics, and the clusters and profiles depend on who answers in a given year. Accelerate argues for causal links with structural models, but a team should check its own numbers before and after a change rather than rely on the industry’s.
- Metrics can be gamed. Any of the five improves on paper if its definition is loosened: count every configuration push as a deployment, or every quick revert as no failure.
- Some domains cannot deploy on demand. Firmware in cars, medical devices and software that ships on physical media have release constraints that no practice removes; the principles still apply inside the organization, up to the point of release.
What you should remember#
- The traditional split puts development (rewarded for change) and operations (rewarded for stability) on opposite sides of a wall, with large releases and long queues between them.
- A value stream adds wait time and work time over every step; lead time is usually dominated by waiting. Flow efficiency in the example was .
- Little’s law, : the work in flight equals the arrival rate times the time in the system. Limiting work in progress shortens lead time.
- The three ways: flow (left to right), feedback (right to left), continual learning.
- DORA’s metrics measure throughput and instability together. Since 2024 there are five: deployment frequency, change lead time, failed deployment recovery time, change fail rate and deployment rework rate. The 2025 report replaced the four performance clusters with seven team profiles that include well-being.
- A deployment of changes fails with probability : 5% for one change and 40% for ten at . Small batches do not reduce the number of faults; they keep each failure small, cheap to diagnose and cheap to roll back.
- SRE is a concrete implementation of DevOps principles with SLOs and error budgets; platform engineering gives product teams a self-service path to production.
Example#
The script computes the delivery metrics from two CSV exports of a deployment pipeline. deploys.csv has one row per deployment: its number, when it finished, whether it failed and needed immediate intervention, when service was restored, and whether it was an unplanned fix. changes.csv has one row per commit: its hash, when it was committed, and which deployment carried it. The data cover two working weeks of a synthetic service, 5 to 16 October 2026; the first rows and the two failures:
deploy,deployed_at,failed,restored_at,unplanned
1,2026-10-05T16:49,0,,0
2,2026-10-05T17:28,0,,0
...
9,2026-10-09T17:35,1,2026-10-09T19:09,0
10,2026-10-09T19:00,0,,1
...
14,2026-10-14T17:38,1,2026-10-14T18:39,0
15,2026-10-14T18:34,0,,1
sha,committed_at,deploy
79cb9e8,2026-10-04T16:18,1
b1852f2,2026-10-04T16:47,2
cb00885,2026-10-04T21:10,1
"""The DORA software delivery metrics from two exports of a deployment pipeline."""
import csv
import statistics
import sys
from datetime import datetime, timedelta
def rows(path):
with open(path, newline="") as f:
return list(csv.DictReader(f))
def when(text):
return datetime.fromisoformat(text)
deploys = {d["deploy"]: d for d in rows(sys.argv[1])}
changes = rows(sys.argv[2])
# Throughput: how often we deploy, and how long a change waits between commit and production.
dates = sorted(when(d["deployed_at"]).date() for d in deploys.values())
span = [dates[0] + timedelta(days=k) for k in range((dates[-1] - dates[0]).days + 1)]
workdays = [day for day in span if day.weekday() < 5]
lead = [(when(deploys[c["deploy"]]["deployed_at"]) - when(c["committed_at"])) / timedelta(hours=1)
for c in changes]
# Instability: how often a deployment needs a fix, how long the fix takes, how much work is unplanned.
failed = [d for d in deploys.values() if d["failed"] == "1"]
recovery = [(when(d["restored_at"]) - when(d["deployed_at"])) / timedelta(minutes=1) for d in failed]
unplanned = [d for d in deploys.values() if d["unplanned"] == "1"]
n = len(deploys)
print(f"deployment frequency {n} in {len(workdays)} working days = {n / len(workdays):.1f} per day")
print(f"change lead time median {statistics.median(lead):.1f} h, "
f"90th percentile {statistics.quantiles(lead, n=10)[-1]:.1f} h ({len(lead)} changes)")
print(f"change fail rate {len(failed)}/{n} = {len(failed) / n:.1%}")
print(f"recovery time median {statistics.median(recovery):.0f} min ({len(recovery)} failed deployments)")
print(f"deployment rework {len(unplanned)}/{n} = {len(unplanned) / n:.1%}")
$ python3 -I dora.py deploys.csv changes.csv
deployment frequency 19 in 10 working days = 1.9 per day
change lead time median 14.5 h, 90th percentile 27.1 h (53 changes)
change fail rate 2/19 = 10.5%
recovery time median 78 min (2 failed deployments)
deployment rework 2/19 = 10.5%
Reading it line by line:
rowsreads a CSV file into a list of dictionaries keyed by the header, andwhenparses the ISO 8601 timestamps. Both files are exports, so the script never talks to the pipeline itself; the definitions live in how the export fills thefailedandunplannedcolumns.deploysis keyed by deployment number, so that each change can find the time its deployment finished.workdayscounts the weekdays between the first and the last deployment, inclusive: 10. Dividing by working days rather than calendar days is a choice, and it must stay the same from one report to the next.leadis one number per commit: deployment time minus commit time, in hours. Lead time is a distribution, not a number, so the script reports the median and the 90th percentile;statistics.quantiles(lead, n=10)returns the nine deciles, and the last is the 90th percentile.failedholds the deployments that needed immediate intervention, andrecoverythe minutes from each to the restoration of service: 94 and 61, median 78. With two failures the median says little; the metric becomes useful over months.unplannedholds the hotfix deployments, numbers 10 and 15. Each failure here led to one rework deployment, so the two instability metrics coincide; in general they do not, since a failure can be fixed by a rollback, which is not a new deployment of new code, and a production bug found by a user can cause rework with no failed deployment before it.- The prints format the shares with
:.1%. The data are synthetic and seeded; only the procedure carries over.
Next#
Every stage of the value stream, building, testing, packaging and deploying, is in the end a sequence of commands run by a machine instead of a person. The language in which those commands are written and glued together is the shell. The next note explains how the shell turns a line of text into processes connected by pipes, why quoting is the source of most of its bugs, and how to write a script that stops on the first error instead of carrying on.
References#
- G. Kim, J. Humble, P. Debois, J. Willis, N. Forsgren. The DevOps Handbook, 2nd ed. IT Revolution, 2021. Part I (the three ways) and Part III (the technical practices of flow).
- N. Forsgren, J. Humble, G. Kim. Accelerate: The Science of Lean Software and DevOps. IT Revolution, 2018. Ch. 2 (measuring software delivery performance), ch. 4 (technical practices).
- DORA. Accelerate State of DevOps Report 2024. Google Cloud, October 2024. (Rework rate; throughput and instability; the four performance clusters.)
- DORA. State of AI-assisted Software Development 2025. Google Cloud, September 2025. (Seven team profiles.) Announcement: Google Cloud blog, 24 September 2025.
- DORA. DORA’s software delivery performance metrics (updated 5 January 2026) and A history of DORA’s software delivery metrics.
- DORA. Capabilities: working in small batches.
- J. D. C. Little. A proof for the queuing formula L = λW. Operations Research, 9(3), 383–387, 1961.
- D. G. Reinertsen. The Principles of Product Development Flow. Celeritas, 2009. Ch. 5 (reducing batch size).
- M. Rother, J. Shook. Learning to See: Value Stream Mapping to Add Value and Eliminate Muda. Lean Enterprise Institute, 1999.
- J. Allspaw, P. Hammond. 10+ deploys per day: Dev and Ops cooperation at Flickr. Velocity, June 2009.
- B. Beyer, C. Jones, J. Petoff, N. R. Murphy (eds.). Site Reliability Engineering. O’Reilly, 2016. Ch. 1 (introduction), ch. 3 (embracing risk), ch. 5 (eliminating toil).
- B. Beyer, N. R. Murphy, D. K. Rensin, K. Kawahara, S. Thorne (eds.). The Site Reliability Workbook. O’Reilly, 2018. Ch. 1, How SRE relates to DevOps.
- CNCF TAG App Delivery. Platforms white paper. 2023.
- M. Skelton, M. Pais. Team Topologies. IT Revolution, 2019. (Stream-aligned and platform teams, cognitive load.)
- HSE University. «DevOps: методология и практика» (DevOps: methodology and practice), 4th-year course of the Applied Mathematics and Informatics programme with the MTS base department: DevOps principles and the delivery cycle.
- University of Helsinki. DevOps with Docker and DevOps with Kubernetes, 2026.
- MIT. The Missing Semester of Your CS Education, 2026 edition.