1 min read

Blue/Green Deployment

Blue/Green Deployment

In a traditional approach to application deployment, engineers fix the failed deployments by deploying an older stable version of the same application. Although, this approach works but there are a lot of shortcomings with it. The rollback is a cumbersome process and takes more than usual time which results in a longer downtime period of the application deployed. A new approach which is a lot more agile in nature, scalable and automated to have the deployment seamlessly done is Blue/Green deployment.

Methodology

Blue/green deployments provide near zero downtime release and easy rollback capabilities. The fundamental idea behind blue/green deployment is to shift traffic between two identical environments that are running different versions of your application. The blue environment represents the current application version serving production traffic. In parallel, the green environment is staged running a different version of your application. After the green environment is ready and tested, production traffic is redirected from blue to green.

BG.png

Benefits

  • Reduces risk by allowing time for full regression testing prior to the release of a new version.
  • Near zero-downtime deployments
  • Fast rollbacks
  • Allows you to test disaster recovery procedures
  • As new code is already loaded onto a parallel environment and the live site is unaffected, the Release and Test teams have no time pressures on quickly completing the push of new code to the website during a planned outage

This deployment is possible with almost all the cloud providers by using various services which they offer. Some services offered by different cloud providers to set up a blue/green deployment are:

DNS Service

DNS services runs on a global network of DNS servers providing customers with added features, such as routing based on health checks, geography, and latency. DNS is a classic approach to blue/green deployments, allowing administrators to direct traffic by simply updating DNS records in the hosted zone.

Load Balancing

Another common approach to routing traffic for a blue/green deployment is through the use of load balancing technologies. Elastic Load Balancing distributes incoming application traffic across designated Elastic Compute Cloud instances.

Auto Scaling

Auto Scaling helps maintain application availability and lets customers scale instance capacity up or down automatically according to defined conditions. Both Auto Scaling termination policies and Standby state enable blue/green deployment.

Application deployment has associated risks. But the advent of cloud computing, deployment and automation frameworks, and new deployment techniques, such as blue/green, help mitigate risks, such as human error, process, downtime, and rollback capability.

What are the topmost NodeJS practices for developers?.

What are the topmost NodeJS practices for developers?.

Node.js, a platform based on Chrome's JavaScript motor assists with growing quick, adaptable system applications. It utilizes an occasion driven,...

Read More
PoS System for a retail business to boost growth

PoS System for a retail business to boost growth

What could be the ultimate goal for each business person? Increase the number of sales!!! In any case, driving traffic and offering amazing...

Read More