Perseverance – rolling back or fixing forward
If the reason for the production failure is a new change, a quick resolution may involve reverting to the state of the system before the change, or if a fix is found, immediately running it through the CI/CD pipeline to immediately deploy.
Some of the methods for rolling back or rolling forward a fix include the following ones. Let’s examine them in detail.
Rolling back with blue/green deployment
A blue/green deployment makes use of two production environments: one live and the other on standby. The live environment is the one that customers use, while the standby environment is there as a backup. The change is made on the standby environment and then the standby environment is made live. You can see an illustration of this type of deployment here:
Figure 6.1 – Blue/green deployment: environment switch
As the preceding diagram indicates, both environments are still present, but...