Deployment frequency is how often a team deploys changes to production, counted per unit of time. A deployment is the act of putting a build into an environment. DORA stands for DevOps Research and Assessment, the research program that defines deployment frequency as one of its software delivery metrics, with lead time for changes, change failure rate, and failed deployment recovery time. Lead time for changes is the median time from a commit until the change is deployed in production. Change failure rate is the proportion of production deployments that degrade the service and need remediation. Failed deployment recovery time is the median time to restore service after one of those deployments.

What counts as a deployment

Deployment frequency counts only deployments that reached production. A deployment to staging is a different deployment, even when it carries the same release, and it is not in the count. A deployment that never reaches production is also excluded.

A deployment that reaches production and later needs remediation is still counted. The share that needs remediation is the change failure rate, not this measure.

The count is of deployments, not releases. A release is a version made available for use. The same release can be deployed more than once, and each production arrival is a separate count. Release vs deployment is that split.

Putting a build into production is not the same as showing new behavior to users. A feature flag can change what users see with no further deployment. A release to end users with no separate deployment, such as turning a feature flag on, counts when the team treats that release as the production release, and is not counted again when it is the same event as a deployment.

How to count it

State the window: a day, a week, a month, or another period you name. The measure is the number of deployments that reached production in that window, divided by the length of the window. Teams also report the count for the window, such as nine deployments in seven days, which is the same measure written as a count rather than a rate.

On DORA's software delivery performance metrics, deployment frequency is also the number of deployments over a given period, or the time between deployments. Those are two ways to state the same count-per-time measure.

The records to count come from deployments and their deployment outcomes. The outcome of one deployment says whether it reached the environment, and whether the service then had to be remediated. The outcome of one deployment is not the frequency, and it is not the change failure rate.

"Deploy frequency" and "deployment frequency"

"Deploy frequency" and "deployment frequency" are the same metric. Both names refer to deployment frequency.

How it relates to lead time for changes

Lead time for changes is how long a change takes from a commit until it is deployed in production. Over a window, that measure is the median of those durations. Deployment frequency is a count of the production deployments, per unit of time. The two measures answer different questions: how often production is reached, and how long a change waited to get there. A mean of those same lead-time durations is not lead time for changes, and it is not deployment frequency. "Mean time to deploy" is sometimes used in search for this topic; it is not a name for deployment frequency.

DevOps Research and Assessment (DORA) metrics and mean time to restore (MTTR) places this count beside the other DORA software delivery measures, and beside mean time to restore, which is a different mean.

A worked example

The figures in this section are invented. They are not industry statistics and not a benchmark.

Fictional Lantern Works records this week of deployments:

DayWhat happenedCounted in the frequency?
MondayThree production deployments reachedYes, 3
TuesdayOne production deployment reachedYes, 1
WednesdayOne staging deployment; one production deployment reached and was later rolled back; one production deployment never arrivedOnly the one that reached production, 1
ThursdayTwo production deployments reachedYes, 2
FridayTwo production deployments reachedYes, 2
SaturdayNone0
SundayNone0

Nine deployments reached production in seven days. The one later rolled back is in the nine. The staging deployment is not. The one that never arrived is not. Deployment frequency for that window is 9 deployments in 7 days, or 9/7 deployments per day. The change failure rate for the same nine is a different measure, and the failed deployment recovery time after the rollback is a median recovery, not this count.