Templates / flowchart

Blue-green deployment

Deploying to an idle green environment, smoke testing, and switching traffic with a rollback path.

Open in studio

Preview

Mermaid 11 renderer

Rendering preview...

Mermaid source

flowchart

flowchart LR
    build[Build new version] --> deployGreen[Deploy to green environment]
    deployGreen --> smoke{Smoke tests pass?}
    smoke -->|no| rollbackGreen[Tear down green]
    smoke -->|yes| switchTraffic[Switch router to green]
    switchTraffic --> monitor{Error rate normal?}
    monitor -->|no| rollbackSwitch[Switch router back to blue]
    monitor -->|yes| retireBlue[Retire old blue environment]

More templates