📘

Deployment Strategies

Ship safely with progressive delivery.

v1 devops curated
🤖

Install 安装

curl -sSL https://updating.cc/skills/devops/deployment-strategies/SKILL.md -o ~/.agents/skills/devops__deployment-strategies/SKILL.md

SKILL.md Preview 技能内容预览

---
name: Deployment Strategies
description: Ship safely with progressive delivery.
---
# Deployment Strategies

How you push new code determines how badly a bad release hurts. Progressive strategies expose problems to a small slice before everyone.

## Strategies
- **Rolling.** Replace instances gradually. Simple; slow rollback if bad.
- **Blue-green.** Stand up the new version alongside the old; switch traffic when ready. Instant switch and rollback; needs 2× capacity.
- **Canary.** Send 1% of traffic to the new version; watch metrics; ramp up if healthy. Catches the bad release in 1% of users, not 100%.
- **Feature flags.** Decouple deploy from release. Ship the code dark; turn it on for a subset; ramp or kill instantly without redeploying.

## Choose
- High-stakes, hard-to-revert changes → canary + flags.
- Low-risk, well-tested → rolling is fine.
- The cost of a bad release to all users should drive how much safety you invest.