Production Readiness Checklist
Production readiness checklist launch se pehle, code, security, data, testing, CI/CD, monitoring aur docs ki ek jagah list, har item ke chapter link ke saath.
On this page
1. Yeh practice kya hai?
Yeh is course ka aakhri chapter hai. Naya concept nahi, balkay pichle chapters ki baaton ko ek list mein jorta hai. Har item ke saath us chapter ka link hai jahan "kyun" aur "kaise" samjhaya gaya hai.
2. Kyun zaroori hai?
Launch ke din dimagh feature par hota hai, health check aur backups par nahi. Isi liye pilots aur surgeons bhi checklist use karte hain: tajurba yaaddasht ki jagah nahi leta.
| Bina checklist launch | Checklist ke saath launch |
|---|---|
| Jo yaad aaya woh check hua | Har area systematically check |
| Pehla incident users batate hain | Health check aur alerts pehle batate hain |
| Backup hai, shayad | Backup restore karke test hua |
| Secrets kahin code mein | Scanner clean, sab env mein |
| Rollback ka plan nahi | Pichli release par wapas jana tested |
3. Kab follow karein?
| Level | Kitna zaroori | Kyun |
|---|---|---|
| Learning project | Security aur secrets wala hissa | Portfolio project bhi public internet par hai |
| Production code | Poori list, har launch aur bare release se pehle | Real users, real data, real paisa |
| Senior level | List ko project ke hisaab se barhana aur automate karna | Har release ka risk kam aur predictable |
4. Bura vs acha code
Bura: launch plan
build passes on my machine, deploying friday eveningAcha: 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 hoursFarq kya hai?
| Cheez | Bura | Acha |
|---|---|---|
| Waqt | Jumma shaam, koi nahi hoga | Kaam ka din, team maujood |
| Verification | Mere machine par | CI aur staging par |
| Backup | Zikr nahi | Restore tak test |
| Rollback | Nahi | Tested |
5. Kaise apply karein?
Code aur architecture
| Item | Chapter |
|---|---|
Strict types, koi any nahi | Strict Typing |
| Controllers patle, logic service mein | Service Layer & Thin Controllers |
| Errors ek consistent envelope mein | Error Handling & Error Envelope |
| Ghalat data par fail fast, chup chaap fallback nahi | Fail Fast, No Defensive Fallbacks |
Security
| Item | Chapter |
|---|---|
Koi secret commit nahi, scanner clean, .env.example complete | Secrets Management |
| Headers, CORS, hashed tokens, fail closed | Security Baseline |
| Har input boundary par validate | Input Validation at the Boundary |
| Har mutation par authorization aur tenant scoping | Authorization & Multi-Tenancy |
| Injection, IDOR, XSS check | Common Vulnerabilities (OWASP) |
| Lockfile, audit clean, updates on | Dependencies & Supply Chain |
| Login aur public endpoints par rate limit | Rate Limiting & Background Jobs |
Data
| Item | Chapter |
|---|---|
| Migrations idempotent, down path, dry run | Safe Migrations |
| Generated types schema se match | Generated Database Types |
| Parameterized queries, N+1 nahi | Query Patterns & Transactions |
| Backup liya aur restore test hua | CI/CD & Environments |
Testing aur quality
| Item | Chapter |
|---|---|
| Har endpoint: success, validation, auth tests | Endpoint Tests First |
| Unit tests aur critical flow ka browser test | Testing Pyramid |
| Har PR definition of done poori karta hai | Definition of Done |
| Slow pages measure aur fix | Performance: Measure First |
Delivery aur operations
| Item | Chapter |
|---|---|
| Pipeline green: typecheck, lint, build, tests, secret scan | CI/CD & Environments |
| Staging alag database ke saath | CI/CD & Environments |
/api/health env aur database check kare | CI/CD & Environments |
| Logs mein secrets aur personal data scrub, errors alert hon | Logging |
| Reviewed PRs, protected main | Pull Requests & Code Review |
Docs aur team
| Item | Chapter |
|---|---|
| README, decisions aur gotchas up to date | Documentation & Decision Records |
| Agents ke rules aur instructions file | Working with AI Coding Agents |
6. Exceptions aur common mistakes
Kab rule nahi lagta: internal tool jis ke paanch users hain aur koi sensitive data nahi, us par poori list ki zaroorat nahi. Phir bhi security aur backups wala hissa skip na karein. Jo item skip karein, woh likh kar aur wajah ke saath.
Galati: Jumma shaam deploy
Why? Masla hua to weekend par koi maujood nahi, aur users do din pareshan.
Behtar: Kaam ke din, subah ya dopehar, jab team aglay kuch ghante maujood ho.
Galati: Backup hai, lekin kabhi restore nahi kiya
Why? Bohat se backups restore ke waqt corrupt ya adhoore niklte hain.
Behtar: Staging par restore karke dekhein ke data wapas aata hai.
Galati: Checklist ko sirf ek dafa ka kaam samajhna
Why? Har bara release naye risks lata hai, pehli launch wali list purani ho jati hai.
Behtar: Har bare release se pehle list dobara chalayein aur naye incidents se seekh kar barhayein.
7. Pehle aur baad mein kya seekhein?
| Stage | Topics |
|---|---|
| Pehle | Introduction, Core Philosophy |
| Saath mein | CI/CD & Environments, Security Baseline |
| Baad mein | Deployment, When to Learn What |
Final quick revision
| Area | Ek line check |
|---|---|
| Code | Strict types, fail fast, consistent errors |
| Security | Secrets bahar, auth har mutation par, 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, launch par koi on call |
| Docs | Decisions aur gotchas likhe hue |