Blue-Green Deployment Strategy
At Ambrose Fox, we are always looking for ways to improve what we do. An essential part of our work is researching strategies and ideas while keeping up-to-date with the newest technologies. It’s exciting to discover something innovative that will enhance performance, eradicate inefficiencies and generally make things better.
Currently, our method for hosting applications is to group them together and host them on dedicated servers. Each server runs Apache, various PHP versions and hosts each application’s MySQL database.
While this method works and allows for easy deployments via SFTP, it does not allow for any redundancy and is not very resilient. Therefore, if something goes wrong with an update to an application, the site would be unusable until we fixed the issue.
A Blue-Green deployment strategy is where two identical copies of the same application run in parallel at the same time. Only one copy (e.g. Blue) will be live and receive traffic, the other will remain offline (e.g Green). A load balancer in front of the Blue and Green servers keeps track of which one is live. When an update is released for an application, only the offline server will receive it and the load balancer will start sending the traffic to it. So Green is now live and Blue is offline.
This strategy works on alternating which copy of an application is the live version. One copy is only ever one update ahead of the other, and we can very quickly switch the traffic back after an update if there is a problem.
Our goal is to move to a Blue-Green deployment strategy for all our solutions and in doing so achieve the following:
- Zero downtime deployments for all containerised applications.
- Greater data availability in outages, by hosting our databases independently
- Improved redundancy and resiliency through running multiple copies and the ability to recover quickly from system failures
A great potential for Ambrose Fox
Meet the Team: Q&A at the Coffee Machine with Matt Beck
Ambrose Fox would like to introduce our Lead Web Developer, Matt Beck.
Client story: Anderson Moores Veterinary Specialists
Providing the highest quality independent surgical and medical care for cats and dogs