Lesson 2 of 8 · Agile & DevOps for DBAs

Scrum, Kanban, and SAFe

The three Agile frameworks DBAs meet most, with Scrum's roles and ceremonies, Kanban boards and WIP limits, and SAFe's release trains and PI planning.

Beginner 6 sections 6 min read

Three common frameworks

Agile is a set of values; frameworks turn them into a way of working. The three a DBA is most likely to meet are Scrum, for teams that work in fixed-length sprints; Kanban, for a steady flow of incoming work; and SAFe, for coordinating many teams across a large organization.

ScrumKanbanSAFe
Best forA team building a product or project in planned incrementsOngoing, unpredictable work, such as support and operationsLarge organizations with many teams working on related systems
RhythmFixed sprints, usually two weeksContinuous flow, no sprintsPlanning intervals of 8 to 12 weeks, with sprints inside
RolesProduct Owner, Scrum Master, DevelopersNone requiredTeam roles plus train-level roles, such as Release Train Engineer
Key measureVelocity: work completed per sprintCycle time: how long one item takesValue delivered across the train each planning interval
DBA exampleA team migrating databases to the cloudA DBA team handling requests, incidents, and maintenanceA bank's data platform team serving many application teams

Scrum

Scrum is the most widely used Agile framework. Work happens in sprints: fixed periods of one to four weeks, most often two, each producing a usable increment, a finished, working piece of the product.

Product backlog storybugtask Sprint planning Sprint backlog Sprint 1 to 4 weeks Daily Scrumevery day Increment Sprint review Retrospective next sprint Product Owner: what and whyDevelopers: howScrum Master: the process
Product Owner
Decides what the team works on and in what order, by managing and prioritizing the product backlog: the single, ordered list of everything the product might need.
Scrum Master
Helps the team use Scrum well: runs the events when needed, removes obstacles, and protects the team from interruptions. A coach, not a manager.
Developers
Everyone who builds the increment. In Scrum, "developers" includes testers, analysts, and DBAs on the team, not only programmers. The team decides how to do the work.

A DBA might be a full member of a Scrum team, or shared across several teams, attending the events where database work is planned and reviewed.

Scrum's ceremonies (events)

Scrum's meetings are often called ceremonies; the official Scrum Guide calls them events. Each has a clear purpose and a time limit, called a timebox. For a two-week sprint:

EventWhen and how longPurposeThe DBA's part
Sprint planningStart of the sprint; up to about 4 hoursAgree a sprint goal and choose backlog items to deliverFlag database work hidden in stories, such as migrations, indexes, or new access, and estimate it
Daily Scrum (stand-up)Every day; 15 minutesCheck progress toward the sprint goal and raise blockersShare progress on database tasks, and spot anyone blocked on a database request
Sprint reviewEnd of the sprint; up to about 2 hoursShow the finished increment to stakeholders and gather feedbackDemo database improvements, such as faster reports or automated refreshes
Sprint retrospectiveAfter the review; up to about 1.5 hoursDecide how the team can work better next sprintRaise process issues, such as late schema reviews or missing test data
Backlog refinementOngoing, often a weekly sessionClarify, split, and estimate upcoming storiesAsk the database questions early: data volumes, performance needs, and security

Kanban

Kanban comes from Toyota's factories, where cards (kanban means "signboard" in Japanese) signaled when to make more parts. In IT, it's a board that shows work moving through stages, with limits on how much can be in progress at once.

TO DOIN PROGRESSREVIEWDONE limit: 3limit: 2 Patch test databasesRead-only roleIndex slow report Refresh UATAnsible listener roleFix backup alert Terraform: new VCNPartition audit table Rotate passwordsArchive old logs Work flows left to right. A column at its limit takes no new work until something moves on.
Visualize the work
Every piece of work is a card on the board, so everyone sees what's waiting, in progress, and done.
Limit work in progress (WIP)
Each column has a maximum number of cards. Starting less and finishing more cuts multitasking, and a full column shows a bottleneck immediately.
Pull, don't push
People pull the next card when they have room, rather than having work pushed onto them.
Measure flow
Lead time (from request to done) and cycle time (from starting to done) show how quickly work gets through, and where it waits.

Kanban has no required roles or sprints, which suits DBA teams whose work arrives unpredictably: access requests, incidents, refreshes, and maintenance. Many teams still hold a few regular meetings, such as a daily look at the board and a periodic replenishment meeting to choose what comes next. Some combine the two frameworks as Scrumban: sprints for planned project work, with a Kanban flow for requests.

SAFe (Scaled Agile Framework)

Scrum and Kanban were designed for single teams. Large organizations, with dozens of teams working on connected systems, need a way to plan and deliver together. SAFe is the most widely used framework for this.

PORTFOLIOstrategy, funding, and large epics AGILE RELEASE TRAIN50 to 125 people who plan and deliver together App team 1App team 2Mobile team ScrumScrumScrum Data platform DBAs, data engineers PLANNING INTERVAL (PI)8 to 12 weeks PI planning Iteration 1Iteration 2Iteration 3Iteration 4IP
Agile Release Train (ART)
A long-lived team of agile teams, usually 50 to 125 people, that plans, builds, and delivers together on a shared schedule. A Release Train Engineer coordinates it, like a Scrum Master for the whole train.
Planning interval (PI)
A fixed period, usually 8 to 12 weeks, made of several iterations (SAFe's word for sprints) plus an innovation and planning (IP) iteration for learning, improvement, and getting ready for the next PI. Older SAFe versions called it a program increment.
PI planning
A one- or two-day event where every team on the train plans the next PI together, agrees objectives, and maps dependencies between teams on a shared board.
System demo and inspect and adapt
Regular demos of the integrated work of all teams, and a review at the end of each PI to improve the train's way of working, like a retrospective at scale.

For DBAs, PI planning is the most important event. Database work, such as a new cluster, an upgrade, or a schema change other teams depend on, has to be on the shared plan, or it becomes the dependency that blocks everyone. In many SAFe organizations, DBAs sit in a platform or shared services team on the train, serving the application teams.

Key takeaways

  • Scrum runs work in fixed sprints with three roles: Product Owner, Scrum Master, and Developers, which includes DBAs on the team.
  • Scrum's ceremonies, or events, are sprint planning, the Daily Scrum, sprint review, and retrospective, with ongoing backlog refinement.
  • Kanban visualizes work on a board, limits work in progress, and measures flow. It suits unpredictable DBA work such as requests and incidents.
  • SAFe coordinates many teams in Agile Release Trains, which plan together every 8 to 12 weeks in PI planning.
  • Whatever the framework, DBAs add the most value by getting database work onto the plan early.