Flow, feedback and continuous learning
The three ways behind DevOps: make work flow left to right, amplify feedback from right to left, and build a habit of learning from experiments and failure.
Flow, feedback and continuous learning
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- The first way is flow: optimise how fast work moves from idea to production across the whole system, not how busy any one team is.
- Most lead time is waiting, not working. A change that took 12 hours of effort can take two weeks to reach users because it sits in queues.
- The second way is feedback: shorten and amplify the signals that travel back from production and testing, so problems are found close to where they were made.
- The third way is continual learning: treat failures and experiments as information, run blameless reviews, and reserve time to improve daily work.
- Limiting work in progress shortens lead time, because for the same throughput, fewer items in flight means each one waits less.
From slogan to principles
The previous lesson described the wall between development and operations and the large, risky releases it produced. “Tear down the wall” is a slogan, though, not a plan. You need principles that tell you what to change on Monday morning.
The most widely quoted set comes from Gene Kim, co-author of The Phoenix Project and The DevOps Handbook. He calls them the three ways: flow, feedback and continual learning. They borrow heavily from lean manufacturing, where Toyota worked out decades earlier how to move work through a factory quickly without shipping defects.
Think of software delivery as a production line that runs left to right: idea, code, review, test, release, production. The three ways describe what should move along that line and in which direction.
The first way: flow
The first way is about moving work left to right as fast as the whole system allows. The key word is whole. A team that writes code twice as fast achieves nothing if the code then waits three weeks for a release window.
To see where time goes, I wrote a ticket’s history as a CSV of stages, each marked as work or wait, and added it up in Python:
code 6.0 h work
wait-review 43.0 h wait
review 1.0 h work
wait-qa 118.0 h wait
qa 4.0 h work
wait-release 173.0 h wait
deploy 1.0 h work
lead time 346.0 h, touch time 12.0 h, flow efficiency 3.5%
The ticket is invented, but the pattern is typical of teams with handoffs. Twelve hours of effort took over fourteen days to reach users. Flow efficiency, touch time divided by lead time, was 3.5%. Making the coding faster would shave hours off two weeks. Removing the release window would remove a week.
The flow practices follow from this:
- Make work visible, for example on a board, so you can see where it piles up.
- Limit work in progress (WIP). Little’s law says average lead time equals work in progress divided by throughput. If a team finishes five items a week and has twenty in flight, each takes about four weeks. Cut WIP to ten and, at the same throughput, lead time halves.
- Reduce batch size. Small changes move through review and test faster and get stuck less.
- Remove handoffs and queues. Every handoff is a queue. Automating the test and release stages removes two of them.
The second way: feedback
The second way runs right to left. Information about whether the work is good must flow back to the people who made it, quickly and loudly enough that they act on it.
Feedback loses value with delay. A failing unit test reported 90 seconds after a commit is cheap to fix, because the author still has the code in their head. The same bug reported by a customer three months later costs a support ticket, an investigation and a context switch for someone who has forgotten the code.
Ways to shorten and amplify feedback:
- Run automated tests on every commit, covered in continuous integration as a practice.
- Watch production metrics right after each deploy, and alert on symptoms users feel.
- Stop the line. In Toyota’s factories any worker could pull a cord to halt production when they saw a defect. The software equivalent is a team rule that a broken build is fixed before anything else is merged.
The third way: continual learning
The third way is about the culture that keeps the first two improving. Systems change, and practices that worked last year decay. A team that does not reserve time to learn and improve slowly drifts back to big batches and slow feedback.
Three habits matter most:
- Blameless reviews of failure. After an incident, ask how the system let it happen, not who pushed the button. If people fear blame, they hide problems, and the organisation stops learning. Postmortems and learning from incidents covers how to run one.
- Deliberate experiments. Try a change, measure the result, keep or revert it. This applies to process as much as to product.
- Improving daily work. Set aside time to fix the flaky test, automate the manual step, and pay down the toil. Gene Kim argues that improving daily work matters more than doing the daily work itself.
How the three connect
The three ways reinforce each other. Flow without feedback just ships bugs faster. Feedback without flow tells you about problems you cannot fix quickly. Learning is what turns both into lasting improvement. The rest of this roadmap is largely mechanisms for one of the three: pipelines and deployment strategies for flow, monitoring and alerting for feedback, postmortems for learning.
About the video
The embed is a 3½-minute clip from Abacus Solutions, published in 2013, where Gene Kim himself explains what the three ways of The Phoenix Project are, how they came about and why they matter, according to its description. It is old and short, but it is the author defining his own framework, and nothing in the three ways has changed since. I had no transcript, so I cannot say which examples he uses. English was judged from the title, description and channel. For a five-minute version that ties the three ways to delivery metrics, and Gene Kim’s longer 2019 talk on the follow-up “five ideals”, see deeper.
Where this fits
The three ways tell you what to improve. The next lesson is about proving that it worked, with the four (now five) delivery metrics from the DORA research: measuring delivery with DORA metrics.
Check yourself
A ticket spent 12 hours being worked on and 334 hours waiting. What is its flow efficiency, and what should you improve first?
12 out of 346 hours, about 3.5%. Speeding up the work would barely help. Removing the waits, such as review queues, QA handoffs and release windows, would.
Why is 'keep everyone 100% busy' bad for flow?
Full utilisation means every new item has to queue, so work in progress and wait times grow. Lead time is driven by queues, and queues grow sharply as utilisation approaches 100%.
What are two examples of amplifying feedback in software delivery?
Running tests on every commit so a break is reported within minutes, and alerting on user-facing errors right after a deploy so the author learns at once that a change hurt users.
What makes a post-incident review blameless, and why does it matter?
It asks how the system allowed the failure rather than who caused it. People then report problems honestly, which is the only way the organisation learns where its weak spots are.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.