Simyl
simylflow
Course Home
Module 5: When XP
Lesson 4 of 5
11 min

XP + Kanban

XP's practices in a flow-based system—trading iterations for continuous delivery.

1XP Without Iterations

XP originally used iterations—one or two weeks of planned work, then a demo and planning session. Kanban uses continuous flow: work items move through the system one at a time, without fixed batches.

These aren't incompatible. XP's core practices work with any flow system.

What changes:

  • No iteration planning (you plan just-in-time)
  • No iteration demos (you demo as features complete)
  • No velocity in the Scrum sense (you measure lead time and throughput)

What stays the same:

  • TDD (still write tests first)
  • Pair programming (still collaborate on code)
  • Refactoring (still keep design clean)
  • CI (still integrate continuously)
  • Small releases (Kanban encourages this even more)
  • Customer involvement (still need someone to prioritize and accept)

The technical practices are independent of how you organize work.

XP's engineering practices are agnostic to your planning approach. TDD doesn't care if you're doing sprints or flow.

2WIP Limits and XP

Kanban's signature practice is WIP limits: constraining how much work is in progress at once.

This aligns with XP principles:

Focus: WIP limits prevent context switching. XP values focus (sustainable pace, pairing for deep work).

Flow: Limiting WIP creates flow. XP's small releases and CI also create flow.

Quality: Less WIP means less rushing. XP's quality focus benefits from reduced pressure.

Finish what you start: Both Kanban and XP favor finishing over starting. Don't start new work when existing work can be completed.

Pairing and WIP: If you pair program, WIP is naturally limited. Two people on one item means fewer items in flight.

The synergy is strong. Kanban's constraints complement XP's focus on quality and finishing.

3Continuous Delivery Mindset

Kanban pushes toward continuous delivery: every completed item is potentially releasable. XP's practices make this possible.

Why XP enables continuous delivery:

  • Tests: Every feature is verified automatically
  • CI: Code is always integrated and buildable
  • Simple design: No complex release coordination
  • Refactoring: Code stays clean and deployable
  • Small releases: Already a core XP practice

Kanban without XP practices struggles to achieve continuous delivery. Without tests, you can't be confident things work. Without CI, integration is uncertain. Without simple design, releases are complex.

Together: Kanban says "deliver continuously." XP says "here's how."

XP + Kanban Flow

Work items flow through the board: Backlog → In Progress → Review → Done. Developers pair on items, write tests first, integrate continuously. When an item reaches Done, it's deployed immediately. WIP is limited to 3 items in progress.

Kanban Without XP

A team uses a Kanban board but has no tests, no pairing, and no CI. Items move through the board but quality is poor. 'Done' doesn't mean deployable—it means 'we think it works.'

4ScrumBan: The Hybrid of Hybrids

ScrumBan combines Scrum, Kanban, and (often implicitly) XP:

From Scrum:

  • Regular planning rhythms (though not necessarily sprint-locked)
  • Retrospectives for improvement
  • Product Owner role for prioritization

From Kanban:

  • Visual board with WIP limits
  • Flow metrics (lead time, throughput)
  • Pull-based work (take next item when ready)

From XP:

  • Engineering practices (TDD, pairing, etc.)
  • Quality focus
  • Sustainable pace

This hybrid works well for teams that want structure (Scrum) with flow (Kanban) and quality (XP).

The label matters less than the practices. Use what works; drop what doesn't.

5Choosing Between Iterations and Flow

When to use XP with iterations (Scrum-style):

  • Stakeholders want predictable planning increments
  • The team benefits from regular rhythm and reflection
  • Work naturally batches into deliverables
  • The organization thinks in sprints

When to use XP with flow (Kanban-style):

  • Work arrives unpredictably (support, operations)
  • Continuous deployment is the goal
  • Iteration boundaries feel artificial
  • The team is mature enough to self-manage without imposed rhythm

Either approach works with XP practices. The practices remain; the organizational wrapper changes.

Many teams evolve from Scrum toward Kanban as they mature. Iterations provide training wheels. Flow is the graduate level. But there's nothing wrong with staying with iterations if they work for you.

If you're not sure, start with iterations. The structure helps teams learn. You can always move to flow later as you mature.

Key Takeaways
  • XP's engineering practices work with flow-based (Kanban) systems
  • WIP limits align with XP's focus on finishing and quality
  • XP makes continuous delivery possible through tests, CI, and simple design
  • ScrumBan combines the best of Scrum, Kanban, and XP
  • Choose iterations or flow based on context—both work with XP
Common Pitfalls to Avoid
  • Using Kanban without XP practices (flow without quality)
  • Thinking you must choose between Scrum, Kanban, and XP (they combine)
  • Abandoning all structure when moving to flow (keep retrospectives, planning)

Practice Exercises