Skip to content

Architecture & Patterns: Production Deployment

Production Patterns

Architecture View

graph LR
  A[Build and tests] --> B[Eval gate]
  B --> C[Canary release]
  C --> D[Metric checks]
  D --> E[Promote or rollback]

Common Failure Modes

Common Failure Modes

  • Missing eval gates in deployment policy.
  • Promoting canary based on short observation windows.
  • Rollback logic requiring manual, error-prone steps.

Interview Q&A

Q: Interview Q: What metrics are mandatory before canary promotion?

At minimum: latency, error rate, and quality/eval deltas against baseline. Promotion should require all key thresholds to pass.

Q: Interview Q: How do you keep rollback fast during incidents?

Use prebuilt scripts, immutable artifact versions, and automated trigger logic tied to monitored thresholds.