Welcome to Coding Beez Learn at your own pace with structured courses designed for students and professionals. Find out more!

CodingBeez Logo

Software Development Lifecycle (SDLC): End-to-End Overview

  • Home
  • Software Development Lifecycle (SDLC): End-to-End Overview
Maintenance & Operations Phase

Deployment Strategies


A deployment strategy defines how new code is rolled out to live users while minimizing risk and avoiding downtime. The right strategy depends on your application's tolerance for risk, cost, and system architecture.

Major Deployment Strategies

1. Blue-Green Deployment

How it works: Two identical production environments exist. Blue runs the active version, while Green runs the new version. Once Green is thoroughly tested and verified, router traffic is switched instantly from Blue to Green.

  • Pros: Zero downtime; instantaneous rollback if an issue occurs.
  • Cons: Resource-intensive and expensive (requires double the infrastructure).

2. Canary Deployment

How it works: The new release is deployed to a tiny subset of servers or users (e.g., 5% of traffic). If real-time monitoring shows no errors, the release is incrementally rolled out to 100% of the user base.

  • Pros: Minimizes blast radius; allows real-user testing under actual traffic.
  • Cons: Complex router and load-balancer configurations; requires robust monitoring tools.

3. Rolling Deployment

How it works: Applications are updated incrementally across instances behind a load balancer (e.g., updating 2 out of 10 nodes at a time) until all nodes are running the new version.

  • Pros: No extra infrastructure required; zero downtime.
  • Cons: For a period of time, different users may interact with different versions of the app; slow rollback process.

4. Recreation (Big Bang) Deployment

How it works: The old application version is shut down completely, and the new version is deployed in its place.

  • Pros: Simple and cheap to set up.
  • Cons: Requires planned downtime; carries high risk if things break.
Key Takeaway: Choose Canary for high-traffic apps where safety is paramount, Blue-Green when instant rollbacks are required, and Rolling for steady infrastructure efficiency.

🔐 Login to mark lessons as completed and earn credits.