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
One of the most important parts of what we do, you'll rarely ever see.
English Woodlands Timber: Delivery Cost Calculator
Ambrose Fox has added a delivery cost calculator to EWT's business management platform, Galaxy.
Genesis - A Project Finally Realised
18 years later, we've finally produced our vision of an integrated agency platform. It was worth the wait.