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:
Press Walk through it to follow the work round the chart, one stop at a time.
- A new request goes into To do, in order.
- To pull it: room under the WIP limit? If not, help finish what’s in Doing, then pull again (a loop back).
- If there’s room: Doing.
- Reviewed and done? If not, back to Doing (a loop back). If so, Done.
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.
To do
plenty waiting
Doing
Testing
Done
Work in progress: 0 · Done: 0 · Average cycle time: –
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:
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
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
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.
- The Kanban Guide (2020): the practices of Kanban, its four measures, and Little’s law
- Mary and Tom Poppendieck, Lean Software Development: An Agile Toolkit (2003): pull systems and queues, borrowed from Toyota’s production system