Operations Deployment Zero Downtime

Zero-Downtime Deployment Prompt

Ship without a maintenance window — a deployment strategy (blue-green or rolling) that keeps the service up, handles in-flight requests, and stays compatible across versions.

Overview

A deploy that needs downtime is a deploy you'll postpone — and postponed deploys get big and risky. This prompt designs a zero-downtime strategy: blue-green or rolling, how traffic shifts, how in-flight requests and connections drain, and the backward-compatibility rules (API, schema, sessions) that let two versions run side by side during the switch.

Why This Works

  • Choosing the pattern on real constraints beats cargo-culting blue-green
  • Compatibility rules are what make two-version coexistence safe, not luck
  • Connection draining is the detail that separates zero-downtime from dropped requests

Best for

  • Services where downtime is unacceptable or expensive
  • Frequent deploys that can't each take a window
  • Stateful services that complicate naive deploys

Not for

  • Internal tools where a brief window is fine
  • The data-migration specifics — use the Database Migration Plan Prompt

Use cases

  • Designing a blue-green or rolling deploy
  • Eliminating the maintenance window from releases
  • Handling in-flight requests during a version switch

Tip: Save time by exploring related resources and tools that integrate with this workflow.

Explore all resources