Service Production Readiness
Prepare a service to run unattended in production: a sound process model, honest health signals, graceful shutdown, fail-fast configuration and releases sequenced with migrations.
4 objectives 6 steps about 125 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Run the service under a production ASGI server setup with a justified worker and process count, correct forwarded-header handling behind a reverse proxy, and request timeouts and body-size limits.
- Implement liveness and readiness checks that reflect real dependencies, and shut down gracefully on SIGTERM by draining in-flight requests and jobs.
- Validate configuration at startup so the process fails fast on missing or malformed settings, with secrets supplied by the runtime environment rather than code or images.
- Sequence a release so backward-compatible migrations run as a separate step before new code, verify it with smoke tests, and roll back application code without rolling back the schema.
Lesson plan
6 steps, about 125 min · 5 of 5 lessons available so far
- What Changes Between Your Laptop and Production Concept · 15 min
- Workers, Processes and the Reverse Proxy Worked example · 25 min
- Health, Readiness and Graceful Shutdown Worked example · 25 min
- Configuration That Fails Fast Concept · 15 min
- Lab: A Release with Migrations, Smoke Tests and Rollback Lab · 30 min
- Check: Production Readiness Review Knowledge check · 8 questions
Practise it
Run your service under a production server configuration behind a local reverse proxy, add liveness and readiness endpoints, prove with a test that SIGTERM drains an in-flight request, make startup fail on a missing setting, and rehearse a release where the migration runs first and a code rollback leaves the schema in place.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.