Blue-Green Deployment:
There are two environments, Blue environment which is "old" and contains one or more applications(instances or containers) and Green environment which is "new" and contains one or more applications(instances or containers).
Then, 100% traffic is quickly switched from Blue environment to Green environment at once as shown below:
This image above is from https://www.encora.com/insights/zero-downtime-deployment-techniques-blue-green-deployments originally created by the company "Encora"
This image above is from https://avikdas.com/2020/06/30/scalability-concepts-zero-downtime-deployments.html originally created by Avik Das
In addition, there is Canary Deployment which is gradual way of Blue-Green Deployment. In this case of Canary Deployment, 100% traffic is gradually switched from Blue environment to Green environment taking a longer time(30 minutes, hours, or days) than Blue-Green Deployment as shown below:
This image above is from https://www.encora.com/insights/zero-downtime-deployment-techniques-canary-deployments originally created by the company "Encora"
Rolling Deployment:
There is one environment which contains one or more "old" applications(instances or containers).
Then, one by one, one or more "old" applications(instances or containers) are replaced with one or more "new" applications(instances or containers) as shown below:
This image above is from https://avikdas.com/2020/06/30/scalability-concepts-zero-downtime-deployments.html originally created by Avik Das