Production Readiness Checklist
A production readiness checklist for before launch, with code, security, data, testing, CI/CD, monitoring and docs in one place, each item linked to its chapter.
On this page
1. What is this practice?
This is the last chapter of the course. It is not a new concept, it ties the earlier chapters together in one list. Each item links to the chapter where the "why" and "how" are explained.
2. Why does it matter?
On launch day your mind is on the feature, not on health checks and backups. That is why even pilots and surgeons use checklists: experience does not replace memory.
| Launch without a checklist | Launch with a checklist |
|---|---|
| Whatever came to mind got checked | Every area checked systematically |
| Users tell you about the first incident | The health check and alerts tell you first |
| There is a backup, probably | The backup was restored as a test |
| Secrets somewhere in the code | Scanner clean, everything in env |
| No rollback plan | Going back to the previous release is tested |
3. When to follow it
| Level | How important | Why |
|---|---|---|
| Learning project | The security and secrets part | Even a portfolio project is on the public internet |
| Production code | The full list, before every launch and big release | Real users, real data, real money |
| Senior level | Extend the list for the project and automate it | Lower and more predictable risk on every release |
4. Bad vs good code
Bad: launch plan
build passes on my machine, deploying friday eveningGood: launch plan
launch: orders v1, tuesday 11:00
ci: green on main, all stages
security: secret scan clean, headers set, cors allow-list, auth tests pass
data: migration dry run ok, backup taken and restore tested on staging
ops: /api/health returns 200, error alerts go to the on-call channel
rollback: previous release kept, switch back tested on staging
owner during launch: one named person on call for two hoursWhat is the difference?
| Thing | Bad | Good |
|---|---|---|
| Timing | Friday evening, nobody will be around | A working day, the team is present |
| Verification | On my machine | On CI and staging |
| Backup | Not mentioned | Tested down to a restore |
| Rollback | None | Tested |
5. How to apply it
Code and architecture
| Item | Chapter |
|---|---|
Strict types, no any | Strict Typing |
| Thin controllers, logic in the service | Service Layer & Thin Controllers |
| Errors in one consistent envelope | Error Handling & Error Envelope |
| Fail fast on bad data, no silent fallbacks | Fail Fast, No Defensive Fallbacks |
Security
| Item | Chapter |
|---|---|
No secret committed, scanner clean, .env.example complete | Secrets Management |
| Headers, CORS, hashed tokens, fail closed | Security Baseline |
| Validate at every input boundary | Input Validation at the Boundary |
| Authorization and tenant scoping on every mutation | Authorization & Multi-Tenancy |
| Check for injection, IDOR, XSS | Common Vulnerabilities (OWASP) |
| Lockfile, clean audit, updates on | Dependencies & Supply Chain |
| Rate limit on login and public endpoints | Rate Limiting & Background Jobs |
Data
| Item | Chapter |
|---|---|
| Migrations idempotent, with a down path and a dry run | Safe Migrations |
| Generated types match the schema | Generated Database Types |
| Parameterized queries, no N+1 | Query Patterns & Transactions |
| Backup taken and restore tested | CI/CD & Environments |
Testing and quality
| Item | Chapter |
|---|---|
| Every endpoint: success, validation and auth tests | Endpoint Tests First |
| Unit tests and a browser test for the critical flow | Testing Pyramid |
| Every PR meets the definition of done | Definition of Done |
| Slow pages measured and fixed | Performance: Measure First |
Delivery and operations
| Item | Chapter |
|---|---|
| Pipeline green: typecheck, lint, build, tests, secret scan | CI/CD & Environments |
| Staging with a separate database | CI/CD & Environments |
/api/health checks env and database | CI/CD & Environments |
| Secrets and personal data scrubbed from logs, errors alert | Logging |
| Reviewed PRs, protected main | Pull Requests & Code Review |
Docs and team
| Item | Chapter |
|---|---|
| README, decisions and gotchas up to date | Documentation & Decision Records |
| Rules for agents and an instructions file | Working with AI Coding Agents |
6. Exceptions and common mistakes
When the rule does not apply: an internal tool with five users and no sensitive data does not need the full list. Even so, do not skip the security and backups part. Whatever you skip, skip it in writing and with a reason.
Mistake: Deploying on Friday evening
Why? If something goes wrong nobody is around over the weekend, and users suffer for two days.
Better: Deploy on a working day, morning or afternoon, when the team is available for the next few hours.
Mistake: Having a backup but never restoring it
Why? Many backups turn out to be corrupt or incomplete at restore time.
Better: Restore on staging and check that the data comes back.
Mistake: Treating the checklist as a one-time job
Why? Every big release brings new risks, and the first launch's list goes stale.
Better: Run the list again before every big release and extend it by learning from new incidents.
7. What to learn before and after
| Stage | Topics |
|---|---|
| Before | Introduction, Core Philosophy |
| Alongside | CI/CD & Environments, Security Baseline |
| After | Deployment, When to Learn What |
Final quick revision
| Area | One line check |
|---|---|
| Code | Strict types, fail fast, consistent errors |
| Security | Secrets out, auth on every mutation, headers, dependencies |
| Data | Safe migrations, backup restore tested |
| Testing | Endpoint tests, definition of done |
| Delivery | Green pipeline, staging, health check, rollback |
| Ops | Logs scrubbed, alerts on, someone on call at launch |
| Docs | Decisions and gotchas written down |