Skip to content
Team WorkflowChapter 57 / 57Advanced6 min read

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 checklistLaunch with a checklist
Whatever came to mind got checkedEvery area checked systematically
Users tell you about the first incidentThe health check and alerts tell you first
There is a backup, probablyThe backup was restored as a test
Secrets somewhere in the codeScanner clean, everything in env
No rollback planGoing back to the previous release is tested

3. When to follow it

LevelHow importantWhy
Learning projectThe security and secrets partEven a portfolio project is on the public internet
Production codeThe full list, before every launch and big releaseReal users, real data, real money
Senior levelExtend the list for the project and automate itLower and more predictable risk on every release

4. Bad vs good code

Bad: launch plan

bash
build passes on my machine, deploying friday evening

Good: launch plan

bash
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 hours

What is the difference?

ThingBadGood
TimingFriday evening, nobody will be aroundA working day, the team is present
VerificationOn my machineOn CI and staging
BackupNot mentionedTested down to a restore
RollbackNoneTested

5. How to apply it

Code and architecture

ItemChapter
Strict types, no anyStrict Typing
Thin controllers, logic in the serviceService Layer & Thin Controllers
Errors in one consistent envelopeError Handling & Error Envelope
Fail fast on bad data, no silent fallbacksFail Fast, No Defensive Fallbacks

Security

ItemChapter
No secret committed, scanner clean, .env.example completeSecrets Management
Headers, CORS, hashed tokens, fail closedSecurity Baseline
Validate at every input boundaryInput Validation at the Boundary
Authorization and tenant scoping on every mutationAuthorization & Multi-Tenancy
Check for injection, IDOR, XSSCommon Vulnerabilities (OWASP)
Lockfile, clean audit, updates onDependencies & Supply Chain
Rate limit on login and public endpointsRate Limiting & Background Jobs

Data

ItemChapter
Migrations idempotent, with a down path and a dry runSafe Migrations
Generated types match the schemaGenerated Database Types
Parameterized queries, no N+1Query Patterns & Transactions
Backup taken and restore testedCI/CD & Environments

Testing and quality

ItemChapter
Every endpoint: success, validation and auth testsEndpoint Tests First
Unit tests and a browser test for the critical flowTesting Pyramid
Every PR meets the definition of doneDefinition of Done
Slow pages measured and fixedPerformance: Measure First

Delivery and operations

ItemChapter
Pipeline green: typecheck, lint, build, tests, secret scanCI/CD & Environments
Staging with a separate databaseCI/CD & Environments
/api/health checks env and databaseCI/CD & Environments
Secrets and personal data scrubbed from logs, errors alertLogging
Reviewed PRs, protected mainPull Requests & Code Review

Docs and team

ItemChapter
README, decisions and gotchas up to dateDocumentation & Decision Records
Rules for agents and an instructions fileWorking with AI Coding Agents
Launch day
Fill in the checklist, write the reason for anything skipped
The full flow on staging
Backup and rollback ready
A working day, the team is present
Deploy and health check
Watch alerts and logs for the first two hours

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

Final quick revision

AreaOne line check
CodeStrict types, fail fast, consistent errors
SecuritySecrets out, auth on every mutation, headers, dependencies
DataSafe migrations, backup restore tested
TestingEndpoint tests, definition of done
DeliveryGreen pipeline, staging, health check, rollback
OpsLogs scrubbed, alerts on, someone on call at launch
DocsDecisions and gotchas written down