What's the difference: Continuous Integration, Continuous Delivery, and Continuous Deployment.
Tags: devops, discuss
Published: 2018-11-01 20:52:45

---
title: What's the difference: Continuous Integration, Continuous Delivery, and Continuous Deployment.
published: true
description: DevOps has a bunch of new goals, practices, and terms. Clarify three of them here.
tags: devops, discuss
cover_image: https://blog.davidjeddy.com/wp-content/uploads/2018/11/DevOpsGears.png
---

[*Cross posted from my blog.](https://blog.davidjeddy.com)

<!-- wp:paragraph -->
<p>DevOps has a bunch of new goals, practices, and terms. Many of which are mixed up, misused, or just plain wrongly defined by people who do not internalize the specific differences due to the very technical nature of DevOps. Here we break down three of the most common terms in layman's terms and try to provide a clear example that delimites each of the three.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Continuous Integration</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Continuous Integration specifically speaks to the process of constantly combining a change set into the source of truth. Typically this is a developers pushing changed code to a shared remote. For example a team of 12 developers could work on 18 different GiT branches containing over 67 commits per day. That is a lot of changes! Over the course of a work week the number of changes commits could easily top&nbsp;300 commits. When the time comes to deploy a new release all these changes haves to be merged into a single branch. As if the release was not stressful enough the team also must ensure it all works, together. Those 300+ changes per week will, I promise, result in problems. A problem that means staying late, dealing with the pressure from the business owners, stressing due to fearing release days, the business owners not trusting you nor your team's ability to deliver on time and on target. No one wins in this type of situation.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":842} -->
<figure class="wp-block-image"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/09/Nonsensical_1_top.png" alt="" class="wp-image-842"/><figcaption>I was told images in articles keep the reader's attention.</figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Enter Continuous Integration. Take that same team of developers, in that organization, but instead of waiting until release day to combine changes together multiple times a day. The changes are <em>continuously integrated</em> into a target GiT branch to ensure that merge issues (when a file is changes in two ways from different people) are dealt with immediately when the changes are made. Not when trying to deal with a release. (This is part of the 'shift left' concept in DevOps.) When release day comes around the changes are already merged and issued corrected long before the release event occurs.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Continuous Delivery</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Continuous Delivery, as a concept, is the logical progression from nothing to&nbsp;Continuous Integration with an additional step towards full automation. In order to provide&nbsp;Continuous Delivery proper automated quality assurance steps such as automated testing, monitoring, altering, and metrics need to be in place. Why? because&nbsp;Continuous Delivery means any changes applied to a piece of software are constantly ready for delivery. At the push of a button the software should deploy to a production environment. You 100% must have a high level of assurance everything works, nothing breaks.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":841} -->
<figure class="wp-block-image"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/09/Nonsensical_2_bottom.png" alt="" class="wp-image-841"/><figcaption>I really like the nonsensical infographics from https://chadhagen.com/Nonsensical-Infographics</figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>The way I mentally separate&nbsp;Continuous Delivery from&nbsp;Continuous Deployment is to think of it as a UPS package: Delivery is on your doorstep after being paid for, processed, tested, handled, and ready to be used; Continuous Deployment the package is unpacked, installed, and being used.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Continuous Deployment</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Which brings us to the last of our concepts for today: Continuous Deployment. Of the three I think is the easiest to define and conceptualize. As the name implied&nbsp;Continuous Deployment is the process of <em>continuously deploying</em> a software to a place where user (read: real people) can use the application.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":944,"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/10/square_nonsense_infographic_med.jpeg" alt="" class="wp-image-944"/><figcaption>They looks so neat.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Continuous Deployment is the Holy Grail of automation and one many businesses have the hardest time adopting.Buty is seems so easy after&nbsp; achieving Continuous Integration success. So why is delivery so hard to accept? Well, because it means very-single-commit to the deployment branch get deployed. No human intervention. No quality gates. No change control committee approvals. If a change is received, a change gets deployed.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>An Example Implementation Path</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>As a developer you are working on feature-1234. As part of the workflow you hide feature-1234 behind a feature flag in the application. Before lunch and at the end of the office day you push your changes and correct any merge conflicts immediately. This is&nbsp;Continuous Integration.&nbsp;</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As part of the automation policy within your organization you must create unit tests, integrations checks, and end-to-end scenarios in order for the commit to be allowed into the origin repository. If automations all pass the commit is allowed to be applied to the source repository. This is&nbsp;Continuous Delivery.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":1098,"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/11/nonsensical_1_web_crop_1.png" alt="" class="wp-image-1098"/><figcaption>Last one, I promise.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Given the above the works stably and the organization sees the value in receiving end-user feedback quickly and&nbsp;trust the engineering teams to keep a tight lid on outages and minimize the blast radius when something does do wrong (thus allowing the organization to get ahead of the competition). With the assumption all the automated quality assurance and test metrics pass, the code change is immediately deployed to a live production environment. This is&nbsp;Continuous Deployment.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Resources</h2>
<!-- /wp:heading -->

<!-- wp:list -->
<ul><li><a href="https://jeffkreeftmeijer.com/git-flow/">Git Flow</a></li><li><a href="http://devopsmaturity.com/">DevOp Maturity Survey</a></li><li><a href="https://stackify.com/continuous-delivery-vs-continuous-deployment-vs-continuous-integration/">https://stackify.com/continuous-delivery-vs-continuous-deployment-vs-continuous-integration/</a></li><li><a href="https://www.atlassian.com/continuous-delivery/ci-vs-ci-vs-cd">https://www.atlassian.com/continuous-delivery/ci-vs-ci-vs-cd</a></li><li><a href="https://puppet.com/blog/continuous-delivery-vs-continuous-deployment-what-s-diff">https://puppet.com/blog/continuous-delivery-vs-continuous-deployment-what-s-diff</a></li><li><a href="https://semaphoreci.com/blog/2017/07/27/what-is-the-difference-between-continuous-integration-continuous-deployment-and-continuous-delivery.html">https://semaphoreci.com/blog/2017/07/27/what-is-the-difference-between-continuous-integration-continuous-deployment-and-continuous-delivery.html</a></li></ul>
<!-- /wp:list -->

<!-- wp:heading -->
<h2>Conclusion</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Dev(Chat/Git/Sec/No)Ops is a ever changing place. The terms and acronyms quickly become confusing. I hope this helps clear up some of the most commonly used phrases.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":1037,"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/10/path-success.jpg" alt="" class="wp-image-1037"/><figcaption>Every story of DevOps adoption ever.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>It is not easy, but if you internalize the fact that '<strong>Every</strong>&nbsp;business is a&nbsp;<strong>software</strong>&nbsp;business' (Watts S. Humphrey) the sooner we realize software engineering is like any other form of engineering the better. We need to apply the same principles in order to reap the same rewards.&nbsp; Greater visibility, stronger products,&nbsp; flexible internals,&nbsp; faster velocity, and the respect of being a craftsmanship career. This allows organizations to be excellent; who doesn't want to <a href="https://www.theguardian.com/culture/2018/sep/10/how-we-made-bill-and-teds-excellent-adventure-stephen-herek-alex-winter#i">be excellent</a>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>With that what do you think of DevOps? Do you have experience in organizations implementing DevOps/CI/CDs? What is your opinion on the perceived disruption to organizations and markets?</p>
<!-- /wp:paragraph -->