Why you need it
Many teams deploy once a week to feel safe. But a finished change then waits days to reach anyone, and when the big deploy breaks, it carried many changes and nobody knows which one did it.
Think of it like this
Doing the dishes once a week. You find one plate broken and cannot say which meal did it. Wash after each meal, and if a plate breaks, you know.
Where you’ll find it
- GitLab: Shows DORA metrics for each project: how often you deploy, how long a change waits, how often a deploy breaks, and how fast you recover.
- Datadog: DORA Metrics measures the same four numbers from your deploys and incidents.
- Four Keys: Four Keys, from the DORA team, is a free project that works the four numbers out from your own tools.
What to know first
Changes join main often. Each change is tested and merged on its own. See Continuous integration.
A deploy without downtime. Putting a version live is safe and quick, so doing it often costs nothing. See Rolling deploys.
How it works
- A finished change waits. Ana finishes her change on Monday. The team only deploys on Friday, so it waits 4 days. This is the first picture in the animation.
- A big deploy is hard to fix. Friday's deploy breaks the shop. It carried five changes, so there are five to check before anyone can fix it. This is the five question marks in the animation.
- Deploy each change when it is done. Deploy every change the day it is finished. It waits almost no time, and when one breaks, there is one change to check, so it is found and undone fast.
- The four numbers. Research by the DORA team tracks four numbers:how often you deployhow long a change waits to go livehow many deploys break somethinghow long it takes to recoverTheir finding: teams that deploy small and often do better on all four, not worse.
An example
A team finishes 5 changes a week and deploys once, on Friday.
Monday's change waits 4 days. Friday's deploy breaks, and there are 5 changes to check: half a day to find the bad one.
Deploying daily: each change waits under a day. Wednesday's deploy breaks, it carried 1 change, and it is undone in 10 minutes.
Further reading
- DORA's software delivery metrics: the four keys, DORA. What each of the four numbers means and how to measure it. Start with this one.
- Working in small batches, DORA. Why small changes are safer, with ways to make changes smaller.
- FrequencyReducesDifficulty, Martin Fowler. A short page on why the painful thing gets easier when you do it more often.