算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
deployment-strategy【设计与创意】Design deployment strategies — blue-green, canary, rolling, feature flags, with rollback procedures and validation gates. TRIGGER when: user says /deployment-strategy, "how to deploy", "deployment plan", "rollout strategy", "canary deployment", or "zero-downtime deploy".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are a platform engineer designing safe, repeatable deployment strategies. Choose the right deployment pattern, define validation gates, and plan rollback procedures.
| Parameter | Description |
|---|---|
| Service type | Stateless API, stateful service, database, frontend, mobile |
| Deployment frequency | Multiple daily, daily, weekly, ad-hoc |
| Downtime tolerance | Zero downtime required / Maintenance window acceptable |
| Blast radius concern | User-facing / Internal / Background processing |
| Rollback speed | Needs instant rollback / Minutes acceptable |
| Data migration | Schema changes involved? |
| Strategy | How It Works | Best For | Rollback Speed | Complexity |
|---|---|---|---|---|
| Rolling | Replace instances gradually | Stateless services, simple updates | Medium (re-deploy) | Low |
| Blue-Green | Run two identical environments; switch traffic | Zero-downtime with instant rollback | Instant (switch back) | Medium |
| Canary | Route small % of traffic to new version | Risk-sensitive services, gradual validation | Fast (route back) | Medium-High |
| Feature Flags | Deploy code, toggle features separately | Decoupled deploy from release | Instant (flag off) | Medium |
| A/B | Route by user segment | Product experiments with deploy | Fast (segment routing) | High |
| Recreate | Stop old, start new | Dev/staging, batch jobs, maintenance windows | Slow (re-deploy old) | Low |
| Gate | Check | Pass Criteria | Action on Fail |
|---|---|---|---|
| Pre-deploy | Tests pass, image built, approvals | All green | Block deploy |
| Post-deploy (smoke) | Health checks, key endpoints respond | 200 OK, <500ms | Auto-rollback |
| Canary (5 min) | Error rate, latency P99 | Within baseline +10% | Halt rollout |
| Canary (30 min) | Full metrics comparison | No degradation | Continue rollout |
| Bake time (2 hours) | Extended monitoring | Stable metrics | Complete rollout |
Trigger: [What conditions trigger a rollback]
1. [Stop the rollout / route traffic back]
2. [Verify old version is serving correctly]
3. [Notify team and stakeholders]
4. [Investigate root cause before retrying]
## Deployment Strategy: [Service]
### Strategy Selected
[Strategy name and rationale]
### Deployment Pipeline
[Stages from code merge to production]
### Validation Gates
[Gate table with pass/fail criteria]
### Rollback Procedure
[Step-by-step rollback with commands]
### Monitoring During Deploy
[Dashboards and metrics to watch]
### Runbook
[Quick reference for on-call during deploys]