TExcelTAD
Home › DevOps Engineering: Overview & Roadmap › The Three Ways: Flow, Feedback & Learning

The Three Ways: Flow, Feedback & Learning

Tools change every few years; the ideas behind DevOps have stayed the same since the late 2000s. A popular way to state them is the Three Ways, from The Phoenix Project and The DevOps Handbook (Gene Kim and co-authors):

Way The idea What it looks like in practice
1. Flow make work move quickly and smoothly from idea to production small batches, limits on work in progress, automated builds and deploys, no hand-offs that wait for a ticket queue
2. Feedback find out fast whether a change is good, at every stage tests in CI, monitoring and alerts, canary releases, developers who see their own production errors
3. Learning turn failures and experiments into a better system blameless postmortems, time for improvement work, game days, sharing what one team learned with all the others

The rest of the track is these three ideas made concrete. A pipeline is flow; a dashboard and an alert are feedback; a postmortem and a chaos experiment are learning.

The First Way: flow

Work moves through a value stream: idea → code → review → build → test → deploy → running in production. Most of the time an item spends in that stream, it is not being worked on. It is waiting: for a reviewer, for a test environment, for the weekly release.

A relationship from queueing theory, Little's law, ties the numbers together. For a stable system, averaged over time:

work in progress = throughput × lead time        (L = λ × W)

Turned around, lead time = WIP / throughput. If a team finishes 4 changes a day and has 40 changes open, a new change takes about 10 days to get through, however fast each individual step is. Starting more work does not make anything finish sooner; it only lengthens the queue.

python · try it yourself
throughput = 4          # changes the team finishes per day

for wip in (8, 20, 40, 80):
    lead_time = wip / throughput
    print(f"WIP {wip:>2} open changes -> average lead time {lead_time:4.1f} days")
WIP  8 open changes -> average lead time  2.0 days
WIP 20 open changes -> average lead time  5.0 days
WIP 40 open changes -> average lead time 10.0 days
WIP 80 open changes -> average lead time 20.0 days

Batch size

The second lever is batch size. If finished changes wait for a release that happens every B days, the average change waits about half that interval before it even starts deploying. The model below finishes one change a day and ships them in batches. It also counts how many changes are in each release, because a big release is harder to test, harder to debug and harder to roll back.

python · try it yourself
days = 60                       # one change is finished at the end of each day

def simulate(batch_days):
    waits, batch_sizes, pending = [], [], []
    for day in range(1, days + 1):
        pending.append(day)                     # change finished on this day
        if day % batch_days == 0:               # release day: ship everything pending
            waits += [day - done for done in pending]
            batch_sizes.append(len(pending))
            pending = []
    return sum(waits) / len(waits), max(batch_sizes)

print("release every | avg wait (days) | changes per release")
for b in (1, 5, 10, 30):
    wait, size = simulate(b)
    print(f"{b:>8} days | {wait:>15.1f} | {size:>19}")
release every | avg wait (days) | changes per release
       1 days |             0.0 |                   1
       5 days |             2.0 |                   5
      10 days |             4.5 |                  10
      30 days |            14.5 |                  30

Releasing every day removes the wait entirely and keeps each release to one change. That is the core argument for continuous delivery, taught in CI vs Continuous Delivery vs Continuous Deployment.

Find the constraint

A value stream moves at the speed of its slowest step (the constraint, from Eliyahu Goldratt's The Goal). Speeding up any other step only makes work pile up in front of the constraint. When a team says "our deploys are slow", the first job is to measure where changes actually wait. The Mini Project does exactly that for a release process.

The Second Way: feedback

Feedback is only useful if it arrives while the person who made the change still remembers it. Typical feedback loops and how fast they can be:

Loop Question it answers Good target
editor, linter, unit tests does the code do what I meant? seconds
CI pipeline on the pull request does it build, pass all tests, pass the security scans? under 10–15 minutes
code review is it a good change? hours, not days
canary release + dashboards does it behave in production? minutes after deploy
incidents, customer reports did we break something we did not test? as rare as possible

Each loop catches problems the one before it missed, so the aim is to move checks to the left (earlier, cheaper loops) while keeping the later loops as a safety net. A failing test in CI costs a developer a few minutes; the same bug found by a customer costs an incident, a hotfix and some trust.

Note: Feedback also flows the other way: from production to the team. If the people who write the code never see its error rates, latency or logs, the loop is broken. That is why the track has a whole phase on Observability.

The Third Way: learning

Complex systems fail in ways nobody predicted. The Third Way says to treat each failure as information:

  • Blameless postmortems. After an incident, ask how the system allowed the mistake, not who made it. People who fear blame hide information, and hidden information causes the next incident.
  • Improvement work is real work. Fixing a flaky test, automating a manual step or writing a runbook is scheduled like a feature, not done "when there is time".
  • Practise failure. Game days and chaos experiments break things on purpose, at a chosen time, so the team learns how the system and its people react (Site Reliability Engineering).
  • Spread local discoveries. A fix one team found goes into the shared pipeline template, the shared Helm chart or the platform, so every team gets it.

Test yourself

A team finishes 5 changes per day and has 50 changes in progress. By Little's law, what is the average lead time?

  1. 5 days
  2. 10 days
  3. 50 days
  4. 250 days

Why does releasing every 30 days hurt flow, according to the batch model?

  1. Each change waits about two weeks on average and each release bundles about 30 changes
  2. Monthly releases need more servers
  3. Changes are lost between releases
  4. It does not hurt flow

Which practice belongs to the Third Way (learning)?

  1. Limiting work in progress
  2. A blameless postmortem after an incident
  3. Running unit tests on every commit
  4. Deploying with a canary release