Production DeploymentVol. 16 · Part XVI
0 / 0

Shelves / Production Deployment

Software Engineering · Volume 16

Production Deployment

Part XVI of the Software Engineering roadmap, written out as a textbook for beginners and experienced engineers alike. Getting software into production and keeping it there: the application lifecycle and walking skeletons, a reference production architecture, production readiness, environment strategy, database deployment safety, zero-downtime deployment and disaster recovery, ending with a launch-week game day. Start with the Start Here chapter (one change shipped from pipeline to recoverable production). Every chapter opens with a plain-language on-ramp, a check-yourself quiz and a six-level "how deep to go" ladder, and closes with a lab of real measurements (a pipeline catching planted bugs, the request path timed hop by hop, a service load-tested to saturation, reproducible builds and secret scans, PostgreSQL lock queues and backfills on 2 million rows, rolling deploys under load with and without draining, and an accidental DELETE recovered with point-in-time recovery) and a one-page revision sheet. A projects chapter turns it all into a portfolio.

10 chapters◷ ~3 h to read ✓ 213 topics? 10 quizzes

Two ways to read this book

New to the subjectStart with the opening Start Here chapter and read chapters in order. In each chapter, read the Start here section, run its examples, answer Check yourself before opening the answers, and take the quiz. Read the deeper sections once the Start here quiz is easy; leave the hardest parts for a second pass. Build the projects in the final chapter as you go.
Experienced engineerSkip the opening chapter. In each chapter, read the Revision sheet at the end first and take its quiz; skim Start here; then use How deep to go to pick the internals sections and lab experiments that fill your gaps. Tick a topic only when you could teach it.

Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
  2. Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
  4. Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.

Mastery levels

L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.

Languages used throughout

Spring Boot · Go · ReactPostgreSQL 16+ · Redis · queuesDocker · Kubernetes · HelmTerraform · GitHub Actions · Argo CDOpenTelemetry · PrometheusFlyway · Liquibase · pgrollArgo Rollouts · feature flags

Status as of October 2026: the migration examples were run against PostgreSQL 16, and the lock behaviour they show applies to current releases. Kubernetes manifests use stable APIs (apps/v1, networking Gateway API v1, autoscaling/v2), and rollout examples use Argo Rollouts. Tool versions change often; the deployment mechanics (expand and contract, draining, probes, canaries, backups that are actually restored) do not.

Contents

  1. SC·00Start Here: Shipping SafelyFor engineers who write features but haven't owned getting them to production: what happens between "merged" and "customers use it", one change…4 min
  2. SC·187The Application LifecycleOne application traced through every stage from idea to evolution, as a chain of artefacts and gates: idea and requirements, architecture and its…20 min
  3. SC·188Reference Production ArchitectureThe full request path of a production system, layer by layer and from first principles: DNS (records, TTLs, health-checked routing), CDN (edge…25 min
  4. SC·189Production ReadinessWhat "ready for production" means, made checkable: the production readiness review (PRR) and who runs it; the six dimensions in depth — functional…26 min
  5. SC·190Environment StrategyWhy systems run in several environments and how to design them: the purpose, users, data and fidelity of local, dev, test, staging and production…22 min
  6. SC·191Database Deployment SafetyChanging a live database without downtime, verified on PostgreSQL 16 with a 2-million-row table: why the schema and the code deploy separately, and…28 min
  7. SC·192Zero-Downtime DeploymentReleasing new versions while users keep working: what "zero downtime" means and what breaks it; rolling deploys in Kubernetes (maxSurge…26 min
  8. SC·193Disaster RecoverySurviving the failures that redundancy doesn't cover: the recovery chain (failure → detect → mitigate → failover/restore → validate → recover →…21 min
  9. SC·CSCase Study — Launch Week Game DayThe whole volume applied in one exercise: TiffinBox prepares to launch bulk skip for office admins in Hyderabad's HITEC City and runs a game day the…12 min
  10. SC·194Deployment and Operations ProjectsSix build-it-yourself projects that take a small service from a walking skeleton to a launch you'd trust: a pipeline that builds once and promotes by…5 min