What’s the difference: A/B Testing VS Blue/Green Deployment?
Tags: deployment, testing, general
Published: 2018-11-16 18:06:03

---
title: "What’s the difference: A/B Testing VS Blue/Green Deployment?"
published: true
description: "In today’s technology world many words and phrases come and go and even change meaning depending on the context. In this article we look at two similar sounding, and somewhat related, distinct terms: A / B Testing and Blue / Green Deployments."
tags: #deployment, #testing, #general
cover_image: https://blog.davidjeddy.com/wp-content/uploads/2018/10/path-success-768x576.jpg
---

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

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

<!-- wp:paragraph -->
<p>In today's technology world many words and phrases come and go and even change meaning depending on the context. In this article we look at two similar sounding, and somewhat related, distinct terms: A / B Testing and Blue / Green Deployments.</p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>A / B Testing</h2>
<!-- /wp:heading -->

<!-- wp:image {"id":1181,"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/11/ab-testing.png" alt="" class="wp-image-1181"/><figcaption>Sourced from https://www.optimizely.com &lt;- Cool people.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p><strong>What is it?</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As explained by Wikipedia A / B Testing is comparing two version of the same subject and measuring the resultant responses. Chevy or Ford? Both are car makers, both make sedans, both have 4 doors and seat families. One has tinted windows while the other has a fancy radio. Which do you pick? Congrats, you have just been exposed to A / B Testing (contrived, I know, but you get the point I hope). Two very similar things, slightly different, measure user response rate.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>What it is not.</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It is not a magical marketing tool, nor an engineering fix-all. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Blue / Green Deployments</h2>
<!-- /wp:heading -->

<!-- wp:image {"id":1182,"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://blog.davidjeddy.com/wp-content/uploads/2018/11/blue_green_deployments.png" alt="" class="wp-image-1182"/><figcaption>Sourced from https://martinfowler.com/ &lt;- Smart dude.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p><strong>What is it</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>"Blue-green deployment is a technique that reduces downtime and risk by running two identical production environments called Blue and Green."- cloudfoundry. Could not have said it better myself. Two environments, both production. One might have version 1.0.0 (green) while blue has 1.0.1. Many times traffic is slowly increased to blue while watching for errors or undesirable changes in user behavior. Once all the traffic is moved off from the green (1.0.0) version the environment is shut down. At that point "blue" becomes "green" and the cycle starts over.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>What it is not</strong>.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It is not a magical engineering tool, nor a marketing fix-all. </p>
<!-- /wp:paragraph -->

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

<!-- wp:image {"align":"center"} -->
<div class="wp-block-image"><figure class="aligncenter"><img src="https://i.imgur.com/AI8Tg15.jpg" alt=""/><figcaption>What I would like to do sometimes.</figcaption></figure></div>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p><strong>What is Similar</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Two versions of the same core product is functional at the same time. Measure response and react accordingly. A successful A / B testing result may directly lead to a Blue / Green Deployment. A failed Deployment may lead to additional A / B Testing feature requirements</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><strong>What is Different</strong></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A / B is a behavior monitoring paradigm. Blue / Green is an engineering process. That's it. The two can, and often are, used together with the same end goal: improve the user experience in regards to the product.</p>
<!-- /wp:paragraph -->

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

<!-- wp:paragraph -->
<p><strong>Blue / Green Deployments:</strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html">https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html</a></li><li><a href="https://sweetibharti.wordpress.com/2016/11/11/red-black-deployment-on-aws/">https://sweetibharti.wordpress.com/2016/11/11/red-black-deployment-on-aws/</a></li><li><a href="https://martinfowler.com/bliki/BlueGreenDeployment.html">https://martinfowler.com/bliki/BlueGreenDeployment.html</a></li><li><a href="https://rollout.io/blog/blue-green-deployment/">https://rollout.io/blog/blue-green-deployment/</a></li><li><a href="https://octopus.com/docs/deployment-patterns/blue-green-deployments">https://octopus.com/docs/deployment-patterns/blue-green-deployments</a></li><li><a href="https://stackoverflow.com/questions/45259589/whats-the-difference-between-red-black-deployment-and-blue-green-deployment">https://stackoverflow.com/questions/45259589/whats-the-difference-between-red-black-deployment-and-blue-green-deployment</a></li></ul>
<!-- /wp:list -->

<!-- wp:paragraph -->
<p><strong>A / B Testing</strong></p>
<!-- /wp:paragraph -->

<!-- wp:list -->
<ul><li><a href="https://en.wikipedia.org/wiki/A/B_testing">https://en.wikipedia.org/wiki/A/B_testing</a></li><li><a href="https://vwo.com/ab-testing/">https://vwo.com/ab-testing/</a></li><li><a href="https://www.optimizely.com/optimization-glossary/ab-testing/">https://www.optimizely.com/optimization-glossary/ab-testing/</a></li><li><a href="https://unbounce.com/landing-page-articles/what-is-ab-testing/">https://unbounce.com/landing-page-articles/what-is-ab-testing/</a></li><li><a href="https://blog.hubspot.com/marketing/how-to-do-a-b-testing">https://blog.hubspot.com/marketing/how-to-do-a-b-testing</a></li><li><a href="https://techcrunch.com/2014/06/29/ethics-in-a-data-driven-world/">https://techcrunch.com/2014/06/29/ethics-in-a-data-driven-world/</a></li></ul>
<!-- /wp:list -->

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

<!-- wp:paragraph -->
<p>Like many topics in niche eco-systems concepts can have different labelling  but mean the same across other niche arenas; or be totally different though they share the same name (*cough * Lambda *cough*). Be mindful of the context and audience when using narrowly scoped concept labels.</p>
<!-- /wp:paragraph -->