Course contentsShow
← Computer Science
Lesson 2391 of 2,87253. Agile and Software ProcessFree lesson

Deployment Pipelines and Stages

Structuring multi-stage pipelines with development, staging, and production environments with progressive validation.

Deployment Pipelines and Stages

What you'll learn: How to structure multi-stage pipelines that progressively validate code from development through staging to production.

The Core Idea

A deployment pipeline is an automated sequence of stages that code passes through from commit to production release. Think of it like airport security checkpoints: each stage validates different aspects, and code must pass all checks before reaching passengers (users).

The typical three-tier structure separates environments with increasing production-likeness:

The Three Key Stages

Development Environment

Your first checkpoint runs basic builds and unit tests. It catches obvious breaks fast—typically within minutes. This environment is volatile, constantly receiving new commits.

Staging Environment

The middle checkpoint mirrors production closely but isn't customer-facing. Here you run integration tests, performance tests, and security scans. Real database schemas, actual service dependencies—everything production-like except the traffic. This is where you catch issues that only appear when components interact.

Production Environment

The final stage: real users, real data, real stakes. Code reaches here only after passing all prior validations. Many teams deploy here with additional safeguards like canary releases or blue-green deployments.

Progressive Validation

Each stage acts as a filter with stricter criteria:

  • Development: "Does it compile? Do unit tests pass?"
  • Staging: "Does it work with real services? Can it handle load?"
  • Production: "Is it safe to show customers?"

Failed checks halt progression, preventing bad code from advancing. This creates fast feedback (quick failures in dev) while maintaining production safety (extensive validation in staging).

Key Takeaway: Deployment pipelines structure automated validation across development, staging, and production stages, progressively filtering code with increasingly rigorous checks to balance speed with safety.