1/ ๐๐ก๐๐ญ ๐ข๐ฌ ๐ญ๐ก๐ ๐ฉ๐ซ๐จ๐๐๐ฌ๐ฌ ๐๐จ๐ซ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ข๐ง๐ ๐๐ก๐๐ง๐ ๐๐ฌ ๐ญ๐จ ๐ฉ๐ซ๐จ๐๐ฎ๐๐ญ๐ข๐จ๐ง?
The diagram below shows several common ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ ๐ฌ๐ญ๐ซ๐๐ญ๐๐ ๐ข๐๐ฌ.
2/ ๐๐ข๐ ๐๐๐ง๐ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
Big Bang Deployment is quite straightforward, where we roll out a new version in one go with service downtime. We roll back to the previous version if the deployment fails.
๐ก No downtime โ
๐ก Targeted users โ
3/ ๐๐จ๐ฅ๐ฅ๐ข๐ง๐ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
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 โ
4/ ๐๐ฅ๐ฎ๐-๐๐ซ๐๐๐ง ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
In blue-green deployment, two environments are deployed in production simultaneously. Once the green environment passes the tests, the load balancer switches users to it.
๐ก No downtime โ
๐ก Targeted users โ
5/ ๐๐๐ง๐๐ซ๐ฒ ๐๐๐ฉ๐ฅ๐จ๐ฒ๐ฆ๐๐ง๐ญ
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 โ
6/ ๐
๐๐๐ญ๐ฎ๐ซ๐ ๐๐จ๐ ๐ ๐ฅ๐
With the 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.
๐ก No downtime โ
๐ก Targeted users โ
7/ ๐ Over to you: Which deployment strategies have you used?
8/ I hope you've found this thread helpful.
Follow me @alexxubyte for more.
Like/Retweet the first tweet below if you can:
Enjoy this thread?
You might like our System Design newsletter as well:
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.