Ways of working · lesson 7 of 10
Ideas in this lesson
AKanban boardthe workflow as columns, the work as cards
BWIP limitthe most cards a column may hold
CCycle time, throughputhow long one item takes; how many finish per day
DLittle’s lawties cycle time to work in progress and throughput

Kanban and flow

Last updated

Scrum works in fixed sprints. Kanban works in a continuous flow: put the work on a board where everyone can see it, limit how much is in progress at once, and keep it moving. It sounds too simple to matter, until you watch what happens without the limit. In this lesson you'll run Pila's board both ways and meet the one formula that explains why.

By the end of this lesson you can

  • Use a Kanban board with work-in-progress limits
  • Explain why limiting work in progress makes work finish sooner
  • Use Little’s law to relate work in progress, throughput and cycle time

See the work

A Kanban board shows how work flows through a team. Each column is a stage of the team's workflow; each card is one piece of work, moving left to right. Pila's board after launch has four columns: To do, Doing, Testing, Done.

The Kanban Guide, the method's short official description, asks for three practices:

  • Define and visualise the workflow. Everyone can see what's being worked on, what's waiting, and where it's stuck.
  • Actively manage the items in it, above all by limiting work in progress (WIP): each column has a most-cards number, and nobody starts something new while it's full.
  • Improve the workflow, using what the board shows.

There are no sprints, no fixed roles and no fixed meetings. Kanban can be used alone, or on top of another method such as Scrum.

As a UML activity diagram, Kanban follows one card at a time. Notice the question before anything moves into Doing:

[no]then pull again[yes][no][yes]Write up anew requestCard in To do(in order)Room underthe WIP limit?Help finish what’salready in DoingWork on it(Doing)Reviewedand done?Move it to Done

Press Walk through it to follow the work round the chart, one stop at a time.

  1. A new request goes into To do, in order.
  2. To pull it: room under the WIP limit? If not, help finish what’s in Doing, then pull again (a loop back).
  3. If there’s room: Doing.
  4. Reviewed and done? If not, back to Doing (a loop back). If so, Done.
Work moving through a Kanban board, as a UML activity diagram. In UML’s notation: the filled dot is where it starts and the ringed dot where it ends; rounded boxes are actions and square boxes are things the work passes along; a diamond with a question is a decision, with the condition for each way out in [brackets], and an empty diamond is a merge, where a way back joins the flow; Pink arrows go back to an earlier action.

Run the board

Run fifteen days with WIP limits off, then start over with them on. This is a toy simulation; its rules are under the chart.

Day 0 of 15

To do

plenty waiting

Doing

Testing

Done

Work in progress: 0 · Done: 0 · Average cycle time: –

day 5day 10day 15items

Doing Testing Done

The rules (made up, for this toy)
  • Each item needs 3 units of development, then 1 of testing.
  • The three developers do 3 units of development a day between them, shared across everything in Doing.
  • Rina tests 1 unit a day, oldest item first.
  • Limits off: requests keep arriving, and 2 new items are started every day.
  • Limits on: a new item starts only while Doing has fewer than 3; a finished item moves on only while Testing has fewer than 2. A developer with nothing to do helps test.

Without limits, Doing fills up with cards that each get a sliver of everyone's attention, and few reach Done. With limits, the same people finish more than twice as many items, each in under half the time. Nobody worked harder. They just finished things before starting new ones.

Little’s law in plain words

The Kanban Guide measures four things: work in progress (items started but not finished), throughput (items finished per day), work item age (how long an unfinished item has been in progress) and cycle time (how long an item took from start to finish). Three of them are tied together by Little's law, first proved for queues in 1961 by John Little:

average cycle time=average work in progressaverage throughput

In plain words: if a team finishes about one item a day, and has six items in progress, each item takes about six days. Halve the work in progress and, with the same throughput, each item takes about half as long. That's the simulation in one line.

Check it with the board: with limits on, about 3 items are in progress and just under one finishes a day, so each takes about 3.5 days. The law holds on averages over a stable period, not for every single item.

Reading a cumulative flow chart

The chart under the board is a cumulative flow chart. Read it band by band:

  • The bottom band is Done. Its top edge rising steeply means items are finishing fast.
  • The middle bands are the work in progress. Their thickness, measured up and down, is how many items are in progress on that day.
  • Their width, measured across, is roughly how long items spend in progress: the cycle time.

With limits off, the progress bands widen like a funnel: work comes in faster than it goes out. With limits on, they stay thin and even. Teams watch for widening bands as an early warning.

Where Kanban came from

"Kanban" is Japanese for a signboard or card. In Toyota's production system, developed from the 1950s, a card travelled with each bin of parts; an empty bin's card was the signal to make more. Work was pulled by the next step when it had room, not pushed by the step before. That kept stock low and problems visible.

Software teams borrowed the idea in the 2000s. David J. Anderson's book Kanban (2010) set out the method for software work, and Mary and Tom Poppendieck's Lean Software Development (2003) brought in the wider ideas from Toyota (lesson 2.8). The 2020 Kanban Guide is a short, current definition.

Spot the trap: starting something new when blocked

Spot the trapMarco

Marco’s card, the cancel-by-text feature, is waiting on the telco to switch on an option. Doing is at its limit of three. He says: “I’ll just start the next card while I wait.”

What happens if…

Check what you learned

A team has 10 items in progress and finishes 2 a day. By Little’s law, about how long does each item take?
Why do WIP limits make items finish sooner?
In a cumulative flow chart, what does a widening band for Doing warn of?

Sources

Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.

All sources for Simple Software Development