Code of the Day
AdvancedProduction & Delivery

Lab: ship safely

Make the delivery calls — deployment strategy, rollback, config, and secrets.

Lab · optionalFundamentalsAdvanced9 min
By the end of this lesson you will be able to:
  • Choose a deployment strategy for a situation
  • Prioritise rollback over diagnosis under pressure
  • Keep config and secrets out of the code

Optional scenario lab. Delivery is a series of judgment calls under pressure. Practice them here.

Scenarios: shipping to production

  1. 1.
    A deploy you just shipped broke production. Fastest mitigation?
  2. 2.
    Releasing a change to a small slice of users first, watching metrics, then widening, is a:
  3. 3.
    An API key was committed to a private repo months ago. It should be treated as compromised and rotated.
  4. 4.
    The same build artifact runs in dev, staging, and prod. What should differ between them?

The throughline: make rollback trivial, ship in small blast radii, and keep config and secrets outside the code.

Finished reading? Mark it complete to track your progress.