The diagram below shows several common ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ ๐ฌ๐ญ๐ซ๐๐ญ๐๐ ๐ข๐๐ฌ.
๐๐ข๐ ๐๐๐ง๐ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
Big Bang Deployment is quite straightforward, where we just roll out a new version in one go with service downtime. Preparation is essential for this strategy. We roll back to the previous version if the deployment fails.
๐ก No downtime โ
๐ก Targeted users โ
๐๐จ๐ฅ๐ฅ๐ข๐ง๐ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
Rolling Deployment applies phased deployment compared with big bang deployment. The whole plant is upgraded one by one over a period of time.
๐ก No downtime โ
๐ก Targeted users โ
๐๐ฅ๐ฎ๐-๐๐ซ๐๐๐ง ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
In blue-green deployment, two environments are deployed in production simultaneously. The QA team performs various tests on the green environment. Once the green environment passes the tests, the load balancer switches users to it.
๐ก No downtime โ
๐ก Targeted users โ
๐๐๐ง๐๐ซ๐ฒ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
With canary deployment, only a small portion of instances are upgraded with the new version, once all the tests pass, a portion of users are routed to canary instances.
๐ก No downtime โ
๐ก Targeted users โ
๐
๐๐๐ญ๐ฎ๐ซ๐ ๐๐จ๐ ๐ ๐ฅ๐
With feature toggle, A small portion of users with a specific flag go through the code of the new feature, while other users go through normal code. This can be used in combination of other strategies: either the new branch of code is upgraded in one go, or only a few instances are upgraded with new code.
๐ก No downtime โ
๐ก Targeted users โ