lesson
CI/CD & Observability
GitHub Actions, deployment strategies, metrics/logs/traces, and alerting.
CI/CD & Observability
CI/CD Pipeline
Code push → Lint → Test → Build → Deploy to staging → Integration tests → Deploy to prodDeployment Strategies
| Strategy | How it works | Risk | Rollback speed |
|---|---|---|---|
| Rolling | Replace pods gradually | Medium | Medium |
| Blue-Green | Two identical environments, switch traffic | Low | Instant |
| Canary | Route 5% of traffic to new version, monitor, then scale | Lowest | Fast |
| Recreate | Kill all old, start all new | Highest | Slow |
The Three Pillars of Observability
Metrics (Prometheus / Datadog)
Numeric measurements over time. The four golden signals:Logs (ELK / Loki)
Structured events with context:{"level":"error","msg":"payment failed","user_id":"123","error":"card_declined","ts":"2024-01-01T12:00:00Z"}Traces (Jaeger / OpenTelemetry)
Follow a single request across multiple services. Each span has: service name, operation, duration, parent span.SLOs, SLIs, SLAs
Sign in to use the AI study buddy on this lesson.